:root {
  --ink: #0b0c0d;
  --paper: #f6f2eb;
  --muted: #b4b8b1;
  --line: rgba(255, 255, 255, 0.09);
  --orange: #e50914;
  --orange-soft: #ff6b6b;
  --cyan: #9ef3e4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.18), transparent 32%),
    linear-gradient(180deg, #111315, #08090a 72%);
  color: var(--paper);
  font-family: var(--sans);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.5);
  position: relative;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand em { color: var(--orange); font-style: normal; }
.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 19px;
}
.brand-mark span {
  display: block;
  width: 4px;
  background: var(--orange);
  transform: skew(-18deg);
}
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 13px; }

.main-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.main-nav a:hover { color: var(--paper); }

main {
  padding-top: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 30px 0 42px;
}

.hero-copy {
  padding-right: 8px;
}

.hero-highlight {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff0f1;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow {
  margin: 0 0 22px;
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--orange);
  border-radius: 50%;
  vertical-align: 1px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--orange-soft);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  margin: 0 0 26px;
  max-width: 56ch;
  color: #d5d8d4;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.button-primary {
  background: linear-gradient(135deg, var(--orange), #ff4d56);
  color: #fff;
  box-shadow: 0 14px 28px rgba(229, 9, 20, 0.3);
}

.button-secondary {
  background: linear-gradient(135deg, var(--orange), #ff4d56);
  color: #fff;
  box-shadow: 0 14px 28px rgba(229, 9, 20, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device-showcase {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
}

.tv-frame {
  position: relative;
  width: min(710px, 100%);
  padding: 14px;
  background: linear-gradient(180deg, #1b1d1f, #0c0c0e);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.46);
}

.tv-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #070707;
}

.phone-frame {
  position: relative;
  width: 230px;
  padding: 10px;
  background: linear-gradient(180deg, #202121, #0c0c0e);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.4);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  background: #070707;
}

.device-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 13, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f6f2eb;
  font: 600 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.phone-frame .device-chip {
  left: auto;
  right: 18px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 12px 0 28px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.16);
  color: #ffd4d6;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.feature-card h2 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  color: #d0d4cf;
  line-height: 1.7;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 28px;
}

.gallery-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.gallery-heading {
  margin-bottom: 14px;
}

.gallery-label {
  display: inline-block;
  margin-bottom: 8px;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.gallery-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(176px, 176px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 9, 20, 0.85) rgba(255,255,255,0.05);
}

.tv-gallery-track {
  grid-auto-columns: minmax(300px, 1.2fr);
}

.mobile-gallery-track {
  grid-auto-columns: minmax(118px, max-content);
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.9);
  border-radius: 999px;
}

.gallery-slide {
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #141414;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 176px;
  min-width: 176px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.gallery-slide:hover, .gallery-slide.focused {
    transform: scale(1.05);
    border-color: #0084ff;
    z-index: 10;
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: 264px;
  object-fit: cover;
  display: block;
}

.card-info {
    padding: 10px;
    background: #141414;
    transition: background 0.3s ease;
}

.gallery-slide:hover .card-info, .gallery-slide.focused .card-info {
    background: #0084ff; /* Blue background on focus */
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.card-type {
    font-size: 11px;
    font-family: var(--mono);
    color: #b4b8b1;
    text-transform: uppercase;
}

.gallery-slide:hover .card-type, .gallery-slide.focused .card-type {
    color: #fff;
}

.watch-hero {
  position: relative;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.watch-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Immersive masking for the "Leanback" look */
.watch-hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.95) 10%, transparent 80%),
    linear-gradient(to top, rgba(0,0,0,0.95) 5%, transparent 30%);
}

.watch-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 60px;
  text-align: left;
}

.watch-hero-content h1 {
  margin: 0 0 15px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
}

.hero-overview {
  font-size: 18px;
  line-height: 1.6;
  max-width: 55ch;
  color: #ddd;
  margin-bottom: 25px;
  /* Limit lines to match reference image style */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-overlay {
    position: absolute;
    top: 40px;
    right: 60px;
    z-index: 100;
    color: var(--orange);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.button-play {
    background: var(--orange);
    border-radius: 4px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 800;
    box-shadow: none;
}

.button-play:hover {
    transform: scale(1.05);
    background: #ff0000;
}

.watch-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  margin-top: 20px;
  align-items: start;
}

.watch-player-card,
.watch-details-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.watch-player-card {
  padding: 18px;
}

.watch-player-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.watch-pill,
.watch-pill-muted,
.detail-badge,
.movie-kicker,
.detail-chip-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font: 700 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.watch-pill {
  padding: 6px 10px;
  background: rgba(229, 9, 20, 0.24);
  border: 1px solid rgba(255,255,255,0.12);
}

.watch-pill-muted {
  padding: 6px 10px;
  background: rgba(255,255,255,0.07);
  color: #dbdbdb;
}

.movie-player-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #030303;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-summary-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
}

.movie-summary-row h2 {
  margin: 6px 0 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.movie-kicker {
  padding: 5px 9px;
  color: #ffd3d6;
  background: rgba(229, 9, 20, 0.2);
}

.movie-stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.movie-stat-list span,
.detail-chip-list span {
  padding: 7px 10px;
  background: rgba(255,255,255,0.07);
  color: #e6e6e6;
}

.watch-details-card {
  padding: 22px;
}

.detail-badge {
  padding: 6px 10px;
  margin-bottom: 14px;
  background: rgba(229, 9, 20, 0.24);
  color: #fff;
}

.watch-details-card h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.detail-description {
  margin: 0 0 18px;
  line-height: 1.7;
  color: #d8dbd7;
}

.detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.episodes-panel {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.episodes-header h3 {
  margin: 0;
  font-size: 22px;
}

.episodes-header span {
  color: #c9cdca;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.episode-list {
  display: grid;
  gap: 10px;
}

.episode-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.episode-item.active {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.5);
}

.episode-item span {
  color: #ff9ea3;
  font: 700 11px var(--mono);
}

.episode-item strong {
  font-size: 15px;
}

.episode-item small {
  color: #cfd4d1;
}

.watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 9, 10, 0.88);
}

.watch-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

.watch-page-main {
  padding: 0 22px 32px;
}

.watch-rows {
  margin: 16px 0 26px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .feature-strip { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr; }
  .device-showcase { flex-direction: column; align-items: center; }
  .watch-player-layout { grid-template-columns: 1fr; }
  .movie-summary-row { flex-direction: column; align-items: start; }
  .movie-stat-list { justify-content: start; }
}

@media (max-width: 700px) {
  .page-shell { padding: 0 14px 26px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-nav { gap: 16px; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 42px; }
  .download-banner { padding: 24px 18px; }
  .phone-frame { width: min(260px, 72vw); }
  .gallery-track { grid-auto-columns: minmax(144px, 78vw); }
  .gallery-slide img { height: 180px; }
  .mobile-slide img { height: 180px; }
}