/* ============================================================
   STREAM ONE · app.css
   Thème sombre « régie » : bleu-nuit, logos sur pastilles claires,
   rouge réservé au signal EN DIRECT, ambre réservé aux favoris.
   ============================================================ */

:root {
  --ink: #0a0c11;
  --panel: #12151e;
  --raised: #1a1e2b;
  --line: #262b3b;
  --text: #eef1f8;
  --muted: #8f98ad;
  --live: #ff3b47;
  --fav: #ffc247;
  --focus: #8fb0ff;
  --plate-a: #f6f8fc;
  --plate-b: #dde3ee;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --topbar-h: 64px;
  --tabbar-h: 62px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: 90, 110, 170; /* r,g,b de la bannière (mis à jour par le script) */
}

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

html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

/* ---------- Barre supérieure ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 12, 17, .92), rgba(10, 12, 17, 0));
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: rgba(10, 12, 17, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name span { color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.search {
  position: relative;
  margin-left: auto;
  width: min(300px, 38vw);
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(26, 30, 43, .75);
  font-size: .92rem;
  transition: border-color .2s, background .2s, width .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--focus); background: var(--raised); }
.search-icon { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-clear { position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.search-clear:hover { color: var(--text); background: var(--line); }
.search-clear svg { width: 16px; height: 16px; }

/* ---------- Navigation mobile ---------- */

.tabbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 17, 25, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { stroke-width: 2.2; }

/* ---------- Boutons, badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-primary svg { fill: currentColor; stroke: none; }
.btn-ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-ghost.on { color: var(--fav); border-color: rgba(255, 194, 71, .5); }
.btn-ghost.on svg { fill: currentColor; }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px 0 8px;
  border-radius: 6px;
  background: var(--live);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: tally 1.8s ease-in-out infinite;
}
@keyframes tally { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Conteneur de page ---------- */

main { padding-top: var(--topbar-h); min-height: 70vh; }
.page { padding: 28px var(--gutter) 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.page-sub { color: var(--muted); font-size: .95rem; }

/* ---------- Bannière ---------- */

.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  margin-top: calc(var(--topbar-h) * -1);
  padding: calc(var(--topbar-h) + 40px) var(--gutter) 56px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 78% 30%, rgba(var(--glow), .55), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(var(--glow), .22), transparent 70%),
    var(--ink);
  transition: background .8s ease;
}
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 17, 0) 40%, var(--ink) 100%);
}
.hero-body {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}
.hero-info { max-width: 620px; animation: heroIn .6s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: rgba(255, 255, 255, .8); font-size: .95rem; font-weight: 500; }
.hero-title { font-size: clamp(2.2rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 26px; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-plate {
  width: clamp(200px, 26vw, 360px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 7%;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--plate-a), var(--plate-b));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  animation: heroIn .6s var(--ease) .08s both;
}
.hero-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }

.hero-dots { position: absolute; left: var(--gutter); bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 18px; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); transition: background .2s; }
.hero-dots button.on::before { background: var(--text); }

/* ---------- Rangées horizontales ---------- */

