/* ==========================================================================
   Win Margin Media — winmargin.net
   Desktop styles are the default. The alternate mobile version is everything
   scoped under `html.mobile` (class set by the inline script in each <head>).
   ========================================================================== */

:root {
  --bg: #000;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --line: #222;
  --line-2: #333;
  --gray: #B3B3B3;
  --white: #fff;
  --muted: #8f8f8f;

  --font-display: 'Graduate', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;

  --wrap: 1240px;
  --gutter: 32px;
  --header-h: 76px;
  --tabbar-h: 64px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--white); text-decoration: none; }
a:hover { color: var(--gray); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

h1, h2, h3 { color: var(--white); margin: 0; line-height: 1.1; font-weight: 400; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--bg);
  padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 16px;
}
.section-title::before {
  content: '';
  width: 10px; height: 1em;
  background: var(--white);
  transform: skewX(-14deg);
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: var(--white);
  color: var(--bg);
  border: 2px solid var(--white);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--gray); border-color: var(--gray); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .cut { fill: var(--white); }
.btn:hover .cut { fill: var(--gray); }
.btn-ghost .cut, .btn-ghost:hover .cut { fill: var(--bg); }

/* ---------- Social icons ---------- */

.socials { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: var(--gray);
  border-radius: 50%;
  transition: color .15s, background .15s;
}
.socials a:hover { color: var(--white); background: var(--surface-2); }
.socials svg { width: 18px; height: 18px; }
.socials .cut { fill: var(--bg); }
.socials a:hover .cut { fill: var(--surface-2); }

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-cond);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; }
.brand-wordmark { height: 42px; width: auto; }
.brand-monogram { display: none; height: 34px; width: auto; }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  position: relative;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 8px 14px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: -19px;
  height: 3px; background: var(--white);
}

.menu-toggle, .mobile-menu { display: none; }

/* ---------- Ticker ---------- */

.ticker {
  display: flex;
  overflow: hidden;
  background: var(--white);
  color: var(--bg);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-label {
  flex: none;
  position: relative; z-index: 1;
  background: var(--bg);
  color: var(--white);
  padding: 9px 22px 9px var(--gutter);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ticker-track { display: flex; animation: ticker 40s linear infinite; }
.ticker-track span { padding: 9px 0; }
.ticker-track span::after { content: '●'; margin: 0 26px; font-size: 10px; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%, rgba(255,255,255,.07), transparent 70%),
    repeating-linear-gradient(-55deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px);
}
.hero-bg::after {
  content: '';
  position: absolute; right: -6%; top: 50%;
  width: 46%; aspect-ratio: 760 / 592;
  transform: translateY(-50%);
  background: url('../img/monogram.svg') center / contain no-repeat;
  opacity: .05;
}
.hero-inner {
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-block: 96px;
}
.hero-logo { width: min(860px, 100%); }
.hero-logo img { width: 100%; height: auto; }
.tagline {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.2;
  margin: 48px 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Page header (inner pages) ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(-55deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px);
}
.page-header .wrap { padding-block: 80px 64px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 84px);
  text-transform: uppercase;
}
.page-lede { max-width: 640px; font-size: 19px; margin: 20px 0 0; }

/* ---------- Sections ---------- */

.section { padding-block: 88px; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 36px;
}
.section-link {
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Latest episode ---------- */

.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.latest-side {
  display: flex; flex-direction: column; gap: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 28px;
}
.latest-side h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.schedule li {
  display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-day {
  font-family: var(--font-display);
  color: var(--bg);
  background: var(--white);
  text-align: center;
  padding: 10px 0 8px;
  font-size: 18px;
}
.schedule strong { display: block; color: var(--white); font-size: 18px; line-height: 1.25; }
.schedule span:not(.schedule-day) { font-size: 15px; color: var(--muted); }
.latest-side .btn { margin-top: auto; }

/* ---------- Show tiles (home) ---------- */

.show-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.show-tile {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 300px;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--gray);
  transition: border-color .2s, transform .2s;
}
.show-tile:hover { border-color: var(--white); color: var(--gray); transform: translateY(-3px); }
.show-tile::after {
  content: attr(data-mark);
  position: absolute; right: -10px; bottom: -40px;
  font-family: var(--font-display);
  font-size: 170px;
  line-height: 1;
  color: rgba(255,255,255,.05);
  pointer-events: none;
}
.show-tile-day {
  align-self: flex-start;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gray);
  padding: 4px 10px;
}
.show-tile-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
}
.show-tile-blurb { max-width: 440px; }
.show-tile-cta {
  margin-top: auto;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Show cards (shows page) ---------- */

.show-list { display: grid; gap: 40px; }
.show-card {
  display: grid; grid-template-columns: 400px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.show-art {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 340px;
  padding: 32px;
  text-align: center;
  background:
    repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255,255,255,.04) 22px 24px),
    var(--bg);
  border-right: 1px solid var(--line-2);
}
.show-art-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 96px;
  line-height: 1;
}
.show-art img { width: 200px; height: auto; }
.show-art-day {
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gray);
}
.show-body { padding: 44px 48px; display: flex; flex-direction: column; gap: 22px; }
.show-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
}
/* Descriptions are kept exactly as written: no text-transform, one line per sentence. */
.show-desc {
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
  color: var(--gray);
  border-left: 3px solid var(--line-2);
  padding-left: 22px;
}
.show-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: auto; }

