/* ================================================================
   FIFA World Cup 2026 — Jogos da Copa
   Premium sports website · Light default + dark mode
   ================================================================ */

/* ── Custom Properties ── */
:root {
    /* Brand */
    --red:           #C8102E;
    --red-dark:      #A00D24;
    --navy:          #002B6C;
    --navy-light:    #1a4dab;
    --gold:          #C49422;
    --gold-light:    #e8b830;

    /* Surfaces */
    --bg:            #F4F7FB;
    --surface:       #FFFFFF;
    --surface-alt:   #F0F4F9;
    --border:        #DDE5F0;
    --border-soft:   #EBF0F7;

    /* Text */
    --text:          #0D1C33;
    --text-muted:    #5E7394;
    --text-dim:      #9AADC4;

    /* Shadows */
    --shadow-xs:     0 1px 3px rgba(13,28,51,0.06);
    --shadow-sm:     0 2px 8px rgba(13,28,51,0.08);
    --shadow-md:     0 4px 20px rgba(13,28,51,0.10);
    --shadow-lg:     0 12px 48px rgba(13,28,51,0.13);
    --shadow-xl:     0 24px 72px rgba(13,28,51,0.17);

    /* Geometry */
    --radius:        12px;
    --radius-sm:     8px;
    --radius-xs:     6px;
    --radius-pill:   999px;
    --transition:    0.2s cubic-bezier(0.4,0,0.2,1);
    --max-w:         1200px;
}

[data-theme="dark"] {
    --bg:            #0B1220;
    --surface:       #111D2E;
    --surface-alt:   #18283E;
    --border:        rgba(255,255,255,0.09);
    --border-soft:   rgba(255,255,255,0.05);
    --text:          #EDF2FA;
    --text-muted:    #7A95B5;
    --text-dim:      #4A6585;
    --shadow-xs:     0 1px 3px rgba(0,0,0,0.3);
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.42);
    --shadow-lg:     0 12px 48px rgba(0,0,0,0.52);
    --shadow-xl:     0 24px 72px rgba(0,0,0,0.62);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Accessibility ── */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-xs);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.logo-text span {
    display: block;
    font-size: 0.67rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.host-flags-mini {
    display: flex;
    align-items: center;
    gap: 3px;
}
.host-flags-mini img {
    width: 18px; height: 13px;
    border-radius: 2px; object-fit: cover;
}
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: all var(--transition);
    cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--border); color: var(--text); }
.icon-moon { display: block; }
.icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

/* ── Hero ── */
.hero {
    background: var(--surface);
    padding: 52px 24px 44px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(0,43,108,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 0%, rgba(200,16,46,0.04) 0%, transparent 50%);
    pointer-events: none;
}
[data-theme="dark"] .hero::before {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(0,43,108,0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 0%, rgba(200,16,46,0.16) 0%, transparent 55%);
}
.hero-title {
    position: relative;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    background: linear-gradient(140deg, var(--navy) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
[data-theme="dark"] .hero-title {
    background: linear-gradient(140deg, #7ab0ff 0%, #ff7a95 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-disclaimer {
    position: relative;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-style: italic;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.hero-subtitle {
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.host-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}
.host-flag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.host-flag-item img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }

/* ── Countdown ── */
.countdown-section {
    display: flex; justify-content: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.countdown-unit {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px; min-width: 58px;
}
.countdown-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    min-width: 58px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}
.countdown-unit-label {
    font-size: 0.61rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
}
.countdown-label {
    color: var(--text-dim);
    font-size: 0.72rem;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.02em;
}
.countdown-finished { color: var(--red); font-size: 1rem; font-weight: 700; }

/* ── Next Match Banner ── */
.next-match-section { padding: 20px 24px 0; }
.next-match-card {
    max-width: var(--max-w);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xs);
}
.next-match-badge {
    background: var(--red);
    color: #fff;
    font-size: 0.59rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}
.next-match-info { flex: 1; min-width: 0; }
.next-match-teams { font-weight: 700; font-size: 0.93rem; color: var(--text); }
.next-match-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; }

/* ── Controls ── */
.controls-section { padding: 20px 24px 0; }
.controls-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.search-wrapper { position: relative; flex: 1; min-width: 200px; }
.search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
    opacity: 0.5;
}
.search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 9px 16px 9px 36px;
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
.host-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-host {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
    display: flex; align-items: center; gap: 5px;
}
.btn-host:hover { border-color: var(--text-dim); color: var(--text); }
.btn-host.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-host img { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; }

