/*
Theme Name: FreeWave
Theme URI: https://example.com/freewave
Author: FreeWave
Description: FreeWave production shell. Dark streaming presentation for the core platform.
Version: 1.0.0
Text Domain: freewave
*/

:root {
  --bg: #000;
  --surface: #141416;
  --line: rgba(255,255,255,.1);
  --text: #fff;
  --mute: #b3b3b8;
  --mute-2: #7a7a82;
  --accent: #e50914;
  --accent-2: #ff1a24;
  --max: 1320px;
  --nav-h: 64px;
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
  padding-bottom: 88px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.fb-dl { cursor: pointer; }

#site-header, .site-header, .dynamic-header,
.page-header, .page-header .entry-title,
#site-footer, .site-footer, .dynamic-footer, .footer-has-copyright {
  display: none !important;
}

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.03em; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.nav__links { display: flex; gap: 1.25rem; margin-left: auto; }
.nav__links a { font-size: .94rem; font-weight: 500; color: rgba(255,255,255,.78); }
.nav__links a:hover, .nav__links a.is-on { color: #fff; }
.btn-app {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.15rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .9rem; font-weight: 700; line-height: 1;
}
.btn-app:hover { background: var(--accent-2); }
.btn-app:disabled { opacity: .55; cursor: default; }

/* ——— Home Hero (restored from diagnostics/archive/home.html) ——— */
.hero {
  position: relative;
  top: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero__ratio { width: 100%; padding-top: 122.667%; }
.hero__stage { position: absolute; inset: 0; background: #000; }
.hero__slide {
  position: absolute; inset: 0;
  display: block; background: #000;
  opacity: 0; z-index: 0; pointer-events: none;
  transition: opacity .6s ease-out;
  color: inherit; text-decoration: none;
}
.hero__slide.is-on { opacity: 1; z-index: 1; pointer-events: auto; }
.hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 67% center;
  pointer-events: none;
}
.hero__g-top, .hero__g-bot, .hero__g-left {
  position: absolute; pointer-events: none; z-index: 1;
}
.hero__g-top {
  inset: 0 0 auto 0; height: 32vw;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}
.hero__g-bot {
  inset: auto 0 0 0; height: 42vw;
  background: linear-gradient(to bottom, transparent, #000);
}
.hero__g-left { display: none; }
.hero__copy {
  position: absolute; z-index: 2;
  inset: auto 16px 8vw 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.hero__copy-inner {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__title {
  width: 100%;
  font-size: 6.4vw; font-weight: 700; line-height: 1.15;
  color: rgba(255,255,255,.9);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  letter-spacing: 0; max-width: none;
}
.hero__tags {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; max-width: 100%; overflow: hidden;
}
.tag {
  max-width: 40vw;
  padding: 4px 8px; border-radius: 12px;
  font-size: 3.2vw; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}
.tag--sync { background: #F26118; color: #fff; }
.tag--genre { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.hero__desc { display: none; }
.btn-watch {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 44.8vw; height: 10.67vw;
  background: #fff; color: #000;
  border-radius: 5.33vw;
  font-size: 4.27vw; font-weight: 700;
}
.btn-watch svg { width: 1em; height: 1em; }
.hero__dots {
  position: absolute; z-index: 5;
  left: 0; right: 0; bottom: 2.67vw;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hero__dot {
  height: 4px; width: 12px; border-radius: 4px;
  background: rgba(255,255,255,.3); overflow: hidden; border: 0; padding: 0;
}
.hero__dot.is-on { width: 32px; }
.hero__dot span {
  display: block; height: 100%; width: 0; background: #fff; border-radius: 2px;
}
.hero__dot.is-on span { width: 100%; animation: heroBar 6s linear; }
@keyframes heroBar { from { width: 0; } to { width: 100%; } }
.hero__thumbs-wrap { display: none; }

@media (min-width: 768px) {
  .hero { min-height: 480px; }
  .hero__ratio { padding-top: 33.333%; }
  .hero__slide img { object-position: center; }
  .hero__g-top { height: 170px; }
  .hero__g-bot { height: 40%; }
  .hero__g-left {
    display: block; top: 0; bottom: 0; left: 0; width: 50%;
    background: linear-gradient(to right, rgba(0,0,0,.8), transparent);
  }
  .hero__copy {
    inset: auto auto 0 6vw;
    width: min(730px, 42vw);
    align-items: flex-start; text-align: left;
    gap: 20px; padding-bottom: 8px;
  }
  .hero__copy-inner { align-items: flex-start; gap: 12px; }
  .hero__title { font-size: clamp(28px, 2.4vw, 48px); text-align: left; }
  .hero__tags { justify-content: flex-start; gap: 8px; }
  .tag {
    max-width: 140px; font-size: 14px; font-weight: 400;
    padding: 5px 12px; border-radius: 20px;
  }
  .hero__desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(14px, 1.05vw, 20px);
    color: rgba(255,255,255,.7); line-height: 1.45;
  }
  .btn-watch {
    width: 200px; height: 48px; border-radius: 24px;
    font-size: 18px; gap: 8px;
    transition: background .2s ease-out, color .2s ease-out;
  }
  .btn-watch:hover { background: #E52E2E; color: rgba(255,255,255,.9); }
  .hero__dots { display: none; }
  .hero__thumbs-wrap {
    display: block;
    position: absolute; z-index: 5;
    right: 52px; bottom: 16px;
  }
  .hero__thumbs-box {
    position: relative;
    width: min(528px, 42vw);
  }
  .hero__thumbs-view { overflow: hidden; width: 100%; }
  .hero__thumbs {
    display: flex; gap: 12px;
    will-change: transform;
  }
  .hero__thumb {
    position: relative;
    flex: 0 0 84px; width: 84px; height: 112px;
    border-radius: 8px; overflow: hidden;
    display: block;
    border: 0; padding: 0; margin: 0;
    background: transparent; cursor: pointer;
    color: inherit; font: inherit;
  }
  .hero__thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease-out;
  }
  .hero__thumb:hover img, .hero__thumb.is-on img { transform: scale(1.05); }
  .hero__thumb::after {
    content: ""; position: absolute; inset: 0;
    border: 2px solid transparent; border-radius: 8px;
    transition: border-color .2s, background .2s;
  }
  .hero__thumb.is-on::after, .hero__thumb:hover::after {
    border-color: #fff; background: rgba(0,0,0,.4);
  }
  .hero__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; opacity: .7; padding: 0;
  }
  .hero__nav:hover { opacity: 1; }
  .hero__nav.prev { right: 100%; margin-right: 12px; }
  .hero__nav.next { left: 100%; margin-left: 4px; }
  .hero__nav svg { width: 32px; height: 32px; }
}
@media (min-width: 1280px) {
  .hero__thumb { flex-basis: 96px; width: 96px; height: 128px; border-radius: 12px; }
  .hero__thumb::after { border-radius: 12px; }
}

.section { padding: 1.75rem 0; }
.section h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.03em; margin-bottom: 8px; }
.lede { color: var(--mute); margin-bottom: 16px; }
.state {
  padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  color: var(--mute);
}
.state.is-error { border-style: solid; border-color: rgba(229,46,46,.45); color: #ffc7c7; }
.download-list { display: grid; gap: 12px; }
.download-card {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #17171b, #101012);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.download-card p { color: var(--mute); font-size: 14px; margin-top: 4px; }

/* ——— Short Drama Services (additive) ——— */
.services { padding: 1.75rem 0 1.25rem; }
.services .rail-head { margin-bottom: 14px; }
.services__lede {
  margin: -4px 0 14px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  max-width: 42rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #17171b, #101012);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.svc-card__visual,
.svc-card__media,
.service-card__media {
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(229,46,46,.35), transparent 55%),
    linear-gradient(160deg, #1c1214, #0c0c0e 60%);
}
.svc-card__media img,
.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.svc-card--loc .svc-card__visual,
.svc-card--loc .svc-card__media {
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(242,97,24,.32), transparent 55%),
    linear-gradient(160deg, #14181c, #0c0c0e 60%);
}
.svc-card--lic .svc-card__visual,
.svc-card--lic .svc-card__media {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,197,71,.22), transparent 55%),
    linear-gradient(160deg, #151418, #0c0c0e 60%);
}
.svc-card__body,
.service-card__body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  align-content: start;
}
.svc-card__body h3 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.svc-card__body p { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.62); }
.svc-card__cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 4px; width: fit-content;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  font-size: 12px; font-weight: 700;
}
.svc-card__cta:hover { background: #E52E2E; border-color: #E52E2E; color: #fff; }
@media (min-width: 768px) {
  .services__lede { font-size: 14px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .svc-card__body h3 { font-size: 18px; }
  .svc-card__body p { font-size: 14px; }
}

/* ——— Service detail pages (/production|localization|licensing.html) ——— */
.svc-detail {
  padding: calc(var(--nav-h) + 1.25rem) 0 2.5rem;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(229,46,46,.18), transparent 55%),
    #000;
}
.svc-detail--loc {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(242,97,24,.16), transparent 55%),
    #000;
}
.svc-detail--lic {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(232,197,71,.12), transparent 55%),
    #000;
}
.svc-detail .wrap { width: min(100% - 2.5rem, 1240px); }
.svc-detail__hero { padding: 0 0 1.5rem; }
.svc-detail__hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.svc-detail__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.svc-detail__hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.svc-detail__lead {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.55;
  max-width: 38rem;
  margin-bottom: 18px;
}
.svc-detail__hero-media {
  width: 100%;
  aspect-ratio: 8 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(229,46,46,.35), transparent 55%),
    linear-gradient(160deg, #1c1214, #0c0c0e 60%);
}
.svc-detail--loc .svc-detail__hero-media {
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(242,97,24,.32), transparent 55%),
    linear-gradient(160deg, #14181c, #0c0c0e 60%);
}
.svc-detail--lic .svc-detail__hero-media {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,197,71,.22), transparent 55%),
    linear-gradient(160deg, #151418, #0c0c0e 60%);
}
.svc-detail__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.svc-detail__section { padding: 1.5rem 0; }
.svc-detail__section h2,
.svc-detail__cta h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.svc-detail__narrow { max-width: 46rem; }
.svc-detail__narrow p {
  color: rgba(255,255,255,.68);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.svc-detail__provide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.svc-detail__card {
  background: linear-gradient(180deg, #17171b, #101012);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
}
.svc-detail__card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.svc-detail__card p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.62);
}
.svc-detail__steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.svc-detail__steps li {
  background: linear-gradient(180deg, #17171b, #101012);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
}
.svc-detail__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(229,46,46,.18);
  border: 1px solid rgba(229,46,46,.35);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.svc-detail__steps h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.svc-detail__steps p {
  font-size: 13px;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}
.svc-detail__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.svc-detail__note {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  margin: -4px 0 10px;
}
.svc-detail__list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.svc-detail__list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.45;
}
.svc-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.svc-detail__cta { padding-top: .5rem; }
.svc-detail__cta-panel {
  background: linear-gradient(180deg, #1a1214, #101012);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
}
.svc-detail__cta-panel p {
  color: rgba(255,255,255,.68);
  max-width: 36rem;
  margin: 0 auto 16px;
  font-size: 14px;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .svc-detail__hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2rem;
  }
  .svc-detail__provide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .svc-detail__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .svc-detail__split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .svc-detail__cta-panel { padding: 28px 32px; }
}
@media (min-width: 1024px) {
  .svc-detail__provide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.account {
  /* Content-driven height — do not force 100vh (creates large blank under login/register). */
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(229,46,46,.2), transparent 55%),
    #000;
}
.account__grid { display: grid; gap: 16px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.panel h1, .panel h2 { letter-spacing: -.03em; }
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--mute); }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0c0c0e;
}
.form-note { min-height: 1.2em; margin-top: 10px; color: #ffc7c7; font-size: 14px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10,10,12,.97); border-top: 1px solid var(--line);
}
.dock strong { display: block; font-size: .92rem; }
.dock span { font-size: .74rem; color: var(--mute); }
footer { padding: 1.5rem 0 2rem; color: var(--mute-2); font-size: .76rem; }

