:root {
    color-scheme: dark;
    --ink: #eef5fb;
    --muted: #91a5b8;
    --dim: #60758a;
    --bg: #07101d;
    --surface: #0c1929;
    --surface-2: #101f31;
    --surface-3: #14263a;
    --line: rgba(159, 188, 214, .16);
    --line-strong: rgba(159, 188, 214, .27);
    --green: #54e0a1;
    --green-dark: #173f35;
    --blue: #68a8ff;
    --amber: #ffc86a;
    --red: #ff6e78;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 84% -5%, rgba(84, 224, 161, .14), transparent 30rem),
        radial-gradient(circle at 4% 20%, rgba(104, 168, 255, .10), transparent 31rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(84, 224, 161, .36); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 29, .82);
    backdrop-filter: blur(18px);
}

.nav { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 12px; direction: ltr; }
.brand-ball { position: relative; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; color: var(--green); background: var(--green-dark); font-size: 30px; line-height: 1; }
.brand-ball::after { position: absolute; width: 12px; height: 25px; content: ""; border: 1px solid rgba(84,224,161,.55); border-block: 0; transform: rotate(34deg); }
.brand > span:last-child { display: grid; line-height: 1.2; }
.brand strong { letter-spacing: -.3px; font-size: 15px; }
.brand small { margin-top: 4px; color: var(--green); letter-spacing: 2.7px; font-size: 8px; }

.nav-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255,200,106,.10); }
.nav-status.is-online .status-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(84,224,161,.10); }
.nav-status.is-error .status-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(255,110,120,.10); }

