/* PurrCine 1.6.1 — cinema skin. Loaded last so it can override the flattened studio layout. */

:root {
  --bg: #0b0708;
  --bg-soft: #12090b;
  --surface: rgba(28, 16, 18, .78);
  --surface-2: rgba(38, 22, 24, .88);
  --surface-3: #3a2426;
  --line: rgba(255, 196, 160, .12);
  --line-strong: rgba(255, 210, 170, .22);
  --text: #f7efe6;
  --muted: #c9b4a8;
  --muted-2: #8d746a;
  --gold: #e8a05a;
  --gold-soft: #f3c48a;
  --violet: #c45c4a;
  --violet-soft: #e08b6e;
  --danger: #ff7a7a;
  --success: #7ed9a8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(20, 4, 6, .55);
  --font: 'Outfit', system-ui, sans-serif;
  --display: 'Fraunces', 'Times New Roman', serif;
  --ember: #ff6b3d;
  --wine: #6a1d2a;
}

body {
  font-family: var(--font);
  background: #080506;
  color: var(--text);
}
h1, h2, h3, h4, .hero-title, .section-title, .brand-word {
  font-family: var(--display);
}

.purr-bg {
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(232, 160, 90, .22), transparent 58%),
    radial-gradient(900px 640px at 100% 0%, rgba(196, 92, 74, .18), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(106, 29, 42, .35), transparent 60%),
    #080506;
}
.purr-bg-vignette {
  background:
    linear-gradient(180deg, rgba(8,5,6,.15), transparent 18%, transparent 72%, rgba(8,5,6,.72)),
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 40%, rgba(8,5,6,.55) 100%);
}

