@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@500;700;900&family=Noto+Sans+Arabic:wght@500;700&family=Noto+Sans+JP:wght@500;700;900&display=swap");

:root {
  --font-sans: "Manrope", "Noto Sans SC", "Noto Sans JP", "Noto Sans Arabic",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bg: #090a0f;
  --bg-soft: #12131a;
  --panel: #1a1714;
  --panel-deep: #100e0c;
  --line: #3a3428;
  --line-soft: #2a241c;
  --text: #f7f2e8;
  --muted: #b8afa0;
  --rose: #ff4d6d;
  --rose-deep: #c9184a;
  --gold: #e8c872;
  --teal: #6fd6c2;
  --white: #fff;
  --shadow: 0 18px 42px #00000073;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.45;
  background:
    radial-gradient(ellipse at 50% -10%, #ff4d6d22, transparent 42%),
    radial-gradient(ellipse at 100% 20%, #e8c87214, transparent 36%),
    var(--bg);
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
.player-title h1,
.handoff-inner h2,
.hero-copy h2,
.final-handoff h2 {
  font-family: var(--font-display);
}

#app {
  min-height: 100dvh;
  padding-bottom: 88px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.trust-bar {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose));
  color: #fff;
  text-transform: uppercase;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
}

.trust-bar i {
  background: #ffffff8c;
  border-radius: 50%;
  flex: none;
  width: 4px;
  height: 4px;
}

.trust-bar span {
  white-space: nowrap;
}

.topbar {
  z-index: 40;
  padding: 10px 18px;
  padding-top: calc(10px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #090a0ff0;
  display: block;
  position: sticky;
  top: 0;
}

.topbar-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  display: flex;
}

.brand {
  flex: auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: inline-flex;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  width: 36px;
  height: 36px;
  overflow: hidden;
  box-shadow: 0 6px 18px #ff4d6d47;
}

.brand-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  overflow: hidden;
}

.brand-name em {
  color: var(--rose);
  font-style: normal;
}