.fw-install {
  --ig-surface: #141416;
  --ig-line: rgba(255,255,255,.12);
  --ig-text: #fff;
  --ig-mute: rgba(255,255,255,.62);
  --ig-accent: #e50914;
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.78);
  color: var(--ig-text);
}
.fw-install__panel { width: min(440px, 100%); }
.fw-install__card {
  position: relative;
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 22px 18px 18px;
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.62);
}
.fw-install__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.62); color: #fff; font-size: 22px; line-height: 1;
  border: 1px solid rgba(255,255,255,.2);
}
.fw-install__close:hover { background: #E52E2E; }
.fw-install__badge {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  background: var(--ig-accent); font-size: 12px; font-weight: 700;
}
.fw-install__card h2 { margin: 10px 42px 0 0; font-size: 22px; letter-spacing: -.02em; }
.fw-install__steps { list-style: none; counter-reset: ig; display: grid; gap: 10px; margin: 16px 0; }
.fw-install__steps li {
  position: relative; padding: 12px 12px 12px 52px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  counter-increment: ig;
}
.fw-install__steps li::before {
  content: counter(ig);
  position: absolute; left: 12px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #E52E2E; font-size: 13px; font-weight: 800;
}
.fw-install__steps span { display: block; margin-top: 3px; color: var(--ig-mute); font-size: 13px; }
.fw-install__card .btn-app { width: 100%; min-height: 44px; }
body.fw-install-open { overflow: hidden; }

@media (min-width: 800px) {
  .account__grid { grid-template-columns: 1fr 1fr; }
  .account__grid .panel:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links a:not(.btn-app) { display: none; }
  .download-card { align-items: flex-start; flex-direction: column; }
}

/* ——— Public Titles catalog ——— */
.rail-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.rail-head h2 { margin: 0; }
.rail-head .more {
  color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.rail-head .more:hover { color: var(--accent); }

.titles-page { padding-bottom: 1rem; }
.titles-hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 1.25rem;
  background:
    radial-gradient(700px 280px at 70% 0%, rgba(229,46,46,.22), transparent 55%),
    #000;
}
.titles-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -.035em;
  margin-bottom: 8px;
}
.titles-hero p { color: rgba(255,255,255,.68); max-width: 36rem; }
.titles-back {
  display: inline-flex; margin-bottom: 12px;
  color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600;
}
.titles-back:hover { color: #fff; }

.titles-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px;
}
.titles-chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.78);
}
.titles-chip:hover, .titles-chip.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.titles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
.titles-grid--home { margin-bottom: 18px; }
@media (min-width: 720px) {
  .titles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (min-width: 1100px) {
  .titles-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.tcard {
  display: grid; gap: 8px; min-width: 0;
  color: inherit;
}
.tcard__poster {
  display: block; position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(160deg, #1c1214, #0c0c0e 60%),
    var(--surface);
}
.tcard__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s var(--ease);
}
.tcard:hover .tcard__poster img { transform: scale(1.04); }
.tcard__body { display: grid; gap: 3px; min-width: 0; }
.tcard__title {
  font-size: 13px; font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcard__genre { font-size: 12px; color: rgba(255,255,255,.58); }
.tcard__tags {
  font-size: 11px; color: rgba(255,255,255,.42);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.titles-empty {
  padding: 22px 16px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  color: var(--mute);
}

.titles-home-genres { margin-top: 8px; }
.titles-home-genres h3 {
  font-size: 16px; margin: 0 0 10px; letter-spacing: -.02em;
}

.titles-detail__meta {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 18px 0 0;
}
.titles-detail__meta dt { color: var(--mute); }
.titles-detail__meta dd { margin: 0; font-weight: 600; }

/* ——— Playback / Watch page ——— */
.titles-page--playback {
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
}
.play-shell {
  padding: calc(var(--nav-h) + 1rem) 0 0;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(229,46,46,.18), transparent 55%),
    #000;
}
.titles-page--playback .wrap.play-shell__inner,
.play-shell__inner {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 0 auto;
}
/* ============================================================
   PLAYBACK — 1) Base layout (mobile-first)
   ============================================================ */
.playback-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  margin-bottom: 36px;
}
.playback-main__left {
  width: 100%;
  max-width: 430px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.playback-main__player {
  width: 100%;
  max-width: 430px;
  margin: 0;
  flex: 0 0 auto;
}
.playback-main__side {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 0;
}
.player {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,.08);
}
.player__video {
  width: 100%; height: 100%;
  display: block; object-fit: contain; background: #000;
}
.player__empty {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 20px; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(229,46,46,.16), transparent 70%),
    linear-gradient(180deg, #141416, #0a0a0c);
}
.player__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 22px; color: #fff;
}
.player__empty-title { font-size: 16px; font-weight: 700; }
.player__empty-sub { color: var(--mute); font-size: 13px; max-width: 22rem; }

.play-caption { margin: 0; max-width: none; }
.play-caption__title {
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -.03em; margin-bottom: 6px; line-height: 1.15;
}
.play-caption__genre { color: rgba(255,255,255,.7); font-weight: 600; font-size: 14px; }
.play-caption__ep { margin-top: 6px; color: var(--mute); font-size: 13px; }

.play-episodes { min-width: 0; }
.play-episodes__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.play-episodes__head .play-section__title { margin-bottom: 0; }
.play-episodes__total {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.88);
}
.play-section { padding-top: 0.85rem; padding-bottom: 0.55rem; }
.play-section__title {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 10px; letter-spacing: -.02em;
}