/* Header */
.site-header {
  background: linear-gradient(180deg, rgba(12,6,8,.88), rgba(12,6,8,.28));
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { background: rgba(10,5,7,.92); }
.brand-word span { color: var(--gold); }
.main-nav a.active {
  color: #1a0c0a;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: none;
}
.btn-primary {
  background: linear-gradient(135deg, #f3c48a, #e08b4a 55%, #c45c4a);
  color: #1a0c0a;
  border: 0;
  box-shadow: 0 10px 30px rgba(196, 92, 74, .28);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-violet {
  background: linear-gradient(135deg, #8a2433, #c45c4a);
  color: #fff;
}
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }

/* Full-bleed hero */
body.home-page .hero,
body.home-page .hero.hero-carousel {
  width: 100%;
  margin: 0;
  min-height: min(92vh, 860px);
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}
body.home-page .hero-slides { min-height: inherit; }
body.home-page .hero-slide {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
}
body.home-page .hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
body.home-page .hero-bg img {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.04);
}
body.home-page .hero-bg::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,5,6,.92) 8%, rgba(8,5,6,.55) 48%, rgba(8,5,6,.18) 100%),
    linear-gradient(180deg, rgba(8,5,6,.2), transparent 28%, rgba(8,5,6,.88));
}
body.home-page .hero-slide .container {
  position: relative;
  z-index: 3;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 72px;
}
body.home-page .hero-slide .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas:
    "kicker poster"
    "title poster"
    "tag poster"
    "overview poster"
    "actions poster";
  column-gap: 48px;
  row-gap: 10px;
  align-items: end;
  max-width: none;
  padding: 0;
}
body.home-page .hero-content > * { grid-column: auto; }
body.home-page .hero-kicker { grid-area: kicker; }
body.home-page .hero-title { grid-area: title; }
body.home-page .hero-tagline { grid-area: tag; }
body.home-page .hero-overview { grid-area: overview; }
body.home-page .hero-actions { grid-area: actions; grid-row: auto; align-self: start; margin-top: 8px; }
body.home-page .hero-poster {
  grid-area: poster;
  width: 240px;
  justify-self: end;
  align-self: end;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,210,170,.18);
  transform: rotate(2.2deg);
}
body.home-page .hero-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
body.home-page .hero-title {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .92;
  max-width: 14ch;
  text-shadow: 0 18px 40px rgba(0,0,0,.45);
}
body.home-page .hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-soft);
}
body.home-page .hero-overview { font-size: 16px; max-width: 58ch; color: #eadfd4; }
body.home-page .hero-kicker .eyebrow {
  background: rgba(232, 160, 90, .16);
  color: var(--gold-soft);
  border: 1px solid rgba(232,160,90,.28);
  border-radius: 999px;
}
body.home-page .hero-nav {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(10,5,7,.55);
  color: #fff;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}
body.home-page .hero-nav.prev { left: 24px; }
body.home-page .hero-nav.next { right: 24px; }
body.home-page .hero-side-note {
  display: block;
  position: absolute;
  right: 40px;
  bottom: 28px;
  z-index: 6;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
body.home-page .hero .hero-dots {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(10,5,7,.45);
  border: 1px solid var(--line);
}

/* Catalog rails */
.section-head .eyebrow { display: inline-flex !important; }
.section-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -.03em;
}
.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
}
.movie-row::-webkit-scrollbar { height: 6px; }
.movie-row::-webkit-scrollbar-thumb { background: rgba(232,160,90,.35); border-radius: 99px; }
.movie-card {
  scroll-snap-align: start;
  transform: none !important;
}
.movie-card .card-poster {
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.movie-card:hover .card-poster img { transform: scale(1.08); }
.movie-card .card-play {
  opacity: 0;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a0c0a;
  transform: translate(-50%, -50%) scale(.85);
  transition: .25s;
}
.movie-card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.genre-strip { gap: 8px; }
.genre-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.genre-chip:hover { border-color: var(--gold); color: var(--gold-soft); }

.split-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  padding: 32px !important;
  background:
    linear-gradient(135deg, rgba(232,160,90,.08), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
}

/* Watch theater */
.watch-body { background: #070405; }
.theater { position: relative; padding: 18px 0 64px; }
.theater-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(232,160,90,.16), transparent 70%);
  pointer-events: none;
}
.watch-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.watch-head h1 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -.04em;
}
.watch-head h1 span { color: var(--gold); font-style: italic; font-weight: 500; }
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.cinema-shell {
  background: rgba(12,6,8,.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-stage iframe,
.player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cinema-chrome {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.cinema-chrome-actions { display: flex; gap: 8px; pointer-events: auto; }
.cinema-live {
  pointer-events: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8,5,6,.72);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}
.player-error-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
.cinema-rack { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.source-strip-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 12px; }
.source-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.source-tab {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  color: var(--muted);
}
.source-tab small { color: var(--muted-2); font-size: 11px; }
.source-tab.active {
  color: #1a0c0a;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}
.source-tab.active small { color: rgba(26,12,10,.7); }
.cinema-note { margin: 0; padding: 12px 18px 16px; }
.watch-side .panel {
  background: rgba(20,10,12,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* Title page */
.detail-hero { position: relative; min-height: 78vh; display: flex; align-items: end; }
.detail-backdrop { position: absolute; inset: 0; }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08); }
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,5,6,.92), rgba(8,5,6,.45) 55%, rgba(8,5,6,.2)),
    linear-gradient(180deg, transparent 30%, rgba(8,5,6,.92));
}
.detail-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 80px 0 48px; align-items: end; }
.detail-poster img {
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,210,170,.16);
}
.detail-content h1 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -.04em; line-height: .95; }

.page-hero h1 { font-size: clamp(36px, 5vw, 64px); }
.filter-bar { background: rgba(20,10,12,.6); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(20,8,10,.8));
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  body.home-page .hero-slide .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "title" "tag" "overview" "actions";
  }
  body.home-page .hero-poster { display: none; }
  body.home-page .hero, body.home-page .hero.hero-carousel { min-height: 72vh; }
  .watch-layout, .detail-grid, .split-panel { grid-template-columns: 1fr; }
  .detail-poster { max-width: 220px; }
  body.home-page .hero-nav { display: none; }
}
