/* Local streaming UI — original stylesheet, editable */
:root {
  --bg: #0b0f14;
  --bg-elev: #141922;
  --bg-elev-2: #1a212c;
  --border: #1d2430;
  --text: #f4f6f8;
  --muted: #8a94a6;
  --muted-2: #6b7382;
  --accent: #eb0d18;
  --accent-2: #d50914;
  --accent-dark: #8e050d;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --nav-h: 72px;
  --radius: 10px;
  --font: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --page-pad: 48px;
  --card-gap: 10px;
  --card-w: 168px;
  --land-w: 280px;
  --bottom-nav-h: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; padding-bottom: var(--bottom-nav-h); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; }
button { cursor: pointer; border: 0; background: none; }

.site-header {
  position: fixed; inset: 0 0 auto 0; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: env(safe-area-inset-top, 0px) var(--page-pad) 0;
  background: linear-gradient(to bottom, rgba(11,15,20,.92), rgba(11,15,20,0));
  transition: background .25s ease;
}
.site-header.solid { background: rgba(11,15,20,.96); backdrop-filter: blur(12px); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img, .brand svg { width: 28px; height: 28px; }
.brand-name { font-weight: 800; letter-spacing: .08em; font-size: 20px; }
.brand-name b { color: var(--accent); font-weight: 800; }

.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.header-spacer { flex: 1; }
.header-extra { display: none; gap: 14px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.header-extra a.active { color: var(--text); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: transparent;
}
.icon-btn:hover { background: var(--bg-elev-2); }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  max-width: 140px;
}
.account-btn:hover { background: var(--bg-elev-2); border-color: #2e3848; }
.account-btn.signed-in { border-color: rgba(235, 13, 24, 0.45); }
.account-btn-icon { flex-shrink: 0; color: var(--muted); }
.account-btn.signed-in .account-btn-icon { color: var(--text); }
.account-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-overlay, .account-overlay, .support-ok-overlay {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(0,0,0,.78);
  display: none; place-items: center;
  padding: 20px;
}
.auth-overlay.open, .account-overlay.open, .support-ok-overlay.open { display: grid; }
.support-ok-card {
  width: min(400px, 100%);
  background: #12171f;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.support-ok-title { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.support-ok-text { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.support-ok-btn { min-width: 120px; height: 46px; }
.auth-card, .account-card {
  width: min(420px, 100%);
  background: #12171f;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; font-size: 24px; line-height: 1;
  color: var(--muted);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; height: 40px; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.auth-tab.active { color: var(--text); border-color: #3d4a5c; background: var(--bg-elev-2); }
.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.is-active, .auth-form:not([hidden]) { display: flex; }
.auth-form-error, .account-hint { font-size: 13px; color: #ff6b6b; margin: 0 0 12px; }
.account-hint { color: var(--muted); line-height: 1.5; margin: 16px 0 20px; }
.auth-submit, .account-logout { width: 100%; height: 46px; }
.account-dl { margin: 8px 0 0; display: grid; gap: 14px; }
.account-dl div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; align-items: baseline; }
.account-dl dt { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.account-dl dd { margin: 0; font-weight: 700; word-break: break-word; }
.account-cards-block { margin: 20px 0 8px; text-align: left; }
.account-cards-head { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.account-cards-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.account-card-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-card-item.is-active { border-color: rgba(235, 13, 24, 0.45); }
.account-card-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.account-card-mask { font-weight: 800; font-variant-numeric: tabular-nums; }
.account-card-meta { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; }
.account-card-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); background: rgba(235, 13, 24, 0.12); padding: 2px 8px; border-radius: 6px;
}
.account-card-empty { font-size: 14px; color: var(--muted); padding: 8px 0; }
.account-use-card { align-self: flex-start; height: 36px; font-size: 13px; padding: 0 14px; }
.account-change-card { width: 100%; height: 44px; margin-bottom: 4px; }

/* Hero */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  padding: 0 var(--page-pad) 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,20,.88) 0%, rgba(11,15,20,.45) 46%, rgba(11,15,20,.15) 70%, rgba(11,15,20,.4) 100%),
    linear-gradient(180deg, rgba(11,15,20,.2) 0%, rgba(11,15,20,.1) 40%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-title { font-size: clamp(44px, 6vw, 80px); line-height: .95; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.03em; }
.hero-genres { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); font-size: 12px; font-weight: 600; color: #dfe4ea;
  background: rgba(20,25,34,.35);
}
.hero-flags { display: flex; gap: 10px; align-items: center; margin: 8px 0 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.flag { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; letter-spacing: .04em; }
.flag.ghost { background: rgba(255,255,255,.12); }
.hero-overview { color: #d5dae2; font-size: 16px; line-height: 1.55; margin: 0 0 16px; max-width: 56ch; }
.hero-meta { display: flex; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 22px; align-items: center; flex-wrap: wrap; }
.hero-meta .match { color: #46d369; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 8px; font-weight: 700; font-size: 15px;
}
.btn-play { background: var(--accent); color: #fff; }
.btn-play:hover { background: #ff2a33; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Rows */
.rows { padding: 8px 0 80px; display: flex; flex-direction: column; gap: 28px; }
.row { padding: 0 var(--page-pad); position: relative; }
.row-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.row-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.row-head p { margin: 0; color: var(--muted); font-size: 13px; }
.row-head a { color: var(--muted); font-size: 13px; margin-left: auto; }
.scroller {
  display: flex; gap: var(--card-gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 8px 2px 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.scroller::-webkit-scrollbar { display: none; }
.row-nav {
  position: absolute; top: 52px; bottom: 16px; width: 42px; z-index: 2;
  background: linear-gradient(90deg, rgba(11,15,20,.7), transparent);
  display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s;
}
.row:hover .row-nav { opacity: 1; }
.row-nav.next { right: var(--page-pad); left: auto; background: linear-gradient(-90deg, rgba(11,15,20,.7), transparent); }
.row-nav.prev { left: var(--page-pad); }

.card {
  flex: 0 0 var(--card-w); width: var(--card-w); scroll-snap-align: start; position: relative;
  border-radius: 8px; overflow: hidden; background: var(--bg-elev);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card img {
  width: 100%; aspect-ratio: 2/3; height: auto; object-fit: contain; object-position: center;
  background: #141922;
}
.row.landscape .card,
.card.wide {
  flex: 0 0 var(--land-w); width: var(--land-w);
}
.row.landscape .card img,
.card.wide img { aspect-ratio: 16/9; }
.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.86));
  font-size: 12px; font-weight: 650; opacity: 0; transition: opacity .2s;
}
.card .meta .title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .rating { color: #46d369; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px) scale(1.04); box-shadow: var(--shadow); z-index: 3; }
  .card:hover .meta { opacity: 1; }
}

/* Top 10 */
.top10 .card { flex-basis: 190px; width: 190px; }
.rank {
  position: absolute; left: -6px; bottom: -12px; z-index: 2;
  font-size: 92px; font-weight: 900; line-height: 1; letter-spacing: -0.08em;
  color: #0b0f14; -webkit-text-stroke: 3px #c5c9d1; pointer-events: none;
  text-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.top10 .card { margin-left: 18px; }

.genre-tile {
  flex: 0 0 240px; width: 240px; height: 126px; border-radius: 10px; overflow: hidden; position: relative;
  background: var(--bg-elev); scroll-snap-align: start;
}
.genre-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.genre-tile span {
  position: absolute; left: 14px; bottom: 12px; font-weight: 800; font-size: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

/* Browse */
.mini-hero { position: relative; height: 280px; display: flex; align-items: flex-end; padding: 0 var(--page-pad) 28px; }
.mini-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,20,.2), var(--bg)); }
.mini-hero .copy { position: relative; z-index: 1; }
.mini-hero h1 { margin: 0 0 6px; font-size: 42px; }
.mini-hero p { margin: 0; color: var(--muted); }

.filters { padding: 8px var(--page-pad) 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; color: var(--text); min-width: 140px;
}
.browse-heading { padding: 0 var(--page-pad) 12px; font-size: 20px; }
.grid {
  padding: 0 var(--page-pad) 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
  align-items: start;
}
.grid .card, .grid .card.wide { flex: none; width: 100%; }
.grid .card.wide { grid-column: span 2; }

/* Swipe */
.swipe-wrap { min-height: 100vh; display: grid; place-items: center; padding: 100px 24px 40px; }
.swipe-card {
  width: min(420px, 92vw); background: var(--bg-elev); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.swipe-card img { width: 100%; aspect-ratio: 2/3; height: auto; object-fit: contain; background: #000; }
.swipe-info { padding: 16px 18px 20px; }
.swipe-info h2 { margin: 0 0 6px; font-size: 26px; }
.swipe-info p { margin: 0; color: var(--muted); }
.swipe-controls { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.swipe-controls button {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--bg-elev-2); font-size: 22px;
}
.swipe-controls .no { color: #ff6b6b; }
.swipe-controls .yes { color: #46d369; }

/* App / Help */
.page { padding: 120px var(--page-pad) 80px; max-width: 1100px; margin: 0 auto; }
.page h1 { font-size: 42px; margin: 0 0 10px; }
.page .lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.platform {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.platform h3 { margin: 0 0 8px; }
.platform p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.faq-group { margin: 28px 0 10px; font-size: 20px; }

/* Modal + search */
.modal, .search-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72);
  display: none; place-items: center; padding: 24px;
}
.modal.open, .search-overlay.open { display: grid; }
.modal-card {
  width: min(860px, 100%); max-height: 90vh; overflow: auto; background: #12171f;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.modal-hero { position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.modal-hero img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(70vh, 640px);
  margin: 0 auto; object-fit: contain;
}
.modal-hero .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #12171f); pointer-events: none; }
.modal-body { padding: 0 24px 28px; }
.modal-body h2 { margin: 0 0 8px; font-size: 32px; }
.search-box { width: min(800px, 100%); }
.search-box input {
  width: 100%; height: 52px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); padding: 0 16px; font-size: 18px; outline: none;
}
.search-results { grid-auto-flow: dense; align-items: start; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 70vh; overflow: auto; }

/* Play flow: prepay → loading → error */
.play-flow {
  position: fixed; inset: 0; z-index: 80;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: env(safe-area-inset-top, 0px) 28px env(safe-area-inset-bottom, 0px);
  color: #f4f6f8;
  overflow: auto;
}
.play-flow.open { display: flex; }
.play-flow-sheet-handle {
  flex-shrink: 0;
  width: 36px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.35);
  margin: 10px auto 8px;
}
.play-flow-back {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff;
  z-index: 2;
}
.play-flow-panel {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 0 32px;
}
.play-flow-panel.is-active { display: flex; }
.play-flow-panel[hidden] { display: none !important; }
.play-flow-title { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.play-flow-lead { margin: 0 0 12px; color: #c5ccd6; font-size: 16px; line-height: 1.6; }
.play-flow-fee { color: #fff; font-weight: 800; }
.play-debit-em {
  font-size: 1.15em;
  font-weight: 800;
  color: #4ecbff;
  letter-spacing: 0.04em;
}
.play-flow-subhead {
  margin: 0 0 14px;
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.play-flow-subhead.play-debit-em { color: #5ee0ff; }
.play-prepay-detail {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #9aa3b2;
}
.play-prepay-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7382;
  font-weight: 500;
}
.play-prepay-thanks {
  margin: 10px 0 0;
  font-size: 13px;
  color: #9aa3b2;
  text-align: center;
  font-weight: 600;
}
.play-prepay-form { display: flex; flex-direction: column; gap: 14px; }
.play-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #b8c0cc; }
.play-field input {
  height: 48px; border-radius: 8px; border: 1px solid #2a3140;
  background: #0f1218; padding: 0 14px; font-size: 16px; outline: none;
  color: #e8edf5;
}
.play-field input::placeholder { color: #6b7382; font-weight: 500; }
.play-field input:focus { border-color: #5c6a82; }
.play-field-cardnum { position: relative; }
.play-card-brands--inline {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.play-field-cardnum input { padding-right: 118px; }
.play-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.play-card-brands {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.play-card-brands .play-brand {
  display: block;
  height: 16px;
  width: auto;
  opacity: 0.92;
}
.play-brand-visa {
  height: 14px;
  width: auto;
  aspect-ratio: 82 / 26;
  object-fit: contain;
}
.play-brand-mc { width: 26px; }
.play-brand-amex { width: 26px; }
.play-brand-discover { width: 34px; }
.play-field-row { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 12px; align-items: end; }
.play-field--expiry input { padding: 0 10px; font-size: 15px; letter-spacing: 0.02em; }
.play-field--zip input { max-width: 172px; }
.play-form-error { margin: 0; font-size: 13px; color: #ff6b6b; }
.play-submit { width: 100%; margin-top: 6px; height: 48px; font-size: 16px; font-weight: 700; }
.play-load-center { text-align: center; width: 100%; }
.play-load-label { margin: 0 0 6px; font-size: 14px; color: #9aa3b2; text-transform: uppercase; letter-spacing: .08em; }
.play-load-title { margin: 0 0 28px; font-size: 22px; font-weight: 800; }
.play-load-track {
  height: 6px; border-radius: 99px; background: #1c2430; overflow: hidden; margin: 0 auto 12px; max-width: 320px;
}
.play-load-bar { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #eb0d18, #ff4d55); transition: width .12s linear; }
.play-load-pct { margin: 0; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.play-load-hint { margin: 14px 0 0; font-size: 13px; color: #6b7382; }
.play-flow-error .play-flow-panel { justify-content: center; }
.play-error-center { text-align: center; max-width: 360px; margin: 0 auto; width: 100%; }
.play-error-head { margin: 0 0 16px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.play-error-msg { margin: 0 0 32px; font-size: 15px; line-height: 1.55; color: #9aa3b2; }
.play-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.play-copy-toast {
  margin: 16px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(78, 203, 255, 0.15);
  border: 1px solid rgba(78, 203, 255, 0.45);
  color: #9ee8ff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.play-copy-toast.is-visible { opacity: 1; transform: translateY(0); }
.btn-outline {
  height: 44px; padding: 0 22px; border-radius: 8px;
  border: 1px solid #fff; background: transparent; color: #fff; font-weight: 700; font-size: 15px;
}
.btn-solid {
  height: 44px; padding: 0 22px; border-radius: 8px;
  border: 1px solid #fff; background: #fff; color: #000; font-weight: 700; font-size: 15px;
}
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-solid:hover { background: #e8eaed; }

footer, .site-footer { padding: 28px var(--page-pad) 40px; color: var(--muted-2); font-size: 12px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 32px; }
.footer-note { max-width: 760px; line-height: 1.65; margin: 0 0 20px; color: var(--muted-2); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-copy { margin: 0; white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover, .footer-links a.active { color: var(--text); }
.page.legal { max-width: 760px; }
.page.legal h2 { margin: 28px 0 10px; font-size: 20px; }
.page.legal p, .page.legal li { color: var(--muted); line-height: 1.7; }
.page.legal ul { padding-left: 1.2em; }
.page.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.page.legal code { font-size: 0.92em; }
.page.legal pre.code-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}
.support-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-top: 8px; }
.support-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-weight: 600; font-size: 13px; }
.support-form input, .support-form textarea {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-weight: 400;
}
.support-form .btn { align-self: flex-start; }
.support-form .form-note { color: var(--muted); margin: 0; font-weight: 400; }


.bottom-nav { display: none; }

@media (max-width: 800px) {
  :root {
    --nav-h: 56px;
    --page-pad: 14px;
    --card-gap: 8px;
    --card-w: calc((100vw - 2 * 14px - 2 * 8px) / 3.25);
    --land-w: calc(100vw - 2 * 14px - 72px);
    --bottom-nav-h: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .nav-links { display: none; }
  .header-extra { display: flex; }
  .account-btn { height: 36px; padding: 0 10px; max-width: 40px; }
  .account-btn-label { display: none; }
  .site-header { gap: 12px; }
  .brand-name { font-size: 17px; }
  .icon-btn { width: 36px; height: 36px; }

  .hero { min-height: 62vh; padding-bottom: 36px; }
  .hero-title { font-size: clamp(28px, 8.5vw, 42px); }
  .hero-overview {
    font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-actions { gap: 8px; }
  .btn { height: 40px; padding: 0 16px; font-size: 14px; }

  .rows { gap: 20px; padding-bottom: 24px; }
  .row-head { margin-bottom: 8px; gap: 6px; }
  .row-head h2 { font-size: 17px; line-height: 1.25; max-width: 14em; }
  .row-nav { display: none; }

  .top10 .card { flex-basis: var(--card-w); width: var(--card-w); margin-left: 14px; }
  .rank { font-size: 64px; left: -4px; bottom: -8px; -webkit-text-stroke: 2px #c5c9d1; }

  .genre-tile { flex-basis: 70vw; width: 70vw; height: 96px; }
  .genre-tile span { font-size: 18px; left: 12px; bottom: 10px; }

  .card .meta {
    position: static; opacity: 1; background: none; padding: 6px 2px 0;
    font-size: 11px; font-weight: 600;
  }
  .card { background: transparent; overflow: visible; }
  .card img { border-radius: 8px; }
  .grid .card .meta { padding-left: 0; }

  .mini-hero { height: 180px; padding-bottom: 20px; }
  .mini-hero h1 { font-size: 28px; }
  .filters { gap: 8px; }
  .filter { min-width: 0; flex: 1 1 calc(50% - 8px); }
  .browse-heading { font-size: 17px; }
  .grid {
    grid-template-columns: repeat(3, 1fr); gap: 8px;
    padding-bottom: 16px;
    grid-auto-flow: dense;
    align-items: start;
  }
  .grid .card.wide { grid-column: span 2; }

  .swipe-wrap { padding: 84px 16px 24px; }
  .swipe-card { width: min(390px, 86vw); }
  .swipe-info h2 { font-size: 22px; }
  .swipe-controls button { width: 56px; height: 56px; }

  .page { padding: 88px var(--page-pad) 32px; }
  .page h1 { font-size: 28px; }
  .page .lead { font-size: 15px; }

  .modal, .search-overlay { padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .modal-card { max-height: 92vh; border-radius: 12px; }
  .modal-hero { height: auto; }
  .modal-hero img { max-height: 48vh; }
  .modal-body { padding: 0 16px 20px; }
  .modal-body h2 { font-size: 22px; }
  .search-box input { height: 46px; font-size: 16px; }
  .search-results { grid-template-columns: repeat(3, 1fr); max-height: 64vh; }

  .play-flow { padding: env(safe-area-inset-top, 0px) 20px env(safe-area-inset-bottom, 0px); }
  .play-flow-title { font-size: 26px; }
  .play-error-head { font-size: 26px; }

  footer, .site-footer { padding: 16px var(--page-pad) 28px; }
  .footer-bar { align-items: flex-start; flex-direction: column; }
  .page.legal h1 { font-size: 28px; }


  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--bottom-nav-h);
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: rgba(11,15,20,.96);
    border-top: 1px solid var(--border);
    z-index: 40;
    justify-content: space-around;
    align-items: stretch;
    backdrop-filter: blur(12px);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    min-width: 0;
  }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav svg { width: 22px; height: 22px; }
}

.grid { padding-bottom: 24px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 8px var(--page-pad) 80px;
}
.pager-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.pager-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
a.pager-btn:hover { color: var(--text); border-color: var(--text); }
.pager-btn.current { color: var(--text); background: var(--bg-elev-2, #1a2130); border-color: var(--text); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-gap { color: var(--muted); padding: 0 2px; }

@media (max-width: 800px) {
  .grid { padding-bottom: 16px; }
  .pager {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 24px;
  }
  .pager-nav { justify-content: center; }
}

.search-results .card.wide { grid-column: span 2; width: 100%; }
