/* ============================================================
   KEYTV — DESIGN TOKENS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root{
  --bg: #08080a;
  --bg-elevated: #101013;
  --card: #18181c;
  --card-hover: #202024;
  --text: #f3f1ea;
  --text-dim: #9b9aa3;
  --text-faint: #67666f;
  --line: rgba(255,255,255,.09);

  --green: #38ffb0;
  --green-dim: #1f8f66;
  --blue: #52d6ff;
  --gold: #dcae63;
  --violet: #b18cff;
  --red: #ff6161;

  --radius: 10px;
  --radius-lg: 16px;

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(.22,.9,.25,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; cursor: pointer; }
::selection{ background: var(--green); color: #06110d; }

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

.container{
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}

@media (max-width: 720px){
  .container{ padding: 0 20px; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: linear-gradient(to bottom, rgba(8,8,10,.92) 0%, rgba(8,8,10,.7) 70%, transparent 100%);
  backdrop-filter: blur(6px);
}
.nav.is-solid{ background: rgba(8,8,10,.96); box-shadow: 0 1px 0 var(--line); }

.brand{
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.brand .key-mark{
  color: var(--text);
  text-shadow: 0 0 18px rgba(56,255,176,.35);
}
.brand .tv-mark{
  color: var(--blue);
  text-shadow: 0 0 18px rgba(82,214,255,.45);
}
.brand-logo{
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(56,255,176,.18));
}
.site-footer .brand-logo{ height: 32px; }

.nav-links{
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.nav-links a:hover{ color: var(--text); }

.nav-right{ display: flex; align-items: center; gap: 28px; }

.btn-mylist{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.btn-mylist:hover{ background: rgba(255,255,255,.06); }
.mylist-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--green);
  color: #06110d;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-subscribe{
  background: var(--green);
  color: #04140d;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-subscribe:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56,255,176,.28);
}

.nav-menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
}

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-menu-toggle{ display: block; }
  .nav{ padding: 18px 20px; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero{
  position: relative;
  height: min(92vh, 900px);
  min-height: 560px;
  margin-top: -84px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease);
  z-index: 1;
}
.hero-slide.is-active{
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg{
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0c0c10;
}
.hero-bg video,
.hero-bg .gradient-motion,
.hero-bg-img{
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
}
.hero-bg-img{
  animation: kenBurns 22s ease-in-out infinite alternate;
}
@keyframes kenBurns{
  from{ transform: scale(1); }
  to{ transform: scale(1.08); }
}

/* Motion fallback: an animated gradient field standing in for
   footage. Swap the slide's bg.type to "video" and give it a
   src to play real motion background here instead. */
