:root {
    color-scheme: light dark;
    --background: light-dark(#f3f5f8, #000);
    --surface: light-dark(#fff, #101319);
    --surface-hover: light-dark(#f7f9fd, #181d27);
    --text: light-dark(#111d32, #edf1fa);
    --muted: light-dark(#506078, #aab7cc);
    --border: light-dark(#dce3ed, #283141);
    --blue: light-dark(#184fc7, #95b7ff);
    --blue-soft: light-dark(#e9f0ff, #141f38);
    --hero: light-dark(#124bd3, #10234e);
    --hero-text: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
main { min-height: 65vh; padding-block: 30px 64px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px; background: var(--surface); }

.site-header { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-layout { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; min-height: 69px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 1.15rem; font-weight: 780; letter-spacing: -.04em; white-space: nowrap; }
.brand-accent { color: var(--blue); }
.main-nav { display: flex; gap: 5px; }
.main-nav a, .country-form button { padding: 8px 12px; border-radius: 7px; font-size: .875rem; font-weight: 680; white-space: nowrap; }
.main-nav a { color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.country-form { display: flex; justify-self: end; gap: 5px; min-width: 0; }
.country-form select, .country-form button { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.country-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%237d8ba6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding: 7px 29px 7px 9px;
    min-width: 0;
    max-width: 176px;
    font-size: .875rem;
}
.country-form button:hover { color: var(--blue); background: var(--blue-soft); }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(25px, 5vw, 54px); border-radius: 16px; color: var(--hero-text); background: var(--hero); }
.hero-content { position: relative; z-index: 1; }
.kicker { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: .875rem; letter-spacing: .105em; text-transform: uppercase; }
.signal { width: 8px; height: 8px; border-radius: 100%; background: #bfe8ff; }
.hero h1, .page-intro h1 { margin-block: 10px 12px; font-size: clamp(2.2rem, 6.5vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.065em; overflow-wrap: anywhere; }
.hero-description { color: #e4edff; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-art { position: absolute; top: 50%; right: 13%; width: 0; height: 0; transform: rotate(-18deg); }
.hero-art i, .hero-art b { position: absolute; inset: auto; width: var(--size); height: calc(var(--size) * .63); transform: translate(-50%, -50%); border: 1px solid #fff3; border-radius: 50%; }
.hero-art i:nth-child(1) { --size: 250px; }
.hero-art i:nth-child(2) { --size: 390px; }
.hero-art i:nth-child(3) { --size: 535px; }
.hero-art b { --size: 103px; border: 0; background: #fff2; }

.date-tabs { display: flex; gap: 6px; padding: 7px; margin-block: 20px 30px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.date-tabs a { flex: 1; display: grid; align-content: center; justify-items: center; min-width: 74px; min-height: 53px; padding: 4px 10px; border-radius: 7px; text-align: center; font-size: .875rem; }
.date-tabs a:first-child { flex: 1.35; min-width: 108px; font-weight: 730; }
.date-tabs time { color: var(--muted); font-size: .8125rem; }
.date-tabs a:hover, .date-tabs a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.date-tabs a[aria-current] time { color: inherit; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 26px; align-items: start; }
.schedule, .side-menu { min-width: 0; }
.day { margin-bottom: 29px; }
.day-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-date { color: var(--blue); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.day h2 { font-size: clamp(1.55rem, 3vw, 2.18rem); letter-spacing: -.055em; line-height: 1.2; margin-top: 4px; }
.match-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.event-list, .directory-list { list-style: none; margin: 0; padding: 0; }
.event-list, .empty { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.event { display: grid; grid-template-columns: 58px minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 14px; min-height: 82px; padding: 12px 16px; scroll-margin-top: 120px; }
.event + .event { border-top: 1px solid var(--border); }
.event:target { background: var(--blue-soft); }
.kickoff { color: var(--blue); font-weight: 770; font-variant-numeric: tabular-nums; }
.competition { color: var(--muted); font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.fixture h3 { font-size: 1rem; font-weight: 730; line-height: 1.33; overflow-wrap: anywhere; }
.broadcast { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; color: var(--muted); font-size: .875rem; }
.channel { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.channel img, .directory-list img { flex: none; object-fit: contain; padding: 2px; background: #fff; border: 1px solid var(--border); border-radius: 5px; }
.competition:hover, .channel:hover { color: var(--blue); text-decoration: underline; }
.empty { padding: 24px; color: var(--muted); }

.side-menu { display: grid; gap: 14px; }
.side-card { padding: 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.side-card h2 { font-size: 1rem; letter-spacing: -.025em; margin-bottom: 10px; }
.side-card nav { display: grid; }
.side-card nav a { display: block; padding: 7px 8px; margin-inline: -8px; border-radius: 5px; font-size: .875rem; color: var(--muted); }
.side-card nav a:hover, .side-card nav a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.side-more, .text-link { display: inline-block; color: var(--blue); font-size: .9rem; font-weight: 710; }
.side-more { margin-top: 10px; }
.side-more:hover, .text-link:hover { text-decoration: underline; }
.zone-card p { color: var(--muted); font-size: .875rem; }
.zone-card p + p { margin-top: 3px; }
.filter-bar, .directory-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.filter-bar span { padding: 5px 10px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.filter-bar a { color: var(--blue); text-decoration: underline; font-size: .875rem; }

.arena { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 17px; margin-bottom: 34px; background: var(--blue-soft); border: 1px solid var(--border); border-radius: 12px; }
.arena h2 { font-size: 1.04rem; font-weight: 750; letter-spacing: -.025em; }
.arena p { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; background: #174fcd; color: #fff; border-radius: 7px; font-size: .875rem; font-weight: 720; text-align: center; }
.button:hover { background: #103caa; }

.page-intro { padding: 24px 0 28px; }
.page-intro .kicker { color: var(--blue); }
.page-intro h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); }
.page-intro > p:last-child { color: var(--muted); max-width: 65ch; }
.directory-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 8px; }
.directory-list a { height: 100%; display: flex; gap: 9px; align-items: center; padding: 12px 14px; min-height: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.directory-list a:hover { background: var(--blue-soft); }
.directory-list small { margin-inline-start: auto; color: var(--muted); white-space: nowrap; }
.prose { max-width: 740px; }
.prose p + p { margin-top: 12px; }
.prose a:not(.button) { color: var(--blue); text-decoration: underline; }
.prose .arena { margin-top: 23px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-layout { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 25px; padding-block: 23px; }
.footer-layout nav { display: flex; gap: 17px; color: var(--muted); font-size: .875rem; }
.footer-layout nav a:hover { text-decoration: underline; }
.footer-layout small { margin-inline-start: auto; color: var(--muted); }
.theme-picker { color: var(--muted); font-size: .875rem; }
.theme-picker select { padding: 4px 6px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; }

@media (max-width: 950px) {
    .shell { width: calc(100% - 36px); }
    .guide-layout { grid-template-columns: minmax(0, 1fr) 215px; gap: 15px; }
    .arena { grid-template-columns: auto minmax(0, 1fr); }
    .arena .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 730px) {
    main { padding-top: 17px; }
    .nav-layout { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding-block: 8px; }
    .main-nav { grid-row: 2; grid-column: 1 / -1; }
    .country-form select { max-width: clamp(90px, 29vw, 150px); }
    .guide-layout { grid-template-columns: minmax(0, 1fr); }
    .side-menu { grid-row: 1; }
    .side-card { padding: 11px 13px; }
    .side-card h2 { margin-bottom: 5px; }
    .side-card nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .side-card nav a { margin: 0; padding: 4px 7px; background: var(--surface-hover); }
    .zone-card { display: none; }
    .date-tabs { margin-block: 12px 16px; }
}

@media (max-width: 520px) {
    .shell { width: calc(100% - 24px); }
    .main-nav a { padding-inline: 8px; }
    .brand { gap: 6px; font-size: 1rem; }
    .brand img { width: 31px; height: 31px; }
    .event { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; padding: 10px; }
    .kickoff { align-self: start; margin-top: 3px; font-size: .875rem; }
    .broadcast { grid-column: 2; }
    .channel img { width: 21px; height: 21px; }
    .footer-layout small { margin-inline-start: 0; }
}

.hidden { display: none; }
