:root {
  --background: #08090d;
  --surface: #11131a;
  --surface-strong: #171a23;
  --foreground: #f6f2eb;
  --muted: #969ba8;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #e8ff47;
  --accent-dark: #141800;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button { color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px calc(56px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 6%, rgba(232, 255, 71, 0.13), transparent 28%),
    radial-gradient(circle at 7% 34%, rgba(94, 116, 255, 0.1), transparent 30%),
    #08090d;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px 9px 9px 2px;
  background: var(--accent);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 900;
}
.home-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(17, 19, 26, 0.82);
  color: #d9dbe1;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.live-pill {
  display: inline-flex;
  max-width: 46vw;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c6c8d0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 255, 71, 0.1);
}

.home-view { padding: 46px 2px 0; }
.catalog-hero {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(232, 255, 71, 0.11), transparent 42%),
    rgba(17, 19, 26, 0.9);
}
.catalog-hero::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(232, 255, 71, 0.16);
  border-radius: 50%;
  content: "";
  right: -86px;
  top: -104px;
  box-shadow: 0 0 0 34px rgba(232, 255, 71, 0.025), 0 0 0 68px rgba(232, 255, 71, 0.018);
  pointer-events: none;
}
.catalog-hero h1 {
  max-width: 650px;
  margin: 13px 0 16px;
  font-size: clamp(34px, 8.5vw, 58px);
  letter-spacing: -0.058em;
  line-height: 0.98;
}
.catalog-hero > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.catalog-status {
  display: inline-flex;
  margin-top: 20px;
  align-items: center;
  gap: 8px;
  color: #bec1ca;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}
.catalog-status > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #858a98;
}
.catalog-status[data-state="ready"] > span:first-child { background: var(--accent); }
.catalog-status[data-state="error"] > span:first-child { background: var(--danger); }
.catalog-retry {
  display: block;
  margin-top: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}
.cinema-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cinema-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 19, 26, 0.9);
}
.cinema-heading {
  display: flex;
  min-height: 38px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.cinema-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
}
.cinema-heading span {
  padding: 5px 7px;
  border: 1px solid rgba(232, 255, 71, 0.18);
  border-radius: 999px;
  color: #d9e798;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.series-card {
  display: flex;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0d0f14;
  color: var(--foreground);
  cursor: pointer;
  flex-direction: column;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.series-card:hover {
  border-color: rgba(232, 255, 71, 0.28);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}
.series-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(232, 255, 71, 0.12), rgba(94, 116, 255, 0.08)),
    #171a23;
}
.series-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(232, 255, 71, 0.78);
  font-size: 28px;
  font-weight: 900;
}
.series-card-copy {
  display: flex;
  min-height: 122px;
  padding: 11px;
  flex-direction: column;
}
.series-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.series-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.series-badges {
  display: flex;
  margin-top: auto;
  padding-top: 9px;
  flex-wrap: wrap;
  gap: 4px;
}
.series-badges span {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #b9bdc8;
  font-size: 8px;
  font-weight: 750;
}
.series-badges .preview-limit {
  background: rgba(232, 255, 71, 0.09);
  color: #dceca3;
}
.selection-badges {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 6px;
}
.selection-badges span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9bdc8;
  font-size: 9px;
  font-weight: 800;
}
.selection-badges span:last-child {
  border-color: rgba(232, 255, 71, 0.2);
  color: #dceca3;
}