.share { display: flex; align-items: center; gap: 6px; }
.share-label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.share a, .share button {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--gray);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.share a:hover, .share button:hover { color: var(--white); border-color: var(--white); }
.share svg { width: 17px; height: 17px; }

/* ---------- About + team ---------- */

.about {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
.about p { margin: 0 0 18px; font-size: 19px; }
.about-quote {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}
.member { display: flex; flex-direction: column; }
.member-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(-55deg, transparent 0 18px, rgba(255,255,255,.03) 18px 20px),
    var(--surface-2);
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.member-initials {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--line-2);
}
.member-photo-note {
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.member-name { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.member-role {
  margin: 8px 0 0;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}

.member--missing .member-initials { color: var(--muted); }
.missing-stamp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: .08em;
  color: var(--white);
  border: 3px solid var(--white);
  padding: 4px 14px 2px;
  background: rgba(0,0,0,.6);
}
.member--missing .member-role { color: var(--white); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 32px;
  display: grid; gap: 26px;
}
.contact-item h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-email { font-size: 20px; font-weight: 600; word-break: break-all; }
.contact-item p { margin: 0; }
.contact-card .socials { flex-wrap: wrap; margin-left: -8px; }
.contact-card .socials .cut { fill: var(--surface); }

.form-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
}

.copy-btn {
  margin-top: 10px;
  font: 600 14px/1 var(--font-cond);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 8px 12px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--white); border-color: var(--white); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 13px 14px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { margin: 0; font-size: 15px; color: var(--muted); }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-block: 64px 48px;
}
.footer-brand img { width: 290px; height: auto; margin-bottom: 20px; }
.footer-brand p { margin: 0; max-width: 320px; font-size: 16px; }
.footer-col h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--gray); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); }
.footer-socials { display: grid; gap: 10px; }
.footer-socials a { display: flex; align-items: center; gap: 10px; }
.footer-socials svg { width: 16px; height: 16px; flex: none; }
.footer-socials .cut { fill: var(--surface); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-block: 22px 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.about-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.about-links a, .view-switch {
  font: inherit;
  color: var(--muted);
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.about-links a:hover, .view-switch:hover { color: var(--white); }
.view-switch { text-decoration: underline; text-underline-offset: 3px; }
/* The desktop/mobile switch only matters on phones. */
html:not(.small-device) .view-switch-item { display: none; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 200;
  transform: translate(-50%, 20px);
  background: var(--white); color: var(--bg);
  font-family: var(--font-cond); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.tabbar { display: none; }

/* ==========================================================================
   Alternate mobile version
   ========================================================================== */

html.mobile { --gutter: 18px; --header-h: 60px; }
html.mobile body { font-size: 16px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }

/* Header: monogram + menu button; the top bar is folded into the menu */
html.mobile .topbar { display: none; }
html.mobile .header-inner { gap: 12px; }
html.mobile .brand-wordmark { display: none; }
html.mobile .brand-monogram { display: block; }
html.mobile .main-nav, html.mobile .header-cta { display: none; }
html.mobile .menu-toggle {
  display: grid; place-items: center;
  margin-left: auto;
  width: 44px; height: 44px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
}
html.mobile .menu-toggle svg { width: 22px; height: 22px; }
html.mobile .menu-toggle .icon-close { display: none; }
html.mobile .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
html.mobile .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
html.mobile .mobile-header-title {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}
.mobile-header-title { display: none; }

html.mobile .mobile-menu:not([hidden]) {
  display: block;
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a[aria-current="page"] { color: var(--gray); }
.mobile-menu .socials { margin-top: 20px; gap: 10px; }
.mobile-menu .socials a { width: 44px; height: 44px; border: 1px solid var(--line-2); }

html.mobile .ticker { font-size: 13px; }
html.mobile .ticker-label { display: none; }
html.mobile .ticker-track { animation-duration: 30s; }
html.mobile .ticker-track span { padding: 7px 0; }

/* Hero */
html.mobile .hero-inner { min-height: 0; padding-block: 56px 52px; }
html.mobile .hero-bg::after { width: 110%; right: -40%; }
html.mobile .eyebrow { font-size: 13px; letter-spacing: .16em; }
html.mobile .tagline { font-size: 26px; margin: 30px 0 28px; }
html.mobile .hero-actions { flex-direction: column; width: 100%; }
html.mobile .hero-actions .btn { width: 100%; }

/* Sections */
html.mobile .section { padding-block: 48px; }
html.mobile .section-head { margin-bottom: 22px; align-items: center; }
html.mobile .section-title { font-size: 24px; gap: 12px; }
html.mobile .section-link { font-size: 14px; }
html.mobile .page-header .wrap { padding-block: 44px 36px; }
html.mobile .page-title { font-size: 40px; }
html.mobile .page-lede { font-size: 17px; }

html.mobile .latest-grid { grid-template-columns: 1fr; gap: 16px; }
html.mobile .video-frame { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
html.mobile .latest-side { padding: 20px; }

html.mobile .show-grid { grid-template-columns: 1fr; gap: 14px; }
html.mobile .show-tile { min-height: 0; padding: 24px; }
html.mobile .show-tile::after { font-size: 120px; bottom: -30px; }
html.mobile .show-tile-name { font-size: 28px; }

html.mobile .show-list { gap: 24px; }
html.mobile .show-card { grid-template-columns: 1fr; }
html.mobile .show-art { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--line-2); }
html.mobile .show-art-name { font-size: 64px; }
html.mobile .show-art img { width: 120px; }
html.mobile .show-body { padding: 24px 20px 28px; gap: 18px; }
html.mobile .show-title { font-size: 28px; }
html.mobile .show-desc { font-size: 17px; padding-left: 14px; }
html.mobile .show-actions { flex-direction: column; align-items: stretch; }
html.mobile .share { justify-content: center; }

html.mobile .about { grid-template-columns: 1fr; gap: 20px; }
html.mobile .about p { font-size: 17px; }
html.mobile .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
html.mobile .member-photo { margin-bottom: 12px; }
html.mobile .member-initials { font-size: 44px; }
html.mobile .member-photo-note { font-size: 11px; letter-spacing: .12em; }
html.mobile .member-name { font-size: 17px; }
html.mobile .member-role { font-size: 14px; letter-spacing: .06em; }
html.mobile .missing-stamp { font-size: 20px; }

html.mobile .contact-grid { grid-template-columns: 1fr; gap: 20px; }
html.mobile .contact-card { padding: 22px; }
html.mobile .contact-form { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
html.mobile .form-foot .btn { width: 100%; }

/* Footer: stacked, with the about links + desktop switch at the very bottom */
html.mobile .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 40px 28px; }
html.mobile .footer-brand { grid-column: 1 / -1; }
html.mobile .footer-brand img { width: 250px; }
html.mobile .footer-follow { grid-column: 1 / -1; }
html.mobile .footer-socials { grid-template-columns: 1fr 1fr; }
html.mobile .footer-bottom { flex-direction: column; align-items: center; text-align: center; padding-block: 20px 24px; }
html.mobile .about-links { justify-content: center; }

html.mobile .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }

/* App-style bottom tab bar */
html.mobile .tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(0, 0, 0, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--white); box-shadow: inset 0 2px 0 var(--white); }

/* ---------- Desktop fallbacks for mid-size windows ---------- */

@media (max-width: 1080px) {
  html:not(.mobile) .latest-grid { grid-template-columns: 1fr; }
  html:not(.mobile) .show-card { grid-template-columns: 300px minmax(0, 1fr); }
  html:not(.mobile) .footer-grid { grid-template-columns: 1fr 1fr; }
  html:not(.mobile) .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Live ticker ---------- */

.ticker-viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker-track { width: max-content; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: var(--bg); }
.ticker-track a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--bg); }
.ticker-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 7px;
  background: var(--bg);
  color: var(--white);
  font-weight: 700;
}
.ticker.is-breaking .ticker-label { background: #c8102e; }
.ticker.is-breaking .ticker-tag { background: #c8102e; }
.ticker-tag:empty { display: none; }

/* ---------- Footer email (keep on one line) ---------- */

.footer-email { white-space: nowrap; font-size: 15px; }
html.mobile .footer-email { font-size: 13.5px; }

/* ---------- Filter chips ---------- */

.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 8px 16px;
  cursor: pointer;
}
.chip:hover { color: var(--white); border-color: var(--white); }
.chip.is-on { background: var(--white); color: var(--bg); border-color: var(--white); }

/* ---------- News ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--gray);
  transition: border-color .2s, transform .2s;
}
.news-card:hover { border-color: var(--white); color: var(--gray); transform: translateY(-3px); }
.news-card--breaking { border-left: 4px solid #c8102e; }
.news-card-img { margin: -26px -26px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-meta, .article-header .eyebrow {
  font-family: var(--font-cond); font-weight: 600; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.news-cat { color: var(--bg); background: var(--gray); padding: 2px 8px; font-weight: 700; }
.news-card--breaking .news-cat { background: #c8102e; color: var(--white); }
.news-card-title { font-family: var(--font-display); color: var(--white); font-size: 24px; line-height: 1.2; }
.news-card-summary { font-size: 16px; }
.news-card .show-tile-cta { margin-top: auto; }
.news-empty {
  grid-column: 1 / -1;
  margin: 0; padding: 48px 24px;
  border: 1px dashed var(--line-2);
  text-align: center; color: var(--muted);
}

/* ---------- Article ---------- */

.article-wrap { max-width: 780px; }
.article-back {
  display: inline-block; margin-bottom: 26px;
  font-family: var(--font-cond); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gray);
}
.article-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin-top: 14px; }
.article-body { font-size: 19px; line-height: 1.7; color: #d6d6d6; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-family: var(--font-display); font-size: 30px; margin: 1.6em 0 .6em; }
.article-body h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--white);
  font-family: var(--font-display); font-size: 24px; line-height: 1.35; color: var(--white);
}
.article-image { width: 100%; height: auto; margin-bottom: 28px; border: 1px solid var(--line-2); }
.article-video { margin: 1.6em 0; }
.article-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.share button.is-done { color: var(--white); border-color: var(--white); }