.episode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: start;
  max-width: 100%;
}
.ep-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  min-width: 54px;
  max-width: 100%;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: #1a1a1e;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.86);
  text-align: center;
  flex: 0 0 auto;
}
.ep-chip:hover {
  background: #242429;
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.ep-chip.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.ep-chip {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.ep-chip--locked,
.ep-chip--locked:hover {
  background: #242428;
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.42);
  opacity: .72;
  cursor: default;
}
.ep-chip--app {
  min-width: 11.5rem;
  padding: 0 14px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.ep-chip--app:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}
.ep-chip--app.is-disabled,
.ep-chip--app.is-disabled:hover {
  opacity: .55;
  cursor: default;
  background: var(--accent);
  border-color: var(--accent);
  pointer-events: none;
}

.play-about {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  align-items: start;
}
.play-about__genre { color: rgba(255,255,255,.7); font-weight: 600; font-size: 14px; }
.play-about__tags { margin-top: 2px; color: rgba(255,255,255,.45); font-size: 13px; }
.play-about__synopsis {
  margin: 0 0 4px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  font-size: 14px;
}
.play-about__meta { margin-top: 8px; }
.play-about__poster { display: none; }

.play-related { width: 100%; }
.titles-grid--related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.titles-page--playback .titles-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  width: 100%;
}

