/* ==========================================================
   Sagarover Curiosu — The 2026 Screen Edit
   Contemporary Cinematic Editorial design system
   Vanilla CSS, no external dependencies
   ========================================================== */

:root {
  --primary: #C65A43;
  --primary-dark: #a8452f;
  --secondary: #392B32;
  --secondary-deep: #241b20;
  --accent: #E5B866;
  --bg: #F3ECE4;
  --surface: #FFFAF4;
  --text: #29232A;
  --muted: #877B80;
  --highlight: #EBD8D0;
  --border: #DED0C9;
  --glass: rgba(57, 43, 50, 0.55);
  --glass-light: rgba(255, 250, 244, 0.72);
  --font-display: "Playfair Display", "Didot", "Bodoni MT", "Bodoni 72", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(41, 35, 42, 0.10);
  --shadow-lift: 0 24px 60px rgba(41, 35, 42, 0.22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

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

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--secondary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: min(1280px, 92vw); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .8em;
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Header (non-sticky) ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--secondary);
  color: var(--surface);
  border-bottom: 1px solid rgba(229, 184, 102, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--surface); text-decoration: none; }
.brand:hover { color: var(--accent); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #8e3a2a); color: var(--accent); font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(229,184,102,.4);
}
.brand-text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand-text em { font-style: italic; color: var(--accent); margin-left: 4px; font-weight: 400; }

.primary-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--surface); text-decoration: none; padding: 10px 16px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: .02em; transition: background .3s var(--ease), color .3s;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(229,184,102,.16); color: var(--accent); }

.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,250,244,.3); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; padding: 12px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--surface); margin: 4px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem; letter-spacing: .03em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-sans);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(198,90,67,.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); background: var(--highlight); }
.btn-gold { background: var(--accent); color: var(--secondary); }
.btn-gold:hover { background: #d9a64c; color: var(--secondary); }
.btn-light { background: transparent; color: var(--surface); border-color: rgba(255,250,244,.35); }
.btn-light:hover { background: rgba(255,250,244,.1); color: var(--accent); border-color: var(--accent); }

/* ---------- Hero: Cinema Frame Drift ---------- */
.hero {
  position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 30%, #4d3842 0%, var(--secondary) 45%, var(--secondary-deep) 100%);
  color: var(--surface); min-height: 92vh; display: flex; align-items: center; padding: 90px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(36,27,32,.92) 0%, rgba(36,27,32,.55) 45%, rgba(36,27,32,.15) 100%);
  z-index: 1;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; perspective: 1200px; }
.frame {
  position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45);
  transition: transform .9s var(--ease); will-change: transform;
  background: linear-gradient(135deg, #5a4450, #2c2127);
}
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 1px solid rgba(229,184,102,.35); border-radius: inherit;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,.0) 18px 22px);
}
.frame-inner { width: 100%; height: 100%; animation: drift 18s ease-in-out infinite alternate; }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.frame-1 { width: 30vw; height: 40vh; right: 6vw; top: 9vh; }
.frame-2 { width: 20vw; height: 28vh; right: 33vw; top: 56vh; }
.frame-2 .frame-inner { animation-duration: 22s; animation-delay: -4s; }
.frame-3 { width: 17vw; height: 24vh; right: 2vw; top: 58vh; }
.frame-3 .frame-inner { animation-duration: 16s; animation-delay: -8s; }
.frame-4 { width: 15vw; height: 20vh; right: 38vw; top: 8vh; opacity: .75; }
.frame-4 .frame-inner { animation-duration: 25s; animation-delay: -2s; }
.frame-5 { width: 12vw; height: 16vh; right: 25vw; top: 36vh; opacity: .85; }
.frame-5 .frame-inner { animation-duration: 20s; animation-delay: -11s; }

@keyframes drift {
  0% { transform: scale(1.12) translate(-2%, -1%) rotate(-.6deg); }
  50% { transform: scale(1.18) translate(1.5%, 1%) rotate(.4deg); }
  100% { transform: scale(1.14) translate(2%, -1.5%) rotate(-.2deg); }
}

