/* ============ Lost Lands Archive — Amber ============ */
:root {
  --bg: #0b0705;
  --ink: #f2e5cf;
  --ink-dim: #b99d76;
  --gold: #e8b36a;
  --gold-2: #ffca7a;
  --taupe: #8a7354;
  --card-edge: rgba(232, 179, 106, 0.2);
  --card-edge-hot: rgba(232, 179, 106, 0.55);
  --card-bg: rgba(255, 200, 126, 0.03);
  --glass: rgba(20, 11, 5, 0.78);
  --font-display: Marcellus, Georgia, serif;
  --font-body: Jost, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(120% 70% at 50% -10%, #241105 0%, #140a04 50%, #0b0705 100%) fixed var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; }

/* ---------- atmosphere ---------- */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; will-change: transform; }
.b1 { width: 55vw; height: 55vw; left: -18vw; top: -20vw;
  background: radial-gradient(circle, rgba(120, 60, 12, 0.5), transparent 65%);
  animation: drift1 28s ease-in-out infinite alternate; }
.b2 { width: 44vw; height: 44vw; right: -14vw; top: 8vh;
  background: radial-gradient(circle, rgba(255, 154, 60, 0.14), transparent 65%);
  animation: drift2 34s ease-in-out infinite alternate; }
.b3 { width: 58vw; height: 58vw; left: 22vw; bottom: -32vh;
  background: radial-gradient(circle, rgba(90, 44, 10, 0.4), transparent 65%);
  animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-6vw, 12vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -8vh) scale(1.08); } }

#spores { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite; }
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); } 80% { transform: translate(3%,3%); }
}

/* the living orb — brand mark and play button */
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 24px 6px rgba(255,154,60,0.28), inset 0 0 22px rgba(255,154,60,0.5); }
  50% { box-shadow: 0 0 40px 14px rgba(255,154,60,0.42), inset 0 0 32px rgba(255,180,90,0.65); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.orb {
  position: relative; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 38% 30%, #ffc87e 0%, #f09a3e 38%, #a4520f 74%, #4a2205 100%);
  animation: orbPulse 6s ease-in-out infinite;
}
.orb::before {
  content: ""; position: absolute; inset: -45%;
  background: conic-gradient(from 0deg, rgba(255,225,160,0) 0%, rgba(255,205,120,0.55) 22%, rgba(90,40,8,0) 55%, rgba(255,180,90,0.35) 78%, rgba(255,225,160,0) 100%);
  animation: spinSlow 8s linear infinite;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.6rem);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(232, 179, 106, 0.18);
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-orb { width: 30px; height: 30px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.3em;
  white-space: nowrap;
}
.brand-text em { font-style: normal; color: var(--gold); }

/* year tabs */
.years-inline { display: flex; gap: 0.1rem; overflow-x: auto; scrollbar-width: none; margin: 0 auto; }
.years-inline::-webkit-scrollbar { display: none; }
.year-tab {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--ink-dim); background: none; border: 0; cursor: pointer;
  padding: 0.55rem 0.85rem; position: relative; white-space: nowrap;
  transition: color 0.25s;
}
.year-tab::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.22rem; height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.year-tab:hover { color: var(--ink); }
.year-tab.active { color: var(--gold-2); }
.year-tab.active::after { transform: scaleX(1); box-shadow: 0 0 12px rgba(255, 202, 122, 0.6); }

/* video/audio mode toggle */
.mode-toggle {
  display: flex; gap: 2px; padding: 3px; flex-shrink: 0;
  background: rgba(232, 179, 106, 0.07); border: 1px solid rgba(232, 179, 106, 0.22);
  border-radius: 999px;
}
.mode-toggle button {
  font-family: var(--font-body); font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); background: none; border: 0; cursor: pointer;
  padding: 0.4rem 0.95rem; border-radius: 999px; white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.mode-toggle button:hover { color: var(--ink); }
.mode-toggle button.active {
  color: #0b0705; background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 0 2px 14px rgba(255, 180, 90, 0.35);
}

.search-wrap { position: relative; display: flex; align-items: center; width: min(260px, 32vw); flex-shrink: 0; }
.search-ico { position: absolute; left: 0.85rem; width: 15px; height: 15px; color: var(--ink-dim); pointer-events: none; }
#search {
  width: 100%; padding: 0.58rem 2.9rem 0.58rem 2.3rem;
  background: rgba(232, 179, 106, 0.06); color: var(--ink);
  border: 1px solid rgba(232, 179, 106, 0.2); border-radius: 999px;
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
#search::placeholder { color: var(--ink-dim); }
#search:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 179, 106, 0.15), 0 0 24px rgba(255, 180, 90, 0.14); background: rgba(232, 179, 106, 0.09); }
.slash-hint { position: absolute; right: 0.8rem; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--taupe);
  border: 1px solid rgba(232, 179, 106, 0.3); border-radius: 5px; padding: 0.06rem 0.42rem; pointer-events: none; }

