:root {
  color-scheme: light;
  --navy: #0d1a2b;
  --ink: #14243a;
  --muted: #52637a;
  --ice: #edf2f7;
  --line: #dbe4ee;
  --crimson: #ab2548;
  --radius: 19px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--ice);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
abbr { text-decoration: none; }
:focus-visible { outline: 3px solid #367bd4; outline-offset: 3px; }
main:focus { outline: none; }

.shell { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 12px; padding: 12px; z-index: 5; background: white; transform: translateY(-140%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { background: var(--navy); color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; line-height: 1.1; white-space: nowrap; font-size: 1.12rem; }
.brand strong { color: #f77e9b; }
.brand small { display: block; margin-top: 4px; color: #aebfd1; font-size: .76rem; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 43px; background: var(--crimson); clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); font-size: 1.35rem; }
.nav { display: flex; gap: 4px; }
.nav a { border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 13px; min-height: 44px; color: #c0cee0; font-size: .91rem; font-weight: 650; }
.nav a:hover, .nav a[aria-current] { background: #233249; color: white; }
.nav a[aria-current] { box-shadow: inset 0 -2px #f26a8c; }
.nav a span { min-width: 1rem; text-align: center; font-size: .92rem; font-weight: 800; }
.season { color: #b4c4da; font-weight: 700; font-size: .75rem; letter-spacing: .11em; white-space: nowrap; }

main { padding-top: 24px; min-height: 70vh; }
.hero {
  min-height: 344px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 40px;
  overflow: hidden;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(90deg, #061120c9 0%, #06112063 48%, #0611200a 100%),
    #152d44 url("assets/arena.jpg") center 46% / cover no-repeat;
}
.hero-text { position: relative; }
.eyebrow { font-size: .79rem; font-weight: 750; letter-spacing: .105em; color: #c7d9ef; }
.eyebrow > span { display: inline-block; width: 19px; height: 3px; background: #f36d91; vertical-align: middle; margin-right: 7px; }
.hero h1, .profile h1 { font-size: clamp(2.8rem, 7vw, 5.1rem); letter-spacing: -.075em; font-weight: 900; line-height: .93; margin-block: 17px; }
.hero h1 span { color: #afcbee; }
.hero-caption { font-size: 1.05rem; color: #e8f0fb; font-weight: 650; }
.hero-caption span { color: #f98aa4; margin-inline: 4px; }
.hero-standing { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; background: #0b1a2ce8; border: 1px solid #a2bed851; padding: 9px 13px; border-radius: 9px; font-size: .81rem; font-weight: 650; }
.hero-standing strong { color: #ff9fb7; font-size: 1.5rem; line-height: 1; }
.hero-standing sup { font-size: .62em; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 19px; margin-top: 19px; }
.dashboard-column { display: grid; gap: 19px; min-width: 0; }
.card { padding: clamp(16px, 2.3vw, 25px); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; box-shadow: 0 3px 9px #16294108; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card h2 { font-size: clamp(1.15rem, 2.2vw, 1.38rem); letter-spacing: -.04em; line-height: 1.2; }
.card p { line-height: 1.55; }
.badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 8px; color: #8e2040; background: #fae9ef; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.next-card { border-top: 3px solid var(--crimson); }
.faceoff { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); text-align: center; gap: 10px; padding: 14px 0 19px; }
.faceoff-team { display: grid; justify-items: center; gap: 8px; line-height: 1.16; overflow-wrap: anywhere; }
.emblem { display: inline-grid; place-items: center; width: 40px; height: 32px; color: var(--team-fg); background: var(--team-bg); border: 1px solid var(--team-edge); border-radius: 7px; font-size: .74rem; font-weight: 850; flex: none; }
.faceoff-team .emblem { width: 61px; height: 52px; font-size: .96rem; clip-path: polygon(0 0, 100% 0, 100% 87%, 50% 100%, 0 87%); }
.red { --team-fg: #942140; --team-bg: #f9e9ef; --team-edge: #e5a8bb; }
.gold { --team-fg: #75520c; --team-bg: #f5edd3; --team-edge: #dec487; }
.teal { --team-fg: #1b6264; --team-bg: #e5f4f1; --team-edge: #b2d9d3; }
.plum { --team-fg: #603b7b; --team-bg: #f1e9f9; --team-edge: #d9c5e7; }
.blue { --team-fg: #305884; --team-bg: #e8effa; --team-edge: #bcd0ec; }
.faceoff-middle { color: var(--navy); padding-top: 4px; font-size: clamp(1.9rem, 4.8vw, 3.35rem); letter-spacing: -.075em; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faceoff-middle small { display: block; margin-top: 4px; color: var(--muted); font-size: .73rem; letter-spacing: .09em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 10px 13px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: .91rem; font-weight: 750; line-height: 1.2; text-align: center; }
.next-card .button { flex: 1 1 0; }
.primary { color: #fff; background: var(--crimson); }
.primary:hover { background: #8e1d3a; }
.secondary { color: var(--ink); background: #f2f5fa; border-color: #dce5ef; }
.secondary:hover, .secondary[aria-pressed="true"] { background: #e5ecf6; border-color: #adbfd6; }
.text-link, .source a { color: #27558b; font-weight: 750; font-size: .91rem; }
.text-link:hover, .source a:hover { text-decoration: underline; }
.source { margin-top: 14px; }

.player-promo, .profile { background: linear-gradient(112deg, #101e32, #1a3552); color: #fff; border-radius: var(--radius); position: relative; isolation: isolate; overflow: hidden; }
.player-promo { min-height: 186px; display: flex; align-items: center; padding: 21px; }
.player-promo:hover .player-label { background: #324b67; }
.player-copy, .profile-copy { position: relative; width: max-content; max-width: 100%; }
.player-copy p { color: #f49bb1; font-size: .76rem; letter-spacing: .12em; font-weight: 800; }
.player-copy h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.06em; line-height: .99; margin: 6px 0 12px; }
.player-label { display: inline-block; border: 1px solid #8fa8c45e; padding: 5px 9px; border-radius: 6px; color: #dce9f8; background: #1c324b; font-size: .84rem; font-weight: 700; }
.player-art { position: absolute; inset: 0 0 0 auto; width: 52%; display: grid; align-items: center; justify-items: center; z-index: -1; }
.player-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.player-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #162d48 0%, transparent 50%); }
.profile { min-height: 295px; padding: clamp(22px, 5vw, 48px); display: flex; align-items: center; }
.profile .player-art { width: min(52%, 345px); }
.profile .button { border-color: #8092ac; }

.standings { width: 100%; border-spacing: 0; font-variant-numeric: tabular-nums; }
.standings th, .standings td { border-bottom: 1px solid #ecf0f6; text-align: right; padding: 10px 7px; font-size: .94rem; }
.standings th:first-child, .standings th[scope="row"] { text-align: left; }
.standings td:first-child { text-align: left; }
.standings thead th { color: var(--muted); font-size: .83rem; font-weight: 700; }
.standings .highlight > * { color: #8f2040; background: #fcf0f4; }
.standings .highlight td:first-child { border-radius: 6px 0 0 6px; }
.standings .highlight td:last-child { border-radius: 0 6px 6px 0; }

.page-title { margin-block: 9px 19px; }
.page-title h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.065em; line-height: 1.05; font-weight: 880; }
.page-title p { margin-top: 7px; color: var(--muted); font-size: .96rem; }
.page-title + .dashboard { margin-top: 0; }
.filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.segments { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #eff3f8; border-radius: 10px; width: fit-content; }
.segments button { padding: 7px 10px; border: 0; border-radius: 7px; min-height: 40px; color: var(--muted); background: transparent; font-size: .86rem; font-weight: 750; }
.segments button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.check { display: flex; align-items: center; gap: 4px; min-height: 44px; font-size: .91rem; font-weight: 700; }
.check input { width: 18px; height: 18px; accent-color: var(--crimson); }
.match-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; border-top: 1px solid var(--line); }
.match-row { flex: 1 0 max(225px, 70%); display: grid; grid-template-columns: minmax(115px, .37fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 5px; }
.match-row:hover { background: #f5f8fc; }
.match-entry > :is(.watch-link, .video-status) { margin: 4px 5px 8px auto; }
.video-status { color: var(--muted); font-size: .79rem; }
.actions > .video-status { width: 100%; }
.row-meta { font-size: .9rem; font-weight: 800; }
.row-meta small, .leaders small { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; font-weight: 500; }
.row-teams { display: grid; gap: 5px; }
.row-team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: .93rem; }
.row-team strong { min-width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.match-row .emblem { width: 38px; height: 26px; font-size: .7rem; }
.note, .empty { padding: 11px 13px; border-radius: 8px; color: var(--muted); background: #f1f5f9; font-size: .93rem; margin-top: 13px; }
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.leaders b { text-align: right; font-size: 1.25rem; }
.feature .actions { justify-content: center; }
.periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 15px; }
.periods > div { background: #f1f5fa; border-radius: 8px; padding: 9px 4px; text-align: center; }
.periods strong, .periods small { display: block; }
.periods small { color: var(--muted); font-size: .8rem; }
.periods strong { font-size: 1.22rem; }
.compare-teams { display: flex; justify-content: space-between; gap: 6px; margin: 16px 0 7px; }
.compare-teams > span { display: flex; gap: 5px; align-items: center; font-size: .9rem; font-weight: 750; }
.stat { margin: 10px 0 13px; }
.stat > div:first-child { display: grid; grid-template-columns: 1fr 2fr 1fr; text-align: center; align-items: center; font-size: .9rem; }
.stat strong { font-size: 1.17rem; }
.stat-track { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 6px; margin-top: 4px; }
.stat-track span { background: var(--crimson); border-radius: 3px; width: var(--length); justify-self: end; }
.stat-track span:last-child { background: #c09236; justify-self: start; }
.comparisons td a { text-decoration: underline; color: #27558b; font-weight: 750; }
.episode { display: flex; gap: 12px; align-items: flex-start; margin: 5px 0 14px; }
.episode > strong { color: #922243; background: #fae9ef; border-radius: 8px; padding: 7px; white-space: nowrap; }
.episode h3 { font-size: 1rem; line-height: 1.3; }
.episode p { margin-top: 3px; color: var(--muted); font-size: .93rem; }
.details .text-link { display: inline-block; margin-top: 10px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .81rem; padding: 20px 0; }
.footer a { font-weight: 750; text-decoration: underline; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 64px; }
  .season { font-size: .68rem; }
  .brand-mark { width: 31px; height: 35px; font-size: 1.15rem; }
  .nav { position: fixed; z-index: 3; inset: auto 0 0; background: var(--navy); border-top: 1px solid #35475c; display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 7px calc(5px + env(safe-area-inset-bottom)); }
  .nav a { flex-direction: column; gap: 2px; padding: 5px 1px; font-size: .78rem; min-width: 0; }
  .nav a span { font-size: .94rem; }
  body { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
  main { padding-top: 14px; }
  .hero { min-height: 250px; border-radius: 16px; padding: 20px 15px 48px; background-position: 71% 45%; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 4.3rem); margin-block: 10px; }
  .hero-caption { font-size: .94rem; }
  .eyebrow { font-size: .72rem; }
  .hero-standing { right: auto; left: 15px; bottom: 12px; padding: 5px 7px; font-size: .73rem; }
  .hero-standing strong { font-size: 1.12rem; }
  .dashboard { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .dashboard-column { gap: 12px; }
  .card { border-radius: 15px; }
  .player-promo { min-height: 164px; }
  .match-row { grid-template-columns: minmax(88px, .36fr) minmax(0, 1fr); }
  .row-meta { font-size: .82rem; }
  .row-team { font-size: .86rem; }
  .profile { min-height: 247px; }
  .profile h1 { font-size: clamp(2.3rem, 9.5vw, 4.1rem); }
  .profile .eyebrow { max-width: 18ch; }
}

@media (max-width: 365px) {
  .shell { width: calc(100% - 22px); }
  .season { letter-spacing: .04em; }
  .faceoff-team strong { font-size: .86rem; }
  .button { padding-inline: 7px; }
  .row-team .emblem { display: none; }
  .row-team { grid-template-columns: minmax(0, 1fr) auto; }
}