/* ---------- Fantasy ---------- */

.status-pill {
  display: inline-block; margin-right: 10px;
  padding: 3px 9px;
  background: var(--white); color: var(--bg);
  letter-spacing: .12em;
}
.hero-actions--left { justify-content: flex-start; margin-top: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 28px; border: 1px solid var(--line-2); background: var(--surface); }
.feature-num { font-family: var(--font-display); font-size: 40px; color: var(--line-2); display: block; margin-bottom: 14px; }
.feature h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.feature p { margin: 0; font-size: 16px; }

.rankings-empty {
  padding: 56px 32px; text-align: center;
  border: 1px dashed var(--line-2);
}
.rankings-empty h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 12px; }
.rankings-empty p { max-width: 560px; margin: 0 auto 24px; }
.rankings-table-wrap { overflow-x: auto; }
.rankings-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rankings-table th {
  text-align: left; padding: 12px 14px;
  font-family: var(--font-cond); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
.rankings-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--gray); }
.rankings-table td strong { color: var(--white); font-weight: 600; }
.rankings-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.waitlist p { margin: 14px 0 0; font-size: 18px; }
.waitlist-form { display: flex; flex-wrap: wrap; gap: 12px; }
.waitlist-form input {
  flex: 1; min-width: 220px;
  background: var(--surface); color: var(--white);
  border: 1px solid var(--line-2); padding: 14px 16px; font: inherit;
}
.waitlist-form input:focus { outline: none; border-color: var(--white); }
.waitlist-form .form-status { flex-basis: 100%; }