/* ---------- content ---------- */
#content { padding: 0.4rem clamp(1rem, 4vw, 2.6rem) 4rem; min-height: 60vh; }
.list-head { display: flex; align-items: flex-end; gap: 1rem; margin: 1.7rem 0 1.3rem; flex-wrap: wrap; }
.head-left { flex: 1; min-width: 240px; }
.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.4em; color: var(--ink-dim);
  text-transform: uppercase;
}
.eyebrow b { color: var(--gold); font-weight: 600; }
.page-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: 0.02em;
  margin-top: 0.3rem; line-height: 1.1;
}

/* source filter segmented control */
.filter-seg {
  display: flex; gap: 2px; padding: 3px;
  background: rgba(232, 179, 106, 0.07); border: 1px solid rgba(232, 179, 106, 0.22);
  border-radius: 999px;
}
.filter-seg button {
  font-family: var(--font-body); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); background: none; border: 0; cursor: pointer;
  padding: 0.42rem 1.05rem; border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.filter-seg button:hover { color: var(--ink); }
.filter-seg button.active {
  color: #0b0705; background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 0 2px 14px rgba(255, 180, 90, 0.35); font-weight: 600;
}

/* lineup poster button */
.poster-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold); background: none; cursor: pointer;
  border: 1px solid rgba(232, 179, 106, 0.4); border-radius: 0;
  padding: 0.5rem 1.2rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.poster-btn:hover { color: var(--gold-2); border-color: rgba(255, 202, 122, 0.65); background: rgba(232, 179, 106, 0.07); }
.poster-btn svg { flex-shrink: 0; }

/* year-note (2018 etc.) */
.year-note { color: var(--ink-dim); font-size: 0.9rem; margin: -0.4rem 0 1.2rem; max-width: 640px; }

/* ---------- grid & cards ---------- */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-edge);
  cursor: pointer; opacity: 0; transform: translateY(24px);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.3s, box-shadow 0.3s, opacity 0.5s;
}
.card.in { opacity: 1; transform: none; }
.card:hover {
  transform: translateY(-5px);
  border-color: var(--card-edge-hot);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 154, 60, 0.12);
}
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #170c05; border-bottom: 1px solid rgba(232, 179, 106, 0.15); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.4s; filter: saturate(0.88) sepia(0.12) contrast(1.02); }
.card:hover .thumb img { transform: scale(1.06); filter: saturate(1.05) sepia(0.04); }
.thumb::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(11, 7, 5, 0.9)); }
.play-glyph { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; opacity: 0; transition: opacity 0.3s; }
.card:hover .play-glyph { opacity: 1; }
.play-glyph span {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(120deg, var(--gold-2), var(--gold)); color: #2a1204; font-size: 1.1rem; padding-left: 4px;
  box-shadow: 0 0 36px rgba(255, 180, 90, 0.6);
  transform: scale(0.7); transition: transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.card:hover .play-glyph span { transform: scale(1); }
.card-body { padding: 0.8rem 0.95rem 0.9rem; }
.card-artist { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: 0.03em; line-height: 1.25; }
.card-sub { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.official { background: var(--gold-2); box-shadow: 0 0 8px rgba(255, 202, 122, 0.9); }
.dot.fan { background: var(--taupe); }

/* featured trailer band — full row, orb play button, shine sweep */
@keyframes shine { 0% { transform: translateX(-140%) skewX(-18deg); } 55%, 100% { transform: translateX(340%) skewX(-18deg); } }
.trailer-card {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1.5rem;
  border-color: rgba(232, 179, 106, 0.35);
  background: linear-gradient(110deg, #2a1507, #170c05 60%, #241105);
  padding: 1.1rem 1.5rem;
}
.trailer-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px;
  background: linear-gradient(105deg, transparent, rgba(255, 210, 140, 0.13), transparent);
  animation: shine 5.5s ease-in-out 1.4s infinite; pointer-events: none;
}
.trailer-card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 34px rgba(255, 154, 60, 0.16); }
.tr-orb { width: 68px; height: 68px; display: grid; place-items: center; flex-shrink: 0; }
.tr-orb svg { position: relative; z-index: 1; }
.tr-text { flex: 1; min-width: 200px; }
.tr-kicker { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.34em; color: var(--gold); text-transform: uppercase; }
.tr-title { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.3rem; }
.tr-thumb { width: 250px; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(232, 179, 106, 0.3); }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) sepia(0.1); }

