/*
Theme Name:  Football Hub Theme
Theme URI:   https://ketquatructuyen.net
Description: Theme bóng đá - Live score, Highlights, BXH, Tỉ lệ cược
Version:     1.0.06
Author:      Football Hub
Text Domain: fht
*/

/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --accent:      #00d46a;
    --accent-dark: #00a352;
    --live:        #ff3b3b;
    --live-bg:     rgba(255,59,59,.12);
    --gold:        #f5c242;

    --bg:          #f0f2f5;
    --bg-card:     #ffffff;
    --bg-header:   #ffffff;
    --border:      #e4e6ea;
    --text:        #111827;
    --text-2:      #374151;
    --text-muted:  #6b7280;
    --text-light:  #9ca3af;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
    --shadow:      0 4px 16px rgba(0,0,0,.10);
    --radius:      8px;
    --radius-lg:   14px;
    --header-h:    58px;
    --font:        'Barlow', sans-serif;
    --font-mono:   'JetBrains Mono', monospace;
}

[data-theme="dark"] {
    --bg:         #0d0f14;
    --bg-card:    #161920;
    --bg-header:  #0d0f14;
    --border:     #1f2330;
    --text:       #e8eaf0;
    --text-2:     #c9cdd8;
    --text-muted: #7a8099;
    --text-light: #4a5068;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
    --shadow:     0 4px 20px rgba(0,0,0,.5);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px 0;
}

