/* V15.16 — one dark editorial system across every LosersLeague section */
:root{
  --ll15-bg:#07090d;--ll15-surface:#0d1218;--ll15-surface2:#10161d;--ll15-surface3:#0a0f14;
  --ll15-line:#222b34;--ll15-line2:#2b3641;--ll15-text:#f3f5f6;--ll15-muted:#87919c;
  --ll15-pink:#ff2e67;--ll15-blue:#6c8cff;--ll15-green:#4bd483;--ll15-gold:#d5ab51;--ll15-red:#ef6c64;
}

/* ---- Shared shell for formerly legacy pages ---- */
body.v15-legacy-active{background:var(--ll15-bg)!important;color:var(--ll15-text)!important;overflow-x:hidden}
body.v15-legacy-active>.topbar{display:none!important}
body.v15-legacy-active>.wrap{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body.v15-legacy-active>.wrap>.foot{display:none!important}
.v15-unified-page{min-height:100vh;background:radial-gradient(circle at 57% 0,rgba(70,85,108,.13),transparent 32%),var(--ll15-bg)!important;color:var(--ll15-text)!important}
.v15-unified-main{min-height:100vh;background:transparent!important}
.v15-unified-content{max-width:1390px;margin:0 auto;min-width:0;padding-bottom:32px}
.v15-unified-topline{max-width:1390px!important}
.v15-unified-status{justify-self:end;height:36px;padding:0 13px;display:flex;align-items:center;border:1px solid #29333d;border-radius:5px;background:#0b1015;color:#aeb7c0;font-size:8px;font-weight:900;letter-spacing:.65px;white-space:nowrap}
.v15-unified-status i{width:7px;height:7px;border-radius:50%;margin-right:8px;background:#687480}
.v15-unified-status.live i{background:var(--ll15-pink);box-shadow:0 0 10px rgba(255,46,103,.5)}
.v15-unified-status.next i{background:var(--ll15-blue);box-shadow:0 0 10px rgba(108,140,255,.45)}
.v15-unified-status.system i{background:var(--ll15-green);box-shadow:0 0 10px rgba(75,212,131,.4)}

/* ---- Shared visual grammar ---- */
.v15-unified-page .stage-kicker,.v15-unified-page .kicker,.v15-unified-page .comp-kicker,.v15-unified-page .history-eyebrow,.v15-unified-page .ll-eyebrow{color:var(--ll15-pink)!important;font-size:9px!important;font-weight:900!important;letter-spacing:1px!important}
.v15-unified-page h1,.v15-unified-page h2,.v15-unified-page h3,.v15-unified-page b,.v15-unified-page strong{color:var(--ll15-text)}
.v15-unified-page p,.v15-unified-page small,.v15-unified-page .table-note,.v15-unified-page .mw-meta{color:var(--ll15-muted)!important}
.v15-unified-page .card,.v15-unified-page .recap-card,.v15-unified-page .history-global-card,.v15-unified-page .history-backup-card,.v15-unified-page .comp-card,.v15-unified-page .ll-rules-card,.v15-unified-page .ll-rules-strength,.v15-unified-page .ll-rules-example{background:linear-gradient(180deg,#10161d,#0b1015)!important;border:1px solid var(--ll15-line)!important;color:var(--ll15-text)!important;box-shadow:none!important;border-radius:8px!important}
.v15-unified-page input,.v15-unified-page select,.v15-unified-page textarea{background:#090d12!important;border-color:#2a3540!important;color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#fff!important;box-shadow:none!important}
.v15-unified-page input:disabled,.v15-unified-page select:disabled{background:#0c1116!important;color:#69747f!important;-webkit-text-fill-color:#69747f!important}
.v15-unified-page button{box-shadow:none}
.v15-unified-page .section-head{margin:22px 0 10px!important;align-items:end!important}
.v15-unified-page .section-head h2{font-size:30px!important;line-height:1!important;letter-spacing:-1px!important;margin:5px 0 0!important}
.v15-unified-page .wc-card-head{padding:15px 16px 11px!important;border-bottom:1px solid var(--ll15-line)!important;background:#10161d!important}
.v15-unified-page .wc-card-head h2,.v15-unified-page .wc-card-head h3{color:#f4f5f6!important}

/* Original PL/UCL subnav is moved into the new shell, retaining its handlers. */
.v15-unified-local-nav{display:block!important;margin:0 0 13px!important;padding:6px!important;border:1px solid var(--ll15-line)!important;border-radius:8px!important;background:#0b1015!important;min-height:48px!important;overflow:auto!important;scrollbar-width:none}
.v15-unified-local-nav::-webkit-scrollbar{display:none}
.v15-unified-local-nav button{height:34px!important;padding:0 14px!important;border:1px solid transparent!important;border-radius:5px!important;background:transparent!important;color:#8d98a2!important;font-size:9px!important;font-weight:900!important;letter-spacing:.35px!important;white-space:nowrap!important;cursor:pointer}
.v15-unified-local-nav button:hover,.v15-unified-local-nav button.on{background:#171e25!important;border-color:#2d3741!important;color:#fff!important}

/* ---- NHL ---- */
#comp-nhl .competition-hero{margin:0 0 13px!important;padding:28px!important;border:1px solid var(--ll15-line)!important;border-radius:9px!important;background:radial-gradient(circle at 84% 22%,rgba(108,140,255,.16),transparent 31%),linear-gradient(145deg,#10161d,#090d12)!important}
#comp-nhl .competition-hero h1{font-size:42px!important;color:#f5f6f7!important;margin:7px 0 12px!important}#comp-nhl .competition-hero p{font-size:11px!important;line-height:1.65!important;color:#8c97a1!important}#comp-nhl .comp-card{min-height:160px!important;padding:18px!important;justify-content:flex-end!important;position:relative!important;overflow:hidden!important}#comp-nhl .comp-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--ll15-blue)}#comp-nhl .comp-card b{font-size:17px!important}#comp-nhl .comp-card span{color:#7f8993!important;font-size:10px!important}

/* ---- Rules ---- */
#comp-rules .ll-rules-page{padding:0 0 30px!important}#comp-rules .ll-rules-hero{max-width:none!important;margin:0 0 13px!important;padding:26px 28px!important;border:1px solid var(--ll15-line)!important;border-radius:9px!important;background:radial-gradient(circle at 84% 22%,rgba(255,46,103,.12),transparent 30%),linear-gradient(145deg,#10161d,#090d12)!important}#comp-rules .ll-rules-hero h1{font-size:48px!important;line-height:.95!important;color:#f5f6f7!important;margin:8px 0 11px!important}#comp-rules .ll-rules-hero p{font-size:12px!important;color:#8c97a1!important}
#comp-rules .ll-rules-grid{gap:12px!important}#comp-rules .ll-rules-card{min-height:190px!important;padding:18px!important}#comp-rules .ll-rules-no{color:var(--ll15-pink)!important}#comp-rules .ll-rules-card h2,#comp-rules .ll-rules-strength h2,#comp-rules .ll-rules-example h2{font-size:21px!important;color:#07131a!important}#comp-rules .ll-rules-card p,#comp-rules .ll-rules-example p,#comp-rules .ll-rules-section-head p{color:#8e98a2!important}#comp-rules .ll-rule-formula{background:#0a0f14!important;border:1px solid #222b34!important;color:#dce2e6!important;border-radius:6px!important}#comp-rules .ll-rules-strength,#comp-rules .ll-rules-example{margin-top:12px!important;padding:18px!important}#comp-rules .ll-team-rank-list-rules .ll-team-rank{color:#07131a!important;border-bottom-color:#e3e8ec!important}#comp-rules .ll-team-rank-list-rules .ll-team-rank>i{color:#68737d!important}

/* ---- History / disaster recovery ---- */
#comp-history .history-hero{margin:0 0 13px!important;padding:26px 28px!important;border:1px solid var(--ll15-line)!important;border-radius:9px!important;background:radial-gradient(circle at 84% 22%,rgba(75,212,131,.1),transparent 31%),linear-gradient(145deg,#10161d,#090d12)!important}#comp-history .history-hero h1{font-size:42px!important;color:#f5f6f7!important;margin:7px 0 10px!important}#comp-history .history-hero p{font-size:11px!important;line-height:1.6!important;color:#8c97a1!important}
#comp-history .history-backup-card,#comp-history .history-global-card{margin-bottom:12px!important}#comp-history .history-global-head{background:#10161d!important;border-color:#222b34!important;padding:15px 16px!important}#comp-history .history-undo{background:#111820!important;border-color:#2c3843!important;color:#e2e7ea!important;border-radius:5px!important}#comp-history .history-status{background:#0a0f14!important;color:#7f8993!important;border-color:#202831!important}#comp-history .history-item{border-color:#202831!important}#comp-history .history-eyebrow{color:var(--ll15-pink)!important}#comp-history .history-scope{background:#141b22!important;color:#aeb7bf!important;border:1px solid #28333d!important}

/* ---- Keep dialogs in the same universe, regardless of source competition ---- */
body.v15-home-active .matchcard-sheet,body.v15-legacy-active .matchcard-sheet,body.v15-wc-active .matchcard-sheet,body.v15-og-active .matchcard-sheet,
body.v15-home-active .team-history-sheet,body.v15-legacy-active .team-history-sheet,body.v15-wc-active .team-history-sheet,body.v15-og-active .team-history-sheet{background:#0d1218!important;border:1px solid #28333e!important;color:#edf0f2!important;box-shadow:0 24px 90px rgba(0,0,0,.55)!important}
body.v15-legacy-active .matchcard-sheet input,body.v15-legacy-active .matchcard-sheet select,body.v15-legacy-active .team-history-sheet input,body.v15-legacy-active .team-history-sheet select{background:#090d12!important;border-color:#2a3540!important;color:#fff!important}

/* ---- Final Olympic cleanup for any white remnants generated dynamically ---- */
.v15-og-shell .og26-group-card,.v15-og-shell .og26-stage,.v15-og-shell .og26-seed-head,.v15-og-shell .og26-playoff-note,.v15-og-shell .og26-match,.v15-og-shell .og26-seed{border-radius:8px!important}.v15-og-shell .og26-group-card table th,.v15-og-shell .og26-group-card table td{border-color:#202831!important}.v15-og-shell .og26-score input{background:#090d12!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

@media(max-width:1180px){
  #comp-pl .headline{grid-template-columns:1fr 270px!important}
}
@media(max-width:900px){
  .v15-unified-content{max-width:none!important}
  #comp-pl .headline{grid-template-columns:1fr!important}
}
@media(max-width:700px){
  body.v15-legacy-active{padding:0!important}
  .v15-unified-main{padding:10px 10px 20px!important}.v15-unified-topline{height:auto!important;display:block!important;margin-bottom:10px!important}.v15-unified-topline .v15-season,.v15-unified-status{display:none!important}
  .v15-unified-local-nav{margin:0 0 9px!important;padding:5px!important;min-height:44px!important;overflow-x:auto!important}.v15-unified-local-nav button{height:32px!important;font-size:8px!important;padding:0 11px!important}
  #comp-pl .headline,#comp-nhl .competition-hero,#comp-rules .ll-rules-hero,#comp-history .history-hero{padding:17px 15px!important;margin-bottom:9px!important;border-radius:8px!important}
  #comp-pl .hero h1,#comp-nhl .competition-hero h1,#comp-rules .ll-rules-hero h1,#comp-history .history-hero h1{font-size:29px!important;letter-spacing:-1px!important}
  #comp-pl .headline{gap:12px!important}.v15-unified-page .section-head{margin-top:16px!important}.v15-unified-page .section-head h2{font-size:24px!important}
  #comp-pl .recap-card,#comp-pl .card,#comp-ucl .card{border-radius:7px!important}#comp-nhl .comp-card{min-height:95px!important}
  #comp-rules .ll-rules-grid{grid-template-columns:1fr!important;gap:9px!important}#comp-rules .ll-rules-card{min-height:0!important;padding:14px!important}#comp-rules .ll-rules-strength,#comp-rules .ll-rules-example{padding:14px!important}
  #comp-history .history-global-head{padding:12px!important}
}
