@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+21C4, U+25B2, U+25BC; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+21C4, U+25B2, U+25BC; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #07090d; --panel: #10151d; --panel-2: #171e29; --line: #222c3a; --text: #e9eef5; --muted: #8f9cb0;
  --lime: #b6ff3b; --pink: #ff7ad9; --live: #ff3b5c;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Barlow", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 500px at 70% -10%, #1b2a3d 0%, transparent 60%), var(--bg); color: var(--text); font: 16px/1.45 var(--body); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--lime); color: #0b0f14; padding: 10px 14px; border-radius: 8px; font: 700 15px/1 var(--cond); text-transform: uppercase; }
.skip:focus { top: 12px; }
.noscript { padding: 24px; }
.empty { color: var(--muted); margin: 0; padding: 14px 4px; }

.app { display: grid; min-height: 100vh; }
.app > * { min-width: 0; }
@media (min-width: 900px) { .app { grid-template-columns: 280px minmax(0, 1fr); } }

/* ---------- match rail ---------- */
.rail { position: sticky; top: 0; z-index: 5; background: rgba(7, 9, 13, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 10px 0 10px; }
@media (min-width: 900px) { .rail { height: 100vh; border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 14px; overflow-y: auto; } }
.brand { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; padding: 0 16px 8px; }
.brand p { margin: 0; }
.logo { font: 800 21px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.logo i { font-style: normal; color: var(--lime); }
.day { font: 600 13px/1.1 var(--cond); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync { grid-column: 1 / -1; font: 600 12px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: #5f6c80; min-height: 1em; }
.sync.bad { color: #ffb347; }
@media (min-width: 900px) {
  .brand { grid-template-columns: 1fr; padding: 0 6px 18px; gap: 6px; }
  .day { text-align: left; }
}
.list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.list::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .list { flex-direction: column; overflow: visible; padding: 0; } }
.m { scroll-snap-align: start; flex: 0 0 auto; min-width: 172px; min-height: 76px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 14px; display: grid; gap: 3px; position: relative; overflow: hidden; transition: border-color .2s, background .2s; }
.m::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--h) 50%, var(--a) 50%); }
.m:hover { background: var(--panel-2); }
.m[aria-current="true"] { background: var(--panel-2); border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 10px 30px -12px rgba(182, 255, 59, .35); }
.m.bump:not([aria-current="true"]) { border-color: var(--pink); }
.m .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font: 700 19px/1.05 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.m .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m .s { font-variant-numeric: tabular-nums; }
.m .foot { display: flex; justify-content: space-between; align-items: center; font: 600 12px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 4px; background: #253041; color: var(--text); }
.st-live { background: var(--live); color: #fff; }
.st-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.st-off { background: #3a2a1a; color: #ffb347; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- stage ---------- */
.stage { padding: 16px; display: grid; gap: 16px; align-content: start; max-width: 1280px; width: 100%; }
@media (min-width: 900px) { .stage { padding: 26px 28px 48px; gap: 18px; } }
.cols { display: grid; gap: 18px; }
.cols > *, .side > *, .main-col > * { min-width: 0; }
@media (min-width: 1180px) { .cols { grid-template-columns: minmax(0, 1fr) 340px; } }
.main-col, .side { display: grid; gap: 16px; align-content: start; }
.title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 16px; }
.title h1 { margin: 0; font: 800 clamp(30px, 7vw, 54px)/.95 var(--cond); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.title h1 .n { color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.title .meta { color: var(--muted); font: 600 14px/1.3 var(--cond); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 4px 14px; flex-wrap: wrap; }
.live-dot { color: var(--live); }
.live-dot::before { content: "● "; }

/* ---------- player ---------- */
.tv { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px #000; scroll-margin-top: 140px; }
.tv video { width: 100%; height: 100%; display: block; background: #000; }
.ov-wrap:empty { display: none; }
.ov { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; background: rgba(7, 9, 13, .82); }
.ov b { font: 800 clamp(22px, 5vw, 34px)/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.ov span { color: var(--muted); max-width: 34ch; }
.ov.ld { background: rgba(7, 9, 13, .6); }
.ov .bar { width: min(260px, 60vw); height: 6px; border-radius: 3px; background: #253041; overflow: hidden; }
.ov .bar i { display: block; height: 100%; background: var(--lime); transition: width .15s; }
.caption { margin: -6px 2px 0; color: var(--muted); font-size: 15px; min-height: 1.45em; }
.caption b { color: var(--text); font-weight: 600; }
.caption .detail { display: block; font-size: 14px; }
.caption .err { display: block; color: #ffb347; margin-top: 4px; }
.caption .err button { margin-left: 6px; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #ffb347; background: none; color: #ffb347; cursor: pointer; }

/* ---------- goal cards ---------- */
.pl-head { display: flex; justify-content: space-between; align-items: center; }
.pl-head h2, .card h2 { margin: 0; font: 700 14px/1.1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hint { font: 700 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: #4f5b6e; }
.playlist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 80%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: -2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
@media (min-width: 700px) { .playlist { grid-auto-columns: 250px; } }
.playlist > .empty { grid-column: 1 / -1; }
.clip { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.clip.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.clip.fresh { animation: arrive 1.2s ease-out 3; }
@keyframes arrive { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 217, .9); } 100% { box-shadow: 0 0 0 14px rgba(255, 122, 217, 0); } }
.clip .play { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; min-height: 80px; text-decoration: none; }
.clip .play:hover { background: var(--panel-2); }
.clip .badge { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; font: 800 22px/1 var(--cond); position: relative; }
.clip .badge small { position: absolute; bottom: -6px; right: -6px; background: var(--bg); color: var(--lime); border: 1px solid var(--line); font: 700 10px/1 var(--cond); padding: 3px 4px; border-radius: 4px; letter-spacing: .06em; }
.clip .txt { display: grid; min-width: 0; }
.clip .nm { font: 700 18px/1.1 var(--cond); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip .as { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip .sc { font: 700 14px/1.2 var(--cond); color: var(--lime); letter-spacing: .05em; margin-top: 3px; }
.clip .acts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.clip .acts > * { min-height: 46px; display: grid; place-items: center; padding: 0 8px; font: 700 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center; }
.clip .acts > * + * { border-left: 1px solid var(--line); }
.clip .acts a:hover { background: var(--panel-2); color: var(--lime); }
.clip .acts .na { color: #4f5b6e; }
.clip .acts .wait { color: var(--muted); letter-spacing: .06em; }
.clip .acts .wait:only-child { grid-column: 1 / -1; }
.clip.wait-card .badge { filter: grayscale(1) brightness(.6); }
.clip.wait-card .nm { color: #c4ccd8; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 16px; }
.card h2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; }
.card h2 b.hd { color: var(--lime); } .card h2 b.ad { color: var(--pink); }
.src { display: inline-block; font: 700 10px/1 var(--cond); letter-spacing: .08em; padding: 3px 5px; border-radius: 3px; background: #253041; color: #b8c3d4; vertical-align: 1px; margin-left: 2px; }
.src-fotmob { background: var(--pink); color: #1a0717; }
.sub-h { margin-left: 4px; }
.legend { margin: 8px 0 0; font: 600 12px/1.2 var(--cond); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pitch { width: 100%; height: auto; display: block; }
.pitch .grass { fill: #0f2a1c; stroke: #2f6b46; stroke-width: .6; }
.pitch .ln { fill: none; stroke: #2f6b46; stroke-width: .6; }
.pitch .spot { fill: #2f6b46; }
.pitch .goalmouth { fill: none; stroke: var(--lime); stroke-width: .6; }
.pitch text { fill: var(--text); font: 700 4px var(--cond); }
.wave { position: relative; height: 96px; }
.wave svg { position: absolute; inset: 8px 0; width: 100%; height: calc(100% - 16px); }
.wave .mom { fill-opacity: .6; } .wave .mom.home { fill: var(--lime); } .wave .mom.away { fill: var(--pink); }
.wave .zero { stroke: #2a3446; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wave .line { fill: none; stroke: var(--lime); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.wave .half { position: absolute; top: 4px; bottom: 4px; border-left: 1px dashed #2a3446; }
.wave .gm { position: absolute; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .75); }
.wave .gm::after { content: "⚽"; position: absolute; left: -7px; font-size: 12px; line-height: 1; }
.wave .gm.home::after { top: -4px; } .wave .gm.away::after { bottom: -4px; }
.wave.worm .dot { position: absolute; width: 12px; height: 12px; margin: 2px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; }
.wave.worm .dot.home { background: var(--lime); } .wave.worm .dot.away { background: var(--pink); }
.statrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; margin: 8px 0; font: 700 16px/1 var(--cond); font-variant-numeric: tabular-nums; }
.statrow .lb { grid-column: 1 / -1; text-align: center; font: 600 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: -3px; }
.statrow .v2 { text-align: right; }
.duel { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: #1b2330; }
.duel i { display: block; min-width: 2px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 50px 22px minmax(0, 1fr); align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feed li:last-child { border-bottom: 0; }
.feed .mn { font: 700 15px/1 var(--cond); color: var(--muted); }
.feed .ic { justify-self: center; }
.feed .ic.yellow, .feed .ic.red { width: 12px; height: 16px; border-radius: 2px; background: #ffd23f; }
.feed .ic.red { background: var(--live); }
.feed .ic.sub { color: var(--lime); font: 700 15px/1 var(--cond); }
.feed .ic.pm { width: 14px; height: 14px; border: 2px dashed var(--muted); border-radius: 50%; }
.feed small { color: var(--muted); font-size: 13px; }
.potm { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; background: var(--panel-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.potm .k { width: 100%; font: 600 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.potm b { font: 800 22px/1 var(--cond); text-transform: uppercase; }
.potm em { font: 800 22px/1 var(--cond); color: var(--lime); font-style: normal; }
.card:has(.xi) { container-type: inline-size; }
.xi { display: grid; gap: 14px; font-size: 14px; }
@container (min-width: 520px) { .xi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.xi h3 { margin: 0 0 4px; font: 700 16px/1 var(--cond); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.xi h3 small { color: var(--lime); font-size: 14px; }
.xi ol { list-style: none; margin: 0; padding: 0; }
.xi li { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: #c9d2de; }
.xi li b { width: 20px; flex: none; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.xi .pn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xi .off { color: #ff8fa3; font-size: 11px; flex: none; }
.rt { font: 700 12px/1 var(--cond); font-style: normal; padding: 2px 4px; border-radius: 3px; background: #253041; color: var(--text); flex: none; margin-left: auto; }
.xi h3 .rt { margin-left: 0; }
.rt.hi { background: var(--lime); color: #0b0f14; }
.rt.lo { background: #5a2330; }

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