@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #071016;
  --bg-deep: #040a0e;
  --surface: #0c1a22;
  --surface-2: #10232c;
  --line: rgba(174, 228, 246, 0.12);
  --line-strong: rgba(174, 228, 246, 0.22);
  --text: #e9f5f9;
  --muted: #8ba7b4;
  --muted-dim: #6c8794;
  --primary: #19acc8;
  --primary-soft: #afe4f6;
  --primary-deep: #0b6f83;
  --glow: rgba(25, 172, 200, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(25, 172, 200, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, rgba(25, 172, 200, 0.06), transparent 60%);
  pointer-events: none;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #04151a;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.35s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(135deg, #1cb9d6 0%, #0e8ba5 100%);
  border-color: transparent;
  color: #04151a;
  box-shadow: 0 12px 34px -14px var(--glow);
}
.btn-primary:hover {
  box-shadow: 0 18px 44px -14px var(--glow);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-soft);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}
.btn-meta {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
  border-left: 1px solid rgba(4, 21, 26, 0.25);
  padding-left: 10px;
  margin-left: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 22, 0.92);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  flex: none;
}
.brand img {
  filter: drop-shadow(0 0 10px rgba(25, 172, 200, 0.45));
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(7, 16, 22, 0.98);
}
.mobile-menu a {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child {
  border-bottom: 0;
  color: var(--primary-soft);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 60px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(25, 172, 200, 0.22), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-soft);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--primary);
}
.hero-copy h1 {
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 700;
  line-height: 0.98;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-facts {
  display: flex;
  gap: 40px;
  margin: 46px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-facts dt {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}
.hero-facts dd {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
}

.hero-art {
  position: relative;
  min-height: 430px;
}
.poster-fan {
  position: absolute;
  inset: 0;
  display: block;
}
.fan-card {
  position: absolute;
  width: 190px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  aspect-ratio: 2 / 3;
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 10, 14, 0.85));
}
.fan-card:nth-child(1) {
  left: 2%;
  top: 16%;
  transform: rotate(-9deg) scale(0.9);
  z-index: 1;
}
.fan-card:nth-child(2) {
  left: 24%;
  top: 4%;
  transform: rotate(-3deg);
  z-index: 2;
}
.fan-card:nth-child(3) {
  left: 46%;
  top: 0;
  transform: rotate(4deg) scale(1.06);
  z-index: 3;
}
.fan-card:nth-child(4) {
  left: 66%;
  top: 12%;
  transform: rotate(10deg) scale(0.92);
  z-index: 2;
}
.poster-fan:hover .fan-card:nth-child(1) {
  transform: rotate(-13deg) translateY(-6px) scale(0.9);
}
.poster-fan:hover .fan-card:nth-child(2) {
  transform: rotate(-5deg) translateY(-10px);
}
.poster-fan:hover .fan-card:nth-child(3) {
  transform: rotate(5deg) translateY(-14px) scale(1.08);
}
.poster-fan:hover .fan-card:nth-child(4) {
  transform: rotate(14deg) translateY(-8px) scale(0.92);
}
.fan-skeleton {
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker-track span,
.ticker-item {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.ticker-item {
  background: none;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ticker-item::before {
  content: "◆ ";
  color: var(--primary);
}
.ticker-item:hover,
.ticker-item:focus-visible {
  color: var(--text);
  border-color: var(--primary);
}
.ticker-track span::before {
  content: "◆ ";
  color: var(--primary);
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section shell ---------- */
.catalog,
.preview,
.features {
  padding: 92px 0;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}

/* ---------- catalog ---------- */
.catalog-tools {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  max-width: 420px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(25, 172, 200, 0.12);
}
.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search input::placeholder {
  color: var(--muted-dim);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.chip.is-active {
  background: rgba(25, 172, 200, 0.14);
  border-color: var(--primary);
  color: var(--primary-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 18px;
}
/* Cards, genre pills and recommendation tiles are anchors so crawlers can
   follow them, but they have to keep looking like the buttons they replaced. */
a.card,
a.rec-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.ticker-item,
a.genre-tag {
  display: inline-block;
  text-decoration: none;
}

.card {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.6s var(--ease) forwards;
}
@keyframes cardIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-poster {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.9);
}
.card:hover .card-poster img {
  transform: scale(1.06);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(4, 10, 14, 0.66);
  border: 1px solid var(--line-strong);
  color: var(--primary-soft);
}
.card-badge.is-done {
  color: #ffd9a0;
  border-color: rgba(255, 195, 110, 0.35);
}
.card-rating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(4, 10, 14, 0.72);
  color: var(--primary-soft);
  border: 1px solid var(--line);
}
.card-title {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted-dim);
}
.grid-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}
.grid-note {
  color: var(--muted-dim);
  font-size: 14px;
}
.grid-note.is-error {
  color: var(--primary-soft);
}
.note-retry {
  margin-left: 10px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--primary-soft);
  font: inherit;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.note-retry:hover,
.note-retry:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- preview ---------- */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.shots::-webkit-scrollbar {
  height: 6px;
}
.shots::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.shot {
  flex: 0 0 auto;
  width: 232px;
  margin: 0;
  scroll-snap-align: start;
}
.shot-frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--surface), var(--bg-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 6px rgba(7, 16, 22, 0.8);
}
.shot-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
}
.shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.shot-label {
  position: relative;
  font-weight: 600;
  color: var(--primary-soft);
  font-size: 15px;
}
.shot-hint {
  position: relative;
  font-size: 11.5px;
  color: var(--muted-dim);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  word-break: break-all;
  line-height: 1.5;
}
.shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- features ---------- */
.feature-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--surface), rgba(12, 26, 34, 0.35));
  margin-bottom: 22px;
}
.feature-lead h3 {
  font-size: clamp(24px, 3vw, 34px);
}
.feature-lead-copy p {
  margin-top: 14px;
  color: var(--muted);
}
.feature-lead-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-lead-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feature-lead-list li:last-child {
  border-bottom: 0;
}
.feature-lead-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.feature-lead-list span {
  color: var(--muted-dim);
  font-size: 14px;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bento {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.bento:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.bento h3 {
  font-size: 19px;
}
.bento p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.bento-tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.bento-accent {
  background: linear-gradient(150deg, rgba(25, 172, 200, 0.16), rgba(12, 26, 34, 0.9));
  border-color: rgba(25, 172, 200, 0.35);
}
.bento-wide {
  grid-column: span 2;
}
.bento-lines {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bento-lines span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 172, 200, 0.5), rgba(25, 172, 200, 0.05));
}
.bento-lines span:nth-child(1) {
  width: 88%;
}
.bento-lines span:nth-child(2) {
  width: 70%;
}
.bento-lines span:nth-child(3) {
  width: 52%;
}