.rows { padding-bottom: 24px; }
.row { position: relative; margin-top: 30px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.row-link { color: var(--muted); font-size: .88rem; font-weight: 500; }
.row-link:hover { color: var(--text); }

.row-scroller { position: relative; }
.row-track {
  display: flex;
  gap: 14px;
  padding: 4px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > .card { flex: 0 0 clamp(168px, 18vw, 232px); scroll-snap-align: start; }

.row-arrow {
  position: absolute;
  top: 4px;
  bottom: 10px;
  z-index: 5;
  width: 52px;
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0;
  transition: opacity .2s;
}
.row-arrow.prev { left: 0; background: linear-gradient(to right, rgba(10, 12, 17, .92), transparent); }
.row-arrow.next { right: 0; background: linear-gradient(to left, rgba(10, 12, 17, .92), transparent); }
.row-arrow svg { width: 26px; height: 26px; stroke-width: 2.4; }
.row-arrow[disabled] { display: none; }
@media (hover: hover) { .row-scroller:hover .row-arrow { opacity: 1; } }
@media (hover: none) { .row-arrow { display: none; } }

/* ---------- Cartes de chaîne ---------- */

.card { position: relative; border-radius: var(--radius); }
.card-link { display: block; border-radius: var(--radius); }

.card-plate {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 16% 14%;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--plate-a), var(--plate-b));
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-fallback { font-size: 1.9rem; font-weight: 800; color: #5b6479; letter-spacing: -.03em; }
.card .badge-live { position: absolute; left: 8px; top: 8px; height: 19px; font-size: .62rem; padding: 0 7px; }

.card-body { padding: 10px 2px 0; }
.card-name { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cat { color: var(--muted); font-size: .8rem; }

.card.playing .card-plate { box-shadow: 0 0 0 2px var(--live); }
.card.down .card-plate { filter: grayscale(1); opacity: .45; }
.card.down .card-cat::after { content: ' · indisponible'; }

.fav-btn {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 12, 17, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s, transform .2s var(--ease), color .2s;
}
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn.on { opacity: 1; transform: none; color: var(--fav); }
.fav-btn.on svg { fill: currentColor; }
.fav-btn:focus-visible { opacity: 1; transform: none; }
@media (hover: hover) {
  .card:hover .fav-btn { opacity: 1; transform: none; }
  .card:hover .card-plate { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .3) inset; }
}
@media (hover: none) { .fav-btn { opacity: 1; transform: none; } }

/* ---------- Grille, filtres ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 17vw, 210px), 1fr)); gap: 22px 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: #3a4157; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--ink); }
.chip small { margin-left: 6px; opacity: .6; font-size: .78rem; }

.sentinel { height: 1px; }

/* ---------- Catégories ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cat-tile { display: block; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.cat-tile:hover { border-color: #3a4157; background: var(--raised); }
.cat-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 14px; }
.cat-mosaic .mini-plate { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 14%; border-radius: 9px; background: linear-gradient(150deg, var(--plate-a), var(--plate-b)); overflow: hidden; }
.cat-mosaic .mini-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-mosaic .mini-plate.empty { background: var(--raised); }
.cat-name { font-size: 1.1rem; font-weight: 600; }
.cat-count { color: var(--muted); font-size: .86rem; }

/* ---------- Chargement, états ---------- */

.skel { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--radius); }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-plate { aspect-ratio: 16 / 10; }
.skel-line { height: 12px; margin-top: 10px; border-radius: 6px; width: 70%; }
.skel-line.short { width: 40%; height: 10px; }
.skel-hero { min-height: clamp(420px, 62vh, 620px); margin-top: calc(var(--topbar-h) * -1); border-radius: 0; }
.skel-head { height: 22px; width: 180px; margin: 30px var(--gutter) 14px; border-radius: 8px; }
.skel-row { display: flex; gap: 14px; padding: 0 var(--gutter); overflow: hidden; }
.skel-row > div { flex: 0 0 clamp(168px, 18vw, 232px); }

.state { max-width: 460px; margin: 12vh auto; padding: 0 var(--gutter); text-align: center; }
.state-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.state-text { color: var(--muted); margin-bottom: 22px; }
.state .btn { margin: 0 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 44px var(--gutter) 48px; margin-top: 30px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; opacity: .7; margin-bottom: 6px; }
.footer-small { font-size: .78rem; opacity: .7; }
.footer-small a:hover { color: var(--text); }

/* ---------- Lecteur ---------- */

.watch { padding: 0 var(--gutter) 24px; }
.stage {
  position: relative;
  width: 100%;
  max-width: calc((100vh - var(--topbar-h) - 120px) * 16 / 9);
  min-width: min(100%, 320px);
  margin: 12px auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage:fullscreen, .stage:-webkit-full-screen { max-width: none; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; }

.stage-top, .stage-bar {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  transition: opacity .25s, transform .25s var(--ease);
}
.stage-top { top: 0; background: linear-gradient(rgba(0, 0, 0, .75), transparent); padding-bottom: 36px; }
.stage-bar { bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); padding-top: 36px; }
.stage.idle:not(.paused):not(.drawer-open) .stage-top,
.stage.idle:not(.paused):not(.drawer-open) .stage-bar { opacity: 0; pointer-events: none; }
.stage.idle:not(.paused):not(.drawer-open) .stage-top { transform: translateY(-8px); }
.stage.idle:not(.paused):not(.drawer-open) .stage-bar { transform: translateY(8px); }
.stage.idle:not(.paused):not(.drawer-open) { cursor: none; }

.stage-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stage-logo { flex-shrink: 0; width: 56px; height: 36px; display: grid; place-items: center; padding: 4px 6px; border-radius: 7px; background: linear-gradient(150deg, var(--plate-a), var(--plate-b)); }
.stage-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stage-name { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-cat { font-size: .78rem; color: rgba(255, 255, 255, .7); }
.stage-top .badge-live { margin-left: 6px; }
.spacer { flex: 1; }

.icon-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  transition: background .2s, transform .15s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .filled { fill: currentColor; stroke: none; }
.icon-btn.on { color: var(--fav); }
.icon-btn.on svg { fill: currentColor; }

.stage-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  text-align: center;
  background: rgba(0, 0, 0, .55);
}
.stage-status.show { display: flex; }
.stage-status.is-loading { background: rgba(0, 0, 0, .32); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-status-text { font-size: .98rem; max-width: 380px; }
.stage-status .btn { height: 40px; padding: 0 20px; }
.stage-status.is-error .spinner, .stage-status:not(.is-error) .btn { display: none; }

.stage-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: 4;
  width: min(340px, 86%);
  display: flex;
  flex-direction: column;
  background: rgba(10, 12, 17, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform .3s var(--ease);
}
.stage.drawer-open .stage-drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 18px; font-weight: 600; }
.mini-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; overscroll-behavior: contain; }
.mini { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; transition: background .15s; }
.mini:hover { background: rgba(255, 255, 255, .08); }
.mini.playing { background: rgba(255, 59, 71, .14); }
.mini-plate { flex-shrink: 0; width: 60px; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 6px; border-radius: 7px; background: linear-gradient(150deg, var(--plate-a), var(--plate-b)); }
.mini-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-text { min-width: 0; }
.mini-name { font-size: .92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cat { font-size: .76rem; color: var(--muted); }

.watch-head { display: flex; align-items: center; gap: 14px; max-width: calc((100vh - var(--topbar-h) - 120px) * 16 / 9); min-width: min(100%, 320px); margin: 14px auto 0; }
.watch-head h1 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.watch-head p { color: var(--muted); font-size: .88rem; }
.watch-head .btn { margin-left: auto; height: 40px; padding: 0 18px; }

/* ---------- Tablette et mobile ---------- */

@media (max-width: 980px) {
  .nav { display: none; }
  .search { width: auto; flex: 1; margin-left: 0; max-width: 420px; }
  .topbar { gap: 16px; }
  .hero-body { grid-template-columns: 1fr; gap: 28px; }
  .hero-plate { width: min(260px, 60%); order: -1; }
  .hero { align-items: flex-end; }
}

@media (max-width: 720px) {
  :root { --topbar-h: 58px; }
  .tabbar { display: flex; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .brand-name { display: none; }
  .search { max-width: none; }
  .hero { min-height: 480px; padding-bottom: 52px; }
  .hero-title { margin-bottom: 20px; }
  .btn { height: 44px; padding: 0 20px; }
  .row-track > .card { flex-basis: 150px; }
  .grid { gap: 18px 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .stage { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); max-width: none; border-radius: 0; }
  .stage:fullscreen { width: 100%; margin: 0; }
  .watch-head { max-width: none; }
  .stage-top, .stage-bar { padding-left: 10px; padding-right: 10px; }
  .stage-logo { display: none; }
  .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .stage { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
