/* ============================================================
   FIFA World Cup History — Main Stylesheet
   Location: css/style.css

   Typefaces: Oswald (headings/years) + Inter (body/data)
   Load in HTML head:
   <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --red:          #cc0000;
    --red-dark:     #a00000;
    --red-light:    #ff1a1a;
    --dark:         #1a1a1a;
    --dark-mid:     #2a2a2a;
    --white:        #ffffff;
    --off-white:    #f5f5f5;
    --panel:        #f9f9f9;
    --text:         #222222;
    --text-mid:     #555555;
    --text-light:   #888888;
    --border:       #dddddd;
    --border-dark:  #cccccc;
    --gold:         #c9922a;
    --gold-light:   #f0c060;
    --win:          #1e6e2e;
    --win-bg:       #e8f5e9;
    --draw:         #666666;
    --draw-bg:      #f5f5f5;
    --loss:         #b71c1c;
    --loss-bg:      #fdecea;

    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

    --radius:       4px;
    --radius-lg:    8px;
    --shadow:       0 1px 4px rgba(0,0,0,0.10);
    --shadow-md:    0 2px 12px rgba(0,0,0,0.12);
    --transition:   0.18s ease;

    --max-width:    1100px;
    --header-h:     60px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 32px 0 60px;
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
    background: var(--dark);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.logo-wc {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.logo-history {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #aaaaaa;
    padding: 6px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-nav a.active { color: var(--red); background: rgba(255,255,255,0.05); }

/* ── Red accent bar under header ─────────────────────────── */
.red-bar {
    height: 4px;
    background: var(--red);
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 24px;
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.page-header .subtitle {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-top: 6px;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Tournament Cards (list page) ─────────────────────────── */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tournament-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}

.tournament-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.tournament-card-header {
    background: var(--dark);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

/* Giant year watermark — the signature element */
.tournament-card-header::before {
    content: attr(data-year);
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.06);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none;
    user-select: none;
}

.tournament-card-year {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.tournament-card-host {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.tournament-card-body {
    padding: 16px 20px;
}

.tournament-card-champion {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.champion-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    display: block;
}

.champion-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.tournament-card-stats {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.stat { text-align: center; }

.stat-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ── Tournament Hero ──────────────────────────────────────── */
.tournament-hero {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

/* The signature element — huge year watermark */
.tournament-hero::before {
    content: attr(data-year);
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 700;
    color: rgba(255,255,255,0.04);
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
}

.tournament-hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.tournament-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.hero-meta-item { display: flex; flex-direction: column; }

.hero-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888888;
    margin-bottom: 2px;
}

.hero-meta-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

/* Champion strip */
.champion-strip {
    background: var(--red);
    padding: 12px 0;
}

.champion-strip .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.champion-strip .strip-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.champion-strip .strip-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.03em;
}

/* ── Quick Facts Strip ────────────────────────────────────── */
.quick-facts {
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.quick-fact {
    flex: 1;
    min-width: 110px;
    padding: 18px 20px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.quick-fact:last-child { border-right: none; }

.quick-fact-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.quick-fact-value.red { color: var(--red); }

.quick-fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

/* ── Prev/Next Navigation ─────────────────────────────────── */
.tournament-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.tournament-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.tournament-nav-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.tournament-nav-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.nav-year {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

/* ── Section Nav (sticky tabs within tournament page) ─────── */
.section-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.section-nav-list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-nav-list::-webkit-scrollbar { display: none; }

.section-nav-link {
    display: block;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}

.section-nav-link:hover { color: var(--text); border-bottom-color: var(--border-dark); }
.section-nav-link.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ── Group Tables ─────────────────────────────────────────── */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 28px;
}

.group-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.group-block-header {
    background: var(--dark);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-block-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #aaaaaa;
}

.group-block-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.05em;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-table thead th {
    background: var(--off-white);
    padding: 6px 8px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.standings-table thead th:first-child { text-align: left; padding-left: 16px; }

.standings-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.standings-table tbody tr:last-child { border-bottom: none; }
.standings-table tbody tr:hover { background: var(--panel); }

.standings-table td {
    padding: 8px;
    text-align: center;
    color: var(--text);
}

.standings-table td:first-child { text-align: left; padding-left: 16px; }
.standings-table td:last-child { padding-right: 16px; font-weight: 700; }

.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.team-flag-sm {
    width: 20px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.team-name { font-weight: 500; white-space: nowrap; }

/* Qualified/eliminated border indicator */
.qualified-row td:first-child { border-left: 3px solid var(--win); }
.eliminated-row td:first-child { border-left: 3px solid transparent; }

/* Match results under group table */
.group-matches { border-top: 2px solid var(--off-white); }

.group-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    gap: 8px;
    transition: background var(--transition);
}

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

.match-home {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.match-away {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-score-box {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius);
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.match-score-box.unplayed {
    background: var(--border);
    color: var(--text-light);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.match-date-row {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
    grid-column: 1 / -1;
    padding-top: 2px;
}

.match-note-row {
    font-size: 0.7rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    grid-column: 1 / -1;
}

.match-suffix {
    font-size: 0.65rem;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.04em;
}

/* ── Knockout Matches ─────────────────────────────────────── */
.knockout-round { margin-bottom: 36px; }

.knockout-matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.knockout-match {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.knockout-match-header {
    background: var(--panel);
    padding: 6px 14px;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.knockout-match-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 20px;
    gap: 12px;
}

.ko-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ko-team.away { flex-direction: row-reverse; text-align: right; }
.ko-team.winner .ko-team-name { color: var(--red); }

.ko-team-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ko-score { text-align: center; }

.ko-score-main {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.05em;
}

.ko-score-main.unplayed {
    font-size: 1rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 400;
}

.ko-score-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
    letter-spacing: 0.03em;
}

.ko-score-pen {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 600;
    margin-top: 2px;
}

/* ── Awards ───────────────────────────────────────────────── */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.award-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.award-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }

.award-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 4px;
}

.award-player {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.award-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.award-detail {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Tournament Notes ─────────────────────────────────────── */
.tournament-notes {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-mid);
}

/* ── Search ───────────────────────────────────────────────── */
.search-bar {
    display: flex;
    max-width: 600px;
    margin-bottom: 32px;
}

.search-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.search-input:focus { border-color: var(--red); }

.search-btn {
    padding: 12px 22px;
    background: var(--red);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background var(--transition);
}

.search-btn:hover { background: var(--red-dark); }

.search-result-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.search-result-item:hover { box-shadow: var(--shadow-md); color: inherit; }

.search-result-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
    min-width: 48px;
    line-height: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.search-result-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ── Bracket ──────────────────────────────────────────────── */
.bracket-wrap { overflow-x: auto; padding-bottom: 20px; }

.bracket {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    min-width: max-content;
    padding: 20px;
}

.bracket-round { min-width: 190px; }

.bracket-round-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 6px;
}

.bracket-match {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.bracket-team:last-child { border-bottom: none; }

.bracket-team.winner {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

.bracket-team-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Loading / Error / Empty states ──────────────────────── */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

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

.error-msg {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius);
    padding: 16px 20px;
    color: var(--loss);
    font-size: 0.9rem;
}

.empty-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: #888888;
    padding: 24px 0;
    font-size: 0.8rem;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer a { color: #aaaaaa; }
.site-footer a:hover { color: var(--white); }

/* ── Utility ──────────────────────────────────────────────── */
.text-red    { color: var(--red) !important; }
.text-gold   { color: var(--gold) !important; }
.text-muted  { color: var(--text-light) !important; }
.text-center { text-align: center; }
.font-display{ font-family: var(--font-display); }
.fw-700      { font-weight: 700; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --header-h: 54px; }

    .logo-history { display: none; }
    .site-nav a { padding: 6px 10px; font-size: 0.8rem; }

    .tournament-hero { padding: 32px 0 28px; }
    .tournament-hero h1 { font-size: 2rem; }
    .tournament-hero::before { font-size: 6rem; }
    .hero-meta { gap: 16px; }

    .groups-grid { grid-template-columns: 1fr; }
    .tournament-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }

    .quick-fact { min-width: 80px; padding: 14px 12px; }
    .quick-fact-value { font-size: 1.4rem; }

    .knockout-match-body { padding: 12px 14px; gap: 8px; }
    .ko-team-name { font-size: 0.9rem; }
    .ko-score-main { font-size: 1.5rem; }

    .tournament-nav-btn .nav-year { display: none; }
    .section-nav-link { padding: 12px 14px; font-size: 0.8rem; }

    .bracket-round { min-width: 150px; }
    .bracket-team { font-size: 0.75rem; padding: 7px 8px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    main { padding: 20px 0 40px; }
    .group-match { padding: 8px 10px; font-size: 0.78rem; }
    .search-bar { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
