/* Classroom 6X — site styles (v2). Plain CSS, no framework.
   Icons are drawn inline as SVG; paths adapted from Lucide (ISC licence). */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/assets/fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/assets/fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/assets/fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/assets/fonts/Inter-ExtraBold.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0b0e17;
  --bg-raised: #10141f;
  --surface: #161b2a;
  --surface-2: #1d2336;
  --surface-3: #262d45;
  --line: #262d42;
  --line-strong: #353e5c;
  --text: #eef1f8;
  --text-2: #b0b7cc;
  --text-3: #8890a8;
  --brand: #7ed957;        /* 6X green, from the original logo */
  --brand-strong: #63c23c;
  --brand-ink: #0a1405;    /* text on brand */
  --gold: #ffd43b;         /* 6X yellow, from the original logo border */
  --danger: #ff7a7a;
  --focus: #ffd43b;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --sidebar-w: 232px;
  --gutter: clamp(16px, 2.4vw, 28px);
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: rgb(11 14 23 / .88); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 36px; height: 36px; }
.brand b { color: var(--brand); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  position: relative; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn .badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.menu-btn { display: none; }
.header-actions { display: flex; gap: 8px; margin-left: auto; }

/* search */
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search-field { display: flex; align-items: center; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; transition: border-color .15s, background .15s; }
.search-field:focus-within { border-color: var(--brand); background: var(--surface-2); }
.search-field .icon { color: var(--text-3); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding: 0 10px; font-size: 15px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 600 11px/1 var(--font); color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 5px; padding: 4px 6px; margin-right: 6px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: min(420px, 70vh); overflow-y: auto;
}
.suggest li a, .suggest li.empty { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); }
.suggest li img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.suggest li span small { display: block; color: var(--text-3); font-size: 12px; }
.suggest li[aria-selected="true"] a, .suggest li a:hover { background: var(--surface-3); }
.suggest li.empty { color: var(--text-2); }
.suggest li.all a { justify-content: center; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 12px 24px; border-right: 1px solid var(--line); background: var(--bg-raised);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav + .side-label { margin-top: 18px; }
.side-label { padding: 0 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: background .12s, color .12s;
}
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.side-nav a .count { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.side-nav .icon { width: 18px; height: 18px; }
.scrim { display: none; }
.main { min-width: 0; padding: 20px var(--gutter) 0; }
.main > section, .main > .page-head { margin-bottom: 36px; }

/* ---------- headings & sections ---------- */
.page-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.page-head p { color: var(--text-2); margin: 8px 0 0; max-width: 72ch; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head h2 .icon { color: var(--brand); }
.section-head a.more, .section-head button.more {
  font-size: 14px; font-weight: 600; color: var(--text-2); background: none; border: 0; padding: 6px 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.section-head a.more:hover, .section-head button.more:hover { color: var(--brand); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 13.5px; color: var(--text-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch;
  padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgb(126 217 87 / .14), transparent 55%), var(--surface);
}
.hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 b { color: var(--brand); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero-copy p { color: var(--text-2); margin: 0; max-width: 56ch; font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 14.5px; transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.btn[aria-pressed="true"] .icon { fill: currentColor; }

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.grid.grid-lg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card { position: relative; display: block; border-radius: var(--radius); background: var(--surface); outline-offset: 3px; }
.card .thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.card .name {
  position: absolute; inset: auto 0 0 0; padding: 26px 10px 9px; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(transparent, rgb(6 8 14 / .92)); font-weight: 700; font-size: 13.5px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.06); }
.card:hover .thumb, .card:focus-visible .thumb { box-shadow: 0 0 0 2px var(--brand) inset; }
.card .thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px transparent inset; transition: box-shadow .15s;
}
.card:hover .thumb::after, .card:focus-visible .thumb::after { box-shadow: 0 0 0 2px var(--brand) inset; }
.hero-picks .card .name { font-size: 15px; }

/* horizontal rows */
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .row-scroll { grid-auto-columns: calc((100% - 6 * 14px) / 7); } }

/* chips & toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.select { height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.load-more { display: flex; justify-content: center; margin-top: 20px; }
.result-note { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; transition: border-color .15s, background .15s;
}
.cat-tile:hover { border-color: var(--brand); background: var(--surface-2); }
.cat-tile .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); color: var(--brand); flex: none; }
.cat-tile small { display: block; color: var(--text-3); font-weight: 500; font-size: 12.5px; }

/* empty states */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2);
}
.empty-state .icon { width: 28px; height: 28px; color: var(--text-3); }
.empty-state strong { color: var(--text); }

/* ---------- prose / FAQ ---------- */
.prose { max-width: 78ch; color: var(--text-2); font-size: 15.5px; }
.prose h2 { color: var(--text); font-size: 21px; font-weight: 800; margin: 28px 0 10px; }
.prose h3 { color: var(--text); font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose kbd, .controls kbd {
  font: 600 12px/1 var(--font); background: var(--surface-3); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 6px; color: var(--text); white-space: nowrap;
}
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 16px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }
.info-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 24px; }
.info-band div { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-band strong { display: flex; align-items: center; gap: 8px; color: var(--text); margin-bottom: 4px; }
.info-band strong .icon { color: var(--brand); width: 18px; height: 18px; }
.info-band p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- game page ---------- */
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.game-title-row h1 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
a.tag:hover { color: var(--brand); border-color: var(--brand); }
.player {
  position: relative; aspect-ratio: 16 / 10; max-height: calc(100vh - var(--header-h) - 120px); width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: #05070c; border: 1px solid var(--line); border-bottom: 0;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-poster { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.player-poster .bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.2); }
.player-poster .inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; text-align: center; }
.player-poster .inner img { width: clamp(84px, 14vw, 128px); aspect-ratio: 1; border-radius: 22px; box-shadow: var(--shadow); object-fit: cover; }
.player-poster .inner h2 { font-size: clamp(18px, 2.4vw, 24px); }
.player-poster .btn-primary { height: 52px; padding: 0 30px; font-size: 16px; box-shadow: 0 8px 30px -6px rgb(126 217 87 / .55); }
.player-poster .btn-primary .icon { fill: currentColor; }
.player-state {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: rgb(5 7 12 / .92); z-index: 2;
}
.player-state .box { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; color: var(--text-2); }
.player-state strong { color: var(--text); font-size: 17px; }
.player-state .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface);
}
.player-bar .meta { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.player-bar .meta img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.player-bar .meta span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .src { font-size: 12.5px; color: var(--text-3); }
.player-bar .src a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
/* fallback full-window mode where the Fullscreen API is unavailable (e.g. iPhone Safari) */
.player-wrap.is-pseudo-fs { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.player-wrap.is-pseudo-fs .player { flex: 1; aspect-ratio: auto; max-height: none; border-radius: 0; border: 0; }
.player-wrap.is-pseudo-fs .player-bar { border-radius: 0; border: 0; }
.player-wrap:fullscreen { background: #000; display: flex; flex-direction: column; }
.player-wrap:fullscreen .player { flex: 1; aspect-ratio: auto; max-height: none; border-radius: 0; border: 0; }
.player-wrap:fullscreen .player-bar { border-radius: 0; border: 0; }
.notice {
  display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text-2); margin-bottom: 20px;
}
.notice .icon { color: var(--gold); margin-top: 2px; }
.notice strong { color: var(--text); }
.controls { display: grid; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.game-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.game-aside h2 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.mini-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: var(--radius); }
.mini-list a:hover { background: var(--surface); }
.mini-list img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.mini-list span { font-weight: 600; font-size: 14px; line-height: 1.3; }
.mini-list small { display: block; color: var(--text-3); font-weight: 500; font-size: 12.5px; }
.game-body { margin-top: 28px; }
.game-body .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 32px 0 28px; color: var(--text-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--brand); }
.site-footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 13px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-aside { position: static; }
  .game-aside .mini-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-grid; }
  .sidebar {
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 86vw);
    transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: var(--shadow); padding-top: 12px;
    visibility: hidden;
  }
  .sidebar.open { transform: none; visibility: visible; }
  .sidebar .drawer-head { display: flex; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .55); display: block; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.drawer-head { display: none; align-items: center; justify-content: space-between; padding: 0 4px 12px 8px; }
@media (max-width: 719px) {
  :root { --header-h: 58px; }
  .site-header { gap: 8px; }
  .brand span { display: none; }
  .search kbd { display: none; }
  .header-actions .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .grid.grid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-scroll { grid-auto-columns: 112px; gap: 10px; }
  .card .name { font-size: 12.5px; padding: 22px 8px 7px; }
  .hero { padding: 16px; }
  .hero-picks { gap: 8px; }
  .player { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
  .player-bar { border-radius: 0 0 var(--radius) var(--radius); }
  .player-bar .meta { flex: 1 1 100%; }
  .player-bar .btn { flex: 1; padding: 0 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  /* visually hidden but still the button's accessible name */
  .player-bar .btn span.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .icon-btn { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
