:root {
  --bg: #09090b;
  --red: #e5394f;
  --text: #f8f8fa;
  --muted: #a5a5ad;
  --gutter: 5vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: #09090b;
  pointer-events: none;
  animation: intro-out .7s ease 2s forwards;
}
.intro-mark {
  color: var(--red);
  font-size: clamp(110px, 20vw, 210px);
  font-weight: 800;
  line-height: .9;
  text-shadow: 0 0 45px #ec30455c;
  animation: mark-in 1.1s ease both;
}
.intro-word {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .4em;
  padding-left: .4em;
  opacity: 0;
  animation: word-in .5s ease .7s forwards;
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(.7); filter: blur(12px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes word-in { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 var(--gutter);
  background: linear-gradient(#070709d9, transparent);
}
.topbar.scrolled {
  position: fixed;
  background: #09090bf2;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand-mark, .mini-mark {
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 8px 8px 8px 3px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark { width: 29px; height: 29px; }
.topbar nav { display: flex; gap: 25px; font-size: 13px; color: #d2d2d7; }
.topbar nav a:hover, .topbar nav .active { color: white; font-weight: 700; }
.tools { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #ffffff55;
  background: #08080aaa;
}
.search-box span { font-size: 22px; }
.search-box input { width: 100%; border: 0; outline: 0; color: white; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #c6c6cc; }
.search-toggle { display: none; border: 0; background: none; color: white; font-size: 24px; }
.profile {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, #59657f, #242b3b);
}

.hero {
  height: min(790px, 92vh);
  min-height: 570px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 72px var(--gutter) 30px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=2200&q=90") center 43% / cover;
  animation: reveal 1.5s ease both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #09090b 0%, #09090bdd 23%, #09090b70 56%, #09090b14),
              linear-gradient(0deg, #09090b 0%, transparent 48%, #09090b45);
}
@keyframes reveal { from { transform: scale(1.08); filter: brightness(.55); } to { transform: scale(1); filter: brightness(1); } }
.hero-content { position: relative; z-index: 1; max-width: 510px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #ddd; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.mini-mark { width: 19px; height: 19px; font-size: 11px; }
.kicker { margin: 20px 0 7px; color: #ddd; font-size: 11px; letter-spacing: .28em; }
.hero h1 { margin: 0 0 22px; font-size: clamp(58px, 8vw, 104px); line-height: .8; letter-spacing: -.065em; }
.hero h1 em { color: var(--red); font-style: normal; }
.description { max-width: 420px; color: #e0e0e5; font-size: 15px; line-height: 1.65; }
.meta { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #d5d5dc; font-size: 12px; }
.match { color: #70dbad; font-weight: 700; }
.rating, .uhd { border: 1px solid #98989e; padding: 2px 5px; font-size: 10px; }
.actions { display: flex; align-items: center; gap: 11px; }
.button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  transition: transform .18s, background .18s;
}
.button:hover { transform: translateY(-2px); }
.light { color: #17171a; background: #f5f5f7; }
.light:hover { background: #dddde2; }
.glass { color: white; background: #ffffff2b; backdrop-filter: blur(8px); }
.hero-rating {
  position: absolute;
  right: 0;
  bottom: 110px;
  padding: 9px 36px 9px 14px;
  border-left: 3px solid #ddd;
  background: #1118;
}
.content { position: relative; z-index: 2; margin-top: -75px; padding: 0 var(--gutter); }
.title-row { margin-bottom: 38px; }
.title-row h2 { margin: 0 0 13px; font-size: 20px; }
.subtle { color: #92929a; font-size: 13px; font-weight: 500; }
.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.poster-card { min-width: 0; cursor: pointer; transition: transform .2s; }
.poster-card:hover { z-index: 2; transform: scale(1.04); }
.poster-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #24242a center / cover no-repeat;
  box-shadow: 0 5px 17px #0005;
}
.poster-image::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(0deg, #08080bd0, transparent);
}
.card-tag {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  border-radius: 3px;
  color: white;
  background: var(--red);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}
.card-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 43px;
  height: 43px;
  border: 1px solid white;
  border-radius: 50%;
  color: white;
  background: #131318b5;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: .2s;
}
.poster-card:hover .card-play { opacity: 1; transform: translate(-50%, -50%); }
.card-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 9px; }
.card-meta strong { font-size: 13px; }
.card-meta small { color: #9999a2; font-size: 11px; }
.progress { height: 3px; margin-top: 7px; border-radius: 3px; background: #626269; }
.progress i { display: block; height: 100%; background: var(--red); }
.tall .poster-image { aspect-ratio: 2 / 2.55; }
.rank {
  position: absolute;
  z-index: 1;
  bottom: -15px;
  left: 9px;
  color: #08080b;
  font-size: 75px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 1px 1px white, -1px -1px white, 1px -1px white, -1px 1px white;
}
.poster-title { position: absolute; z-index: 1; left: 44%; bottom: 18px; font-size: 24px; font-weight: 800; line-height: .9; }
.empty { color: var(--muted); font-size: 13px; padding: 15px 0 25px; }
footer { padding: 25px var(--gutter) 45px; border-top: 1px solid #ffffff12; color: #909098; font-size: 12px; }
footer p { margin: 12px 0 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0; }
footer small { font-size: 10px; }

dialog {
  width: min(690px, calc(100% - 30px));
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 9px;
  color: white;
  background: #17171b;
  box-shadow: 0 25px 80px #000b;
}
dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }
.dialog-art {
  height: 290px;
  background: #24242a center / cover no-repeat;
  mask-image: linear-gradient(black 65%, transparent);
}
.dialog-content { position: relative; margin-top: -45px; padding: 0 32px 32px; }
.dialog-content h2 { margin: 13px 0; font-size: 34px; }
.dialog-content p { max-width: 560px; color: #c4c4cb; font-size: 14px; line-height: 1.6; }
.close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #09090bcc;
  font-size: 25px;
}
.list-button {
  width: 44px;
  height: 44px;
  border: 1px solid #aaa;
  border-radius: 50%;
  color: white;
  background: #ffffff18;
  font-size: 25px;
}
.list-button.saved { color: #151519; background: white; }
.toast {
  position: fixed;
  z-index: 10;
  bottom: 26px;
  left: 50%;
  padding: 12px 18px;
  border-radius: 5px;
  color: #111;
  background: #f1f1f3;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  :root { --gutter: 4vw; }
  .topbar { gap: 22px; }
  .topbar nav { gap: 15px; }
  .cards { grid-auto-columns: calc((100% - 24px) / 3); }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .topbar { height: 60px; gap: 14px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 25px; height: 25px; }
  .topbar nav { gap: 13px; font-size: 11px; }
  .topbar nav a:nth-child(2), .topbar nav a:nth-child(3) { display: none; }
  .tools { gap: 9px; }
  .search-box { display: none; position: absolute; right: 60px; top: 12px; width: 65vw; }
  .search-box.open { display: flex; }
  .search-toggle { display: block; }
  .profile { width: 28px; height: 28px; }
  .hero { height: 77vh; min-height: 520px; align-items: flex-end; padding-bottom: 95px; }
  .hero-art { background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, #09090b 2%, #09090bbd 48%, #09090b33), linear-gradient(90deg, #09090b66, transparent); }
  .hero h1 { font-size: 67px; }
  .description { font-size: 13px; }
  .content { margin-top: -45px; }
  .title-row { margin-bottom: 28px; }
  .title-row h2 { font-size: 17px; }
  .cards { grid-auto-columns: calc((100% - 12px) / 2); }
  .dialog-art { height: 210px; }
  .dialog-content { padding: 0 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}