.page-wrap--full {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .page-wrap { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}

.card-head a { color: var(--accent); font-size: .72rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.header-wrap {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.site-logo {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-logo span { color: var(--accent); }

.site-nav {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
}

.site-nav a {
    padding: 6px 11px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.site-nav a:hover,
.site-nav a.current { background: var(--border); color: var(--text); }

.site-nav a.live-link { color: var(--live); display: flex; align-items: center; gap: 5px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: all .15s;
}

.btn-icon:hover { background: var(--border); color: var(--text); }

/* ── Live dot ──────────────────────────────────────────────────────────── */
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    display: inline-block;
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .67rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.badge-live    { background: var(--live-bg); color: var(--live); }
.badge-done    { background: rgba(107,114,128,.12); color: var(--text-muted); }
.badge-soon    { background: rgba(0,212,106,.1); color: var(--accent); }
.badge-delay   { background: rgba(245,194,66,.15); color: var(--gold); }

/* ── Match card ──────────────────────────────────────────────────────────── */
.match-item {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: inherit;
}

.match-item:hover { background: var(--bg); }
.match-item:last-child { border-bottom: none; }

.match-league-logo {
    width: 20px;
    flex-shrink: 0;
}

.match-league-logo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.match-teams { flex: 1; min-width: 0; }

.match-team {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 2px 0;
}

.match-team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-team-name {
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team--win .match-team-name { font-weight: 700; }

.match-score-col {
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
}

.match-score-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.match-score-time {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.match-status { margin-top: 3px; }

/* ── Section heading ──────────────────────────────────────────────────────── */
.sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sec-head__title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.sec-head__line { flex: 1; height: 1px; background: var(--border); }

.sec-head__more {
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ── Highlight card ──────────────────────────────────────────────────────── */
.hl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.hl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.hl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.hl-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--border);
    overflow: hidden;
}

.hl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.hl-card:hover .hl-thumb img { transform: scale(1.05); }

.hl-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    opacity: 0;
    transition: opacity .2s;
}

.hl-card:hover .hl-play-btn { opacity: 1; }

.hl-play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    padding-left: 3px;
}

.hl-info { padding: 10px 12px; }

.hl-title {
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hl-meta { font-size: .7rem; color: var(--text-muted); margin-top: 5px; }

/* ── Video modal ──────────────────────────────────────────────────────────── */
#video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#video-modal.open { display: flex; }

.vmodal-inner {
    width: 100%;
    max-width: 960px;
    position: relative;
}

.vmodal-close {
    position: absolute;
    top: -44px;
    right: 0;
    color: rgba(255,255,255,.7);
    font-size: 1.6rem;
    line-height: 1;
    transition: opacity .15s;
}

.vmodal-close:hover { opacity: 1; color: #fff; }

.vmodal-frame {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vmodal-frame iframe { width: 100%; height: 100%; border: none; }

.vmodal-title {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    margin-top: 10px;
    text-align: center;
}

/* ── Standings table ──────────────────────────────────────────────────────── */
.std-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}

.std-table th {
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-light);
}

.std-table th:nth-child(2) { text-align: left; }

.std-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.std-table td:nth-child(2) { text-align: left; }
.std-table tr:last-child td { border-bottom: none; }
.std-table tr:hover td { background: var(--bg); }

.std-pos { font-weight: 700; color: var(--text-muted); font-size: .78rem; }
.std-pos--cl  { color: #2563eb; border-left: 3px solid #2563eb; padding-left: 6px; }
.std-pos--el  { color: #f97316; border-left: 3px solid #f97316; padding-left: 6px; }
.std-pos--rel { color: var(--live); border-left: 3px solid var(--live); padding-left: 6px; }

.std-team {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.std-team img { width: 16px; height: 16px; object-fit: contain; }
.std-pts { font-weight: 800; }

/* ── Form badges ──────────────────────────────────────────────────────────── */
.form-row { display: flex; gap: 3px; }

.form-w, .form-d, .form-l {
    width: 18px; height: 18px;
    border-radius: 3px;
    font-size: .62rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-w { background: rgba(0,212,106,.2); color: var(--accent); }
.form-d { background: var(--border); color: var(--text-muted); }
.form-l { background: rgba(255,59,59,.15); color: var(--live); }

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 3px;
    margin-bottom: 14px;
}

.tab-btn {
    flex: 1;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .15s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.on { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.flt-select {
    padding: 7px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: .8rem;
    cursor: pointer;
    outline: none;
}

.date-strip {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.date-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    transition: all .15s;
    text-decoration: none;
}

.date-btn.on,
.date-btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ── Team grid ──────────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.team-card img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }
.team-card-name { font-size: .76rem; font-weight: 600; line-height: 1.3; }

/* ── Player list ──────────────────────────────────────────────────────────── */
.player-list { display: flex; flex-direction: column; }

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: inherit;
}

.player-item:hover { background: var(--bg); }
.player-item:last-child { border-bottom: none; }

.player-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border);
    flex-shrink: 0;
}

.player-name { font-size: .84rem; font-weight: 600; }
.player-pos  { font-size: .7rem; color: var(--text-muted); }

/* ── Match stats ──────────────────────────────────────────────────────────── */
.stat-bars { display: flex; flex-direction: column; gap: 10px; }

.stat-row {
    display: grid;
    grid-template-columns: 3fr 1fr 3fr;
    gap: 8px;
    align-items: center;
    font-size: .8rem;
}

.stat-row .v-home { text-align: right; font-weight: 700; }
.stat-row .v-label { text-align: center; font-size: .68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.stat-row .v-away { font-weight: 700; }

.stat-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    grid-column: 1/-1;
    margin-top: -6px;
}

.stat-fill-h { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.stat-fill-a { position: absolute; right: 0; top: 0; bottom: 0; background: var(--live); border-radius: 2px; }

/* ── Lineup pitch ──────────────────────────────────────────────────────────── */
.pitch {
    background: linear-gradient(180deg, #1a6b3a, #1e7a43);
    border-radius: var(--radius-lg);
    padding: 16px;
    min-height: 380px;
}

.pitch-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }

.pitch-player { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.pitch-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
}

.pitch-num--home { background: rgba(255,255,255,.92); color: #1a6b3a; }
.pitch-num--away { background: rgba(255,59,59,.9); color: #fff; }

.pitch-name {
    font-size: .6rem;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    max-width: 56px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pitch-divider { height: 1px; background: rgba(255,255,255,.15); margin: 6px 0 12px; }

/* ── Events list ──────────────────────────────────────────────────────────── */
.events { display: flex; flex-direction: column; }

.event-item {
    display: grid;
    grid-template-columns: 40px 1fr 30px;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    transition: background .1s;
}

.event-item:hover { background: var(--bg); }
.event-item:last-child { border-bottom: none; }
.event-item--away { direction: rtl; }

.event-time { font-size: .7rem; font-weight: 700; color: var(--accent); }
.event-player { font-weight: 600; }
.event-assist { font-size: .7rem; color: var(--text-muted); }
.event-icon { font-size: .9rem; }

/* ── Odds table ──────────────────────────────────────────────────────────── */
.odds-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.odds-tbl th { padding: 8px 12px; border-bottom: 2px solid var(--border); text-align: center; font-size: .68rem; color: var(--text-light); text-transform: uppercase; }
.odds-tbl th:first-child { text-align: left; }
.odds-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.odds-tbl td:first-child { text-align: left; color: var(--text-muted); }
.odds-tbl tr:last-child td { border-bottom: none; }
.odds-val { font-weight: 700; }

/* ── Stat boxes ──────────────────────────────────────────────────────────── */
.stat-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.stat-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 10px 8px;
    text-align: center;
}

.stat-box__n { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-box__l { font-size: .62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 16px 0;
}

.pg-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.pg-btn:hover, .pg-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-light); }
.breadcrumb__cur { color: var(--text); font-weight: 500; }

/* ── Search overlay ──────────────────────────────────────────────────────── */
#search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.6);
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

#search-overlay.open { display: flex; }

.search-box {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-inp-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
}

.search-inp-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: .95rem;
    color: var(--text);
    font-family: var(--font);
}

.search-inp-wrap input::placeholder { color: var(--text-light); }

#search-results { max-height: 360px; overflow-y: auto; }

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: inherit;
}

.search-item:hover { background: var(--bg); }
.search-item:last-child { border-bottom: none; }
.search-item img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.search-item__name { font-size: .84rem; font-weight: 600; }
.search-item__type { font-size: .7rem; color: var(--text-muted); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toasts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: .82rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-in .3s ease;
    max-width: 280px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Stale / Error banners ──────────────────────────────────────────────── */
.banner-stale {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: .8rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.banner-error {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.banner-error__icon { font-size: 2.5rem; margin-bottom: 10px; }
.banner-error__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.banner-error__msg { font-size: .82rem; margin-bottom: 14px; }
.banner-error a { color: var(--accent); font-weight: 600; }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
#site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-header);
    padding: 28px 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-desc { font-size: .8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.7; }

.footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: .8rem; color: var(--text-muted); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    z-index: 200;
}

.mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: .58rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}

.mobile-nav a.current,
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-icon { font-size: 1.2rem; line-height: 1; }

@media (max-width: 768px) {
    .site-nav { display: none; }
    .mobile-nav { display: flex; }
    body { padding-bottom: 54px; }
    .wrap { padding: 0 12px; }
    .page-wrap { padding: 12px 0; gap: 12px; }
    .hl-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-live   { color: var(--live); }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }
.mt-12       { margin-top: 12px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.truncate    { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8       { gap: 8px; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
