/* SHORTREELS-UI-001 | Manrope-only | OLED streaming */
:root {
  --bg: #09090b;
  --bg-elev: #121214;
  --panel: #18181b;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgba(250, 250, 250, 0.1);
  --accent: #d4a017;
  --accent-ink: #14110a;
  --accent-soft: rgba(212, 160, 23, 0.14);
  --radius: 0.75rem;
  --radius-pill: 999px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --max: 1120px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

/* —— chrome —— */
.navbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 4rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar .logo { display: flex; align-items: center; }
.brand {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-list {
  display: flex; align-items: center; gap: var(--space-5);
}
.nav-list > .logo { display: none; }
.nav-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  transition: color 160ms var(--ease);
}
.nav-list a:hover, .nav-list .home a { color: var(--ink); }
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.5rem; height: 2.5rem; background: none; border: 0;
}
.hamburger .line {
  display: block; width: 1.25rem; height: 2px; border-radius: 2px; background: var(--ink);
}
.close {
  background: transparent; border: 0; color: var(--ink); font-size: 1.25rem;
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-list {
    position: fixed; inset: 0; z-index: 50;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: var(--space-4);
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 240ms var(--ease), visibility 240ms var(--ease);
  }
  .nav-list.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list > .logo {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--space-5); padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .nav-list li a {
    display: block; padding: var(--space-3) 0;
    font-size: 1.125rem; border-bottom: 1px solid var(--line);
  }
}

/* —— hero —— */
.hero { width: 100%; }
.hero .main {
  min-height: min(78vh, 44rem);
  display: flex; align-items: flex-end;
  background:
    linear-gradient(105deg, rgba(9,9,11,0.96) 8%, rgba(9,9,11,0.72) 42%, rgba(9,9,11,0.28) 72%),
    var(--hero-img) center / cover no-repeat;
}
.hero .content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--space-7) clamp(1rem, 3vw, 2rem) var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.eyebrow, .subtitle small, .page-head small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.hero h1, .page-head h1, .watch-meta h1, .subtitle h4, .cta-band h2 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  max-width: 16ch;
  margin: 0;
  line-height: 1.15;
}
.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin: 0; padding: 0;
  list-style: none;
}
.meta-row li {
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(24, 24, 27, 0.55);
}
.meta-row li::marker { content: ""; }
.meta-row li:empty { display: none; }
.hero-blurb, .page-head p, .muted, .credit {
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 38rem;
}
.watch-btn {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-1);
}
.btn-play, .watch-btn a, a.btn-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink) !important;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.btn-play:hover:not(.btn-ghost), .watch-btn a.btn-play:not(.btn-ghost):hover { background: #e0b123; }
.btn-play:active, .watch-btn a:active { transform: scale(0.97); }
.btn-ghost, a.btn-ghost {
  background: rgba(9, 9, 11, 0.45) !important;
  color: var(--ink) !important;
  border-color: rgba(250, 250, 250, 0.35) !important;
}
.btn-ghost:hover, a.btn-ghost:hover, .watch-btn a.btn-ghost:hover {
  border-color: rgba(250,250,250,0.55) !important;
  background: rgba(250,250,250,0.1) !important;
  color: var(--ink) !important;
}
.btn-play:focus-visible, .nav-list a:focus-visible, .card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— sections —— */
.upcoming-movie, .top-rated, .tv-series, .page-head, .attr-list,
.cta-band, .watch-shell, .news-band, .news-page {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: var(--space-6) clamp(1rem, 3vw, 2rem) 0;
}
.page-head { padding-top: var(--space-6); display: grid; gap: var(--space-2); }
.page-head h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.news-band .header, .upcoming-movie .header, .top-rated .header, .tv-series .header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.subtitle { display: grid; gap: 0.35rem; }
.subtitle h4 { font-size: 1.5rem; margin: 0; }
.header .btn-play {
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.header .btn-play:hover { background: rgba(250,250,250,0.06); }

.movie-card .wrapper { overflow: visible; }
.movie-carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-6);
}
@media (max-width: 980px) {
  .movie-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .movie-carousel { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.card:hover { border-color: rgba(250,250,250,0.22); transform: translateY(-2px); }
.card .img { background: var(--bg-elev); }
.card .img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.card .title {
  display: grid; gap: 0.35rem;
  padding: var(--space-3);
}
.card .title h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.card .title span, .time-rating, .time-rating span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--faint);
}
.time-rating { display: flex; gap: var(--space-2); }

/* —— news —— */
.news-list {
  display: grid; gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.news-list li, .news-card {
  display: grid; gap: 0.35rem;
  padding: var(--space-3) var(--space-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.news-list time, .news-card time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-list strong, .news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.news-list span, .news-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* —— cta —— */
.cta-band {
  margin: var(--space-6) auto;
  padding: var(--space-5) clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  background:
    radial-gradient(480px 160px at 0% 0%, var(--accent-soft), transparent 70%),
    var(--panel);
  display: grid; gap: var(--space-3);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.cta-band p { color: var(--muted); max-width: 36rem; margin: 0; }

/* —— watch —— */
.watch-shell {
  display: grid; gap: var(--space-4);
  padding-bottom: var(--space-6);
}
@media (min-width: 960px) {
  .watch-shell { grid-template-columns: 1.45fr 0.9fr; align-items: start; }
}
.player-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #000; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-meta { display: grid; gap: var(--space-3); }
.watch-meta .eyebrow { margin: 0; }
.watch-meta h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0; }
.watch-meta .facts { display: grid; gap: var(--space-2); margin: 0; }
.watch-meta .facts li { color: var(--muted); font-size: 0.9375rem; }
.watch-meta .facts strong {
  display: inline-block; min-width: 7.5rem;
  color: var(--ink); font-weight: 700; margin-right: 0.35rem;
}
.credit {
  margin: 0;
  padding: var(--space-3);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
}
.attr-list { padding-bottom: var(--space-6); }
.attr-list ol { display: grid; gap: var(--space-2); color: var(--muted); line-height: 1.6; }
.attr-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }

/* —— footer —— */
footer {
  margin-top: var(--space-7);
  padding: var(--space-6) clamp(1rem, 3vw, 2rem) var(--space-4);
  border-top: 1px solid var(--line);
  background: #050506;
}
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto var(--space-5);
  display: grid; gap: var(--space-5);
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}
footer .brand { margin-bottom: var(--space-2); }
footer .muted { font-size: 0.9375rem; }
.foot-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--space-2);
}
footer a {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0.4rem 0;
  transition: color 140ms var(--ease);
}
footer a:hover { color: var(--accent); }
.copy {
  text-align: center;
  color: var(--faint);
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