/* ── Tabs Section ── */
.tabs-section {
    padding: 20px 24px 0;
    max-width: calc(var(--max-w) + 48px);
    margin: 0 auto;
}
.tabs-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tabs-nav {
    display: flex;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px;
    flex-shrink: 0;
}
.tab-btn {
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    padding: 7px 18px;
    color: var(--text-muted);
    font-size: 0.845rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-xs);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Favorites Strip ── */
.favorites-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px 0;
    min-height: 40px;
}
.favorites-strip::-webkit-scrollbar { display: none; }
.fav-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.fav-chip {
    position: relative;
    border-radius: var(--radius-xs);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.fav-chip:hover { transform: translateY(-2px); }
.fav-chip.fav-active .fav-flag-img {
    box-shadow: 0 0 0 2px var(--red), var(--shadow-xs);
}
.fav-flag-img {
    width: 36px; height: 26px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition);
}
.fav-remove {
    position: absolute;
    top: -5px; right: -5px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--text);
    color: var(--surface);
    font-size: 8px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    cursor: pointer;
    padding: 0;
    z-index: 1;
    border: none;
    line-height: 1;
}
.fav-chip:hover .fav-remove { opacity: 1; }

/* ── Schedule Group ── */
.schedule-group { margin-bottom: 28px; }
.schedule-group-header {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 12px; padding: 0 2px;
}
.schedule-group-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.schedule-group-count {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    font-weight: 500;
}
.matches-grid { display: flex; flex-direction: column; gap: 8px; }

/* ── Match Card ── */
.match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    position: relative;
    outline: none;
    box-shadow: var(--shadow-xs);
}
.match-card:hover, .match-card:focus {
    box-shadow: var(--shadow-md);
    border-color: var(--text-dim);
    transform: translateY(-1px);
}
.match-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.match-card.today-match {
    border-color: rgba(200,16,46,0.3);
    background: rgba(200,16,46,0.018);
}
[data-theme="dark"] .match-card.today-match { background: rgba(200,16,46,0.06); }
.match-card.today-match::after {
    content: 'HOJE';
    position: absolute; top: 8px; right: 10px;
    font-size: 0.57rem; font-weight: 800; letter-spacing: 0.12em;
    color: var(--red);
    background: rgba(200,16,46,0.08);
    border: 1px solid rgba(200,16,46,0.18);
    border-radius: var(--radius-pill);
    padding: 2px 6px;
}

/* ── Team inside card ── */
.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    text-align: center;
}
.match-team.team-right {
    flex-direction: column;
    text-align: center;
}
.team-name-card {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    max-width: 110px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}
.team-tbd-card .team-name-card { color: var(--text-muted); font-style: italic; }

/* ── Pin Button ── */
.pin-btn {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    transition: opacity var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    color: var(--text-dim);
    font-size: 10px;
    padding: 0;
    cursor: pointer;
    z-index: 1;
}
.match-team.team-right .pin-btn {
    right: auto;
    left: 0;
}
.match-card:hover .pin-btn,
.match-card:focus .pin-btn { opacity: 1; }
.pin-btn.pinned {
    opacity: 1;
    background: rgba(200,16,46,0.08);
    border-color: rgba(200,16,46,0.25);
    color: var(--red);
}
.pin-btn:hover {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: #fff !important;
}

/* ── Flags ── */
.flag {
    width: 40px; height: 28px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: var(--shadow-xs);
}
.flag-drop { border-radius: 3px; }
.flag-rect { border-radius: 3px; }
.flag-placeholder {
    width: 40px; height: 28px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}