/* Mid-size windows */
@media (max-width: 1080px) {
  html:not(.mobile) .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.mobile) .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
html.mobile .tabbar { grid-template-columns: repeat(5, 1fr); }
html.mobile .tabbar a { font-size: 11px; letter-spacing: .08em; }
html.mobile .news-grid { grid-template-columns: 1fr; gap: 14px; }
html.mobile .news-card { padding: 20px; }
html.mobile .news-card-img { margin: -20px -20px 4px; }
html.mobile .news-card-title { font-size: 21px; }
html.mobile .news-filters { margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
html.mobile .chip { flex: none; }
html.mobile .article-body { font-size: 17px; }
html.mobile .article-body blockquote { font-size: 20px; }
html.mobile .feature-grid { grid-template-columns: 1fr; gap: 14px; }
html.mobile .feature { padding: 22px; }
html.mobile .waitlist { grid-template-columns: 1fr; gap: 20px; }
html.mobile .waitlist-form .btn { width: 100%; }
html.mobile .hide-sm { display: none; }
html.mobile .rankings-table { font-size: 15px; }
html.mobile .rankings-table th, html.mobile .rankings-table td { padding: 10px 8px; }
html.mobile .hero-actions--left { flex-direction: column; }
html.mobile .hero-actions--left .btn { width: 100%; }
.news-cat--breaking { background: #c8102e; color: var(--white); }

/* ---------- Scores slider ---------- */

.scores {
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
}
.scores-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.scores-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.scores-tabs::-webkit-scrollbar { display: none; }
.scores-tabs button {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  padding: 9px 12px;
  font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  box-shadow: inset 0 -2px 0 transparent;
}
.scores-tabs button:hover { color: var(--white); }
.scores-tabs button[aria-selected="true"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
.tab-live, .g-live::before { width: 6px; height: 6px; border-radius: 50%; background: #e5172f; display: inline-block; }
.scores-nav { display: flex; gap: 6px; flex: none; }
.scores-arrow {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-2); color: var(--gray); cursor: pointer;
}
.scores-arrow:hover { color: var(--white); border-color: var(--white); }
.scores-arrow svg { width: 16px; height: 16px; }
.scores-track {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 0 var(--gutter);
}
.scores-track::-webkit-scrollbar { display: none; }
.game {
  flex: none; width: 188px; scroll-snap-align: start;
  display: grid; gap: 4px;
  padding: 10px 14px 11px;
  border-right: 1px solid var(--line);
  font-size: 14px;
}
.game:first-child { border-left: 1px solid var(--line); }
.g-top { min-width: 0; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.g-league { color: var(--muted); }
.g-league { flex: none; }
.g-status { min-width: 0; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-in .g-status { color: var(--white); }
.g-live { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; color: #ff4d5e; }
.g-live::before { content: ''; }
.g-team { display: flex; align-items: center; gap: 7px; color: var(--white); line-height: 1.35; }
.g-team i { width: 3px; height: 14px; flex: none; }
.g-team b { font-weight: 600; letter-spacing: .02em; }
.g-rank { font-size: 11px; color: var(--muted); }
.g-rec { font-size: 12px; color: var(--muted); }
.g-score { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-team.is-loser, .g-team.is-loser .g-score { color: var(--muted); }
.g-tv { font-size: 11px; color: var(--muted); font-family: var(--font-cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

html.mobile .scores-bar { padding: 0 0 0 var(--gutter); }
html.mobile .scores-nav { display: none; }
html.mobile .scores-tabs button { padding: 9px 10px; font-size: 12px; }
html.mobile .game { width: 160px; padding: 9px 12px; font-size: 13.5px; }

/* ---------- Homepage stories ---------- */

.stories-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lead-card { display: grid; background: var(--surface); border: 1px solid var(--line-2); color: var(--gray); transition: border-color .2s; }
.lead-card:hover { border-color: var(--white); color: var(--gray); }
.lead-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); display: block; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-img--mark { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #0c0c0c 0 14px, #111 14px 15px); }
.lead-img--mark img { width: 34%; height: auto; opacity: .9; }
.lead-body { display: grid; gap: 12px; padding: 26px 28px 30px; }
.lead-title { font-family: var(--font-display); color: var(--white); font-size: 36px; line-height: 1.12; }
.side-title {
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2);
}
.stories-side { display: grid; gap: 20px; }
.trending { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trending li { counter-increment: t; border-bottom: 1px solid var(--line); }
.trending a { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 14px 0; color: var(--white); font-weight: 600; line-height: 1.3; }
.trending a::before { content: counter(t); grid-row: span 2; font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--line-2); }
.trending a:hover { color: var(--gray); }
.trend-cat { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trend-empty { padding: 14px 0; color: var(--muted); }
.latest-head { margin: 48px 0 18px; }

html.mobile .stories-grid { grid-template-columns: 1fr; gap: 24px; }
html.mobile .lead-title { font-size: 26px; }
html.mobile .lead-body { padding: 20px; }
@media (max-width: 1080px) { html:not(.mobile) .stories-grid { grid-template-columns: 1fr; } }

/* ---------- Ad slots (hidden until ads/ads.json fills them) ---------- */

.ad-slot { display: grid; justify-items: center; gap: 6px; }
.ad-slot[hidden] { display: none; }
.ad-label { font-family: var(--font-cond); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ad-slot img { border: 1px solid var(--line); }
.ad-slot--banner img { width: 728px; max-width: 100%; height: auto; }
.ad-slot--box img { width: 300px; max-width: 100%; height: auto; }
.ad-wrap .ad-slot:not([hidden]) { padding: 8px 0 40px; }
.ad-slot--top:not([hidden]) { margin-bottom: 32px; }
.ad-slot--inline { margin: 1.6em 0; }

/* ---------- Fantasy rankings ---------- */

.rk-intro { max-width: 720px; margin: -8px 0 28px; font-size: 18px; }
.rk-tabs { margin-bottom: 16px; }
.rk-controls { display: grid; grid-template-columns: minmax(200px, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rk-search { position: relative; display: block; }
.rk-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.rk-search input, .rk-select select {
  width: 100%; height: 46px;
  background: var(--surface); color: var(--white);
  border: 1px solid var(--line-2); font: inherit; font-size: 16px;
}
.rk-search input { padding: 0 14px 0 42px; }
.rk-search input:focus, .rk-select select:focus { outline: none; border-color: var(--white); }
.rk-select { display: grid; gap: 4px; }
.rk-select span { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rk-select select { padding: 0 12px; cursor: pointer; }
.rk-search { align-self: end; }
.rk-table-wrap { border: 1px solid var(--line-2); background: var(--surface); overflow-x: auto; }
.rk-table tbody tr { cursor: pointer; }
.rk-table tbody tr:hover, .rk-table tbody tr:focus { background: var(--surface-2); outline: none; }
.rk-rank { color: var(--muted); width: 48px; }
.rk-name { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.rk-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rk-opp { white-space: nowrap; }
.rk-proj { color: var(--white); font-weight: 600; }
.rk-msg { text-align: center; padding: 48px 16px !important; color: var(--muted); cursor: default; }
.rk-more { display: flex; justify-content: center; margin-top: 20px; }
.rk-more .btn[hidden] { display: none; }
.rk-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.inj {
  display: inline-block; padding: 1px 6px;
  font-family: var(--font-cond); font-weight: 700; font-size: 11px; letter-spacing: .08em;
  border: 1px solid currentColor; line-height: 1.4;
}
.inj-Q { color: #f2c94c; }
.inj-D, .inj-O, .inj-IR { color: #ff5c6c; }
.inj-PS, .inj-FA { color: var(--muted); }

/* Player sheet */
.player-sheet { position: fixed; inset: 0; z-index: 100; }
.player-sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.sheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(720px, 100%); overflow-y: auto;
  background: var(--bg); border-left: 1px solid var(--line-2);
  padding: 40px 40px 56px;
}
html.sheet-open { overflow: hidden; }
.sheet-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px;
  display: grid; place-items: center; background: none; color: var(--white);
  border: 1px solid var(--line-2); cursor: pointer;
}
.sheet-close svg { width: 20px; height: 20px; }
.sheet-name { font-family: var(--font-display); font-size: 40px; line-height: 1.1; margin: 10px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sheet-meta { margin: 0; color: var(--muted); font-size: 15px; }
.sheet-inj { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid #f2c94c; background: var(--surface); font-size: 15px; }
.sheet-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0 8px; }
.sheet-tile { display: grid; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.sheet-tile span { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet-tile strong { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--white); }
.sheet-tile small { font-size: 13px; color: var(--muted); }
.sheet-h { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.sheet-line { margin: 0; color: var(--white); font-size: 17px; }
.sheet-line strong { margin-left: 6px; color: var(--gray); }
.log-table { font-size: 15px; }
.log-table th, .log-table td { padding: 10px 10px; white-space: nowrap; }

@media (max-width: 1080px) {
  html:not(.mobile) .rk-controls { grid-template-columns: 1fr 1fr; }
  html:not(.mobile) .rk-search { grid-column: 1 / -1; }
}
html.mobile .rk-intro { font-size: 16px; }
html.mobile .rk-tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); flex-wrap: nowrap; overflow-x: auto; }
html.mobile .rk-controls { grid-template-columns: 1fr 1fr; gap: 10px; }
html.mobile .rk-search { grid-column: 1 / -1; }
html.mobile .rk-table-wrap { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
html.mobile .rk-table th, html.mobile .rk-table td { padding: 11px 8px; }
html.mobile .rk-rank { width: 34px; }
html.mobile .rk-name { font-size: 15px; }
html.mobile .sheet-panel { top: 6vh; width: 100%; border-left: 0; border-top: 1px solid var(--line-2); padding: 28px 18px calc(40px + env(safe-area-inset-bottom, 0px)); }
html.mobile .sheet-name { font-size: 28px; }
html.mobile .sheet-tiles { grid-template-columns: 1fr 1fr; }
html.mobile .sheet-tile strong { font-size: 24px; }

.rk-line { font-size: 13px; color: var(--gray); min-width: 200px; }
.rk-flag { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rk-flag.is-final { color: var(--white); }
.wk-type { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line-2); font-size: 11px; letter-spacing: .1em; }
html.mobile .rk-controls { grid-template-columns: 1fr 1fr; }
.rest-total { margin: 12px 0 0; font-size: 15px; }
.rest-total strong { color: var(--white); }

.rk-split { display: inline-flex; border: 1px solid var(--line-2); margin: 0 0 16px; }
.rk-split[hidden] { display: none; }
.rk-split button { background: none; border: 0; color: var(--gray); padding: 8px 16px; cursor: pointer; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.rk-split button + button { border-left: 1px solid var(--line-2); }
.rk-split button.is-on { background: var(--white); color: var(--bg); }
.rk-table th, .rk-table td { white-space: nowrap; }
.rk-stat { font-variant-numeric: tabular-nums; color: var(--gray); }
th.rk-stat { color: var(--muted); }
.rk-sep { border-left: 1px solid var(--line); }
.rk-pcol { min-width: 190px; }
html.mobile .rk-pcol { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; box-shadow: 1px 0 0 var(--line); }
html.mobile .rk-table tbody tr:hover .rk-pcol { background: var(--surface-2); }
html.mobile .rk-split { margin-bottom: 12px; }

.rk-table th.rk-stat, .rk-table td.rk-stat { padding-left: 8px; padding-right: 8px; }
.rk-table th, .rk-table td { padding-left: 10px; padding-right: 10px; }
html.mobile .rk-rcol { position: sticky; left: 0; z-index: 2; background: var(--surface); width: 34px; min-width: 34px; }
html.mobile .rk-pcol { left: 34px; }
html.mobile .rk-table tbody tr:hover .rk-rcol { background: var(--surface-2); }
html.mobile #rankings .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---------- Player profile tabs ---------- */

.sheet-panel { width: min(780px, 100%); }
.ptabs { display: flex; gap: 2px; margin: 18px 0 24px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button {
  flex: none; background: none; border: 0; cursor: pointer; padding: 10px 14px;
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); box-shadow: inset 0 -2px 0 transparent;
}
.ptabs button:hover { color: var(--white); }
.ptabs button[aria-selected="true"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
.sheet-h--first { margin-top: 0; }
.ptab-body .sheet-inj { margin: 0 0 18px; }

.matchup { border: 1px solid var(--line-2); background: var(--surface); padding: 18px; display: grid; gap: 14px; }
.matchup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.matchup-head .eyebrow { margin: 0; }
.matchup-head strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--white); }
.matchup-pts { display: flex; align-items: baseline; gap: 8px; }
.matchup-pts span { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.matchup-pts strong { font-family: var(--font-display); font-weight: 400; font-size: 44px; color: var(--white); line-height: 1; }
.matchup-pts small { color: var(--muted); }
.matchup .rankings-table-wrap { border: 0; }
.matchup-note { margin: 0; font-size: 15px; }
.matchup-note strong { color: var(--white); }

.next-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.next-weeks div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); }
.next-weeks span { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.next-weeks strong { color: var(--white); font-size: 18px; }
.next-weeks em { font-style: normal; font-size: 14px; color: var(--gray); }

.pnews { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pnews a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--gray); }
.pnews a:hover { border-color: var(--white); color: var(--gray); }
.pnews strong { color: var(--white); font-size: 17px; }
.pnews small { color: var(--muted); }
.pnews-type { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.trade-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.trade-head div { display: grid; gap: 2px; }
.trade-head .eyebrow { margin: 0; }
.trade-head strong { font-family: var(--font-display); font-weight: 400; font-size: 48px; color: var(--white); line-height: 1; }
.trade-head small { color: var(--muted); font-size: 13px; }
.trade-head p { margin: 0; font-size: 15px; }
.trade-list, .trade-packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trade-list li { border: 1px solid var(--line-2); }
.trade-list button { width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 12px 14px 4px; background: none; border: 0; color: var(--white); text-align: left; cursor: pointer; font: inherit; }
.trade-list button span { color: var(--muted); font-size: 14px; }
.trade-list button em { font-style: normal; font-family: var(--font-display); font-size: 20px; }
.trade-list small { display: block; padding: 0 14px 12px; color: var(--gray); font-size: 14px; }
.trade-list li:hover { border-color: var(--white); }
.trade-packs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); }
.pack-players { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pack-players button { background: none; border: 0; padding: 0; color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.pack-players button:hover { text-decoration: underline; }
.pack-players button span { color: var(--muted); font-weight: 400; font-size: 14px; }
.pack-plus { color: var(--muted); }
.trade-packs em { font-style: normal; color: var(--gray); white-space: nowrap; font-size: 14px; }

.bio { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.bio div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bio dt { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bio dd { margin: 0; color: var(--white); }
.team-hist { list-style: none; margin: 0; padding: 0; }
.team-hist li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-hist strong { color: var(--white); font-weight: 600; }
.team-hist span { color: var(--gray); font-variant-numeric: tabular-nums; }

.depth-table { font-size: 14px; margin-bottom: 8px; }
.depth-table th { width: 64px; color: var(--muted); font-family: var(--font-cond); letter-spacing: .1em; }
.depth-table td { padding: 8px 10px; white-space: nowrap; }
.depth-table button { background: none; border: 0; padding: 0; color: var(--gray); font: inherit; cursor: pointer; text-align: left; }
.depth-table button:hover { color: var(--white); text-decoration: underline; }
.depth-table td.is-me button { color: var(--bg); background: var(--white); padding: 2px 6px; }
.ptab-body .depth-table { display: block; overflow-x: auto; }

html.mobile .bio { grid-template-columns: 1fr; }
html.mobile .next-weeks { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
html.mobile .next-weeks div { padding: 10px; }
html.mobile .trade-head { grid-template-columns: 1fr; gap: 10px; }
html.mobile .matchup-head { flex-direction: column; gap: 4px; }

/* ---------- Player photo slot (initials on team color until licensed headshots) ---------- */
.avatar { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; font-family: var(--font-display); line-height: 1; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--surface-2); }
.avatar--sm { width: 36px; height: 36px; font-size: 14px; letter-spacing: -.02em; }
.avatar--lg { width: 76px; height: 76px; font-size: 28px; letter-spacing: -.02em; }
.rk-player { display: flex; align-items: center; gap: 12px; }
.sheet-id { display: flex; align-items: center; gap: 16px; margin: 10px 0 0; }
.sheet-id .sheet-name { margin: 0; }
html.mobile .avatar--sm { width: 30px; height: 30px; font-size: 11px; }
html.mobile .avatar--lg { width: 56px; height: 56px; font-size: 19px; }
html.mobile .rk-player { gap: 8px; }
.log-split { margin: 0 0 12px; }
.log-table tr.is-proj td { color: var(--muted); }
.log-table tr.is-proj td strong { color: var(--gray); }
.log-table tr.is-off td { color: var(--line-2); }
.log-table tr.log-total td { border-top: 2px solid var(--line-2); color: var(--white); font-weight: 600; }

.scores-bar { justify-content: flex-start; }
.scores-nav { margin-left: auto; }
.scores-day { flex: none; padding: 9px 14px 9px 0; margin-right: 6px; border-right: 1px solid var(--line-2); font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.scores-day:empty { display: none; }
.mission-title { font-family: var(--font-display); font-size: 22px; margin: 28px 0 10px; }

/* ---------- Slider cards link to the game ---------- */
a.game { color: inherit; }
a.game:hover { background: var(--surface-2); color: inherit; }

/* ---------- Scores page ---------- */
.sb-day { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sb-day-label { display: grid; min-width: 200px; text-align: center; }
.sb-day-label strong { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--white); }
.sb-day-label small { color: var(--muted); font-size: 14px; }
.sb-today { margin-left: 8px; }
.sb-live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--gray); }
.sb-live[hidden] { display: none; }
.sb-leagues .chip { display: inline-flex; align-items: center; gap: 6px; }
.sb-count { color: var(--muted); font-weight: 600; }
.chip.is-on .sb-count { color: var(--line-2); }
.sb-group { margin-bottom: 36px; }
.sb-group .side-title { margin-bottom: 14px; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sb-card {
  display: grid; gap: 6px; text-align: left; cursor: pointer;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--white); font: inherit;
  transition: border-color .15s;
}
.sb-card:hover { border-color: var(--white); }
.sb-card.sb-in { border-left: 3px solid #e5172f; }
.sb-card-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sb-status { color: var(--gray); }
.sb-in .sb-status { color: var(--white); }
.sb-team { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.sb-team i { width: 4px; height: 18px; flex: none; }
.sb-team b { font-weight: 600; }
.sb-score { margin-left: auto; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.sb-team.is-loser, .sb-team.is-loser .sb-score { color: var(--muted); }
.sb-card-foot { min-height: 16px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Game center */
.gc-head { display: grid; gap: 10px; margin: 10px 0 8px; }
.gc-team { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--surface); }
.gc-team i { width: 5px; height: 40px; flex: none; }
.gc-team strong { display: block; color: var(--white); font-size: 20px; }
.gc-team small { color: var(--muted); }
.gc-score { margin-left: auto; font-family: var(--font-display); font-size: 40px; color: var(--white); line-height: 1; }
.gc-team.is-loser strong, .gc-team.is-loser .gc-score { color: var(--muted); }
.gc-status { margin: 4px 0 0; font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.gc-sit { margin-bottom: 16px; }
.gc-sit strong { color: var(--white); font-size: 18px; }
.gc-lines th, .gc-lines td { padding: 10px 12px; }
.gc-wp { display: flex; height: 34px; overflow: hidden; border: 1px solid var(--line-2); }
.gc-wp span { display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; min-width: 0; }
.gc-plays { list-style: none; margin: 0; padding: 0; }
.gc-plays li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--gray); font-size: 15px; line-height: 1.45; }
.gc-plays li.is-score { color: var(--white); }
.gc-when { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gc-scoreline { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--line-2); font-size: 13px; color: var(--white); }
.gc-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gc-leaders p { margin: 8px 0 0; color: var(--gray); font-size: 15px; }
.gc-leaders small { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gc-leaders strong { color: var(--white); font-weight: 600; }
.gc-teamstats th[scope="row"] { text-align: center; color: var(--muted); font-weight: 600; }
.gc-teamstats td { width: 30%; }
.gc-teamstats td:first-child { text-align: left; }

html.mobile .sb-day { gap: 8px; }
html.mobile .sb-day-label { min-width: 0; flex: 1; }
html.mobile .sb-day-label strong { font-size: 22px; }
html.mobile .sb-live { margin-left: 0; width: 100%; }
html.mobile .sb-leagues { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
html.mobile .sb-grid { grid-template-columns: 1fr; gap: 10px; }
html.mobile .gc-score { font-size: 32px; }
html.mobile .gc-leaders { grid-template-columns: 1fr; }