.film-strip {
  position: absolute; left: -5vw; bottom: 6vh; width: 60vw; height: 54px; z-index: 1; opacity: .25;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 30px);
  transform: rotate(-4deg); animation: strip 30s linear infinite; mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
@keyframes strip { to { background-position: 600px 0; } }

.hero-content { position: relative; z-index: 3; max-width: 760px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--surface); margin-bottom: .35em; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: inline-block; transform: translateY(110%); animation: maskUp 1.2s var(--ease) forwards; }
.mask:nth-child(2) > span { animation-delay: .15s; }
.mask:nth-child(3) > span { animation-delay: .3s; }
.hero h1 em { color: var(--accent); font-weight: 400; }
@keyframes maskUp { to { transform: translateY(0); } }
.hero-lede { font-size: 1.15rem; color: rgba(255,250,244,.82); max-width: 580px; opacity: 0; animation: fadeIn 1s .6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.premiere-badge {
  position: absolute; z-index: 4; right: 5vw; bottom: 8vh; width: 150px; height: 150px;
  display: grid; place-items: center;
}
.premiere-badge svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.premiere-badge text { fill: var(--accent); font-size: 11.5px; letter-spacing: 4px; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; }
.premiere-badge .core {
  width: 66px; height: 66px; border-radius: 50%; background: var(--primary); display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; box-shadow: 0 10px 30px rgba(198,90,67,.5);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Search */
.search-wrap {
  margin-top: 28px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px;
  background: rgba(255,250,244,.1); border: 1px solid rgba(229,184,102,.35); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 600px;
  opacity: 0; animation: fadeIn 1s .8s forwards;
}
.search-wrap svg { flex: none; }
.search-wrap input {
  flex: 1; background: transparent; border: 0; color: var(--surface); font-size: 1rem; padding: 12px 4px; font-family: var(--font-sans); min-width: 0;
}
.search-wrap input::placeholder { color: rgba(255,250,244,.6); }
.search-wrap input:focus { outline: none; }
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229,184,102,.18); }
.search-hint { font-size: .85rem; color: rgba(255,250,244,.65); margin-top: 12px; }
.search-hint a { color: var(--accent); }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { border-left: 1px solid rgba(229,184,102,.4); padding-left: 14px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }
.hero-stats span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,250,244,.7); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.section-head p { max-width: 520px; color: var(--muted); margin: 0; }
.section-dark { background: var(--secondary); color: var(--surface); }
.section-dark h2, .section-dark h3 { color: var(--surface); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark p { color: rgba(255,250,244,.78); }
.section-highlight { background: var(--highlight); }

.result-count { font-size: .9rem; color: var(--muted); margin: 0 0 20px; }
.result-count strong { color: var(--primary); }

/* ---------- Poster cards ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.poster-grid .poster-card { grid-column: span 4; }
.poster-grid.asym .poster-card:nth-child(6n+1) { grid-column: span 7; }
.poster-grid.asym .poster-card:nth-child(6n+2) { grid-column: span 5; margin-top: 60px; }
.poster-grid.asym .poster-card:nth-child(6n+3) { grid-column: span 4; }
.poster-grid.asym .poster-card:nth-child(6n+4) { grid-column: span 4; margin-top: -40px; }
.poster-grid.asym .poster-card:nth-child(6n+5) { grid-column: span 4; }
.poster-grid.asym .poster-card:nth-child(6n+6) { grid-column: span 12; }
.poster-grid.asym .poster-card:nth-child(6n+6) { display: grid; grid-template-columns: 1.3fr 1fr; }
.poster-grid.asym .poster-card:nth-child(6n+6) .poster-media { aspect-ratio: auto; min-height: 340px; }

.poster-card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.poster-card:hover { transform: translateY(-8px) rotate(-.3deg); box-shadow: var(--shadow-lift); }
.poster-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, #6b4a52 60%, var(--primary) 130%);
}
.poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.poster-card:hover .poster-media img { transform: scale(1.08); }
.poster-media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(36,27,32,.55) 100%); pointer-events: none;
}
.badge-type {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(36,27,32,.72); color: var(--accent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.status-pill {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,250,244,.9); color: var(--secondary); padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-released::before { background: #3f8f5b; }
.status-scheduled::before { background: var(--primary); animation: pulse 1.8s infinite; }
.status-announced::before { background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,90,67,.6); } 70% { box-shadow: 0 0 0 9px rgba(198,90,67,0); } 100% { box-shadow: 0 0 0 0 rgba(198,90,67,0); } }

.poster-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.poster-body .eyebrow { margin-bottom: .5em; font-size: .66rem; }
.poster-body h3 { margin-bottom: .3em; }
.poster-meta { font-size: .82rem; color: var(--muted); margin-bottom: .9em; }
.poster-excerpt { font-size: .95rem; color: #4a4048; flex: 1; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface);
}
.empty-state h3 { margin-bottom: .3em; }

/* Image fallback */
.img-fallback { background: linear-gradient(135deg, var(--secondary) 0%, #6b4a52 55%, var(--primary) 120%) !important; }
.img-fallback img { opacity: 0; }
.img-fallback::before {
  content: attr(data-fallback); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); z-index: 1; font-style: italic;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.wipe { position: relative; overflow: hidden; }
.wipe::after {
  content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: right; transition: transform 1.1s var(--ease); z-index: 3;
}
.wipe.in::after { transform: scaleX(0); }

/* ---------- Editorial spread ---------- */
.spread { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.spread-visual { position: relative; min-height: 520px; }
.spread-visual .pic { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.spread-visual .pic img { width: 100%; height: 100%; object-fit: cover; }
.spread-visual .pic-a { width: 72%; height: 78%; left: 0; top: 0; }
.spread-visual .pic-b { width: 50%; height: 52%; right: 0; bottom: 0; border: 8px solid var(--bg); }
.ticket {
  position: absolute; left: 52%; top: 8%; z-index: 4; background: var(--accent); color: var(--secondary); padding: 16px 24px;
  border-radius: 10px; font-family: var(--font-display); font-weight: 700; transform: rotate(8deg); box-shadow: 0 16px 40px rgba(0,0,0,.25);
  animation: float 6s ease-in-out infinite;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
}
.ticket small { display: block; font-family: var(--font-sans); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; }
@keyframes float { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-12px); } }

.drop-cap::first-letter { font-family: var(--font-display); float: left; font-size: 4.4rem; line-height: .8; padding: 8px 12px 0 0; color: var(--primary); }

/* Vertical review columns */
.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(229,184,102,.3); }
.columns-3 article { padding: 36px 32px 10px; border-right: 1px solid rgba(229,184,102,.2); }
.columns-3 article:last-child { border-right: 0; }
.columns-3 .num { font-family: var(--font-display); font-size: 3.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 10px; font-style: italic; }
.section:not(.section-dark) .columns-3 { border-top-color: var(--border); }
.section:not(.section-dark) .columns-3 article { border-right-color: var(--border); }
.section:not(.section-dark) .columns-3 .num { color: var(--primary); }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guide-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; color: var(--surface); text-decoration: none;
  display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.guide-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.guide-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,27,32,.05) 20%, rgba(36,27,32,.9) 100%); }