.lang-switch {
  border: 1px solid var(--line);
  background: #ffffff0d;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: fit-content;
  max-width: min(100%, 920px);
  margin: 9px auto 0;
  padding: 4px 6px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.lang-switch::-webkit-scrollbar {
  display: none;
}

.lang-btn {
  min-width: 44px;
  height: 28px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.lang-btn:hover {
  color: var(--text);
  background: #ff4d6d1a;
}

.lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 6px 16px #ff4d6d40;
}

.player-section {
  background: linear-gradient(180deg, #16120e 0%, var(--bg) 44%, var(--bg) 100%);
  padding: 26px 0 40px;
  position: relative;
  overflow: hidden;
}

.player-section::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #ff4d6d1f, transparent 50%),
    url("./assets/splash.webp") center top / cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.home-player-layout,
.player-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.player-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
}

.live-pill {
  color: #fff;
  background: linear-gradient(135deg, #ff6b81, var(--rose-deep));
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 20px #ff4d6d33;
}

.episode-count {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-ep-stack,
.hero-ep-stack-centered {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.hero-copy-top {
  order: -1;
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin: 0 auto;
}

.player-stage,
.home-ep-stage {
  aspect-ratio: 9 / 16;
  width: min(100%, 420px);
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #000;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.home-ep-stage {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.cover-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050408;
}

.cover-art {
  object-fit: cover;
  object-position: center center;
  will-change: transform, filter;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: center center;
}

.cover-art-back {
  filter: saturate(1.25) contrast(1.12) brightness(0.72);
  opacity: 0.9;
  transform: scale(1.06);
  animation: 7.5s ease-in-out infinite alternate cover-idle-back;
}

.cover-art-front {
  filter: saturate(1.15) contrast(1.1) brightness(1.05);
  transform: scale(1.02);
  -webkit-mask-image: radial-gradient(92% 82% at 50% 50%, #000 52%, #0000 100%);
  mask-image: radial-gradient(92% 82% at 50% 50%, #000 52%, #0000 100%);
  animation: 6s ease-in-out infinite alternate cover-idle;
}

@keyframes cover-idle {
  0% {
    transform: scale(1.02) translateZ(0);
  }
  to {
    transform: scale(1.06) translateZ(0);
  }
}

@keyframes cover-idle-back {
  0% {
    transform: scale(1.06) translateZ(0);
  }
  to {
    transform: scale(1.1) translateZ(0);
  }
}

.cover-moon,
.cover-embers,
.cover-sweep,
.cover-flash,
.cover-grain,
.cover-vignette,
.cover-heat {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cover-moon {
  opacity: 0.4;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 78% 14%, #ff3c468c, #0000 28%),
    radial-gradient(circle at 72% 18%, #ff8c3c38, #0000 40%);
}

.is-cinematic .cover-moon {
  animation: 12s ease-in-out forwards moon-pulse;
}

@keyframes moon-pulse {
  0%,
  5% {
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  30% {
    opacity: 0.25;
  }
  55% {
    opacity: 0.7;
  }
  75% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.95;
  }
  to {
    opacity: 0.4;
  }
}

.cover-embers {
  overflow: hidden;
}

.cover-embers i {
  opacity: 0;
  background: radial-gradient(circle, #ffe1a8 0%, #ff4d6d 45%, #0000 70%);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: 4.8s linear infinite ember-rise;
  position: absolute;
  bottom: -8%;
  box-shadow: 0 0 8px #ff4d6dcc;
}

.cover-embers i:nth-child(1) {
  left: 12%;
  animation-duration: 5.2s;
  animation-delay: 0.1s;
}
.cover-embers i:nth-child(2) {
  left: 28%;
  width: 3px;
  height: 3px;
  animation-duration: 4.4s;
  animation-delay: 0.8s;
}
.cover-embers i:nth-child(3) {
  left: 41%;
  animation-duration: 5.8s;
  animation-delay: 1.4s;
}
.cover-embers i:nth-child(4) {
  left: 55%;
  width: 5px;
  height: 5px;
  animation-duration: 4.1s;
  animation-delay: 0.4s;
}
.cover-embers i:nth-child(5) {
  left: 67%;
  animation-duration: 5.5s;
  animation-delay: 1.9s;
}
.cover-embers i:nth-child(6) {
  left: 76%;
  width: 3px;
  height: 3px;
  animation-duration: 4.7s;
  animation-delay: 0.6s;
}
.cover-embers i:nth-child(7) {
  left: 84%;
  animation-duration: 5.1s;
  animation-delay: 2.2s;
}
.cover-embers i:nth-child(8) {
  left: 18%;
  width: 2px;
  height: 2px;
  animation-duration: 6s;
  animation-delay: 1.1s;
}

@keyframes ember-rise {
  0% {
    opacity: 0;
    transform: translateZ(0) scale(0.6);
  }
  12% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(18px, -120vh) scale(1.2);
  }
}

.cover-sweep {
  mix-blend-mode: screen;
  opacity: 0;
  background: linear-gradient(
    115deg,
    #0000 35%,
    #ffdcb400 42%,
    #fff0dc59 50%,
    #ff788c2e 54%,
    #0000 62%
  );
  inset: -20%;
  transform: translate(-30%, 10%);
}

.is-cinematic .cover-sweep {
  animation: 12s ease-in-out forwards sweep-pass;
}

@keyframes sweep-pass {
  0%,
  8% {
    opacity: 0;
    transform: translate(-40%, 12%);
  }
  14% {
    opacity: 0.9;
  }
  22% {
    opacity: 0;
    transform: translate(35%, -8%);
  }
  48% {
    opacity: 0;
    transform: translate(-40%, 12%);
  }
  56% {
    opacity: 0.75;
  }
  64% {
    opacity: 0;
    transform: translate(40%, -10%);
  }
  to {
    opacity: 0;
  }
}

.cover-flash {
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle at 50% 40%,
    #ffffff8c,
    #ff465a33 40%,
    #0000 70%
  );
}

.is-cinematic .cover-flash {
  animation: 1.1s ease-out forwards impact-flash;
}

@keyframes impact-flash {
  0% {
    opacity: 0.95;
  }
  35% {
    opacity: 0.35;
  }
  to {
    opacity: 0;
  }
}

.cover-grain {
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: 0.18s steps(2, end) infinite grain-flicker;
}

@keyframes grain-flicker {
  0% {
    transform: translateZ(0);
  }
  to {
    transform: translate(-1.5%, 1%);
  }
}

.cover-vignette {
  background:
    radial-gradient(at 50% 38%, #0000 18%, #00000047 62%, #000000c7 100%),
    linear-gradient(#00000080 0%, #0000 26% 52%, #000000a6 100%);
}

.cover-heat {
  opacity: 0.55;
  mix-blend-mode: screen;
  background:
    linear-gradient(#0000 40%, #78001e59 78%, #3c000a8c 100%),
    radial-gradient(at 50% 100%, #ff284659, #0000 55%);
}

.cover-video {
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  background: #050408;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.is-playing .cover-video,
.is-alive .cover-video {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
}

.player-error {
  z-index: 5;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 64px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #000000b8;
  color: #ffd0d8;
  font-size: 0.75rem;
  font-weight: 700;
}

.player-scrim {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(#0000008c, #00000033 34%, #0000 58% 100%);
  position: absolute;
  inset: 0;
}

.player-top {
  z-index: 3;
  pointer-events: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.preview-tag {
  color: #fff;
  background: #0000009e;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 800;
}

.player-title {
  z-index: 3;
  text-align: left;
  text-shadow: 0 2px 14px #000000b3;
  pointer-events: none;
  padding: 0 16px;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
}

.show-genre {
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  animation: 1s ease-out both title-glow;
}

.player-title h1 {
  color: #fff;
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  line-height: 1.12;
  animation: 1s ease-out both title-slam;
}

.player-sub {
  color: #eadfe7;
  max-width: 330px;
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  animation: 1s ease-out 0.18s both title-glow;
}

@keyframes title-slam {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes title-glow {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-play {
  z-index: 6;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
  background: #0504082e;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  position: absolute;
  inset: 0;
}

.cover-play-orb {
  color: #2b0a14;
  background: linear-gradient(135deg, #ffe0e8, #ff4d6d 55%, #c9184a);
  border-radius: 50%;
  place-items: center;
  width: 78px;
  height: 78px;
  animation: 1.6s ease-out infinite play-heartbeat;
  display: grid;
  box-shadow: 0 0 #ff4d6d73, 0 16px 40px #00000073;
}

.cover-play-orb svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

@keyframes play-heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 0 #ff4d6d80, 0 16px 40px #00000073;
  }
  40% {
    transform: scale(1.08);
    box-shadow: 0 0 0 16px #ff4d6d00, 0 18px 44px #00000080;
  }
  to {
    transform: scale(1);
    box-shadow: 0 0 #ff4d6d00, 0 16px 40px #00000073;
  }
}

.preview-hook {
  color: #ffd9e1;
  max-width: 240px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.handoff-sheet {
  z-index: 6;
  position: absolute;
  inset: 0;
  background: linear-gradient(#000000b3, #10080cd9 45%, #090a0ff2);
  display: grid;
  place-items: center;
  padding: 24px;
}

.handoff-inner {
  text-align: center;
  max-width: 280px;
}

.handoff-kicker {
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.handoff-inner h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.handoff-inner p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 0.84rem;
}

.handoff-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 0.18s, border-color 0.18s, box-shadow 0.18s,
    transform 0.18s;
  display: inline-flex;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 8px 22px #ff4d6d4d;
}

.btn-ghost {
  color: var(--text);
  background: #ffffff0f;
  border-color: #ffffff38;
}

.btn-lg {
  min-height: 52px;
  font-size: 0.94rem;
}

.hero-copy,
.home-hero-copy {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.section-label {
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.hero-copy h2,
.section-head h2,
.synopsis-copy h2,
.final-handoff h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.16;
}

.hero-copy p:last-child,
.home-hero-copy > p:last-of-type {
  color: var(--muted);
  margin: 10px auto 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.inline-error {
  color: #ffb4c0 !important;
  font-size: 0.8rem !important;
}

.text-link {
  background: none;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  padding: 0;
}

.episodes-section,
.shows-section {
  padding: 28px 0 12px;
}

.section-head {
  margin-bottom: 16px;
}

.episode-rail {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  grid-auto-columns: 132px;
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -18px;
  padding: 2px 18px 8px;
  display: grid;
  overflow-x: auto;
}

.episode-rail::-webkit-scrollbar {
  display: none;
}

.episode-card {
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  appearance: none;
  display: block;
  width: 100%;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.episode-card.is-active {
  border-color: #ff4d6d88;
  box-shadow: 0 10px 28px #ff4d6d33;
  transform: translateY(-2px);
}

.episode-thumb {
  aspect-ratio: 9 / 16;
  background: #000;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.episode-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.episode-thumb i {
  z-index: 2;
  color: #fff;
  background: #0000009e;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  position: absolute;
  top: 8px;
  left: 8px;
}

.episode-card-copy {
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  display: flex;
}

.episode-card-copy strong {
  font-size: 0.8rem;
  line-height: 1.25;
}

.episode-card-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.more-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0000008c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.episode-thumb-more img {
  filter: saturate(0.72) brightness(0.62);
}

.synopsis-section {
  padding: 42px 0;
}

.synopsis-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  display: grid;
}

.synopsis-poster {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: min(100%, 220px);
  box-shadow: var(--shadow);
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  margin: 0 auto;
}

.synopsis-copy h2 {
  font-size: 1.42rem;
}

.synopsis-copy p {
  color: var(--muted);
  margin: 12px 0 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.why-section {
  background: var(--panel-deep);
  padding: 42px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.why-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  display: grid;
}

.why-item {
  border: 1px solid var(--line-soft);
  background: #ffffff06;
  border-radius: 8px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--rose);
  background: #ff4d6d1a;
  border: 1px solid #ff4f7e3d;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-item h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.3;
}

.why-item p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.show-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.show-card {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: 8px;
  min-width: 0;
  display: block;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.show-card:hover {
  transform: translateY(-3px);
  border-color: #ff4d6d55;
}

.show-card > img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
  width: 100%;
}

.show-card-copy {
  flex-direction: column;
  gap: 3px;
  min-height: 94px;
  padding: 12px;
  display: flex;
}

.show-card-copy strong {
  font-size: 0.86rem;
  line-height: 1.28;
}

.show-card-copy small {
  color: var(--muted);
  font-size: 0.7rem;
}

.show-card-copy i {
  color: var(--teal);
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  display: inline-flex;
}

.show-card-copy i svg {
  width: 14px;
  height: 14px;
}

.final-handoff {
  background: linear-gradient(180deg, var(--bg-soft), #1a140e 100%);
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 64px;
}

.final-handoff-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.final-handoff-inner > p:not(.section-label) {
  color: var(--muted);
  margin: 12px auto 22px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer {
  padding: 28px 18px 40px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
  margin: 0 0 8px;
}

.footer-brand em {
  color: var(--rose);
  font-style: normal;
}

.sticky-cta {
  left: 14px;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  min-height: 52px;
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  text-align: center;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  position: fixed;
  cursor: pointer;
  box-shadow: 0 12px 32px #ff4d6d61;
}

.sticky-cta svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.boot-screen {
  background: radial-gradient(ellipse at 50% 20%, #ff4f7e2e, transparent 55%),
    var(--bg);
  place-items: center;
  min-height: 100vh;
  display: grid;
}

.boot-card {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  color: var(--muted);
  font-weight: 700;
}

.boot-card img {
  border-radius: 12px;
  box-shadow: 0 12px 32px #ff4d6d40;
}

.is-playing .cover-art,
.is-alive .cover-art {
  opacity: 0;
}

.cover-play:disabled {
  opacity: 0.85;
  cursor: wait;
}

.is-rtl .player-title,
.is-rtl .episode-card-copy,
.is-rtl .show-card-copy,
.is-rtl .synopsis-copy {
  text-align: right;
}

@media (width >= 720px) {
  .player-head {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-ep-stack,
  .hero-ep-stack-centered {
    gap: 28px;
    max-width: 420px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
  }

  .home-ep-stage {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .home-hero-copy,
  .hero-copy,
  .hero-copy-top {
    text-align: center;
    margin: 0 auto;
    max-width: 420px;
  }

  .hero-copy p:last-child,
  .home-hero-copy > p:last-of-type {
    margin-left: auto;
    margin-right: auto;
  }

  .episode-rail {
    grid-auto-columns: 148px;
  }

  .synopsis-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
  }

  .synopsis-poster {
    width: 100%;
    max-width: 300px;
    margin: 0;
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .why-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .show-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (width >= 900px) {
  .lang-btn {
    min-width: 48px;
  }
}

@media (width <= 359px) {
  .show-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .show-card {
    grid-template-columns: 128px minmax(0, 1fr);
    display: grid;
  }

  .show-card > img {
    height: 100%;
    min-height: 190px;
  }
}

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


/* Respect the HTML hidden attribute over component display rules */
[hidden] {
  display: none !important;
}




/* Episode 1 bilingual subtitles: English above Chinese */
.dual-subs {
  z-index: 9;
  pointer-events: none;
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 58px;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.dual-subs-en,
.dual-subs-zh {
  margin: 0;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  background: #000000b8;
  text-shadow: 0 1px 3px #000d;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
}

.dual-subs-en {
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-family: var(--font-sans);
}

.dual-subs-zh {
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  font-family: "Noto Sans SC", var(--font-sans);
}
