:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #151515;
  --text: #f5f3ee;
  --muted: #9b9b96;
  --line: rgba(255,255,255,.12);
  --accent: #d8ff3e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.watch-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 82px;
  padding: 0 clamp(20px,4vw,72px);
  display: flex;
  align-items: center;
  gap: 42px;
  background: linear-gradient(to bottom,rgba(0,0,0,.9),transparent);
  transition: .3s;
}
.watch-header.scrolled {
  height: 70px;
  background: rgba(8,8,8,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.watch-logo { width: 145px; display: block; }
.watch-nav { display: flex; gap: 28px; color: #d0d0cb; font-size: 13px; }
.watch-nav a:hover { color: var(--accent); }
.watch-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.search-button {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; background: transparent;
}
.search-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tickets-link {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.tickets-link:hover { border-color: var(--accent); color: var(--accent); }

.search-drawer {
  position: fixed;
  inset: 82px 0 auto;
  z-index: 45;
  padding: 18px clamp(20px,4vw,72px) 24px;
  background: rgba(8,8,8,.97);
  border-bottom: 1px solid var(--line);
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
  transition: .28s ease;
}
.search-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.search-drawer label {
  display: block; margin-bottom: 10px; color: var(--muted);
  font-size: 10px; letter-spacing: .18em;
}
.search-control { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-control input {
  width: 100%; min-width: 0; padding: 14px 16px;
  background: #141414; color: white;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.search-control button {
  padding: 0 20px; border: 1px solid var(--line);
  background: #161616; border-radius: 8px;
}

.watch-hero {
  min-height: 84vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 150px clamp(20px,5vw,88px) 90px;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(circle at 74% 30%,rgba(216,255,62,.22),transparent 25%),
    radial-gradient(circle at 68% 54%,rgba(82,62,190,.3),transparent 30%),
    linear-gradient(120deg,#080808 10%,#182325 50%,#10101c 100%);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(120deg,transparent 0 90px,rgba(255,255,255,.025) 91px 92px);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.08) 70%),
    linear-gradient(to top,var(--bg),transparent 34%);
}
.watch-hero-copy { width: min(680px,100%); }
.watch-label {
  color: var(--accent); font-size: 10px;
  font-weight: 600; letter-spacing: .22em;
}
.watch-hero h1 {
  margin: 15px 0 22px;
  font-family: "Manrope",sans-serif;
  font-size: clamp(64px,10vw,148px);
  font-weight: 600; line-height: .79; letter-spacing: -.075em;
}
.watch-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,243,238,.68);
}
.hero-meta,.details-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 13px;
  color: #c5c5bf; font-size: 13px;
}
.rating { padding: 3px 7px; border: 1px solid rgba(255,255,255,.38); border-radius: 4px; }
.hero-description {
  max-width: 580px; margin: 22px 0 28px;
  color: #c5c5bf; font-size: 17px; line-height: 1.65;
}
.hero-buttons,.details-buttons { display: flex; align-items: center; gap: 12px; }
.play-button,.info-button {
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; font-weight: 600;
}
.play-button { background: var(--accent); color: #090909; }
.info-button { background: rgba(90,90,90,.68); color: white; backdrop-filter: blur(8px); }

.watch-library { padding: 0 clamp(16px,4vw,72px) 80px; }
.watch-section,.results-section { margin-bottom: 48px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
}
.section-head p {
  color: var(--accent); font-size: 10px;
  font-weight: 600; letter-spacing: .2em;
}
.section-head h2 {
  margin-top: 8px; font-family: "Manrope",sans-serif;
  font-size: clamp(27px,3vw,42px); font-weight: 500; letter-spacing: -.04em;
}
.section-head > span { color: var(--muted); font-size: 12px; }

.poster-row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(170px,18vw);
  gap: 12px; overflow-x: auto; padding: 5px 2px 18px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.poster-row::-webkit-scrollbar { display: none; }
.poster-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 14px;
}
.poster-card {
  position: relative; aspect-ratio: 2/3; overflow: hidden;
  border-radius: 8px; background: var(--surface);
  cursor: pointer; scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.poster-card:hover {
  z-index: 3; transform: translateY(-7px) scale(1.025);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.poster-art {
  position: absolute; inset: 0;
  background: var(--poster-art);
  background-size: cover; background-position: center;
}
.poster-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(0,0,0,.94),transparent 58%);
}
.poster-copy { position: absolute; z-index: 2; inset: auto 14px 15px; }
.poster-copy small {
  color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .13em;
}
.poster-copy h3 { margin-top: 6px; font-size: 16px; line-height: 1.15; }
.poster-save {
  position: absolute; z-index: 3; top: 11px; right: 11px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.58); color: white;
}
.poster-save.active { background: white; color: black; }
.empty-copy { color: var(--muted); }

.watch-footer {
  padding: 60px clamp(20px,5vw,88px);
  display: flex; justify-content: space-between; align-items: end; gap: 30px;
  border-top: 1px solid var(--line); color: var(--muted);
}
.footer-logo { width: 150px; display: block; margin-bottom: 18px; }
.footer-watch-links { display: flex; gap: 22px; }
.footer-watch-links a:hover { color: var(--accent); }

.details-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.84); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: .25s;
}
.details-backdrop.open { opacity: 1; visibility: visible; }
.details-modal {
  position: relative; width: min(900px,100%); max-height: 92vh;
  overflow-y: auto; border-radius: 16px; background: #151515;
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; z-index: 4; top: 15px; right: 15px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.72); font-size: 26px;
}
.details-art {
  position: relative; min-height: 400px;
  background: var(--details-art); background-size: cover; background-position: center;
}
.details-fade { position: absolute; inset: 0; background: linear-gradient(to top,#151515,transparent 62%); }
.details-title-wrap { position: absolute; z-index: 2; left: 36px; right: 70px; bottom: 30px; }
.details-title-wrap h2 {
  margin-top: 8px; font-family: "Manrope",sans-serif;
  font-size: clamp(44px,6vw,82px); line-height: .9; letter-spacing: -.06em;
}
.details-body { padding: 24px 36px 38px; }
.save-button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent; font-size: 23px;
}
.save-button.active { background: white; color: black; }
.details-grid {
  margin-top: 28px; display: grid;
  grid-template-columns: 1.25fr .75fr; gap: 36px; line-height: 1.65;
}
.details-grid > div:first-child > p { margin-top: 18px; color: #d0d0cb; }
.facts p { margin-bottom: 12px; font-size: 13px; }
.facts span { display: block; color: #777; }
.facts strong { color: #d6d6d2; font-weight: 500; }

.player-screen {
  position: fixed; inset: 0; z-index: 150;
  background: #000; opacity: 0; visibility: hidden; transition: .25s;
}
.player-screen.open { opacity: 1; visibility: visible; }
.player-topbar {
  height: 68px; padding: 0 4vw;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid var(--line);
}
.player-topbar button { justify-self: start; border: 0; background: transparent; }
.player-topbar h2 { font-size: 15px; font-weight: 500; }
.player-frame {
  position: relative; width: min(1300px,calc(100% - 40px));
  aspect-ratio: 16/9; margin: 30px auto;
  overflow: hidden; border-radius: 12px; background: #080808;
}
.player-frame video { width: 100%; height: 100%; display: block; background: black; }
.player-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center;
  padding: 30px; text-align: center;
  background: radial-gradient(circle,#202020,#050505);
}
.player-placeholder p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.placeholder-play {
  width: 70px; height: 70px; margin: 0 auto 15px;
  display: grid; place-items: center; border-radius: 50%;
  background: white; color: black; font-size: 22px;
}

@media (max-width: 820px) {
  .watch-nav { display: none; }
  .poster-row { grid-auto-columns: minmax(155px,42vw); }
  .details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .watch-header { height: 70px; padding-inline: 17px; }
  .watch-logo { width: 122px; }
  .tickets-link { display: none; }
  .search-drawer { inset-block-start: 70px; padding-inline: 16px; }
  .watch-hero { min-height: 76vh; padding: 120px 18px 62px; }
  .watch-hero h1 { font-size: 18vw; }
  .watch-library { padding-inline: 14px; }
  .poster-row { grid-auto-columns: 44vw; gap: 9px; }
  .poster-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .watch-footer { align-items: flex-start; flex-direction: column; }
  .details-backdrop { padding: 0; align-items: end; }
  .details-modal { max-height: 95vh; border-radius: 18px 18px 0 0; }
  .details-art { min-height: 310px; }
  .details-title-wrap { left: 20px; right: 52px; bottom: 22px; }
  .details-body { padding: 20px 20px 30px; }
  .player-frame { width: 100%; margin-top: 20px; border-radius: 0; }
}
