/* ============================================================================
   Grand TV - design system
   Dark, cinematic, single crimson accent. Hand-authored tokens (no framework)
   for a dependency-free, fast static build.
   Radius rule: interactive controls = pill; containers/media = 12-14px.
   ========================================================================== */

:root {
  /* Surfaces (off-black, never pure #000) */
  --bg: #0b0b0f;
  --bg-2: #101015;
  --elev-1: #16161d;
  --elev-2: #1d1d26;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hi: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f4f6;
  --text-dim: #a6a6b3;
  --text-mute: #71717f;
  --ink: #0b0b0f;

  /* Single locked accent */
  --accent: #e11931;
  --accent-hi: #ff2f45;
  --accent-soft: rgba(225, 25, 49, 0.16);

  /* Shape */
  --r-pill: 999px;
  --r-card: 14px;
  --r-tile: 12px;

  /* Elevation (tinted, never pure black) */
  --shadow-1: 0 6px 20px -10px rgba(4, 4, 12, 0.8);
  --shadow-2: 0 20px 48px -18px rgba(4, 4, 12, 0.9);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 66px;
  --maxw: 1440px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Ambient cinematic wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(225, 25, 49, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(60, 70, 120, 0.10), transparent 55%),
    var(--bg);
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
.icon { display: block; flex: none; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--text); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.92), rgba(11, 11, 15, 0.62));
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-hi), var(--accent));
  box-shadow: 0 6px 18px -6px var(--accent);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(1px);
}
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.brand__tv { color: var(--accent); margin-left: 2px; }

.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav__link {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.topnav__link:hover { color: var(--text); background: var(--surface); }
.topnav__link.is-active { color: var(--text); background: var(--surface-hi); }

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  color: var(--text);
  background: var(--surface);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.iconbtn:hover { background: var(--surface-hi); border-color: var(--border-hi); }
.iconbtn:active { transform: scale(0.94); }

.regionbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  max-width: 200px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.regionbtn:hover { background: var(--surface-hi); border-color: var(--border-hi); }
.regionbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regionbtn .icon { opacity: 0.6; }

/* ----------------------------------------------------------------- layout */

#view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 120px;
  outline: none;
}

.pagehead { padding: 28px 0 14px; }
.pagehead h1 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
}
.pagehead h1 .icon { color: var(--accent); }
.pagehead p { color: var(--text-dim); margin: 10px 0 0; max-width: 60ch; }

.section { margin-top: 34px; }
.section > .rail__title { margin-bottom: 16px; font-size: 22px; }

/* --------------------------------------------------------------- spotlight */

.spotlight {
  position: relative;
  margin: 20px 0 8px;
  min-height: clamp(360px, 52vh, 560px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.spot__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 120% at 80% 20%, hsl(var(--h, 350) 55% 22%), transparent 60%),
    linear-gradient(120deg, var(--elev-2), var(--bg-2));
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6%;
}
.spot__art {
  width: min(42%, 420px);
  max-height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  opacity: 0.9;
}
.spot__ph {
  font-size: clamp(90px, 16vw, 200px);
  font-weight: 800;
  color: hsl(var(--h, 350) 70% 60%);
  opacity: 0.28;
}
.spot__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, var(--bg) 8%, rgba(11, 11, 15, 0.55) 46%, transparent 78%),
    linear-gradient(to top, var(--bg) 2%, transparent 46%);
}
.spot__inner { padding: clamp(22px, 4vw, 48px); max-width: 640px; }
.spot__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-hi);
  padding: 7px 12px; border-radius: var(--r-pill);
}
.spot__eyebrow .icon { color: var(--accent); }
.spot__title {
  font-size: clamp(34px, 6.5vw, 68px);
  font-weight: 800;
  margin: 16px 0 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.spot__desc { color: var(--text-dim); font-size: clamp(15px, 2vw, 18px); margin: 14px 0 0; max-width: 46ch; }
.spot__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--text); color: var(--ink); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: #fff; box-shadow: var(--shadow-2); }
.btn--ghost {
  background: var(--surface-hi);
  color: var(--text);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--ghost.is-on { color: var(--accent-hi); border-color: rgba(225, 25, 49, 0.5); background: var(--accent-soft); }

/* ------------------------------------------------------------------- rails */

.rail { margin-top: 34px; }
.rail__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.rail__title { font-size: 21px; font-weight: 700; }
.rail__ctrls { display: flex; gap: 8px; }
.rail__ctrls .iconbtn { width: 36px; height: 36px; }
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(160px, 22vw, 208px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail__track::-webkit-scrollbar { display: none; }

/* -------------------------------------------------------------------- card */

.card {
  scroll-snap-align: start;
  text-align: left;
  display: flex; flex-direction: column;
  gap: 9px;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); }
.card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-tile);
  overflow: hidden;
  background: linear-gradient(140deg, var(--elev-2), var(--elev-1));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover .card__thumb, .card:focus-visible .card__thumb {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-2);
}
.card__logo {
  width: 74%; height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}