.docs-link { justify-self: end; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; color: #d9e5ef; font-size: 12px; transition: border-color .2s ease, transform .2s ease; }
.docs-link:hover { transform: translateY(-1px); border-color: var(--green); }

.hero { padding: 68px 0 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; }
.hero-copy { max-width: 760px; }
.overline { margin: 0 0 9px; color: var(--green); letter-spacing: .3px; font-size: 12px; font-weight: 700; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.15; letter-spacing: -2.2px; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.hero-numbers { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); direction: ltr; }
.hero-numbers > div { padding: 4px 23px; text-align: center; border-left: 1px solid var(--line); }
.hero-numbers > div:first-child { border-left: 0; }
.hero-numbers strong { display: block; color: var(--ink); font: 700 27px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-numbers span { color: var(--muted); font-size: 10px; white-space: nowrap; }

.explorer { min-height: 690px; margin-bottom: 72px; display: grid; grid-template-columns: 315px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(9, 23, 38, .72); box-shadow: var(--shadow); }
.filters-panel { padding: 27px; border-right: 1px solid var(--line); background: rgba(8, 20, 34, .86); }
.panel-heading { margin-bottom: 26px; display: flex; align-items: flex-start; gap: 13px; }
.step-number { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #062017; background: var(--green); font-weight: 900; }
.panel-heading h2 { margin: -3px 0 2px; font-size: 17px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }

.field { display: grid; gap: 8px; margin-top: 18px; color: #c7d5e1; font-size: 11px; font-weight: 700; }
.select-wrap { position: relative; display: block; }
.field-icon { position: absolute; top: 50%; left: 14px; z-index: 1; color: var(--green); transform: translateY(-50%); pointer-events: none; }
.field select, .fixture-toolbar select, .fixture-toolbar input { width: 100%; height: 48px; padding: 0 34px 0 42px; appearance: none; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background-color: var(--surface-2); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 13px) 21px, calc(100% - 18px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; font-size: 12px; }
.field select:disabled { cursor: not-allowed; opacity: .45; }

.league-card { margin-top: 25px; padding: 18px; display: grid; grid-template-columns: 45px 1fr; gap: 12px; border: 1px solid rgba(84,224,161,.2); border-radius: 17px; background: linear-gradient(145deg, rgba(84,224,161,.08), rgba(104,168,255,.04)); }
.league-logo { width: 45px; height: 45px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; color: var(--green); background: #071420; font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.league-logo img { width: 100%; height: 100%; object-fit: contain; }
.league-identity { min-width: 0; display: grid; align-content: center; }
.league-identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.league-identity span { color: var(--muted); font-size: 10px; }
.coverage-list { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 13px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.coverage-list > div { text-align: center; }
.coverage-list dt { color: var(--muted); font-size: 9px; }
.coverage-list dd { margin: 2px 0 0; font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; }

.api-note { margin-top: 24px; padding: 14px; display: flex; align-items: flex-start; gap: 10px; border-radius: 14px; color: var(--muted); background: rgba(104,168,255,.06); }
.api-note > span { color: var(--blue); font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-note p { margin: 0; font-size: 10px; }

.data-panel { min-width: 0; padding: 28px 32px 36px; }
.empty-welcome { min-height: 590px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-welcome h2 { margin: 22px 0 4px; font-size: 20px; }
.empty-welcome p { margin: 0; color: var(--muted); font-size: 12px; }
.pitch { position: relative; width: 130px; height: 84px; overflow: hidden; border: 1px solid rgba(84,224,161,.23); border-radius: 18px; background: linear-gradient(135deg, rgba(84,224,161,.09), transparent); transform: perspective(180px) rotateX(7deg); }
.pitch::before { position: absolute; inset: 10px; content: ""; border: 1px solid rgba(84,224,161,.25); border-radius: 7px; }
.pitch::after { position: absolute; top: 10px; bottom: 10px; left: 50%; content: ""; border-left: 1px solid rgba(84,224,161,.25); }
.pitch span { position: absolute; top: 29px; left: 51px; width: 26px; height: 26px; border: 1px solid rgba(84,224,161,.25); border-radius: 50%; }
.pitch i { position: absolute; top: 35px; left: 58px; z-index: 2; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 24px rgba(84,224,161,.5); }

.dashboard-header { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dashboard-header h2 { margin: 0; font-size: 25px; }
.refresh-button, .filter-button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-2); font-size: 11px; }
.refresh-button:hover, .filter-button:hover { border-color: var(--green); }

.tabs { margin-top: 19px; display: flex; gap: 5px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 13px 18px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.tab::after { position: absolute; right: 17px; bottom: -1px; left: 17px; height: 2px; content: ""; border-radius: 2px 2px 0 0; background: transparent; }
.tab span { min-width: 22px; margin-right: 6px; padding: 2px 7px; display: inline-block; border-radius: 999px; background: rgba(255,255,255,.06); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { background: var(--green); }
.tab.is-active span { color: #062017; background: var(--green); }

.view { padding-top: 22px; }
.fixture-toolbar { margin-bottom: 21px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.fixture-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.fixture-toolbar select, .fixture-toolbar input { height: 38px; padding: 0 11px; border-radius: 10px; color-scheme: dark; background-image: none; font-size: 10px; }
.fixture-toolbar select { padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 9px) 17px, calc(100% - 14px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.filter-button { height: 38px; min-height: 38px; color: #061b14; border-color: transparent; background: var(--green); font-weight: 800; }

.content-state { min-height: 350px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.content-state p { margin: 12px 0 0; font-size: 12px; }
.loader { width: 28px; height: 28px; display: block; border: 2px solid rgba(84,224,161,.18); border-top-color: var(--green); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-icon { color: var(--green); font-size: 40px; }

.fixtures-list { display: grid; gap: 20px; }
.load-more { width: min(280px, 100%); min-height: 44px; margin: 24px auto 0; display: block; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface-2); font-size: 11px; font-weight: 700; }
.load-more:hover { border-color: var(--green); }
.fixture-day { display: grid; gap: 9px; }
.day-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.day-label::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.match-row { width: 100%; min-height: 74px; padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 105px minmax(0, 1fr) 24px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.018); text-align: inherit; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.match-row:hover { transform: translateY(-1px); border-color: rgba(84,224,161,.35); background: rgba(84,224,161,.035); }
.match-team { min-width: 0; display: flex; align-items: center; gap: 10px; }
.match-team.away { justify-content: flex-end; text-align: left; }
.team-logo { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--muted); background: var(--surface-3); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.team-logo img { width: 27px; height: 27px; object-fit: contain; }
.team-name { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.match-center { display: grid; place-items: center; text-align: center; }
.score { direction: ltr; font: 800 18px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.kickoff { direction: ltr; font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.match-state { width: fit-content; margin-top: 3px; padding: 2px 7px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.055); font-size: 8px; white-space: nowrap; }
.match-state.live { color: #062017; background: var(--green); }
.match-state.finished { color: #cbd7e1; background: rgba(203,215,225,.1); }
.match-arrow { color: var(--dim); font-size: 18px; }

.standing-group + .standing-group { margin-top: 26px; }
.standing-group h3 { margin: 0 0 11px; font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.standings-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 10px; }
.standings-table th { padding: 12px 10px; color: var(--muted); background: rgba(255,255,255,.025); font-weight: 400; }
.standings-table td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: center; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2) { width: 42%; text-align: left; }
.standings-table tbody tr:hover { background: rgba(84,224,161,.025); }
.rank { color: var(--muted); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.standing-team { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.standing-team img { width: 25px; height: 25px; object-fit: contain; }
.points { color: var(--green); font-weight: 900; }

.service-intro { margin-bottom: 80px; padding: 34px 38px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(84,224,161,.075), rgba(104,168,255,.05)); }
.service-intro h2 { margin: 0; font-size: 27px; }
.service-intro p:not(.overline) { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.service-flow { direction: ltr; display: flex; align-items: center; gap: 10px; }
.service-flow span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,16,29,.5); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.service-flow i { color: var(--green); font-style: normal; }

.noscript-note { margin: -42px auto 54px; padding: 13px 16px; border: 1px solid rgba(255,200,106,.25); border-radius: 13px; color: var(--amber); background: rgba(255,200,106,.06); font-size: 11px; }
.seo-directory { margin-bottom: 72px; padding: 36px 38px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(9,23,38,.58); }
.seo-section-heading { max-width: 840px; }
.seo-section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; letter-spacing: -.8px; }
.seo-section-heading > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.country-links { margin: 25px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.country-links a, .seo-home-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #dce8f2; background: rgba(104,168,255,.05); font-size: 10px; font-weight: 700; }
.country-links a:hover, .seo-home-link:hover { border-color: var(--green); color: var(--green); }
.competition-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.competition-link { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.competition-link:hover { transform: translateY(-2px); border-color: rgba(84,224,161,.4); background: rgba(84,224,161,.035); }
.competition-link > span { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.competition-link h3 { margin: 6px 0 3px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.competition-link p { margin: 0; color: var(--muted); font-size: 9px; }
.seo-topics { margin-top: 31px; padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; border-top: 1px solid var(--line); }
.seo-topics h2, .related-competitions > h2 { margin: 0 0 8px; font-size: 15px; }
.seo-topics p { margin: 0; color: var(--muted); font-size: 10px; }
.seo-topics a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs { margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span:last-child { color: var(--ink); }
.seo-facts { margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.seo-facts > div { min-width: 0; padding: 14px 16px; border-left: 1px solid var(--line); }
.seo-facts > div:first-child { border-left: 0; }
.seo-facts dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.seo-facts dd { margin: 4px 0 0; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.seo-match-columns { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.seo-match-block { min-width: 0; }
.seo-match-block h3 { margin: 0 0 10px; font-size: 13px; }
.seo-match-list { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.seo-match-list li { padding: 11px 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.016); }
.seo-match-list span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.seo-match-list time { grid-column: 1; color: var(--muted); font-size: 8px; }
.seo-match-list b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--green); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.related-competitions { margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.related-competitions .competition-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.seo-disclaimer { margin: 25px 0 0; padding: 12px 15px; border-radius: 12px; color: var(--muted); background: rgba(104,168,255,.05); font-size: 9px; }
.seo-empty { margin: 24px 0 0; color: var(--muted); font-size: 11px; }

footer { border-top: 1px solid var(--line); background: rgba(5,13,23,.55); }
.footer-row { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-row > div:first-child { display: grid; }
.footer-row strong { font-size: 13px; }
.footer-row span { color: var(--muted); font-size: 9px; }
.footer-row > div:last-child { display: flex; gap: 17px; color: var(--muted); font-size: 10px; }
.footer-row a:hover { color: var(--green); }

.match-dialog { width: min(760px, calc(100% - 24px)); max-height: min(880px, calc(100vh - 24px)); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 40px 120px rgba(0,0,0,.65); }
.match-dialog::backdrop { background: rgba(1,7,13,.76); backdrop-filter: blur(7px); }
.dialog-shell { max-height: min(880px, calc(100vh - 24px)); display: grid; grid-template-rows: auto minmax(0,1fr); }
.dialog-header { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.close-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-2); font-size: 24px; line-height: 1; }
.dialog-content { padding: 24px; overflow-y: auto; }
.match-hero { padding: 24px 12px 29px; display: grid; grid-template-columns: 1fr 130px 1fr; align-items: center; gap: 20px; text-align: center; }
.dialog-team { min-width: 0; display: grid; justify-items: center; gap: 9px; }
.dialog-team .team-logo { width: 62px; height: 62px; border-radius: 19px; }
.dialog-team .team-logo img { width: 49px; height: 49px; }
.dialog-team strong { font-size: 13px; }
.dialog-score { direction: ltr; font: 900 35px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dialog-clock { margin-top: 5px; color: var(--green); font-size: 10px; }
.match-meta { margin-bottom: 20px; padding: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-section { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.detail-section.full { grid-column: 1 / -1; }
.detail-section h3 { margin: 0 0 13px; font-size: 12px; }
.stat-row { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: 9px; padding: 7px 0; color: var(--muted); font-size: 9px; text-align: center; }
.stat-row strong { color: var(--ink); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.scorers-list { display: grid; gap: 8px; }
.scorer-row { padding: 11px 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-radius: 12px; background: rgba(62,224,145,.06); }
.scorer-row > div { min-width: 0; display: grid; gap: 3px; }
.scorer-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.scorer-row span, .scorer-row time { color: var(--muted); font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.scorer-row time { color: var(--green); }
.substitutions-list { display: grid; gap: 8px; }
.substitution-row { padding: 11px 13px; display: grid; grid-template-columns: minmax(100px,.8fr) minmax(180px,1.6fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(145,196,255,.035); }
.substitution-team { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
.substitution-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.substitution-logo { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--surface-2); font: 700 7px ui-monospace, SFMono-Regular, Menlo, monospace; }
.substitution-logo img { width: 20px; height: 20px; object-fit: contain; }
.player-change { min-width: 0; display: grid; gap: 6px; }
.player-change > span { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 7px; }
.player-change i { padding: 3px 4px; border-radius: 5px; font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; font-style: normal; }
.player-change strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.player-in i { color: var(--green); background: rgba(62,224,145,.1); }
.player-out i { color: #ff8b99; background: rgba(255,82,104,.1); }
.substitution-row time { color: #91c4ff; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline { display: grid; gap: 8px; }
.play-row { position: relative; padding: 10px 14px 10px 42px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 10px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.026); }
.play-row.goal { border-color: rgba(62,224,145,.2); background: rgba(62,224,145,.045); }
.play-row.red-card { border-color: rgba(255,82,104,.18); }
.play-row.yellow-card { border-color: rgba(255,202,58,.16); }
.play-time { position: absolute; top: 10px; left: 11px; color: var(--green); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.play-row p { margin: 0; color: #c3d0dc; font-size: 9px; }
.play-row small { margin-top: 3px; display: block; color: var(--muted); font-size: 8px; }
.event-badge { min-width: 36px; padding: 4px 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.025); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; }
.event-badge.goal { border-color: rgba(62,224,145,.3); color: var(--green); background: rgba(62,224,145,.08); }
.event-badge.red-card { border-color: rgba(255,82,104,.3); color: #ff788a; background: rgba(255,82,104,.08); }
.event-badge.yellow-card { border-color: rgba(255,202,58,.3); color: #ffd45d; background: rgba(255,202,58,.08); }
.event-badge.substitution { color: #91c4ff; }
.availability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.availability-item { position: relative; padding: 11px 12px 11px 29px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.availability-item::before { content: ''; position: absolute; top: 14px; left: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(62,224,145,.45); }
.availability-item.unavailable::before { background: #f0a04b; box-shadow: 0 0 8px rgba(240,160,75,.35); }
.availability-item strong { font-size: 9px; }
.availability-item span { color: var(--muted); font-size: 8px; line-height: 1.5; }
.detail-empty { color: var(--muted); font-size: 10px; }

.toast { position: fixed; right: 50%; bottom: 25px; z-index: 100; max-width: min(440px, calc(100% - 30px)); padding: 12px 18px; border: 1px solid rgba(255,110,120,.28); border-radius: 13px; color: #ffd9dc; background: rgba(76,24,31,.95); box-shadow: var(--shadow); font-size: 11px; transform: translateX(50%); }

@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; gap: 35px; }
    .hero-numbers { width: min(440px, 100%); }
    .explorer { grid-template-columns: 265px minmax(0,1fr); }
    .filters-panel { padding: 23px 19px; }
    .data-panel { padding-inline: 24px; }
    .service-intro { grid-template-columns: 1fr; }
    .service-flow { justify-content: flex-start; }
    .competition-grid, .related-competitions .competition-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 24px, 1240px); }
    .nav { grid-template-columns: 1fr auto; }
    .nav-status { display: none; }
    .hero { padding-top: 48px; }
    h1 { letter-spacing: -1.3px; }
    .explorer { display: block; overflow: visible; border-radius: 22px; }
    .filters-panel { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
    .filters-panel .api-note { display: none; }
    .league-card { grid-template-columns: 45px 1fr auto; }
    .coverage-list { grid-column: 3; grid-row: 1; padding: 0 0 0 12px; display: flex; gap: 15px; border-top: 0; border-left: 1px solid var(--line); }
    .data-panel { min-height: 580px; padding: 23px 15px; }
    .empty-welcome { min-height: 480px; }
    .fixture-toolbar { grid-template-columns: 1fr 1fr; }
    .fixture-toolbar .filter-button { grid-column: 2; }
    .match-row { grid-template-columns: minmax(0,1fr) 86px minmax(0,1fr); gap: 8px; }
    .match-arrow { display: none; }
    .team-name { font-size: 10px; }
    .service-flow { flex-wrap: wrap; }
    .match-hero { grid-template-columns: 1fr 95px 1fr; gap: 9px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-section.full { grid-column: auto; }
    .availability-grid { grid-template-columns: 1fr; }
    .substitution-row { grid-template-columns: 1fr auto; }
    .substitution-team { grid-column: 1 / -1; }
    .seo-directory { padding: 28px 23px; border-radius: 22px; }
    .competition-grid, .related-competitions .competition-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .seo-topics { grid-template-columns: 1fr; gap: 18px; }
    .seo-facts { grid-template-columns: 1fr 1fr; }
    .seo-facts > div { border-left: 0; border-top: 1px solid var(--line); }
    .seo-facts > div:nth-child(-n+2) { border-top: 0; }
    .seo-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
    .seo-match-columns { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .brand strong { font-size: 12px; }
    .docs-link { padding-inline: 10px; font-size: 10px; }
    .hero-numbers > div { padding-inline: 10px; }
    .hero-numbers strong { font-size: 21px; }
    .league-card { grid-template-columns: 45px 1fr; }
    .coverage-list { grid-column: 1 / -1; grid-row: auto; padding: 12px 0 0; display: grid; border-top: 1px solid var(--line); border-left: 0; }
    .dashboard-header { align-items: center; }
    .dashboard-header h2 { font-size: 19px; }
    .refresh-button { width: 40px; padding: 0; overflow: hidden; color: transparent; white-space: nowrap; }
    .refresh-button span { color: var(--ink); font-size: 18px; }
    .fixture-toolbar { grid-template-columns: 1fr; }
    .fixture-toolbar .filter-button { grid-column: auto; }
    .match-row { min-height: 91px; padding-inline: 8px; grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr); }
    .match-team, .match-team.away { display: grid; justify-items: center; justify-content: center; text-align: center; }
    .team-logo { width: 31px; height: 31px; }
    .team-logo img { width: 24px; height: 24px; }
    .score { font-size: 15px; }
    .kickoff { font-size: 11px; }
    .service-intro { padding: 27px 22px; }
    .service-flow i { display: none; }
    .footer-row { padding-block: 25px; align-items: flex-start; flex-direction: column; }
    .footer-row > div:last-child { flex-wrap: wrap; }
    .competition-grid, .related-competitions .competition-grid { grid-template-columns: 1fr; }
    .match-dialog { width: calc(100% - 12px); max-height: calc(100vh - 12px); border-radius: 19px; }
    .dialog-shell { max-height: calc(100vh - 12px); }
    .dialog-content { padding: 16px 12px; }
    .dialog-team .team-logo { width: 48px; height: 48px; border-radius: 15px; }
    .dialog-team .team-logo img { width: 38px; height: 38px; }
    .dialog-team strong { font-size: 10px; }
    .dialog-score { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