/* ---------- download ---------- */
.download {
  padding: 20px 0 96px;
}
.download-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 38px 42px;
  border: 1px solid rgba(25, 172, 200, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(25, 172, 200, 0.2), transparent 70%),
    linear-gradient(120deg, var(--surface-2), var(--surface));
  flex-wrap: wrap;
}
.download-copy {
  flex: 1 1 320px;
}
.download-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.download-copy p {
  margin-top: 10px;
  color: var(--muted);
}
.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 62px 0 34px;
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 42ch;
  color: var(--muted-dim);
  font-size: 14px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  font-weight: 600;
}
.footer-col a,
.footer-version {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover {
  color: var(--primary-soft);
}
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 13px;
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 11, 0.78);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  animation: modalIn 0.45s var(--ease);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(4, 10, 14, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-close:hover {
  background: var(--primary);
  color: #04151a;
}
.modal-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
}
.detail-poster {
  position: relative;
  background: var(--bg-deep);
}
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}
.detail-main {
  /* min-width:0 stops the grid column from being widened by the episode and
     recommendation rows, which otherwise get clipped at the card edge. */
  min-width: 0;
  padding: 34px 34px 34px 32px;
}
.detail-main h3 {
  font-size: clamp(24px, 3vw, 32px);
  padding-right: 44px;
  overflow-wrap: break-word;
}
.detail-alt {
  margin-top: 6px;
  color: var(--muted-dim);
  font-size: 14px;
}
.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  min-width: 0;
  list-style: none;
}
.detail-specs li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 35, 44, 0.6);
}
.detail-specs strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-soft);
}
.detail-specs span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.detail-synopsis {
  color: var(--muted);
  font-size: 15px;
  max-height: 210px;
  overflow-y: auto;
  overflow-wrap: break-word;
  padding-right: 12px;
  white-space: pre-line;
}
.detail-subhead {
  margin: 26px 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  font-weight: 600;
}
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.genre-tags span,
.genre-tag {
  font: inherit;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.genre-tag {
  background: none;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.genre-tag:hover,
.genre-tag:focus-visible {
  color: var(--primary-soft);
  border-color: var(--primary);
}
.episodes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 8px;
}
.episodes-list span {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-note {
  margin-top: 14px;
  font-size: 13px;
  overflow-wrap: break-word;
  color: var(--muted-dim);
}
.detail-skeleton {
  padding: 34px;
  color: var(--muted);
}
.detail-applink {
  margin-top: 16px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.detail-recs {
  grid-column: 1 / -1;
  /* Without this the nowrap recommendation rail sets a min-content width of
     about 600px and stretches the whole detail grid past the modal. */
  min-width: 0;
  margin-top: 12px;
}
.rec-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.rec-row::-webkit-scrollbar {
  height: 6px;
}
.rec-row::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.rec-card {
  flex: 0 0 108px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.rec-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.rec-card:hover .rec-poster,
.rec-card:focus-visible .rec-poster {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.rec-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rec-title {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- community popup ---------- */
.wa {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wa[hidden] {
  display: none;
}
.wa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 14, 0.74);
  animation: fadeIn 0.3s var(--ease) both;
}
.wa-card {
  position: relative;
  width: 100%;
  max-width: 392px;
  padding: 32px 26px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: modalIn 0.36s var(--ease) both;
}
.wa-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-soft) 100%);
}
.wa-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.wa-x:hover,
.wa-x:focus-visible {
  background: var(--primary);
  color: #04151a;
}
.wa-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.wa-card h2 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.25;
}
.wa-card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.wa-join {
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}
.wa-dismiss {
  margin-top: 12px;
  padding: 4px 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.wa-dismiss:hover,
.wa-dismiss:focus-visible {
  color: var(--primary-soft);
}

/* ---------- faq ---------- */
.faq {
  padding: 92px 0;
}
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 78ch;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 22px;
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] {
  border-color: rgba(25, 172, 200, 0.45);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- poster fallback ---------- */
.poster-blank {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2), #0b1a21);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-art {
    min-height: 340px;
    max-width: 560px;
  }
  .fan-card {
    width: 150px;
  }
  .feature-lead {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .feature-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-tall {
    grid-row: auto;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .modal-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-poster img {
    min-height: 260px;
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  /* The hidden attribute has to win over this rule, otherwise the panel is
     always open on phones and the burger appears to do nothing. */
  .mobile-menu:not([hidden]) {
    display: flex;
  }
  .nav-inner {
    gap: 12px;
    justify-content: space-between;
  }
  .nav-inner > .btn {
    display: none;
  }
  .hero {
    padding: 54px 0 42px;
  }
  .hero-facts {
    gap: 22px;
    flex-wrap: wrap;
  }
  .hero-facts dd {
    font-size: 24px;
  }
  .catalog,
  .preview,
  .features,
  .faq {
    padding: 62px 0;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 18px 14px;
  }
  .feature-bento {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: auto;
  }
  .feature-lead {
    padding: 26px;
  }
  .download-inner {
    padding: 28px;
  }
  .download-actions {
    width: 100%;
  }
  .download-actions .btn {
    flex: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 8px;
  }
  .modal-card {
    max-height: 94vh;
    border-radius: 16px;
  }
  .modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
  /* The desktop layout gives the poster a full-height column. On a phone that
     pushes the title and the synopsis off screen, so the poster becomes a short
     banner and every other block is tightened to keep the sheet short. */
  .detail-poster {
    max-height: 136px;
    overflow: hidden;
  }
  .detail-poster img {
    min-height: 0;
    height: 136px;
  }
  .detail-main {
    padding: 15px 15px 19px;
  }
  .detail-main h3 {
    font-size: 17px;
    padding-right: 30px;
  }
  .detail-alt {
    margin-top: 4px;
    font-size: 12px;
  }
  .detail-specs {
    gap: 6px;
    margin: 12px 0 14px;
  }
  .detail-specs li {
    padding: 4px 8px;
    border-radius: 7px;
  }
  .detail-specs strong {
    font-size: 12.5px;
  }
  .detail-specs span {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .detail-subhead {
    margin: 15px 0 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .detail-synopsis {
    font-size: 13px;
    line-height: 1.6;
    max-height: 132px;
    padding-right: 6px;
  }
  .episodes-list {
    gap: 6px;
    max-height: 84px;
  }
  .genre-tags span,
  .genre-tag,
  .episodes-list span {
    font-size: 11px;
    padding: 4px 9px;
  }
  .detail-actions {
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
  }
  .detail-actions .btn {
    flex: 1 1 120px;
    justify-content: center;
    font-size: 14px;
  }
  .detail-note {
    margin-top: 10px;
    font-size: 11.5px;
  }
  .detail-applink {
    margin-top: 12px;
    font-size: 12px;
  }
  .rec-row {
    gap: 10px;
  }
  .rec-card {
    flex-basis: 92px;
  }
  .rec-title {
    margin-top: 6px;
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 18px;
  }
  .hero-art {
    min-height: 280px;
  }
  .fan-card {
    width: 122px;
  }
  .shot {
    width: 200px;
  }
  .modal {
    padding: 6px;
  }
  .modal-card {
    max-height: 96vh;
    border-radius: 14px;
  }
  .detail-poster,
  .detail-poster img {
    height: 118px;
    max-height: 118px;
  }
  .detail-main {
    padding: 13px 13px 17px;
  }
  .detail-main h3 {
    font-size: 16px;
    padding-right: 28px;
  }
  .detail-synopsis {
    max-height: 112px;
  }
  .detail-actions .btn {
    flex: 1 1 100%;
  }
}

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