.card__ph {
  font-weight: 800; font-size: 34px;
  color: hsl(var(--h, 350) 65% 66%);
  background: radial-gradient(circle at 50% 30%, hsl(var(--h, 350) 40% 26%), var(--elev-1));
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.badge--live {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.badge--live .dot, .tag--live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 0 rgba(255, 47, 69, 0.6);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 47, 69, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(255, 47, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 47, 69, 0); }
}
.card__q {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 700; color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 7px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 46%);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.card:hover .card__scrim, .card:focus-visible .card__scrim { opacity: 1; }
.card__playbtn {
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(255, 255, 255, 0.94);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: var(--shadow-2);
}
.card__playbtn .icon { transform: translateX(1px); }
.card:hover .card__playbtn, .card:focus-visible .card__playbtn { opacity: 1; transform: scale(1); }
.card__fav {
  position: absolute; bottom: 8px; right: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-hi);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  backdrop-filter: blur(4px);
}
.card:hover .card__fav, .card:focus-within .card__fav { opacity: 1; transform: translateY(0); }
.card__fav:hover { background: rgba(0, 0, 0, 0.7); }
.card__fav.is-on { color: var(--accent-hi); opacity: 1; transform: translateY(0); }
.card__fav.is-on .icon { fill: var(--accent-hi); }

.card__meta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.card__name {
  font-weight: 650; font-size: 14.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card__sub {
  font-size: 12px; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* -------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

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

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 18px; }
.chip {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600; font-size: 14px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.chip.is-active { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ----------------------------------------------------------------- overlays */

.overlay { position: fixed; inset: 0; z-index: 100; display: flex; }
.overlay[hidden] { display: none; }
.overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Player */
.overlay--player { align-items: center; justify-content: center; padding: clamp(0px, 3vw, 32px); }
.player {
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: clamp(0px, 2vw, 18px);
  overflow: hidden auto;
  box-shadow: var(--shadow-2);
  animation: rise 0.3s var(--ease);
  scrollbar-width: thin;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }
.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player__video { width: 100%; height: 100%; display: block; background: #000; }
.player__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-hi);
}
.player__topctrls { position: absolute; top: 12px; left: 12px; z-index: 3; }
.player__status {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 20px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.72));
  color: var(--text-dim);
}
.player__status p { margin: 0; font-size: 14px; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent-hi);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status__err { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.status__erricon { color: var(--accent-hi); }
.status__err p { color: var(--text); }
.status__actions { display: flex; gap: 10px; margin-top: 4px; }

.player__info { padding: clamp(16px, 3vw, 26px); }
.player__head { display: flex; align-items: center; gap: 16px; }
.player__logo {
  width: 60px; height: 60px; flex: none;
  border-radius: 12px; overflow: hidden;
  background: var(--elev-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.player__logo img { width: 80%; height: 80%; object-fit: contain; }
.player__logo .card__ph { font-size: 22px; border-radius: 0; }
.player__titles { flex: 1; min-width: 0; }
.player__titles h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.player__meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 13.5px; margin-top: 6px;
}
.tag--live {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-weight: 800; font-size: 10.5px; letter-spacing: 0.06em;
  background: rgba(225, 25, 49, 0.18);
  border: 1px solid rgba(225, 25, 49, 0.5);
  padding: 3px 8px; border-radius: var(--r-pill);
}
.player__fav { height: 44px; flex: none; }
#pRelated { margin-top: 22px; }
#pRelated .rail { margin-top: 0; }
#pRelated .rail__title { font-size: 17px; }

/* Quality selector */
.qsel { position: relative; }
.qsel__btn { width: auto; gap: 6px; padding: 0 12px; height: 42px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-hi); list-style: none; }
.qsel__btn::-webkit-details-marker { display: none; }
.qsel__btn span { font-size: 13px; font-weight: 600; }
.qsel__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--elev-2); border: 1px solid var(--border-hi);
  border-radius: 12px; padding: 6px; min-width: 130px;
  box-shadow: var(--shadow-2); display: flex; flex-direction: column;
}
.qsel__opt { padding: 9px 12px; border-radius: 8px; text-align: left; font-size: 13px; color: var(--text-dim); }
.qsel__opt:hover { background: var(--surface-hi); color: var(--text); }