.gradient-motion{
  background-size: 200% 200%;
  animation: gradientDrift 18s ease-in-out infinite alternate;
}
.gradient-motion.tone-smoke{
  background-image: radial-gradient(circle at 25% 30%, rgba(56,255,176,.20), transparent 55%),
                     radial-gradient(circle at 75% 70%, rgba(82,214,255,.16), transparent 55%),
                     linear-gradient(160deg, #0c0c10, #101013 60%, #0a0e0d);
}
.gradient-motion.tone-violet{
  background-image: radial-gradient(circle at 70% 20%, rgba(177,140,255,.24), transparent 55%),
                     radial-gradient(circle at 20% 80%, rgba(255,97,97,.12), transparent 55%),
                     linear-gradient(160deg, #100c14, #0e0e12 60%, #0a0a0c);
}
.gradient-motion.tone-gold{
  background-image: radial-gradient(circle at 30% 75%, rgba(220,174,99,.26), transparent 55%),
                     radial-gradient(circle at 80% 25%, rgba(56,255,176,.10), transparent 55%),
                     linear-gradient(160deg, #14110c, #100e0c 60%, #0a0a0a);
}
.gradient-motion.tone-olive{ background-image: radial-gradient(circle at 30% 30%, rgba(140,166,72,.22), transparent 55%), linear-gradient(160deg,#181c10,#0c0e08); }
.gradient-motion.tone-forest{ background-image: radial-gradient(circle at 70% 30%, rgba(60,150,110,.2), transparent 55%), linear-gradient(160deg,#0f1a14,#0a0e0b); }
.gradient-motion.tone-blue{ background-image: radial-gradient(circle at 25% 25%, rgba(70,150,210,.22), transparent 55%), linear-gradient(160deg,#0e1620,#0a0c10); }
.gradient-motion.tone-purple{ background-image: radial-gradient(circle at 70% 25%, rgba(160,110,190,.22), transparent 55%), linear-gradient(160deg,#181120,#0c0a10); }
.gradient-motion.tone-pink{ background-image: radial-gradient(circle at 30% 70%, rgba(200,110,145,.2), transparent 55%), linear-gradient(160deg,#1c1014,#0e0a0b); }
.gradient-motion.tone-amber{ background-image: radial-gradient(circle at 65% 30%, rgba(210,160,80,.22), transparent 55%), linear-gradient(160deg,#181206,#0e0a05); }
.gradient-motion.tone-navy{ background-image: radial-gradient(circle at 30% 30%, rgba(70,100,160,.2), transparent 55%), linear-gradient(160deg,#0c1220,#080a10); }
.gradient-motion.tone-lime{ background-image: radial-gradient(circle at 70% 35%, rgba(150,190,80,.22), transparent 55%), linear-gradient(160deg,#141c0c,#0a0e06); }
.gradient-motion.tone-red{ background-image: radial-gradient(circle at 30% 30%, rgba(200,90,90,.22), transparent 55%), linear-gradient(160deg,#1c0c0c,#0e0808); }
.gradient-motion.tone-teal{ background-image: radial-gradient(circle at 70% 30%, rgba(70,180,175,.2), transparent 55%), linear-gradient(160deg,#0c1a18,#080e0d); }
.gradient-motion.tone-coral{ background-image: radial-gradient(circle at 30% 65%, rgba(210,120,90,.22), transparent 55%), linear-gradient(160deg,#1c100a,#0e0906); }
.gradient-motion.tone-gold-soft{ background-image: radial-gradient(circle at 40% 30%, rgba(190,165,110,.2), transparent 55%), linear-gradient(160deg,#181408,#0c0a05); }
.gradient-motion.tone-indigo{ background-image: radial-gradient(circle at 30% 25%, rgba(110,100,190,.24), transparent 55%), linear-gradient(160deg,#12102a,#0a0916); }
.gradient-motion.tone-rose{ background-image: radial-gradient(circle at 65% 30%, rgba(200,90,130,.22), transparent 55%), linear-gradient(160deg,#1e0f18,#0e070d); }
.gradient-motion.tone-slate{ background-image: radial-gradient(circle at 30% 30%, rgba(90,110,130,.2), transparent 55%), linear-gradient(160deg,#121820,#090c10); }
.gradient-motion.tone-mint{ background-image: radial-gradient(circle at 70% 30%, rgba(70,190,150,.22), transparent 55%), linear-gradient(160deg,#0c1c16,#08120e); }
.gradient-motion.tone-rust{ background-image: radial-gradient(circle at 30% 65%, rgba(200,110,60,.22), transparent 55%), linear-gradient(160deg,#1e1006,#0e0904); }
.gradient-motion.tone-ocean{ background-image: radial-gradient(circle at 30% 30%, rgba(50,140,180,.22), transparent 55%), linear-gradient(160deg,#0a1822,#070f16); }
@keyframes gradientDrift{
  0%{ background-position: 0% 30%; }
  100%{ background-position: 100% 70%; }
}

.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,.96) 0%, rgba(8,8,10,.55) 42%, rgba(8,8,10,.05) 68%),
    linear-gradient(0deg, rgba(8,8,10,1) 0%, rgba(8,8,10,.15) 32%, rgba(8,8,10,.05) 55%);
}

.hero-content{
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 96px;
  max-width: 760px;
}

.hero-kicker{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(14px);
}
.hero-kicker.accent-blue{ color: var(--blue); }
.hero-kicker.accent-gold{ color: var(--gold); }

.hero-title{
  font-family: var(--display);
  font-weight: 400;
  line-height: .94;
  letter-spacing: .5px;
  font-size: clamp(38px, 6vw, 84px);
  margin: 0 0 22px;
}
.hero-title span{
  display: block;
  opacity: 0;
  transform: translateY(24px);
}
.hero-title .line-accent-green{ color: var(--green); }
.hero-title .line-accent-blue{ color: var(--blue); }
.hero-title .line-accent-gold{ color: var(--gold); }

.hero-logline{
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 34px;
  opacity: 0;
  transform: translateY(14px);
}

.hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
}
.play-btn{
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(243,241,234,.5);
  background: rgba(243,241,234,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.play-btn svg{ margin-left: 3px; }
.hero-cta:hover .play-btn{
  background: var(--text);
  border-color: var(--text);
  transform: scale(1.05);
}
.hero-cta:hover .play-btn svg{ fill: #08080a; }
.hero-cta-label{
  font-weight: 700;
  font-size: 16px;
}

.hero-slide.is-active .hero-kicker,
.hero-slide.is-active .hero-title span,
.hero-slide.is-active .hero-logline,
.hero-slide.is-active .hero-cta{
  animation: heroRise .8s var(--ease) forwards;
}
.hero-slide.is-active .hero-kicker{ animation-delay: .15s; }
.hero-slide.is-active .hero-title span:nth-child(1){ animation-delay: .25s; }
.hero-slide.is-active .hero-title span:nth-child(2){ animation-delay: .35s; }
.hero-slide.is-active .hero-title span:nth-child(3){ animation-delay: .45s; }
.hero-slide.is-active .hero-logline{ animation-delay: .55s; }
.hero-slide.is-active .hero-cta{ animation-delay: .68s; }

@keyframes heroRise{
  to{ opacity: 1; transform: translateY(0); }
}

/* --- controls --- */
.hero-controls{
  position: absolute;
  z-index: 4;
  right: 56px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-dots{
  display: flex;
  gap: 10px;
}
.hero-dot{
  width: 34px;
  height: 3px;
  background: rgba(243,241,234,.25);
  border: none;
  border-radius: 2px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-dot::after{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.is-active::after{
  transform: scaleX(1);
  transition: transform 7s linear;
}
.hero-arrow{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease);
}
.hero-arrow:hover{ background: rgba(255,255,255,.12); }

@media (max-width: 720px){
  .hero{ margin-top: -70px; }
  .hero-content{ padding: 0 20px 64px; max-width: 100%; }
  .hero-controls{ right: 20px; bottom: 24px; }
}

/* ============================================================
   KEYHOLE DIVIDER — signature element
   ============================================================ */
.keyhole-divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 56px;
  opacity: .55;
}
.keyhole-divider .line{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.keyhole-divider svg{ flex: none; opacity: .8; }
@media (max-width: 720px){ .keyhole-divider{ margin: 0 20px; } }

/* ============================================================
   SHELVES
   ============================================================ */
.shelf{
  padding: 56px 0 8px;
}
.shelf-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 56px;
  margin-bottom: 22px;
}
.shelf-title{
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .5px;
  margin: 0;
}
.shelf-count{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
}

.shelf-track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 56px 28px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar{ display: none; }

.shelf.wide .shelf-track{ padding-bottom: 8px; }

@media (max-width: 720px){
  .shelf-head{ padding: 0 20px; }
  .shelf-track{ padding: 4px 20px 24px; }
}

/* --- poster card --- */
.poster-card{
  flex: none;
  width: 210px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .28s var(--ease);
}
.poster-card:hover{ transform: translateY(-6px); }

.poster{
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.poster::before{
  content: '';
  position: absolute;
  inset: 0;
  opacity: .9;
}
.poster::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 45%, transparent 60%);
}
.poster-img{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.poster-label{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .3px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.poster-play{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s var(--ease);
  background: rgba(8,8,10,.28);
}
.poster-card:hover .poster-play{ opacity: 1; }
.poster-play svg{
  width: 46px; height: 46px;
}

.poster-meta{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}

.shelf.wide .poster-card{ width: 340px; }
.shelf.wide .poster{ aspect-ratio: 16 / 9; }

@media (max-width: 500px){
  .poster-card{ width: 148px; }
  .shelf.wide .poster-card{ width: 260px; }
}

/* poster tone gradients — stand in for real key art */
.poster.tone-olive::before{ background: linear-gradient(150deg,#4c5a2e,#232a16 70%); }
.poster.tone-violet::before{ background: linear-gradient(150deg,#5b4a92,#221b3a 70%); }
.poster.tone-forest::before{ background: linear-gradient(150deg,#25543f,#12241b 70%); }
.poster.tone-blue::before{ background: linear-gradient(150deg,#2c6fa8,#122236 70%); }
.poster.tone-purple::before{ background: linear-gradient(150deg,#7a4f96,#2a1b34 70%); }
.poster.tone-pink::before{ background: linear-gradient(150deg,#b25c7a,#341b26 70%); }
.poster.tone-amber::before{ background: linear-gradient(150deg,#a8792c,#2e2010 70%); }
.poster.tone-navy::before{ background: linear-gradient(150deg,#233b66,#0e1626 70%); }
.poster.tone-lime::before{ background: linear-gradient(150deg,#7a9c2e,#232a12 70%); }
.poster.tone-red::before{ background: linear-gradient(150deg,#a83c3c,#2e1414 70%); }
.poster.tone-teal::before{ background: linear-gradient(150deg,#2c8a86,#0f2624 70%); }
.poster.tone-coral::before{ background: linear-gradient(150deg,#c46a4e,#341c14 70%); }
.poster.tone-gold::before{ background: linear-gradient(150deg,#b8935a,#332714 70%); }
.poster.tone-gold-soft::before{ background: linear-gradient(150deg,#a68f5e,#2b2416 70%); }
.poster.tone-indigo::before{ background: linear-gradient(150deg,#4a3f8f,#1c1a35 70%); }
.poster.tone-rose::before{ background: linear-gradient(150deg,#a8456f,#2e1420 70%); }
.poster.tone-slate::before{ background: linear-gradient(150deg,#3d4a56,#161c22 70%); }
.poster.tone-mint::before{ background: linear-gradient(150deg,#2e8f74,#0f2620 70%); }
.poster.tone-rust::before{ background: linear-gradient(150deg,#b5602e,#33190a 70%); }
.poster.tone-ocean::before{ background: linear-gradient(150deg,#1f6f8f,#0c2530 70%); }
.poster.tone-smoke::before{ background: linear-gradient(150deg,#2c3b34,#0e1512 70%); }

/* ============================================================
   KEYMAKERS
   ============================================================ */
.keymakers{
  padding: 8px 56px 40px;
}
.keymakers-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 28px;
  max-width: 1100px;
}
.keymaker-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.keymaker-avatar{
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 30px;
  color: rgba(243,241,234,.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.keymaker-card:hover .keymaker-avatar{ transform: translateY(-4px) scale(1.03); }
.keymaker-name{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-top: 14px;
}
.keymaker-role{
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
  letter-spacing: .3px;
}
.keymaker-avatar.tone-violet{ background: linear-gradient(150deg,#6a55a8,#221b3a 70%); }
.keymaker-avatar.tone-blue{ background: linear-gradient(150deg,#337db8,#122236 70%); }
.keymaker-avatar.tone-amber{ background: linear-gradient(150deg,#bd8a35,#2e2010 70%); }
.keymaker-avatar.tone-rose{ background: linear-gradient(150deg,#bd4f7c,#2e1420 70%); }
.keymaker-avatar.tone-teal{ background: linear-gradient(150deg,#329b96,#0f2624 70%); }

@media (max-width: 720px){
  .keymakers{ padding: 8px 20px 32px; }
  .keymakers-grid{ grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 20px; }
  .keymaker-avatar{ width: 84px; height: 84px; font-size: 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  margin-top: 60px;
  padding: 48px 56px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand{ font-size: 20px; }
.footer-links{ display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a{ color: var(--text-dim); }
.footer-links a:hover{ color: var(--text); }

@media (max-width: 720px){
  .site-footer{ padding: 36px 20px 48px; }
}

/* ============================================================
   TITLE / DETAIL PAGE
   ============================================================ */
.title-hero{
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -84px;
}
.title-hero-bg{
  position: absolute;
  inset: 0;
}
.title-hero-img{
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center top;
  filter: blur(48px) saturate(1.15) brightness(.7);
  transform: scale(1.1);
  animation: kenBurns 24s ease-in-out infinite alternate;
}
.title-hero-bg::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(8,8,10,.55) 45%, rgba(8,8,10,.25) 100%);
}

.back-link{
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.back-link:hover{ color: var(--text); }

.title-hero-content{
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 140px 56px 56px;
  width: 100%;
}
.title-hero-text{ max-width: 720px; }
.title-poster-card{
  flex: none;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transform: translateY(-8px);
  background: var(--card);
}
.title-poster-card img{
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 860px){
  .title-poster-card{ display: none; }
}
.title-badges{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .5px;
}
.badge{
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
}
.title-hero-title{
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .5px;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: .98;
  margin: 0 0 18px;
}
.title-logline{
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 30px;
}
.title-actions{ display: flex; align-items: center; gap: 16px; }
.btn-play{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #08080a;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
}
.btn-play:hover{ background: var(--green); }
.btn-ghost{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  padding: 13px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); }
.btn-ghost.is-added{
  background: var(--green);
  border-color: var(--green);
  color: #06110d;
}
.btn-ghost.is-added:hover{ background: var(--green); opacity: .9; }

@media (max-width: 720px){
  .title-hero-content{ padding: 120px 20px 40px; }
}

.title-body{
  padding: 8px 56px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}
@media (max-width: 900px){
  .title-body{ grid-template-columns: 1fr; padding: 8px 20px 0; gap: 40px; }
}

.section-label{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.synopsis{
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 44px;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.gallery-tile{
  aspect-ratio: 4/3;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(243,241,234,.55);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.gallery-tile:nth-child(6n+1){ background: linear-gradient(150deg,#2c6fa8,#122236); }
.gallery-tile:nth-child(6n+2){ background: linear-gradient(150deg,#5b4a92,#221b3a); }
.gallery-tile:nth-child(6n+3){ background: linear-gradient(150deg,#25543f,#12241b); }
.gallery-tile:nth-child(6n+4){ background: linear-gradient(150deg,#a8792c,#2e2010); }
.gallery-tile:nth-child(6n+5){ background: linear-gradient(150deg,#7a4f96,#2a1b34); }
.gallery-tile:nth-child(6n+6){ background: linear-gradient(150deg,#2c8a86,#0f2624); }

@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   EPISODE LIST
   ============================================================ */
.episode-list{
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
}
.episode-row{
  display: flex;
  align-items: center;
  width: 100%;
  gap: 18px;
  padding: 16px 4px;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.episode-row:last-child{ border-bottom: 1px solid var(--line); }
.episode-row:hover{ background: rgba(255,255,255,.03); }

.episode-number{
  flex: none;
  width: 32px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-faint);
}
.episode-info{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.episode-title{
  font-weight: 700;
  font-size: 15px;
}
.episode-blurb{
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.episode-play{
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.episode-row:hover .episode-play{
  background: var(--green);
  border-color: var(--green);
  color: #06110d;
}

@media (max-width: 560px){
  .episode-row{ gap: 12px; }
  .episode-blurb{ display: none; }
}

.credit-group{ margin-bottom: 26px; }
.credit-group .credits-list{ margin-bottom: 0; }
.credit-single{ font-size: 15px; margin: 0; }
.credits-block{ margin-bottom: 36px; }
.credits-role{
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 8px;
}
.credits-list{
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.credits-list li{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.credits-list li:last-child{ border-bottom: 1px solid var(--line); }
.credits-name{ font-weight: 600; }
.credits-part{ color: var(--text-faint); text-align: right; }

.up-next{ padding: 60px 0 20px; }

/* ============================================================
   VIDEO LIGHTBOX
   ============================================================ */
.video-lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease);
}
.video-lightbox.is-open{
  opacity: 1;
  visibility: visible;
}
.video-lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(4,4,5,.92);
  backdrop-filter: blur(6px);
}
.video-lightbox-frame{
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  transform: scale(.97) translateY(8px);
  transition: transform .25s var(--ease);
}
.video-lightbox.is-open .video-lightbox-frame{
  transform: scale(1) translateY(0);
}
.video-lightbox-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.video-lightbox-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-lightbox-close{
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.video-lightbox-close:hover{
  background: var(--green);
  border-color: var(--green);
  color: #06110d;
}

@media (max-width: 640px){
  .video-lightbox-frame{ width: 94vw; }
  .video-lightbox-close{ top: -40px; }
}

/* ============================================================
   KEYMAKER DETAIL PAGE
   ============================================================ */
.keymaker-hero{
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -84px;
}
.keymaker-hero-bg{
  position: absolute;
  inset: 0;
}
.keymaker-hero-img{
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(48px) saturate(1.15) brightness(.7);
  transform: scale(1.1);
  animation: kenBurns 24s ease-in-out infinite alternate;
}
.keymaker-hero-bg::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(8,8,10,.55) 45%, rgba(8,8,10,.25) 100%);
}
.keymaker-hero-content{
  position: relative;
  z-index: 3;
  padding: 140px 56px 56px;
  max-width: 720px;
}
.keymaker-hero-portrait{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 34px;
  color: rgba(243,241,234,.92);
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  margin-bottom: 20px;
}
.keymaker-hero-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

@media (max-width: 720px){
  .keymaker-hero{ margin-top: -70px; }
  .keymaker-hero-content{ padding: 120px 20px 40px; }
}

.keymaker-projects{ padding: 56px 0 40px; }
.keymaker-projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px 20px;
  padding: 4px 56px 28px;
}
.keymaker-projects-grid .poster-card{ width: auto; }
.poster-role{
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--green);
  font-family: var(--mono);
}

@media (max-width: 720px){
  .keymaker-projects-grid{ padding: 4px 20px 24px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 14px; }
}

/* ============================================================
   MY LIST DRAWER
   ============================================================ */
.mylist-drawer{
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.mylist-drawer.is-open{
  visibility: visible;
  pointer-events: auto;
}
.mylist-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(4,4,5,.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mylist-drawer.is-open .mylist-backdrop{ opacity: 1; }

.mylist-panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}
.mylist-drawer.is-open .mylist-panel{ transform: translateX(0); }

.mylist-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mylist-panel-head h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: .3px;
}
.mylist-close{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.mylist-close:hover{ background: rgba(255,255,255,.06); }

.mylist-items{
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
}

.mylist-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.mylist-item-poster{
  flex: none;
  width: 56px;
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.mylist-item-poster::before{ content:''; }
.mylist-item-poster img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mylist-item-info{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mylist-item-title{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mylist-item-title:hover{ color: var(--green); }
.mylist-item-meta{
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}
.mylist-item-remove{
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.mylist-item-remove:hover{
  background: rgba(255,97,97,.12);
  border-color: rgba(255,97,97,.4);
  color: var(--red);
}

.mylist-empty{
  padding: 40px 16px;
  text-align: center;
  color: var(--text-faint);
}
.mylist-empty p{
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  margin: 0 0 6px;
}
.mylist-empty span{ font-size: 13px; }

/* ============================================================
   UTILITIES / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001s !important; transition-duration: .001s !important; }
}