/* audio cards — amber resin art block */
.audio-card .art {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: grid; place-items: center;
  border-bottom: 1px solid rgba(232, 179, 106, 0.15);
  background:
    radial-gradient(90% 120% at 25% 0%, rgba(255, 154, 60, 0.2), transparent 55%),
    radial-gradient(90% 120% at 85% 100%, rgba(232, 179, 106, 0.14), transparent 55%),
    #170c05;
}
.audio-card .art::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(232, 179, 106, 0.1) 7px 10px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 50%, #000 30%, transparent 75%);
}
.audio-card .art span {
  font-family: var(--font-display); font-size: 2rem;
  color: rgba(255, 202, 122, 0.8); text-shadow: 0 0 26px rgba(255, 180, 90, 0.5);
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.audio-card:hover .art span { transform: scale(1.18); }
.rail-item .ph {
  width: 100%; aspect-ratio: 16/9; display: grid; place-items: center;
  font-size: 1.2rem; color: rgba(255, 202, 122, 0.75);
  background: radial-gradient(90% 120% at 30% 0%, rgba(255, 154, 60, 0.18), transparent 60%), #170c05;
}

.empty { text-align: center; color: var(--ink-dim); padding: 4rem 1rem; font-size: 1.05rem; }
.empty b { color: var(--ink); }

/* ---------- THEATER ---------- */
.theater { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: #0b0705; }
.theater[hidden] { display: none; }
.th-jungle {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(120, 60, 12, 0.3), transparent 55%),
    radial-gradient(100% 80% at 100% 110%, rgba(255, 154, 60, 0.08), transparent 50%),
    radial-gradient(100% 80% at 0% 110%, rgba(90, 44, 10, 0.2), transparent 50%);
  animation: fadeIn 0.4s both;
}
@keyframes fadeIn { from { opacity: 0; } }

/* dino silhouettes flanking the stage (PhyloPic paleoart, amber-lit) */
.th-dino { position: fixed; bottom: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 179, 106, 0.15), rgba(232, 179, 106, 0.04));
}
.th-trex {
  left: -1vw; width: clamp(180px, 24vw, 420px); aspect-ratio: 1536/876;
  -webkit-mask: url(assets/trex.svg) no-repeat bottom left / contain;
          mask: url(assets/trex.svg) no-repeat bottom left / contain;
  transform: scaleX(-1);
  animation: dinoLoomL 1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.th-bronto {
  right: -2vw; width: clamp(260px, 34vw, 620px); aspect-ratio: 4596/1616;
  background: linear-gradient(180deg, rgba(255, 154, 60, 0.12), rgba(255, 154, 60, 0.03));
  -webkit-mask: url(assets/sauropod.svg) no-repeat bottom right / contain;
          mask: url(assets/sauropod.svg) no-repeat bottom right / contain;
  animation: dinoLoomR 1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes dinoLoomL { from { transform: translateX(-40%) scaleX(-1); opacity: 0; } to { transform: scaleX(-1); opacity: 1; } }
@keyframes dinoLoomR { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }

.th-shell { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column;
  padding: 1rem clamp(0.8rem, 3vw, 2rem) 2rem; }
.th-top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 0.9rem; animation: riseUp 0.5s 0.1s both; }
@keyframes riseUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.th-back {
  font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--ink); background: rgba(232, 179, 106, 0.08);
  border: 1px solid rgba(232, 179, 106, 0.3); border-radius: 999px;
  padding: 0.5rem 1.15rem; cursor: pointer; white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.th-back:hover { border-color: var(--gold); background: rgba(232, 179, 106, 0.14); transform: translateX(-3px); }
.th-title h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 2.6vw, 1.6rem); letter-spacing: 0.02em; line-height: 1.15; }
.th-title p { color: var(--ink-dim); font-size: 0.84rem; margin-top: 0.1rem; }

