@font-face{font-family:DM Sans;src:url('/assets/dm-sans.woff2') format('woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:Barlow Condensed;src:url('/assets/barlow-condensed.woff2') format('woff2');font-weight:700;font-display:swap}

:root{
  --sky:#8ecae6;--sky-mid:#73bfdc;--surf:#58b4d1;--blue:#219ebc;--cerulean:#126782;--navy:#023047;
  --sun:#ffb703;--amber:#fd9e02;--tangerine:#fb8500;--orange:#fb9017;
  --bg:#071723;--mast:#081923;--panel:#0c2230;--field:#091d2a;--panel-hover:#102b3b;--line:#244356;
  --ink:#f1f7fb;--muted:#a5bdca;--soft:#c2d6e0;--highlight:var(--sky);--focus:var(--sun);
  --active-bg:#123345;--warm:#ffd585;--warm-bg:#35291f;--on-sun:#172529;
  --display:'Barlow Condensed','Arial Narrow',Impact,sans-serif;
  color-scheme:dark;
  font:400 1rem/1.5 'DM Sans',system-ui,sans-serif;
}

html[data-theme=light]{
  --bg:#edf5f8;--mast:#fcfeff;--panel:#fff;--field:#f4f9fb;--panel-hover:#e5f3f8;--line:#adc8d5;
  --ink:#08283b;--muted:#385c70;--soft:#2b4f63;--highlight:#095773;--focus:#126782;
  --active-bg:#d5eef6;--warm:#6c4100;--warm-bg:#ffedc2;
  color-scheme:light;
}
@media (prefers-color-scheme:light){
  html[data-theme=system]{
    --bg:#edf5f8;--mast:#fcfeff;--panel:#fff;--field:#f4f9fb;--panel-hover:#e5f3f8;--line:#adc8d5;
    --ink:#08283b;--muted:#385c70;--soft:#2b4f63;--highlight:#095773;--focus:#126782;
    --active-bg:#d5eef6;--warm:#6c4100;--warm-bg:#ffedc2;
    color-scheme:light;
  }
}
*,*::before,*::after{box-sizing:border-box}
body{min-height:100vh;min-height:100dvh;margin:0;background:var(--bg);color:var(--ink)}
h1,h2,h3,p,ul,dl,dd{margin:0}
button,input,select{font:inherit}
button,a,input,summary,select{-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer}
button:disabled{cursor:wait;opacity:.7}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
[hidden]{display:none !important}
.skip{position:fixed;z-index:5;top:.5rem;left:.5rem;transform:translateY(-150%);padding:.6rem 1rem;background:var(--panel)}
.skip:focus{transform:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shell{width:min(100% - clamp(2rem,8vw,8.5rem),78rem);margin-inline:auto}

.mast{background:var(--mast);border-bottom:1px solid var(--line)}
.mast-inner{display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:76px}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none;font:700 1.5rem/.9 var(--display);letter-spacing:.075em}
.brand>img{flex:none}
.brand-accent{color:var(--highlight);margin-left:.16em}
.brand small{display:block;margin-top:.42rem;font:700 .66rem/1 'DM Sans',sans-serif;letter-spacing:.14em;color:var(--muted)}
.mast-actions{display:flex;flex-wrap:wrap;gap:.58rem;justify-content:flex-end}
.outline,.quiet,.primary,.text-button,.close{
  display:inline-flex;align-items:center;justify-content:center;gap:.52rem;
  min-height:44px;padding:.52rem .86rem;border:1px solid transparent;border-radius:9px;
  background:none;color:inherit;text-decoration:none;font-size:.875rem;font-weight:700;line-height:1.2;
}
.outline{border-color:var(--line);background:var(--field)}
.outline:hover,.quiet:hover,.close:hover{background:var(--panel-hover)}
.quiet{color:var(--muted)}
.primary{background:linear-gradient(105deg,var(--sun),var(--amber));color:var(--on-sun)}
.primary:hover{background:var(--sun)}
.text-button,.text-link{color:var(--highlight)}
.text-button:hover,.text-link:hover{text-decoration:underline;text-underline-offset:4px}
.eye-icon{width:16px;height:10px;border:1.5px solid currentColor;border-radius:72% 35%;transform:rotate(0deg);position:relative}
.eye-icon::after{content:'';position:absolute;width:4px;height:4px;inset:0;margin:auto;border-radius:50%;background:currentColor}
.tune-icon{width:14px;height:10px;background:linear-gradient(currentColor,currentColor) 0 1px/100% 1px no-repeat,linear-gradient(currentColor,currentColor) 0 8px/100% 1px no-repeat;position:relative}
.tune-icon::before,.tune-icon::after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor;left:4px;top:0}
.tune-icon::after{left:9px;top:6px}
.play-icon{width:1rem;height:1rem;flex:none;background:currentColor;clip-path:polygon(28% 8%,92% 50%,28% 92%)}

.intro{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-block:clamp(1.7rem,4.1vw,3.25rem) 1.4rem}
.intro h1{font:700 clamp(3rem,6.15vw,5.35rem)/.88 var(--display);letter-spacing:-.017em;text-transform:uppercase}
.intro h1 span{color:var(--amber)}
.intro p{color:var(--muted);margin-top:.57rem}
.source{display:flex;align-items:center;justify-content:end;gap:.65rem;white-space:nowrap;flex-wrap:wrap;color:var(--muted);font-size:.875rem}
#feed-label{display:inline-flex;align-items:center;gap:.44rem;font-weight:700}
.source .text-button{padding-inline:.3rem}
.dot{display:inline-block;width:.43rem;height:.43rem;border-radius:50%;background:var(--surf);flex:none}
.demo-source .dot{background:var(--sun);box-shadow:0 0 .6rem #ffb70380}
.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.leagues{display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:.25rem}
.leagues button,.window-tabs button{
  min-height:44px;border-radius:8px;flex:none;padding:.45rem .8rem;border:1px solid transparent;
  background:transparent;color:var(--muted);font-weight:700;font-size:.875rem;white-space:nowrap;
}
.leagues button:hover,.window-tabs button:hover{background:var(--panel-hover);color:var(--ink)}
.leagues button[aria-pressed=true]{background:var(--active-bg);color:var(--highlight);border-color:var(--line)}
.window-tabs{display:flex;gap:.21rem;padding:.21rem;border:1px solid var(--line);border-radius:11px;background:var(--field);flex:none}
.window-tabs button{min-height:39px}
.window-tabs button[aria-pressed=true]{background:var(--panel-hover);color:var(--ink)}
.window-tabs .dot{background:var(--tangerine);margin-right:.25rem;vertical-align:.095rem}

.feature{
  --ink:#f1f7fb;--muted:#c0d5df;--soft:#c2d6e0;--highlight:var(--sky);--line:#31596c;--focus:var(--sun);
  --field:#092236;--panel-hover:#13384b;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(13rem,24%);align-items:center;gap:clamp(1rem,4vw,4rem);
  min-height:355px;padding:clamp(1.15rem,3.2vw,2.6rem);isolation:isolate;overflow:hidden;
  background-color:var(--navy);background-image:linear-gradient(90deg,#071b2b 1%,#081c2ce8 29%,#062235a0 65%,#0618259c),url('/assets/stadium.webp');
  background-size:cover;background-position:center,center 55%;
  color:var(--ink);border:1px solid #32627b;border-radius:19px;box-shadow:0 14px 40px #0002;
}
.feature-label{display:flex;align-items:center;gap:.46rem;color:#ffe2a1;font-weight:700;font-size:.8125rem;letter-spacing:.14em}
.accent-signal{font-size:1.15rem;color:var(--sun);line-height:1}
.game-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.52rem;color:var(--muted);font-size:.875rem;font-weight:700}
.feature .game-meta{margin-block:.8rem .55rem}
.sep{width:.23rem;height:.23rem;border-radius:50%;background:var(--muted)}
.live-tag,.time-tag,.network{display:inline-flex;align-items:center;gap:.4rem;padding:.2rem .53rem;border-radius:5px;font-size:.8125rem;font-weight:700;line-height:1.44}
.live-tag{background:#543220;color:#ffe1a7}
.live-tag .dot{background:var(--sun);box-shadow:0 0 .55rem #ffb7039b}
.time-tag{color:#e1f6ff;background:#164963}
.teams{display:grid;gap:.4rem}
.team{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.68rem;align-items:center}
.team-mark{
  display:grid;place-items:center;width:2.65rem;height:2.45rem;flex:none;background:#164054;color:#e9f8ff;
  border:1px solid #548ba2;border-radius:8px;font-size:.65rem;font-weight:700;line-height:1;overflow:hidden;
}
.team-mark.violet{background:#31264e;border-color:#896bb0;color:#f0e5ff}
.team-mark.gold{background:#463820;border-color:#997742;color:#ffedbb}
.team-mark.red{background:#492839;border-color:#a25e73;color:#ffe6ec}
.team-mark.green{background:#194435;border-color:#588c72;color:#e5fcf0}
.team-mark.orange{background:#4b3023;border-color:#aa765a;color:#fff0db}
.team-mark.blue{background:#163f70;border-color:#5687b8;color:#eef7ff}
.team-name{font-weight:700;line-height:1.17;overflow-wrap:anywhere;min-width:0}
.team-name small{font:700 .74em/1 'DM Sans',sans-serif;color:var(--highlight)}
.team-score{font:700 1.8rem/.95 var(--display);font-variant-numeric:tabular-nums;text-align:right;min-width:2ch}
.hero-teams{max-width:31rem;gap:.24rem}
.hero-teams .team{min-height:clamp(2.8rem,5vw,3.6rem)}
.hero-teams .team-mark{width:2.65rem;height:2.65rem}
.hero-teams .team-name,.hero-teams .team-score{font:700 clamp(2rem,4.6vw,3.6rem)/.94 var(--display);font-variant-numeric:tabular-nums}
.hero-teams .team-name small{font-size:.45em}
.hero-broadcast{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.8rem}
.network{border:1px solid var(--line);background:var(--field);color:var(--highlight)}
.network.digital{background:var(--active-bg)}
.venue{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.65rem}
.feature-index{
  display:grid;justify-items:center;align-content:center;gap:.5rem;text-align:center;padding:.9rem .6rem 1rem;
  background:#071b2dc9;border:1px solid #5b879d80;border-radius:15px;
}
.index-label{font-size:.8125rem;font-weight:700;letter-spacing:.12em;color:#b9dbea}
.ring{width:clamp(6rem,10vw,8.4rem);aspect-ratio:1;display:grid;place-items:center;color:#ffcf68}
.ring>*{grid-area:1/1}
.ring svg{display:block;width:100%;overflow:visible;fill:none;stroke-width:6;transform:rotate(-90deg)}
.ring-track{stroke:#346074}
.ring-value{stroke:var(--sun);stroke-linecap:round}
.ring strong{display:block;font:700 clamp(2.6rem,5vw,4.05rem)/.9 var(--display);font-variant-numeric:tabular-nums}
.ring small{display:block;color:#afd0dd;font-size:.6rem;font-weight:700;letter-spacing:.1em;margin-top:.18rem}
.reasons{display:flex;flex-wrap:wrap;justify-content:center;gap:.33rem;list-style:none;padding:0;color:#cee7f2}
.reasons li{padding:.16rem .45rem;border:1px solid #3e6175;border-radius:20px;font-size:.75rem}

.slate{margin-block:clamp(1.35rem,3vw,2.2rem) 0}
.slate-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:.5rem;margin-bottom:.7rem}
.slate-heading h2,.empty h2{font:700 clamp(1.8rem,4.2vw,2.75rem)/1 var(--display);text-transform:uppercase}
.slate-heading>span{color:var(--muted);font-size:.875rem}
.slate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18.5rem),1fr));gap:.74rem}
.game-card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:.85rem .95rem .65rem;container-type:inline-size}
.card-head,.card-footer{display:flex;justify-content:space-between;align-items:center;gap:.42rem;flex-wrap:wrap}
.card-head{min-height:1.95rem;margin-bottom:.55rem}
.ordinal{font:700 1.35rem/1 var(--display);color:var(--highlight);font-variant-numeric:tabular-nums;margin-right:.22rem}
.live-time{color:var(--warm)}
.mini-index{background:var(--warm-bg);color:var(--warm);border-radius:6px;padding:.22rem .45rem;font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums}
.mini-index>span{font-size:.64rem;letter-spacing:.08em}
.card-footer{border-top:1px solid var(--line);margin-top:.65rem;padding-top:.35rem}
.card-networks{display:flex;gap:.32rem;flex-wrap:wrap}
.card-footer .primary{padding-inline:.65rem}
.card-footer .text-button,.card-details .text-button{padding-inline:.2rem}
.card-details{text-align:right}
@container (max-width:15rem){.mini-index>span{display:none}}

.notice,.loading-card{padding:.9rem 1rem;border:1px solid var(--line);background:var(--panel);border-radius:12px}
.notice{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-color:var(--amber);margin-bottom:1rem}
.notice strong{color:var(--warm)}
.notice p{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.loading-card{min-height:250px;display:grid;place-items:center;color:var(--muted);text-align:center}
.empty{grid-template-columns:1fr;min-height:300px}
.empty h2{margin-block:.8rem .45rem}
.empty p{color:var(--muted)}
.watch-sample{display:inline-flex;color:var(--warm);align-items:center;gap:.43rem;font-weight:700;font-size:.875rem;white-space:nowrap}
.feature .watch-sample{color:#ffdc8d;border:1px solid #9c7141;background:#3a2a1ccc;border-radius:8px;padding:.68rem .8rem}
.footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem;border-top:1px solid var(--line);margin-block:1.7rem 1rem;padding:.6rem 0;color:var(--muted);font-size:.875rem}
.footer>div{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.footer strong{color:var(--ink)}
.footer .text-button{padding-inline:0}

dialog{
  color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:15px;
  width:min(calc(100% - 1.35rem),36rem);max-height:90vh;max-height:90dvh;padding:0;box-shadow:0 25px 80px #0009;
}
dialog::backdrop{background:#030e17bf}
.dialog-head,.dialog-body,#lineup-form{padding:1.05rem clamp(.9rem,4vw,1.5rem)}
.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:.45rem;border-bottom:1px solid var(--line)}
.dialog-head h2{font:700 clamp(1.65rem,5vw,2.3rem)/1 var(--display)}
.dialog-head p{font-size:.875rem;color:var(--muted);margin-top:.2rem}
.dialog-body{display:grid;gap:.8rem}
.close{font-size:1.65rem;min-width:44px;padding:.1rem .5rem}
#lineup-form{display:grid;gap:.75rem}
#lineup-form p,label small{color:var(--muted)}
label{display:grid;gap:.25rem;font-weight:700;font-size:.875rem}
label input:not([type=checkbox]),select{
  min-height:44px;width:100%;padding:.45rem .58rem;border:1px solid var(--line);border-radius:7px;background:var(--field);
  color:var(--ink);font-size:1rem;font-weight:400
}
.form-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:.6rem}
fieldset{border:1px solid var(--line);padding:.35rem .6rem .6rem;border-radius:8px;margin:0}
legend,summary{font-weight:700;font-size:.875rem}
.checks{display:flex;flex-wrap:wrap;gap:.1rem .7rem}
.check{display:flex;align-items:center;min-height:34px;gap:.37rem}
input[type=checkbox]{accent-color:var(--blue);width:1.12rem;height:1.12rem;margin:0;flex:none}
.hint{font-size:.875rem}
details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.45rem 0}
details summary{min-height:36px;padding-block:.44rem;cursor:pointer}
details label{margin-block:.55rem}
.dialog-actions{display:flex;flex-wrap:wrap;justify-content:end;gap:.5rem}
.detail-teams{padding-bottom:.55rem;border-bottom:1px solid var(--line)}
.detail-data{display:grid;gap:.4rem}
.detail-data>div{display:grid;grid-template-columns:8rem 1fr;gap:.4rem;overflow-wrap:anywhere}
.detail-data dt{color:var(--muted)}
.details-factors{padding-left:1.2rem}
.noscript{padding:1rem;text-align:center}

@media(max-width:58rem){
  .filter-bar{flex-wrap:wrap;gap:.35rem}
  .leagues{max-width:100%;flex-basis:100%}
}
@media(max-width:42rem){
  .feature{grid-template-columns:minmax(0,1fr);gap:.85rem;background-position:center,62% center}
  .feature-index{grid-template-columns:auto 4.8rem minmax(0,1fr);justify-items:start;text-align:left;align-items:center;padding:.5rem .65rem;gap:.5rem}
  .index-label{font-size:.72rem;max-width:6.2ch}
  .ring{width:4.45rem;text-align:center}
  .ring strong{font-size:2.2rem}
  .ring small{display:none}
  .reasons{justify-content:start}
  .intro{align-items:start}
  .source{gap:0;align-items:end;flex-direction:column}
  .source .text-button{min-height:36px}
}
@media(max-width:26rem){
  .brand{gap:.45rem;font-size:1.24rem}
  .brand>img{width:30px;height:30px}
  .brand small{font-size:.55rem}
  .mast-actions{gap:.16rem}
  .mast-actions .control{padding-inline:.4rem;font-size:.78rem;gap:.26rem}
  .mast-actions .eye-icon,.mast-actions .tune-icon{display:none}
  .shell{width:calc(100% - 1.5rem)}
  .intro{display:block;margin-bottom:.65rem}
  .source{flex-direction:row;justify-content:start;align-items:center;gap:.7rem;margin-top:.25rem}
  .feature-index{grid-template-columns:minmax(0,1fr) auto}
  .index-label{max-width:none}
  .reasons{grid-column:1/-1}
  .form-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto !important;animation:none !important;transition:none !important}}