.hero { padding: 48px 2px 26px; }
.eyebrow, .now-playing, .section-heading > div > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 620px;
  margin: 12px 0 13px;
  font-size: clamp(38px, 10vw, 66px);
  font-weight: 780;
  letter-spacing: -0.062em;
  line-height: 0.94;
}
.deck {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.series-switcher {
  display: flex;
  max-width: 620px;
  margin-top: 20px;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.series-switcher label {
  display: grid;
  min-width: 0;
  flex: 1 1 420px;
  gap: 7px;
}
.series-switcher label > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.series-switcher select {
  width: 100%;
  min-height: 44px;
  padding: 9px 38px 9px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(17, 19, 26, 0.84);
  color: var(--foreground);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
}
.audio-summary {
  flex: 0 0 auto;
  padding-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.player-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 19, 26, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}
.player-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }

.stream-controls {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, auto));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(8, 9, 13, 0.78);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(15px);
}
.stream-control {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 9px;
  color: #b6bac5;
}
.stream-control:focus-within { background: rgba(232, 255, 71, 0.09); }
.stream-control > span {
  padding-left: 2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stream-control select,
.quality-trigger {
  width: 100%;
  min-width: 0;
  padding: 3px 20px 3px 2px;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.stream-control select:disabled { cursor: wait; opacity: 0.52; }
.quality-trigger {
  border: 0;
  text-align: left;
}
.quality-trigger:disabled { cursor: wait; opacity: 0.52; }
.quality-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 11px);
  right: -6px;
  display: grid;
  width: 132px;
  max-height: min(260px, 54vh);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(17, 19, 26, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}
.quality-menu[hidden] { display: none; }
.quality-option {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d5d7dd;
  cursor: pointer;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
}
.quality-option:hover,
.quality-option[aria-selected="true"] { background: rgba(232, 255, 71, 0.1); color: var(--accent); }

.player-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 64px 28px 28px;
  background: rgba(5, 6, 9, 0.82);
  color: #e8e9ed;
  text-align: center;
}
.player-overlay[hidden] { display: none; }
.player-overlay[data-ready="true"] { cursor: pointer; }
.player-overlay[data-ready="true"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -5px;
}
.player-overlay strong { font-size: 16px; }
.player-overlay > span:last-of-type { max-width: 360px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.ready-icon, .error-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.ready-icon { background: var(--accent); color: var(--accent-dark); }
.error-icon { border: 1px solid rgba(255, 107, 107, 0.4); color: var(--danger); }
.retry-button {
  margin-top: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.player-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 20px 20px 16px; }
.player-meta h2 { margin: 5px 0; font-size: 18px; letter-spacing: -0.025em; }
.player-meta p { margin: 0; color: var(--muted); font-size: 12px; }
.direct-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(232, 255, 71, 0.22);
  border-radius: 999px;
  color: #dceca3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-line { display: flex; align-items: center; gap: 8px; padding: 10px 20px 12px; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.status-line > span:first-child { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #858a98; }
.status-line[data-state="ready"] > span:first-child, .status-line[data-state="playing"] > span:first-child { background: var(--accent); }
.status-line[data-state="error"] > span:first-child { background: var(--danger); }

.episode-section { padding: 34px 2px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; }
.section-heading h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -0.04em; }
.episode-count { color: var(--muted); font-size: 10px; }
.episode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.episode-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.episode-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.active-episode { border-color: rgba(232, 255, 71, 0.3); background: linear-gradient(110deg, rgba(232, 255, 71, 0.08), rgba(255, 255, 255, 0.025)); }
.episode-number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 800; }
.episode-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.episode-copy strong, .episode-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-copy strong { font-size: 13px; }
.episode-copy small { color: var(--muted); font-size: 10px; }
.play-glyph { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: #c9ccd5; font-size: 9px; }
.active-episode .play-glyph { background: var(--accent); color: var(--accent-dark); }
.footnote { margin: 16px 4px 0; color: #737887; font-size: 10px; line-height: 1.6; }

.tour-layer[hidden] { display: none; }
.tour-layer { position: fixed; z-index: 100; inset: 0; }
.tour-scrim { position: absolute; inset: 0; background: rgba(2, 3, 5, 0.28); backdrop-filter: blur(1.5px); }
.tour-highlight {
  position: fixed;
  z-index: 101;
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(2, 3, 5, 0.73), 0 0 30px rgba(232, 255, 71, 0.32);
  pointer-events: none;
  transition: top 220ms ease, left 220ms ease, width 220ms ease, height 220ms ease;
}
.tour-card {
  position: fixed;
  z-index: 102;
  width: min(310px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #171a21;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}
.tour-step { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.tour-card h2 { margin: 8px 0 7px; font-size: 18px; letter-spacing: -0.03em; }
.tour-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; }
.tour-actions button { min-height: 40px; padding: 9px 15px; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 800; }
.tour-skip { border: 0; background: transparent; color: #afb3be; }
.tour-next { border: 0; background: var(--accent); color: var(--accent-dark); }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .app-shell { padding-inline: 12px; }
  .home-view { padding-top: 24px; }
  .catalog-hero { padding: 24px 20px; border-radius: 19px; }
  .catalog-hero h1 { font-size: 37px; }
  .cinema-grid { grid-template-columns: 1fr; gap: 11px; }
  .cinema-card { padding: 14px; border-radius: 17px; }
  .series-card-copy { min-height: 110px; }
  .hero { padding-top: 36px; }
  .series-switcher { align-items: stretch; flex-direction: column; gap: 8px; }
  .series-switcher label { flex-basis: auto; }
  .audio-summary { padding: 0 2px; }
  .player-card { border-radius: 17px; }
  .stream-controls {
    top: 8px;
    right: 8px;
    left: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stream-control { padding-inline: 5px; }
  .stream-control > span { font-size: 7px; }
  .stream-control select { font-size: 10px; }
  .player-overlay { padding: 61px 18px 20px; }
  .player-overlay strong { font-size: 14px; }
  .player-overlay > span:last-of-type { font-size: 10px; }
  .player-meta { align-items: center; padding-inline: 15px; }
  .status-line { padding-inline: 15px; }
  .episode-grid {
    grid-auto-columns: minmax(220px, 76vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .episode-grid::-webkit-scrollbar { display: none; }
  .episode-card { scroll-snap-align: start; }
}
@media (max-width: 390px) {
  .catalog-hero h1 { font-size: 32px; }
  .cinema-heading h2 { font-size: 16px; }
  .hero h1 { font-size: 36px; }
  .direct-badge { display: none; }
  .stream-control > span { letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 1.8s; }
  .episode-card, .tour-highlight { transition: none; }
}

/* Reference-faithful mobile catalogue surface: dark shelves, snap-scrolling picks, and a fixed nav. */
:root {
  --background: #0b0d10;
  --surface: #1b1e24;
  --surface-strong: #282c34;
  --foreground: #f7f7f8;
  --muted: #9b9ea7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d7f34b;
  --accent-dark: #111500;
  --orange: #f05a28;
  --orange-soft: rgba(240, 90, 40, 0.14);
}

body { background: #090a0d; }
.app-shell {
  width: min(100%, 520px);
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  background: #1b1e24;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.28);
}
.topbar {
  min-height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 15px 0;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(27, 30, 36, 0.92);
}
.brand { gap: 8px; font-size: 14px; }
.brand-mark { width: 27px; height: 27px; border-radius: 8px 8px 8px 2px; font-size: 13px; }
.live-pill { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 9px; }
.live-dot { width: 6px; height: 6px; }
.home-view { padding: 0 0 108px; }
.home-toolbar { padding: 10px 0 0; }
.catalog-search {
  display: flex;
  height: 38px;
  margin: 0 14px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  background: #2a2e36;
}
.search-icon { color: #a7aab2; font-size: 20px; line-height: 1; transform: translateY(-1px); }
.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 11px;
}
.catalog-search input::placeholder { color: #8f929a; }
.search-clear {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d3d5dc;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.home-tabs {
  display: flex;
  gap: 18px;
  padding: 13px 14px 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  white-space: nowrap;
}
.home-tabs::-webkit-scrollbar { display: none; }
.home-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  color: #a9acb4;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.home-tab.is-active { color: #fff; font-weight: 800; }
.home-tab.is-active::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: translateX(50%);
}
.home-status-row { display: flex; min-height: 25px; align-items: center; justify-content: space-between; padding: 1px 14px 0; }
.home-status-row .catalog-status { margin: 0; color: #7f838d; font-size: 8px; }
.home-status-row .catalog-status > span:first-child { width: 5px; height: 5px; }
.home-status-row .catalog-retry { margin: 0; padding: 5px 8px; border-radius: 7px; font-size: 9px; }
.featured-section { padding: 7px 0 0; }
.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 11px;
}
.home-section-heading > div > span,
.featured-heading > div > span {
  color: #f4f5f6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}
.home-section-heading h1,
.home-section-heading h2 {
  margin: 4px 0 0;
  color: #f4f5f6;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.featured-heading h1 { display: none; }
.featured-count, .home-section-meta { color: #8f929a; font-size: 9px; white-space: nowrap; }
.featured-track {
  display: flex;
  gap: 12px;
  padding: 0 14px 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.featured-track::-webkit-scrollbar { display: none; }
.featured-card {
  position: relative;
  flex: 0 0 77%;
  aspect-ratio: 0.78;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #101216;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: center;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}
.featured-card:active { transform: scale(0.985); }
.featured-card:hover { border-color: rgba(215, 243, 75, 0.58); }
.featured-cover, .featured-cover img { display: block; width: 100%; height: 100%; }
.featured-cover img { object-fit: cover; }
.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.84) 100%);
}
.featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%, -50%);
}
.featured-copy { position: absolute; right: 14px; bottom: 14px; left: 14px; display: grid; gap: 4px; }
.featured-copy small { color: rgba(255, 255, 255, 0.72); font-size: 9px; font-weight: 700; }
.featured-copy strong { max-width: 92%; font-size: 20px; letter-spacing: -0.04em; line-height: 1.02; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.featured-dots { display: flex; min-height: 15px; justify-content: center; gap: 5px; padding-top: 7px; }
.featured-dot { width: 19px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); transition: background 180ms ease, width 180ms ease; }
.featured-dot.is-active { width: 27px; background: var(--accent); }
.home-collection { padding-top: 13px; }
.cinema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 10px;
  padding: 0 14px;
}
.series-card {
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.series-card:hover { border-color: transparent; box-shadow: none; transform: translateY(-2px); }
.series-cover {
  aspect-ratio: 0.73;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.series-card-copy { min-height: 0; padding: 8px 1px 0; }
.series-card-copy strong { font-size: 12px; line-height: 1.24; }
.series-meta { margin-top: 5px; color: #d0d1d6; font-size: 9px; }
.series-badges { margin-top: 6px; padding-top: 0; gap: 4px; }
.series-badges span { padding: 3px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); color: #b4b6bd; font-size: 8px; font-weight: 600; }
.series-badges .preview-limit { background: rgba(215, 243, 75, 0.17); color: #e4f7a3; }
.category-shelf { min-width: 0; grid-column: 1 / -1; }
.shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.shelf-heading h3 { margin: 0; color: #f2f3f4; font-size: 15px; letter-spacing: -0.02em; }
.shelf-heading span { color: #8f929a; font-size: 9px; }
.category-track { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x pan-y; }
.category-track::-webkit-scrollbar { display: none; }
.category-track .series-card { flex: 0 0 125px; scroll-snap-align: start; }
.home-empty-state { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 6px; padding: 20px; color: #aeb1b9; text-align: center; }
.home-empty-state strong { color: #f4f5f6; font-size: 15px; }
.home-empty-state span { font-size: 11px; }
.home-view.is-profile .home-toolbar,
.home-view.is-profile .home-status-row,
.home-view.is-profile .featured-section,
.home-view.is-profile .home-collection,
.home-view.is-profile .home-empty-state,
.home-view.is-profile .mini-now-playing { display: none; }
.profile-view { display: grid; gap: 16px; padding: 30px 14px 32px; }
.profile-identity-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(215, 243, 75, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.profile-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-identity-copy { display: grid; min-width: 0; gap: 4px; }
.profile-kicker { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.profile-identity-copy h1 { margin: 2px 0 2px; color: var(--foreground); font-size: 24px; letter-spacing: -0.045em; line-height: 1; }
.profile-identity-copy > strong { overflow: hidden; color: var(--foreground); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity-copy > span:not(.profile-kicker) { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-uid-row { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.profile-uid-row strong { color: var(--foreground); font-size: 11px; font-weight: 750; }
.profile-placeholder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 15px;
  border: 1px solid rgba(240, 90, 40, 0.25);
  border-radius: 13px;
  background: rgba(240, 90, 40, 0.07);
}
.profile-placeholder-mark { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--orange); color: #1b0b05; font-size: 20px; font-weight: 500; line-height: 1; }
.profile-placeholder h2 { margin: 6px 0 5px; color: var(--foreground); font-size: 15px; letter-spacing: -0.02em; }
.profile-placeholder p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mini-now-playing {
  position: fixed;
  z-index: 22;
  right: 50%;
  bottom: calc(68px + env(safe-area-inset-bottom));
  display: flex;
  width: min(92vw, 470px);
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(29, 32, 38, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transform: translateX(50%);
}
.mini-now-art { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #424c25); }
.mini-now-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.mini-now-copy strong, .mini-now-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-now-copy strong { color: #f2f3f4; font-size: 11px; }
.mini-now-copy small { color: #a8abb4; font-size: 9px; }
.mini-now-play { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #454a54; color: #fff; font-size: 10px; }
.home-bottom-nav {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: 0;
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 13, 0.97);
  transform: translateX(50%);
}
.bottom-nav-item { display: grid; min-width: 0; justify-items: center; gap: 3px; padding: 2px 0; border: 0; background: transparent; color: #686b74; cursor: pointer; font-size: 8px; font-weight: 600; }
.bottom-nav-item.is-active { color: #f7f7f8; }
.nav-icon { display: grid; width: 22px; height: 22px; place-items: center; color: currentColor; font-size: 19px; line-height: 1; }
.bottom-nav-item.is-active .nav-icon { color: var(--accent); text-shadow: 0 0 12px rgba(215, 243, 75, 0.35); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.player-view { padding-inline: 14px; }

@media (max-width: 390px) {
  .home-tabs { gap: 16px; }
  .featured-card { flex-basis: 82%; }
  .featured-copy strong { font-size: 18px; }
  .cinema-grid { gap: 18px 8px; padding-inline: 12px; }
  .home-section-heading { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card, .featured-dot, .series-card { transition: none; }
}

/* Playback controls stay below the video so the native fullscreen affordance remains clear. */
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.menu-button,
.theme-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 19, 26, 0.72);
  color: var(--foreground);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.menu-button { width: 36px; padding-inline: 0; font-size: 18px; line-height: 1; }
.menu-button[aria-expanded="true"] { border-color: rgba(232, 255, 71, 0.55); color: var(--accent); }
.theme-toggle { min-width: 62px; color: var(--muted); }
.theme-toggle-icon { color: var(--accent); font-size: 15px; line-height: 1; }
.home-preferences {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 0;
}
.country-picker {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #252930;
}
.country-picker-icon { color: var(--accent); font-size: 15px; line-height: 1; }
.country-picker select {
  min-width: 0;
  max-width: 220px;
  padding: 0 20px 0 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
}
.country-hint { min-width: 0; overflow: hidden; color: #8f929a; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.player-tools {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border-top: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.76);
}
.player-tools .stream-controls {
  top: auto;
  right: auto;
  left: auto;
  flex: 1 1 auto;
  align-self: stretch;
  background: rgba(8, 9, 13, 0.78);
}
.fullscreen-button {
  display: inline-flex;
  min-width: 94px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(232, 255, 71, 0.28);
  border-radius: 10px;
  background: rgba(232, 255, 71, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}
.fullscreen-button[aria-pressed="true"] { background: var(--accent); color: var(--accent-dark); }
.player-meta-actions { display: flex; min-width: 0; align-items: flex-end; gap: 8px; }
.episode-picker { display: grid; min-width: 124px; gap: 3px; }
.episode-picker > span { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.episode-picker select {
  max-width: 180px;
  padding: 7px 25px 7px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: rgba(17, 19, 26, 0.84);
  color: var(--foreground);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
}
.episode-picker select:disabled { cursor: default; opacity: 0.7; }
.player-footnote { margin-top: 16px; }

.cinema-drawer { position: fixed; z-index: 80; inset: 0; pointer-events: none; }
.cinema-drawer.is-open { pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.48); opacity: 0; transition: opacity 220ms ease; }
.cinema-drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(86vw, 360px);
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 17px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #171a20;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.35);
  transform: translateX(-104%);
  transition: transform 220ms ease;
}
.cinema-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-kicker { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.drawer-header h2 { margin: 5px 0 0; color: var(--foreground); font-size: 24px; letter-spacing: -0.04em; }
.drawer-close { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--foreground); cursor: pointer; font-size: 22px; line-height: 1; }
.drawer-copy { margin: 14px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.cinema-drawer-list { display: grid; gap: 9px; }
.drawer-cinema-item { display: flex; min-height: 62px; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.035); color: var(--foreground); cursor: pointer; text-align: left; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.drawer-cinema-item:hover, .drawer-cinema-item.is-active { border-color: rgba(215, 243, 75, 0.52); background: rgba(215, 243, 75, 0.09); transform: translateX(2px); }
.drawer-cinema-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(215, 243, 75, 0.14); color: var(--accent); font-size: 16px; }
.drawer-cinema-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.drawer-cinema-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-cinema-copy small { color: var(--muted); font-size: 10px; }
.drawer-cinema-arrow { color: var(--muted); font-size: 22px; line-height: 1; }

.player-frame:fullscreen { width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
.player-frame:fullscreen .video { width: 100%; height: 100%; object-fit: cover; }
.video:fullscreen { width: 100vw; height: 100vh; height: 100dvh; object-fit: cover; background: #000; }
.video:-webkit-full-screen { width: 100vw; height: 100vh; height: 100dvh; object-fit: cover; background: #000; }

html.player-fullscreen,
html.player-fullscreen body { overflow: hidden; }
.player-frame.is-app-fullscreen {
  position: fixed;
  z-index: 120;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}
.player-frame.is-app-fullscreen .video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-frame.is-app-fullscreen .player-overlay { border-radius: 0; }
.player-frame.is-app-fullscreen + .player-tools { display: none; }

html[data-theme="light"] {
  --background: #f2f4f6;
  --surface: #ffffff;
  --surface-strong: #eef1f3;
  --foreground: #111318;
  --muted: #5f6671;
  --line: rgba(17, 19, 24, 0.14);
  color-scheme: light;
}
html[data-theme="light"] body { background: #e8ecef; color: #111318; }
html[data-theme="light"] .app-shell { background: #ffffff; box-shadow: 0 0 60px rgba(40, 47, 56, 0.14); }
html[data-theme="light"] .topbar { border-bottom-color: rgba(17, 19, 24, 0.1); background: rgba(255, 255, 255, 0.94); }
html[data-theme="light"] .menu-button,
html[data-theme="light"] .theme-toggle { border-color: rgba(17, 19, 24, 0.14); background: #f0f2f4; color: #111318; }
html[data-theme="light"] .live-pill { background: #eef1f3; color: #242932; }
html[data-theme="light"] .catalog-search { border-color: rgba(17, 19, 24, 0.08); background: #eef1f3; }
html[data-theme="light"] .catalog-search input { color: #111318; }
html[data-theme="light"] .catalog-search input::placeholder { color: #747b86; }
html[data-theme="light"] .home-tab { color: #626a75; }
html[data-theme="light"] .home-tab.is-active { color: #111318; }
html[data-theme="light"] .country-picker { border-color: rgba(17, 19, 24, 0.12); background: #f0f2f4; }
html[data-theme="light"] .country-picker select { color: #111318; }
html[data-theme="light"] .home-section-heading > div > span,
html[data-theme="light"] .home-section-heading h1,
html[data-theme="light"] .home-section-heading h2,
html[data-theme="light"] .shelf-heading h3,
html[data-theme="light"] .series-card-copy strong,
html[data-theme="light"] .home-empty-state strong { color: #111318; }
html[data-theme="light"] .series-meta { color: #4e5661; }
html[data-theme="light"] .series-badges span { background: #e9edf0; color: #5c6470; }
html[data-theme="light"] .mini-now-playing { border-color: rgba(17, 19, 24, 0.12); background: rgba(255, 255, 255, 0.97); box-shadow: 0 14px 36px rgba(30, 38, 48, 0.2); }
html[data-theme="light"] .mini-now-copy strong { color: #111318; }
html[data-theme="light"] .home-bottom-nav { border-top-color: rgba(17, 19, 24, 0.12); background: rgba(255, 255, 255, 0.98); }
html[data-theme="light"] .bottom-nav-item { color: #7b838e; }
html[data-theme="light"] .bottom-nav-item.is-active { color: #111318; }
html[data-theme="light"] .profile-identity-card { border-color: rgba(17, 19, 24, 0.12); background: linear-gradient(135deg, rgba(215, 243, 75, 0.25), #f4f6f7); }
html[data-theme="light"] .profile-identity-copy h1,
html[data-theme="light"] .profile-identity-copy > strong,
html[data-theme="light"] .profile-uid-row strong,
html[data-theme="light"] .profile-placeholder h2 { color: #111318; }
html[data-theme="light"] .profile-placeholder { border-color: rgba(240, 90, 40, 0.28); background: rgba(240, 90, 40, 0.08); }
html[data-theme="light"] .player-card { border-color: rgba(17, 19, 24, 0.14); background: #ffffff; box-shadow: 0 20px 50px rgba(40, 47, 56, 0.12); }
html[data-theme="light"] .player-tools { background: #f1f3f5; }
html[data-theme="light"] .player-tools .stream-controls { border-color: rgba(17, 19, 24, 0.14); background: #ffffff; }
html[data-theme="light"] .stream-control { color: #5f6671; }
html[data-theme="light"] .stream-control select,
html[data-theme="light"] .quality-trigger,
html[data-theme="light"] .episode-picker select { color: #111318; }
html[data-theme="light"] .quality-menu { border-color: rgba(17, 19, 24, 0.14); background: #ffffff; box-shadow: 0 18px 50px rgba(30, 38, 48, 0.2); }
html[data-theme="light"] .quality-option { color: #262c34; }
html[data-theme="light"] .player-meta h2 { color: #111318; }
html[data-theme="light"] .drawer-panel { background: #ffffff; }
html[data-theme="light"] .drawer-cinema-item { background: #f4f6f7; color: #111318; }
html[data-theme="light"] .drawer-close { background: #f0f2f4; color: #111318; }

@media (max-width: 600px) {
  .topbar-actions { gap: 4px; }
  .theme-toggle { min-width: 35px; padding-inline: 7px; }
  .theme-toggle-label { display: none; }
  .theme-toggle span:last-child { display: none; }
  .home-preferences { align-items: stretch; flex-direction: column; gap: 5px; }
  .country-picker select { max-width: none; flex: 1; }
  .country-hint { padding-left: 3px; }
  .player-tools { align-items: stretch; flex-direction: column; }
  .player-tools .stream-controls { width: 100%; }
  .fullscreen-button { min-height: 36px; }
  .player-meta { align-items: flex-start; }
  .player-meta-actions { align-items: flex-end; flex-direction: column; }
  .episode-picker { min-width: 132px; }
  .episode-picker select { max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-scrim, .drawer-cinema-item { transition: none; }
}

/* Keep the Telegram webview at a fixed scale while preserving horizontal card shelves. */
html, body { overscroll-behavior-x: none; }
body { touch-action: pan-y; }
.featured-track, .category-track, .home-tabs { touch-action: pan-x pan-y; }
.series-card { display: flex; flex-direction: column; }
.series-card-main {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.series-card-main:hover .series-cover,
.series-card-main:focus-visible .series-cover { border-color: rgba(215, 243, 75, 0.58); }
.series-card-footer { display: flex; min-width: 0; align-items: center; gap: 6px; }
.series-card-footer .series-badges { min-width: 0; flex: 1; }
.series-info-button {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #241205;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(240, 90, 40, 0.28);
}
.series-info-button:hover, .series-info-button:focus-visible { background: #ff8a5e; }
.series-info-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: end center;
  pointer-events: none;
}
.series-info-modal.is-open { pointer-events: auto; }
.series-info-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}
.series-info-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(78vh, 620px);
  padding: 20px 17px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #171a20;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.36);
}
.series-info-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.series-info-kicker { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.series-info-header h2 { margin: 6px 0 0; color: var(--foreground); font-size: 24px; letter-spacing: -0.04em; line-height: 1.05; }
.series-info-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--foreground); cursor: pointer; font-size: 22px; line-height: 1; }
.series-info-description { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.series-info-facts { display: grid; margin-top: 17px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.series-info-facts span { display: grid; min-width: 0; gap: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.series-info-facts small { color: var(--muted); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.series-info-facts strong { overflow: hidden; color: var(--foreground); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.series-info-section { margin-top: 20px; }
.series-info-section h3 { margin: 0 0 9px; color: var(--foreground); font-size: 12px; }
.series-info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.series-info-tags span { padding: 6px 9px; border: 1px solid rgba(240, 90, 40, 0.36); border-radius: 999px; background: var(--orange-soft); color: #ffb08f; font-size: 10px; font-weight: 750; }
html[data-theme="light"] .series-info-panel { background: #ffffff; box-shadow: 0 -18px 60px rgba(40, 47, 56, 0.2); }
html[data-theme="light"] .series-info-close { background: #f0f2f4; color: #111318; }
html[data-theme="light"] .series-info-facts span { background: #f4f6f7; }
html[data-theme="light"] .series-info-facts strong,
html[data-theme="light"] .series-info-header h2,
html[data-theme="light"] .series-info-section h3 { color: #111318; }

@media (prefers-reduced-motion: reduce) {
  .series-card-main, .series-info-button { transition: none; }
}

/* Brand palette: lemon signal, black surface, Reuters orange for secondary actions. */
.live-pill { border-color: rgba(240, 90, 40, 0.28); }
.selection-badges span:last-child,
.direct-badge {
  border-color: rgba(240, 90, 40, 0.34);
  color: #ff9a72;
}
.fullscreen-button { border-color: rgba(240, 90, 40, 0.48); color: #ff9167; }
.fullscreen-button[aria-pressed="true"] { background: var(--accent); color: var(--accent-dark); }
.home-tab.is-active::after,
.featured-dot.is-active,
.bottom-nav-item.is-active .nav-icon { box-shadow: 0 0 12px rgba(215, 243, 75, 0.28); }
html[data-theme="light"] .selection-badges span:last-child,
html[data-theme="light"] .direct-badge,
html[data-theme="light"] .fullscreen-button { color: #c9471d; }