/* the stage */
.th-stage { display: grid; place-items: center; }
.th-frame {
  position: relative;
  width: min(1560px, 100%, calc((100dvh - 250px) * 1.7778));
  animation: stageUp 0.6s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes stageUp { from { opacity: 0; transform: translateY(34px) scale(0.97); } to { opacity: 1; transform: none; } }
.th-frame::before {
  content: ""; position: absolute; inset: -14px; z-index: 0;
  background: linear-gradient(140deg, rgba(255, 202, 122, 0.5), rgba(232, 179, 106, 0.12) 30%, transparent 55%, rgba(255, 154, 60, 0.35));
  filter: blur(14px); opacity: 0.55;
}
.th-video {
  position: relative; z-index: 1; width: 100%; padding-top: 56.25%;
  background: #000; overflow: hidden;
  border: 1px solid rgba(232, 179, 106, 0.35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}
.th-video iframe, .th-video > div > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.th-claw { position: absolute; z-index: 2; width: 56px; height: 56px; pointer-events: none; opacity: 0.8; }
.th-claw.c1 { top: -10px; left: -10px;
  background:
    linear-gradient(135deg, var(--gold-2) 0 3px, transparent 3px) no-repeat 0 0 / 34px 34px,
    linear-gradient(135deg, var(--gold-2) 0 3px, transparent 3px) no-repeat 10px 10px / 30px 30px,
    linear-gradient(135deg, var(--gold-2) 0 3px, transparent 3px) no-repeat 20px 20px / 26px 26px;
  filter: drop-shadow(0 0 6px rgba(255, 202, 122, 0.7)); }
.th-claw.c2 { bottom: -10px; right: -10px; transform: rotate(180deg);
  background:
    linear-gradient(135deg, var(--gold) 0 3px, transparent 3px) no-repeat 0 0 / 34px 34px,
    linear-gradient(135deg, var(--gold) 0 3px, transparent 3px) no-repeat 10px 10px / 30px 30px,
    linear-gradient(135deg, var(--gold) 0 3px, transparent 3px) no-repeat 20px 20px / 26px 26px;
  filter: drop-shadow(0 0 6px rgba(232, 179, 106, 0.7)); }

/* alternates rail */
.th-rail-wrap { margin: 1.3rem auto 0; width: min(1560px, 100%); animation: riseUp 0.6s 0.3s both; }
.th-rail-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.32em; color: var(--ink-dim); margin-bottom: 0.6rem; }
.th-rail { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: thin; }
.rail-item {
  flex: 0 0 auto; width: 240px; text-align: left; cursor: pointer;
  background: var(--card-bg); color: var(--ink);
  border: 1px solid var(--card-edge); overflow: hidden;
  font-family: var(--font-body);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.rail-item:hover { border-color: var(--card-edge-hot); transform: translateY(-3px); }
.rail-item.playing { border-color: var(--gold); background: rgba(232, 179, 106, 0.08); box-shadow: 0 0 20px rgba(255, 180, 90, 0.18); }
.rail-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; filter: saturate(0.88) sepia(0.1); }
.rail-item .t { padding: 0.5rem 0.65rem 0.6rem; }
.rail-item .t b { display: block; font-weight: 500; font-size: 0.78rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-item .t span { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-dim); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.3rem; }

/* ---------- lineup poster lightbox ---------- */
.poster-box { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.2rem; }
.poster-box[hidden] { display: none; }
.poster-backdrop { position: absolute; inset: 0; background: rgba(7, 4, 2, 0.88); backdrop-filter: blur(12px); animation: fadeIn 0.25s both; }
.poster-fig { position: relative; z-index: 1; margin: 0; animation: stageUp 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.poster-fig img {
  display: block; max-width: min(92vw, 720px); max-height: 90vh; width: auto;
  border: 1px solid rgba(232, 179, 106, 0.4);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 154, 60, 0.14);
}
.poster-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(232, 179, 106, 0.4);
  background: rgba(11, 7, 5, 0.85); color: var(--ink); font-size: 1rem; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.poster-close:hover { background: rgba(232, 179, 106, 0.25); transform: rotate(90deg); }

/* ---------- footer ---------- */
.footer { padding: 2.5rem clamp(1rem, 4vw, 2.6rem) 3rem; color: var(--taupe); font-size: 0.84rem; text-align: center; }
.footer p { max-width: 680px; margin: 0 auto; }
.footer a { color: var(--ink-dim); }

/* ---------- responsive / motion ---------- */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 0.35rem 0.8rem; padding: 0.55rem 0.9rem 0.3rem; }
  .search-wrap { margin-left: auto; width: min(240px, 52vw); }
  .years-inline {
    order: 3; width: calc(100% + 1.8rem); margin: 0 -0.9rem;
    justify-content: flex-start; padding: 0 0.9rem;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  .year-tab { scroll-snap-align: center; font-size: 1rem; padding: 0.6rem 0.8rem; }
  .tr-thumb { display: none; }
}
@media (max-width: 640px) {
  .brand-text { display: none; }
  .search-wrap { flex: 1; width: auto; min-width: 110px; }
  .mode-toggle button { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
  .filter-seg { flex: 1 0 100%; }
  .filter-seg button { flex: 1; padding: 0.72rem 0; font-size: 0.78rem; }
  .poster-btn { padding: 0.6rem 1rem; }
  .trailer-card { flex-wrap: wrap; }
  .th-dino { display: none; }
  .th-frame { width: 100%; }
  .th-top { flex-wrap: wrap; gap: 0.6rem; }
  .th-back { padding: 0.68rem 1.2rem; }
  .rail-item { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