.guide-card:hover img { transform: scale(1.08); }
.guide-card .gc-body { position: relative; z-index: 2; padding: 24px; }
.guide-card h3 { color: var(--surface); margin-bottom: .3em; }
.guide-card p { font-size: .9rem; color: rgba(255,250,244,.8); margin: 0; }
.guide-card:hover { color: var(--accent); }
.guide-card:nth-child(2) { transform: translateY(40px); }
.guide-card:nth-child(4) { transform: translateY(40px); }

/* ---------- Listings ---------- */
.page-hero {
  background: var(--secondary); color: var(--surface); padding: 90px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(198,90,67,.45), transparent 60%); pointer-events: none;
}
.page-hero h1 { color: var(--surface); font-size: clamp(2.4rem, 6vw, 5rem); position: relative; }
.page-hero h1 em { color: var(--accent); font-weight: 400; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero p { color: rgba(255,250,244,.8); max-width: 680px; position: relative; font-size: 1.08rem; }

.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft);
}
.filters h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg);
  font-family: var(--font-sans); font-size: .95rem; color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(198,90,67,.15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--secondary); padding: 9px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; cursor: pointer; font-family: var(--font-sans); transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--secondary); color: var(--accent); border-color: var(--secondary); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .field { margin: 0; min-width: 220px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-fade { animation: gridFade .55s var(--ease); }
@keyframes gridFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Detail ---------- */
.detail-hero { position: relative; color: var(--surface); background: var(--secondary-deep); overflow: hidden; }
.detail-hero .backdrop { position: absolute; inset: 0; }
.detail-hero .backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .45; animation: drift 24s ease-in-out infinite alternate; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,27,32,.96) 0%, rgba(36,27,32,.7) 50%, rgba(36,27,32,.3) 100%); }
.detail-hero .container { position: relative; z-index: 2; padding: 90px 0 80px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: end; }
.detail-hero h1 { color: var(--surface); font-size: clamp(2.4rem, 6vw, 5.4rem); }
.detail-hero .eyebrow { color: var(--accent); }
.detail-hero .tagline { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: rgba(255,250,244,.88); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.meta-tag { border: 1px solid rgba(229,184,102,.45); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.glass-card {
  background: rgba(57,43,50,.55); border: 1px solid rgba(229,184,102,.25); border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.glass-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .92rem; }
.glass-card dt { color: var(--accent); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; padding-top: 3px; }
.glass-card dd { margin: 0; color: rgba(255,250,244,.9); }

.detail-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; }
.detail-body section { margin-bottom: 50px; }
.info-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); margin-bottom: 24px; }
.info-panel h2 { font-size: 1.6rem; }
.cast-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cast-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; }
.cast-list li strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.note {
  background: var(--highlight); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem;
}
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); z-index: 2; }