/* Sheets (search + region) */
.overlay--sheet { align-items: flex-start; justify-content: center; }
.sheet {
  position: relative;
  width: min(880px, 100%);
  max-height: 100dvh;
  margin-top: clamp(0px, 6vh, 70px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: clamp(0px, 2vw, 18px);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: rise 0.3s var(--ease);
}
.sheet--narrow { width: min(520px, 100%); }
.sheet__bar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.searchfield {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: border-color 0.2s var(--ease);
}
.searchfield:focus-within { border-color: var(--border-hi); }
.searchfield .icon { color: var(--text-mute); }
.searchfield input {
  flex: 1; border: 0; background: none; color: var(--text);
  font-size: 16px; outline: none; min-width: 0;
}
.searchfield input::placeholder { color: var(--text-mute); }
.sheet__body { padding: 20px; overflow-y: auto; }

/* Region list */
.region__list { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.region__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  text-align: left; color: var(--text); transition: background 0.15s var(--ease);
}
.region__item:hover { background: var(--surface-hi); }
.region__item.is-active { background: var(--surface-hi); box-shadow: inset 3px 0 0 var(--accent); }
.region__flag { font-size: 22px; }
.region__name { flex: 1; font-weight: 600; }
.region__count { color: var(--text-mute); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- empty state */

.empty {
  text-align: center; color: var(--text-dim);
  padding: 60px 20px; max-width: 420px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty__icon { color: var(--text-mute); }
.empty h3 { font-size: 20px; color: var(--text); }
.empty p { margin: 0; }
.empty .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- skeleton */

.card--skel { pointer-events: none; }
.sk {
  position: relative; overflow: hidden;
  background: var(--elev-1); border-radius: 6px;
}
.card--skel .card__thumb.sk { aspect-ratio: 16 / 10; border-radius: var(--r-tile); }
.sk-line { height: 12px; margin-top: 8px; }
.sk-line--sm { width: 60%; height: 10px; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed; z-index: 300;
  left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast__item {
  background: var(--elev-2); color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 12px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast__item.is-in { opacity: 1; transform: none; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* -------------------------------------------------------------- reveal fx */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-revealed {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* --------------------------------------------------------------- bottom nav */

.bottomnav { display: none; }

@media (max-width: 860px) {
  .topnav { display: none; }
  .regionbtn span { display: none; }
  .bottomnav {
    position: fixed; z-index: 70;
    left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(11, 11, 15, 0.98), rgba(11, 11, 15, 0.86));
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .bottomnav__link {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0;
    color: var(--text-mute); font-size: 10.5px; font-weight: 600;
    transition: color 0.2s var(--ease);
  }
  .bottomnav__link.is-active { color: var(--accent-hi); }
}

/* Larger tap targets and single-column spotlight on phones */
@media (max-width: 560px) {
  .spotlight { min-height: 420px; border-radius: 16px; }
  .spot__bg { justify-content: center; padding-right: 0; opacity: 0.5; }
  .spot__scrim { background: linear-gradient(to top, var(--bg) 12%, rgba(11,11,15,0.35) 60%, transparent); }
  .spot__actions .btn { flex: 1; }
  #view { padding-bottom: 96px; }
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