/* ============================================================
   PLAYBACK — 2) Desktop >= 900
   ============================================================ */
@media (min-width: 900px) {
  .playback-main {
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 36px;
    margin-bottom: 40px;
  }
  .playback-main__left {
    max-width: 430px;
  }
  .titles-page--playback .titles-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* ============================================================
   PLAYBACK — 3) Mobile < 900
   ============================================================ */
@media (max-width: 899px) {
  .episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: hidden;
    max-width: 100%;
    padding-bottom: 4px;
  }
  .episode-grid .ep-chip:not(.ep-chip--app) {
    flex: 0 0 3.1rem;
  }
  .episode-grid .ep-chip--app {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .titles-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 720px) and (max-width: 899px) {
  .titles-grid--related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================
   PLAYBACK — 4) Remote Embed (geometry from JS only)
   ============================================================ */
.player:has(.fw-remote-player) {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  max-width: 430px;
  display: block;
  overflow: hidden;
  contain: layout paint;
  background: transparent;
  border: 0;
}
.fw-remote-player {
  position: relative;
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  contain: layout paint;
  clip-path: inset(0);
  min-width: 0;
  min-height: 0;
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  touch-action: auto;
  -webkit-overflow-scrolling: auto;
}
.fw-remote-player::before,
.fw-remote-player::after,
.fw-remote-stage::before,
.fw-remote-stage::after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}
.fw-remote-stage {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  contain: layout paint;
  clip-path: inset(0);
  transform-origin: top left;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(229,9,20,.18), transparent 55%),
    #050505;
  touch-action: auto;
}
.fw-remote-player.is-ready .fw-remote-stage {
  pointer-events: none;
  background: #000;
}
.fw-remote-player[style*="--fw-remote-poster"] .fw-remote-stage {
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72)),
    var(--fw-remote-poster) center / cover no-repeat,
    #050505;
}
.fw-remote-frame,
.remote-embed-iframe {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  background: #000;
  pointer-events: auto;
  touch-action: auto;
  user-select: auto;
  -webkit-user-drag: auto;
}
.fw-remote-player.is-scroll-locked .fw-remote-frame,
.fw-remote-player.is-scroll-locked .remote-embed-iframe {
  pointer-events: none !important;
  touch-action: none !important;
}
.fw-remote-scroll-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
  touch-action: none;
  cursor: default;
}
.fw-remote-scroll-lock[hidden] {
  display: none !important;
}
.fw-remote-interact {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 5;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  touch-action: manipulation;
}
.fw-remote-interact[hidden] {
  display: none !important;
}
.fw-remote-player.is-scroll-unlocked .fw-remote-scroll-lock {
  display: none !important;
}
.fw-remote-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}
.fw-remote-play__icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(229,9,20,.92);
  font-size: 26px;
  line-height: 1;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  pointer-events: none;
}
.fw-remote-play__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  pointer-events: none;
}
.fw-remote-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  pointer-events: auto;
}
.fw-remote-loading[hidden],
.fw-remote-play[hidden] {
  display: none !important;
  pointer-events: none !important;
}
@media (max-width: 899px) {
  .fw-remote-player,
  .player:has(.fw-remote-player) {
    max-width: 100%;
  }
  .fw-remote-player {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
.fw-remote-stage { overflow: hidden; }
.fw-remote-mask { position: absolute; inset: 0; z-index: 4; }
.fw-remote-mask__bar { position: absolute; background: transparent; touch-action: none; }
.fw-remote-vollbild,
.fw-remote-theater__close,
.fw-remote-theater__prev,
.fw-remote-theater__next,
.fw-remote-fallback__app,
.fw-remote-fallback__site {
  font: inherit;
  color: #fff;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}
.fw-remote-vollbild {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 6;
}
.fw-remote-fallback {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.78)),
    var(--fw-remote-poster, none) center / cover no-repeat,
    #050505;
}
.fw-remote-fallback[hidden] { display: none !important; }
.fw-remote-debug {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 8;
  max-width: calc(100% - 16px);
  padding: 6px 8px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font: 11px/1.35 ui-monospace, monospace;
  pointer-events: none;
}
.fw-remote-debug[hidden] { display: none !important; }
.fw-remote-debug .is-bad { color: #ff5a5a; font-weight: 700; }
.player:has(.fw-remote-player.is-theater),
.player:has(.fw-remote-player.is-pseudo-full) {
  overflow: visible;
  contain: none;
  clip-path: none;
  max-width: none;
}
.fw-remote-player.is-theater,
.fw-remote-player.is-pseudo-full {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100dvh;
  max-width: none;
  border-radius: 0;
  background: #000;
  contain: none;
  clip-path: none;
}
.fw-remote-player.is-theater {
  background: #000;
}
.fw-remote-blur {
  display: none;
  position: absolute;
  inset: -24px;
  z-index: 0;
  background:
    var(--fw-remote-poster, none) center / cover no-repeat,
    #000;
  filter: blur(18px);
  transform: scale(1.08);
}
.fw-remote-player.is-theater .fw-remote-blur { display: block; }
.fw-remote-theater {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}
.fw-remote-theater[hidden] { display: none !important; }
.fw-remote-theater__prev,
.fw-remote-theater__next,
.fw-remote-theater__close { position: absolute; pointer-events: auto; }
.fw-remote-theater__prev { left: max(12px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.fw-remote-theater__next { right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.fw-remote-theater__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.fw-remote-player.is-theater .fw-remote-stage,
.fw-remote-player.is-pseudo-full .fw-remote-stage { z-index: 1; }
html.fw-remote-noscroll, html.fw-remote-noscroll body { overflow: hidden; height: 100%; }

.play-licensing { padding-bottom: 2rem; }
.play-licensing__card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  display: grid; gap: 8px; justify-items: start;
}
.play-licensing__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.play-licensing__card h2 {
  font-size: 16px; font-weight: 600; margin: 0;
  color: rgba(255,255,255,.82);
}
.play-licensing__btn {
  display: inline-flex; align-items: center;
  margin-top: 4px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.78);
}
.play-licensing__btn:hover {
  border-color: rgba(255,255,255,.35); color: #fff;
}

.inquiry-page .inquiry-panel { max-width: 720px; }
.inquiry-form { display: grid; gap: 4px; }
.inquiry-form__row {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .inquiry-form__row { grid-template-columns: 1fr 1fr; }
}
.inquiry-form .btn-app { margin-top: 10px; width: fit-content; }
.form-note.is-error { color: #ffc7c7; }

.fw-playback-fallback {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
}
.fw-playback-fallback[hidden] { display: none; }
.fw-link-out__cover {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
}
.fw-playback-fallback .btn-app { width: 100%; max-width: 320px; text-align: center; }