/* ── Match Middle ── */
.match-middle {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    min-width: 70px;
}
.match-vs {
    font-size: 0.63rem; font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.13em; text-transform: uppercase;
}
.match-time-display {
    font-size: 0.875rem; font-weight: 700;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.match-stage-pill {
    font-size: 0.59rem; font-weight: 500;
    color: var(--text-dim);
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 2px 7px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.match-venue-info {
    font-size: 0.61rem; color: var(--text-dim); text-align: center;
}
#por-grupo .match-stage-pill { display: none; }
#por-grupo .match-middle { min-width: 110px; }

/* Stage pill colors */
.match-stage-pill.r32   { background: rgba(109,40,217,0.07);  color: #6d28d9; border-color: rgba(109,40,217,0.18); }
.match-stage-pill.r16   { background: rgba(5,150,105,0.07);   color: #059669; border-color: rgba(5,150,105,0.18); }
.match-stage-pill.qf    { background: rgba(196,148,34,0.09);  color: var(--gold); border-color: rgba(196,148,34,0.22); }
.match-stage-pill.sf    { background: rgba(200,16,46,0.07);   color: var(--red); border-color: rgba(200,16,46,0.18); }
.match-stage-pill.third { background: rgba(120,53,15,0.08);   color: #92400e; border-color: rgba(120,53,15,0.18); }
.match-stage-pill.final { color: var(--gold); border-color: rgba(196,148,34,0.3); font-weight: 700; background: rgba(196,148,34,0.07); }

[data-theme="dark"] .match-stage-pill.r32   { color: #c4b5fd; background: rgba(109,40,217,0.15); }
[data-theme="dark"] .match-stage-pill.r16   { color: #6ee7b7; background: rgba(5,150,105,0.15); }
[data-theme="dark"] .match-stage-pill.third { color: #fcd9a0; background: rgba(120,53,15,0.15); }

/* Knockout card left accent */
.type-r32   { border-left: 3px solid rgba(109,40,217,0.4); }
.type-r16   { border-left: 3px solid rgba(5,150,105,0.4); }
.type-qf    { border-left: 3px solid rgba(196,148,34,0.5); }
.type-sf    { border-left: 3px solid rgba(200,16,46,0.5); }
.type-third { border-left: 3px solid rgba(120,53,15,0.4); }

/* Final card */
.type-final {
    border-left: 3px solid var(--gold);
    background: linear-gradient(to right, rgba(196,148,34,0.04), var(--surface));
}
[data-theme="dark"] .type-final {
    background: linear-gradient(to right, rgba(196,148,34,0.08), var(--surface));
}
.type-final .team-name-card { font-size: 1rem; font-weight: 800; }
.type-final .match-vs { color: var(--gold); }
.type-final .flag { width: 52px; height: 36px; }

/* Group letter badge */
.group-header-label { display: flex; align-items: center; gap: 8px; }
.group-letter {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.82rem;
    color: #fff; flex-shrink: 0;
}
.group-letter.knockout {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
}

/* ── Dialog ── */
.dialog-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition);
}
.dialog-overlay.open { opacity: 1; }
.dialog-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    max-width: 480px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.97) translateY(10px);
    transition: transform var(--transition);
    position: relative;
}
.dialog-overlay.open .dialog-box { transform: scale(1) translateY(0); }
.dialog-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 16px; line-height: 1;
    transition: all var(--transition); cursor: pointer;
}
.dialog-close:hover { background: var(--border); color: var(--text); }

/* Dialog teams */
.dialog-stage-label {
    font-size: 0.67rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); text-align: center;
    margin-bottom: 16px;
}
.dialog-teams {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    margin-bottom: 20px;
}
.dialog-team {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px; flex: 1;
}
.dialog-team .flag { width: 68px; height: 48px; border-radius: 5px; box-shadow: var(--shadow-sm); }
.dialog-team .flag-placeholder { width: 68px; height: 48px; font-size: 24px; border-radius: 5px; }
.dialog-team-name {
    font-size: 0.88rem; font-weight: 700;
    color: var(--text); text-align: center;
}
.dialog-vs { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dialog-vs-text { font-size: 1.2rem; font-weight: 900; color: var(--text-dim); }
.dialog-match-time {
    font-size: 1.05rem; font-weight: 800;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.dialog-match-num { font-size: 0.67rem; color: var(--text-dim); text-align: center; }

/* Dialog meta */
.dialog-meta {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 14px; padding: 14px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}
.dialog-meta-row {
    display: flex; align-items: flex-start;
    gap: 8px; font-size: 0.82rem;
}
.dialog-meta-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.dialog-meta-label { color: var(--text-muted); flex-shrink: 0; min-width: 70px; font-weight: 500; }
.dialog-meta-value { color: var(--text); flex: 1; }
.dialog-maps-link { color: var(--red); }
.dialog-maps-link:hover { text-decoration: underline; }

/* Dialog timezone */
.dialog-tz {
    background: rgba(0,43,108,0.05);
    border: 1px solid rgba(0,43,108,0.11);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.8rem;
    margin-bottom: 14px;
}
[data-theme="dark"] .dialog-tz {
    background: rgba(0,43,108,0.22);
    border-color: rgba(26,77,171,0.3);
}
.dialog-tz-row {
    display: flex; justify-content: space-between;
    align-items: center; gap: 8px; margin-bottom: 4px;
}
.dialog-tz-row:last-child { margin-bottom: 0; }
.dialog-tz-label { color: var(--text-muted); font-weight: 500; }
.dialog-tz-value { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Dialog H2H */
.dialog-h2h-title {
    font-size: 0.69rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 8px;
}
.dialog-h2h-list { display: flex; flex-direction: column; gap: 4px; }
.dialog-h2h-item {
    font-size: 0.78rem; color: var(--text-muted);
    background: var(--surface-alt);
    border-radius: var(--radius-xs);
    padding: 5px 10px;
    border-left: 2px solid var(--navy);
}
[data-theme="dark"] .dialog-h2h-item { border-left-color: var(--text-dim); }
.dialog-h2h-empty { font-size: 0.78rem; color: var(--text-dim); font-style: italic; }

/* Dialog calendar */
.dialog-calendar-btn {
    display: flex; align-items: center;
    justify-content: center; gap: 8px;
    width: 100%; margin-top: 14px;
    padding: 10px 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem; font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.dialog-calendar-btn:hover {
    background: var(--border); color: var(--text);
    text-decoration: none;
}

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }

/* ── Footer ── */
.site-footer {
    margin-top: 60px;
    padding: 28px 24px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    background: var(--surface);
}
.site-footer a { color: var(--text-muted); }
.site-footer p + p { margin-top: 5px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .header-inner { padding: 10px 16px; }
    .header-meta  { display: none; }
    .hero { padding: 36px 16px 32px; }
    .host-flags { gap: 6px; }
    .host-flag-item { padding: 4px 10px; font-size: 0.73rem; }
    .controls-section { padding: 14px 16px 0; }
    .controls-inner { gap: 8px; }
    .tabs-section { padding: 14px 16px 0; }
    .tabs-bar { gap: 10px; margin-bottom: 18px; }
    .next-match-section { padding: 14px 16px 0; }

    .match-card {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px; padding: 12px 10px;
    }
    .match-middle { flex-direction: column; gap: 3px; }
    .match-vs { display: block; }
    .pin-btn { opacity: 0; }
    .team-name-card { max-width: 80px; font-size: 0.72rem; }

    .dialog-box { padding: 20px 16px; border-radius: 16px; }
    .countdown-value { font-size: 1.45rem; padding: 6px 10px; min-width: 50px; }
}

@media (min-width: 641px) and (max-width: 899px) {
    .match-card { grid-template-columns: 1fr auto 1fr; }
}

@media (min-width: 900px) {
    .matches-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tab-panel.active { animation: fadeInUp 0.22s ease forwards; }

@keyframes chipIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
.fav-chip { animation: chipIn 0.18s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* ── AdSense anchor ad safe zone ── */
@media (max-width: 640px) {
    body { padding-bottom: 70px; }
}