.trailer-box {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--secondary-deep);
  display: grid; place-items: center; text-align: center; color: var(--surface);
}
.trailer-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.trailer-box .tb-inner { position: relative; z-index: 2; padding: 24px; max-width: 460px; }
.play-orb {
  width: 84px; height: 84px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; margin: 0 auto 16px;
  box-shadow: 0 0 0 12px rgba(198,90,67,.25), 0 20px 40px rgba(0,0,0,.4); transition: transform .3s var(--ease);
}
.trailer-box a:hover .play-orb { transform: scale(1.08); }
.trailer-box p { color: rgba(255,250,244,.82); font-size: .9rem; }
.trailer-box a { color: var(--surface); text-decoration: none; }

.similar-list { list-style: none; padding: 0; margin: 0; }
.similar-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.similar-list li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--secondary); color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg); }

/* ---------- Prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.toc ol { margin: 0; }
.placeholder { background: var(--highlight); padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--secondary); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Toggle switch */
.pref-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.pref-row:last-of-type { border-bottom: 0; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background .3s; }
.switch .slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:disabled + .slider { opacity: .6; cursor: not-allowed; }
.switch input:focus-visible + .slider { outline: 3px solid var(--accent); outline-offset: 2px; }
.save-msg { color: #3f8f5b; font-weight: 700; font-size: .9rem; margin-left: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary-deep); color: rgba(255,250,244,.78); padding: 80px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(229,184,102,.18); }
.site-footer h2 { font-size: .78rem; font-family: var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,250,244,.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand p { margin-top: 16px; max-width: 340px; }
.footer-notices { padding: 32px 0; display: grid; gap: 16px; font-size: .84rem; line-height: 1.6; }
.footer-notices p { margin: 0; padding: 18px 22px; border: 1px solid rgba(229,184,102,.18); border-radius: var(--radius-sm); background: rgba(255,250,244,.03); }
.footer-notices strong { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: rgba(255,250,244,.55); padding-top: 10px; }
.footer-bottom button { background: none; border: 0; color: var(--accent); cursor: pointer; font-family: var(--font-sans); font-size: .8rem; padding: 0; text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 720px; margin-inline: auto;
  background: rgba(36,27,32,.94); color: var(--surface); border: 1px solid rgba(229,184,102,.35); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-banner h2 { font-size: 1.3rem; color: var(--surface); margin-bottom: .4em; }
.cookie-banner p { font-size: .88rem; color: rgba(255,250,244,.8); margin-bottom: 16px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Floating watchlist ---------- */
.watch-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; box-shadow: 0 16px 40px rgba(198,90,67,.45); display: grid; place-items: center;
  transition: transform .3s var(--ease); animation: bob 5s ease-in-out infinite;
}
.watch-fab:hover { transform: scale(1.08); }
.watch-fab .count {
  position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--secondary); min-width: 22px; height: 22px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.watch-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 160; width: min(360px, calc(100vw - 44px)); max-height: 70vh; overflow-y: auto;
  background: rgba(36,27,32,.95); color: var(--surface); border: 1px solid rgba(229,184,102,.3); border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(20px) scale(.97); pointer-events: none; transition: all .35s var(--ease);
}
.watch-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.watch-panel h2 { font-size: 1.35rem; color: var(--surface); }
.watch-panel p { font-size: .85rem; color: rgba(255,250,244,.7); }
.watch-panel ul { list-style: none; padding: 0; margin: 0 0 16px; }
.watch-panel li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(229,184,102,.15); font-size: .9rem; }
.watch-panel li a { color: var(--surface); text-decoration: none; font-weight: 600; }
.watch-panel li a:hover { color: var(--accent); }
.watch-panel li button { background: none; border: 1px solid rgba(255,250,244,.25); color: rgba(255,250,244,.7); border-radius: 999px; font-size: .72rem; padding: 4px 10px; cursor: pointer; }
.watch-panel .pick { background: rgba(229,184,102,.12); border-radius: var(--radius-sm); padding: 14px; font-size: .88rem; }
.watch-panel .pick a { color: var(--accent); font-weight: 700; }

/* ---------- Floating 3D ornaments ---------- */
.ornament { position: absolute; pointer-events: none; opacity: .9; animation: float2 9s ease-in-out infinite; z-index: 0; }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 6deg)); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-card:nth-child(2), .guide-card:nth-child(4) { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .detail-hero .container, .detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--secondary); max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); border-bottom: 1px solid rgba(229,184,102,.2); }
  .primary-nav.open { max-height: 420px; }
  .primary-nav ul { flex-direction: column; padding: 10px 4vw 20px; }
  .primary-nav a { display: block; }
  .poster-grid .poster-card, .poster-grid.asym .poster-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .poster-grid.asym .poster-card:nth-child(6n+6) { grid-column: span 12; grid-template-columns: 1fr; }
  .spread, .two-col { grid-template-columns: 1fr; }
  .spread-visual { min-height: 420px; }
  .columns-3 { grid-template-columns: 1fr; }
  .columns-3 article { border-right: 0 !important; border-bottom: 1px solid rgba(229,184,102,.2); }
  .frame-1 { width: 55vw; height: 30vh; right: -8vw; top: 4vh; }
  .frame-2 { width: 36vw; height: 20vh; right: 40vw; top: 68vh; }
  .frame-3 { width: 34vw; height: 18vh; right: -4vw; top: 70vh; }
  .frame-4, .frame-5 { display: none; }
  .premiere-badge { width: 110px; height: 110px; bottom: 3vh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .poster-grid .poster-card, .poster-grid.asym .poster-card:nth-child(n) { grid-column: span 12; }
  .listing-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cast-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery figure:first-child { grid-row: auto; }
  .premiere-badge { display: none; }
  .hero { min-height: auto; padding: 70px 0 90px; }
  .card-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mask > span { transform: none; }
}