/* ==========================================================================
   home.css — sections of index.php only. Each block has its own prefix:
   hero-  lv-  rs-  ot-  mc-  ch-  cta-  ct-  fq-
   ========================================================================== */


/* ===== HERO ===== */

.hero {
    text-align: center;
    padding-block: 18px 6px;
}

.hero h1 {
    font-size: clamp(24px, 4.4vw, 38px);
    line-height: 1.25;
    color: #fff;
    margin-bottom: 12px;
}

.hero-intro {
    max-width: 820px;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 16px;
}

.hero-intro strong {
    color: var(--gold);
}

.hero-clock {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    background: linear-gradient(135deg, #1c1608, #0f0f18);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px 26px;
}

.hero-date {
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
    color: #fff;
}

.hero-time {
    font-size: clamp(30px, 7vw, 52px);
    font-weight: 900;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.hero-tz {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}


/* ===== LIVE BOARD ===== */

.lv {
    margin-top: 26px;
}

.lv h2,
.rs h2,
.ot h2,
.mc h2,
.ch h2,
.fq h2,
.cta h2 {
    font-size: clamp(20px, 3.4vw, 28px);
    color: var(--gold);
    margin-bottom: 14px;
    line-height: 1.3;
}

.lv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.lv-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.lv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.lv-name {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.lv-open {
    font-size: 12px;
    font-weight: 800;
    background: var(--panel-2);
    color: var(--gold);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.lv-nums {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
}

.lv-num {
    text-align: center;
    min-width: 90px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #0d0d16;
    border: 1px solid var(--line);
}

.lv-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.lv-num b {
    display: block;
    font-size: 34px;
    line-height: 1.2;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.lv-arrow {
    font-size: 22px;
    color: var(--gold);
}

.lv-status {
    margin: 10px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

.lv-link {
    display: block;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
}

.lv-empty {
    color: var(--muted);
    margin: 0;
}

.lv-card.is-declared {
    border-color: #2f6d3f;
}

.lv-card.is-declared .lv-num-today {
    border-color: #3fb868;
}

.lv-card.is-declared .lv-num-today b {
    color: #6df09a;
}

.lv-card.is-declared .lv-status {
    color: #6df09a;
}

.lv-card.is-wait .lv-num-today,
.lv-card.is-soon .lv-num-today {
    animation: lvBlink 1s steps(2, start) infinite;
}

.lv-card.is-wait .lv-status,
.lv-card.is-soon .lv-status {
    color: var(--gold);
}

@keyframes lvBlink {
    0% {
        background: #0d0d16;
        border-color: var(--line);
    }
    100% {
        background: #3a1a1e;
        border-color: var(--red);
    }
}


/* ===== RESULTS TABLE ===== */

.rs {
    margin-top: 34px;
}

.rs-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.rs-table {
    width: 100%;
    min-width: 360px;
}

.rs-table th,
.rs-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.rs-table thead th {
    background: var(--gold);
    color: #1a1300;
    font-size: 14px;
}

.rs-table thead small {
    font-weight: 600;
}

.rs-table tbody th {
    text-align: left;
    background: var(--panel);
}

.rs-table tbody th a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    display: block;
}

.rs-table tbody th small {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.rs-table td {
    font-size: 20px;
    font-weight: 800;
    background: var(--panel);
    font-variant-numeric: tabular-nums;
}

.rs-row.is-declared .rs-today {
    color: #6df09a;
}

.rs-row.is-wait .rs-today,
.rs-row.is-soon .rs-today,
.rs-row.is-next .rs-today {
    color: var(--gold);
    animation: rsBlink 1s steps(2, start) infinite;
    font-size: 16px;
}

.rs-row.is-upcoming:not(.is-next) .rs-today {
    color: var(--muted);
}

@keyframes rsBlink {
    0% {
        background: var(--panel);
    }
    100% {
        background: #3a1a1e;
    }
}

.rs-updated {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
}


/* ===== OPENING TIMES ===== */

.ot {
    margin-top: 34px;
}

.ot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.ot-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
}

.ot-list a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.ot-list span {
    color: var(--gold);
    font-weight: 800;
    white-space: nowrap;
}


/* ===== MONTHLY CHART ===== */

.mc {
    margin-top: 38px;
}

.mc-note {
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.mc-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.mc-title {
    margin: 0;
    padding: 10px 14px;
    font-size: 15px;
    background: var(--panel-2);
    color: var(--gold);
}

.mc-scroll {
    overflow-x: auto;
}

.mc-table {
    width: 100%;
    min-width: 320px;
}

.mc-table th,
.mc-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.mc-table thead th {
    background: #0d0d16;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}

.mc-table tbody th {
    color: var(--muted);
    font-weight: 700;
}

.mc-table td {
    font-weight: 800;
}

.mc-table tr.is-today th,
.mc-table tr.is-today td {
    background: #1d1a0c;
}

.mc-table td.is-wait {
    color: var(--gold);
    animation: mcBlink 1s steps(2, start) infinite;
}

@keyframes mcBlink {
    0% {
        background: #1d1a0c;
    }
    100% {
        background: #3a1a1e;
    }
}


/* ===== OLD CHART BUTTONS ===== */

.ch {
    margin-top: 36px;
}

.ch-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}

.ch-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.ch-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    color: #1a1300;
    background: var(--gold);
    animation: chPulse 1.4s ease-in-out infinite;
}

.ch-chip:nth-child(even) {
    animation-delay: .7s;
}

.ch-chip:hover {
    background: var(--gold-soft);
    color: #1a1300;
}

@keyframes chPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 184, 0, .55);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(245, 184, 0, 0);
    }
}

/* ===== IMAGE + CTA ===== */

.cta {
    margin-top: 40px;
}

.cta-box {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 26px;
    background: linear-gradient(135deg, #1b1507, #0f0f18);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 22px;
}

.cta-img img {
    margin-inline: auto;
    width: 100%;
    max-width: 260px;
}

.cta-text p {
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}


/* ===== CONTENT ===== */

.ct-article {
    margin-top: 44px;
}

.ct-block {
    margin-bottom: 30px;
}

.ct-block h2 {
    font-size: clamp(20px, 3.2vw, 26px);
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1.3;
}

.ct-block p {
    color: #d6d6e2;
}

.ct-block ul {
    padding-left: 22px;
}

.ct-block li {
    margin-bottom: 6px;
    color: #d6d6e2;
}

.ct-table-wrap {
    overflow-x: auto;
    margin: 14px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.ct-table {
    width: 100%;
    min-width: 480px;
}

.ct-table th,
.ct-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    color: #d6d6e2;
    vertical-align: top;
}

.ct-table thead th {
    background: var(--gold);
    color: #1a1300;
}

.ct-table tbody th {
    color: #fff;
    background: var(--panel);
    white-space: nowrap;
}

.ct-table td {
    background: var(--panel);
}


/* ===== FAQ ===== */

.fq {
    margin-top: 20px;
}

.fq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.fq-item summary {
    cursor: pointer;
    font-weight: 800;
    color: #fff;
}

.fq-item p {
    margin: 10px 0 0;
    color: #d6d6e2;
}

.fq-item[open] {
    border-color: var(--gold);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 760px) {
    .ot-list {
        grid-template-columns: 1fr;
    }
    .mc-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-actions {
        justify-content: center;
    }
    .cta-img img {
        max-width: 200px;
    }
    .lv-num b {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-card.is-wait .lv-num-today,
    .lv-card.is-soon .lv-num-today,
    .rs-row.is-wait .rs-today,
    .rs-row.is-soon .rs-today,
    .rs-row.is-next .rs-today,
    .mc-table td.is-wait,
    .ch-chip {
        animation: none;
    }
}