/* ==========================================================================
   AMC STREAM (stream.amc.web.id) — Al Muthi Creative Cinema Design System
   Optimized for Desktop, Mobile, Tablet & Non-Android Smart TV Browsers
   (Samsung Tizen, LG webOS, Hisense VIDAA, Linux Opera TV)
   ========================================================================== */

:root {
  /* HSL Cinema Obsidian Surfaces */
  --bg-canvas: hsl(218, 44%, 4.5%);
  --bg-surface: hsl(218, 38%, 8%);
  --bg-elevated: hsl(217, 33%, 12%);
  --bg-elevated-hover: hsl(216, 32%, 16%);
  --bg-overlay: rgba(6, 9, 15, 0.86);

  /* Al Muthi Creative Brand Azure Palette (Zero Purple) */
  --brand-deep: hsl(201, 96%, 35%);
  --brand-primary: hsl(199, 89%, 48%);
  --brand-bright: hsl(198, 94%, 62%);
  --brand-soft: rgba(14, 165, 233, 0.14);

  /* Cinema Functional Accents */
  --accent-gold: hsl(39, 94%, 53%);
  --accent-emerald: hsl(160, 84%, 40%);
  --accent-crimson: hsl(352, 83%, 56%);

  /* Typography & Borders */
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(214, 22%, 74%);
  --text-muted: hsl(215, 16%, 52%);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  /* Layout & Motion */
  --nav-height: 72px;
  --container-pad: clamp(1rem, 4vw, 3.5rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 10-Foot Smart TV / Lite GPU Mode Overrides */
body.tv-lite-mode {
  --nav-height: 78px;
  --text-secondary: hsl(214, 28%, 82%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  background-image: radial-gradient(ellipse 90% 45% at 50% 0%, rgba(14, 165, 233, 0.09), transparent 70%);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

/* High-Contrast Smart TV D-Pad & Keyboard Focus Ring */
:focus-visible,
.tv-focused {
  outline: 3px solid var(--brand-bright) !important;
  outline-offset: 3px !important;
}

/* Skip Link for Accessibility & Remote Navigation */
.skip-to-main {
  position: fixed;
  top: -80px;
  left: 1rem;
  z-index: 9999;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease-cinema);
}

.skip-to-main:focus {
  transform: translate3d(0, 92px, 0);
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 900;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.92) 0%, rgba(6, 9, 15, 0.55) 68%, transparent 100%);
  transition: background-color 0.28s var(--ease-cinema), border-color 0.28s var(--ease-cinema);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
}

body.tv-lite-mode .site-header.is-scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #080d16;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.4rem 0.25rem 0.15rem;
  transition: transform 0.22s var(--ease-cinema);
}

.brand-lockup:hover {
  transform: translate3d(0, -1px, 0);
}

.brand-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(56, 189, 248, 0.24), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: grid;
  place-items: center;
  padding: 3px;
  box-shadow: var(--surface-sheen);
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--brand-bright);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Primary Nav Links */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-tab {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-cinema), background-color 0.2s var(--ease-cinema), transform 0.2s var(--ease-cinema);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-tab.is-active {
  color: #fff;
  background-color: rgba(14, 165, 233, 0.18);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.nav-watchlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--brand-primary);
  color: #fff;
}

/* Right Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  width: clamp(165px, 19vw, 265px);
  transition: border-color 0.2s var(--ease-cinema), background-color 0.2s var(--ease-cinema);
}

.search-box:focus-within {
  border-color: var(--brand-bright);
  background: rgba(15, 23, 38, 0.98);
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none !important;
  padding: 0 0.5rem;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1;
  place-items: center;
}

.search-clear-btn.is-visible {
  display: grid;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(18, 27, 43, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: var(--surface-sheen);
  transition: transform 0.2s var(--ease-cinema), background-color 0.2s var(--ease-cinema), color 0.2s var(--ease-cinema);
  white-space: nowrap;
}

.icon-pill-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated-hover);
  transform: translate3d(0, -1px, 0);
}

.icon-pill-btn.is-active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.icon-pill-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.adfree-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.adfree-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  place-items: center;
}

/* ==========================================================================
   HERO BILLBOARD (NETFLIX / APPLE TV+ CINEMA STAGE)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 2.5rem) var(--container-pad) 3.75rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #05080d;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale3d(1.03, 1.03, 1);
  opacity: 1;
  transition: opacity 0.55s var(--ease-cinema), transform 6s linear;
  will-change: transform, opacity;
}

.hero-backdrop-img.is-transitioning {
  opacity: 0.18;
  transform: scale3d(1.0, 1.0, 1);
}

body.tv-lite-mode .hero-backdrop-img {
  transition: opacity 0.3s ease;
  transform: none;
}

/* Multi-stop Cinema Vignette for Maximum Text Legibility */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.95) 0%, rgba(6, 9, 15, 0.76) 38%, rgba(6, 9, 15, 0.22) 72%, rgba(6, 9, 15, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.55) 0%, transparent 28%, rgba(6, 9, 15, 0.65) 78%, var(--bg-canvas) 100%);
}

.hero-content {
  max-width: 650px;
  width: 100%;
  animation: cinemaReveal 0.55s var(--ease-cinema) both;
}

@keyframes cinemaReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-amc-orig {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
}

.meta-pill {
  padding: 0.18rem 0.52rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.meta-pill.quality {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--accent-gold);
  font-weight: 800;
}

.meta-dot {
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.65);
}

.hero-synopsis {
  font-size: clamp(0.94rem, 1.15vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 1.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.55rem;
}

.hero-genre-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 23, 38, 0.72);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-play-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 0.22s var(--ease-cinema), filter 0.22s var(--ease-cinema);
}

.btn-play-hero:hover {
  transform: translate3d(0, -2px, 0) scale3d(1.02, 1.02, 1);
  filter: brightness(1.09);
}

.btn-glass-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(20, 29, 45, 0.84);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: var(--surface-sheen);
  transition: transform 0.22s var(--ease-cinema), background-color 0.22s var(--ease-cinema);
}

.btn-glass-hero:hover {
  background: rgba(30, 43, 66, 0.95);
  transform: translate3d(0, -2px, 0);
}

.btn-glass-hero.is-saved {
  border-color: rgba(56, 189, 248, 0.55);
  color: var(--brand-bright);
}

/* Hero Slide Dots & Controls */
.hero-slider-controls {
  position: absolute;
  right: var(--container-pad);
  bottom: 3.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 5;
}

.hero-dot {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: transform 0.25s var(--ease-cinema), background-color 0.25s var(--ease-cinema);
}

.hero-dot.is-active {
  background: var(--brand-bright);
  transform: scaleX(1.18);
}

.hero-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 38, 0.82);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease-cinema), background-color 0.2s var(--ease-cinema);
}

.hero-arrow-btn:hover {
  background: var(--brand-deep);
  transform: scale3d(1.06, 1.06, 1);
}

/* ==========================================================================
   FILTER BAR & GENRE PILLS
   ========================================================================== */
.catalog-toolbar {
  padding: 0 var(--container-pad);
  margin: -1.2rem 0 1.8rem;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.genre-scroll-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.3rem 0.1rem;
  max-width: 100%;
}

.genre-scroll-strip::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  padding: 0.44rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: var(--surface-sheen);
  transition: transform 0.18s var(--ease-cinema), background-color 0.18s var(--ease-cinema), color 0.18s var(--ease-cinema);
}

.genre-chip:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  transform: translate3d(0, -1px, 0);
}

.genre-chip.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-bright);
  color: #ffffff;
}

.tv-remote-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.77rem;
  color: var(--text-muted);
  background: rgba(12, 18, 28, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-sm);
}

.kbd-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTENT RAILS & POSTER CARDS (GPU COMPOSITOR ANIMATED)
   ========================================================================== */
.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-bottom: 4rem;
}

.rail-section {
  padding: 0 var(--container-pad);
}

.rail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.rail-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rail-accent-bar {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-bright);
}

.rail-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.rail-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rail-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rail-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: background-color 0.18s var(--ease-cinema), color 0.18s var(--ease-cinema), transform 0.18s var(--ease-cinema);
}

.rail-scroll-btn:hover {
  background: var(--bg-elevated-hover);
  color: #fff;
  transform: scale3d(1.06, 1.06, 1);
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(158px, 16.5vw, 224px);
  gap: 1.05rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.55rem 0.25rem 1.1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

/* Grid layout when filtering by category/search */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(155px, 16vw, 215px), 1fr));
  gap: 1.25rem;
}

/* Poster Card */
.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), var(--surface-sheen);
  overflow: hidden;
  scroll-snap-align: start;
  text-align: left;
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-cinema), border-color 0.28s var(--ease-cinema);
  will-change: transform;
}

.media-card:hover,
.media-card:focus-visible {
  transform: translate3d(0, -7px, 0) scale3d(1.03, 1.03, 1);
  border-color: rgba(56, 189, 248, 0.45);
  z-index: 4;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background: #0a0f18;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-cinema);
}

.media-card:hover .poster-frame img,
.media-card:focus-visible .poster-frame img {
  transform: scale3d(1.06, 1.06, 1);
}

.card-badges-top {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  pointer-events: none;
}

.card-badge {
  padding: 0.18rem 0.48rem;
  border-radius: 5px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(6, 9, 15, 0.86);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-badge.type-series {
  background: rgba(2, 132, 199, 0.88);
  border-color: rgba(125, 211, 252, 0.45);
}

.card-badge.type-anime {
  background: rgba(13, 148, 136, 0.9);
  border-color: rgba(94, 234, 212, 0.45);
}

.card-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.44rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(6, 9, 15, 0.86);
  color: var(--accent-gold);
}

/* Hover Play Overlay */
.poster-hover-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 9, 15, 0.94) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  transition: opacity 0.24s var(--ease-cinema);
}

.media-card:hover .poster-hover-veil,
.media-card:focus-visible .poster-hover-veil {
  opacity: 1;
}

.hover-play-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
  transform: scale3d(0.88, 0.88, 1);
  transition: transform 0.24s var(--ease-cinema);
}

.media-card:hover .hover-play-circle,
.media-card:focus-visible .hover-play-circle {
  transform: scale3d(1, 1, 1);
}

.hover-ep-info {
  font-size: 0.74rem;
  color: #bae6fd;
  font-weight: 700;
}

/* Continue Watching Progress Bar on Card */
.watch-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.watch-progress-fill {
  height: 100%;
  background: var(--brand-bright);
}

.card-body {
  padding: 0.72rem 0.8rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-submeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Top 10 Ranked Rail Cards */
.rail-track.top10-track {
  grid-auto-columns: clamp(205px, 21vw, 275px);
  gap: 1.25rem;
}

.top10-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-left: 52px;
  scroll-snap-align: start;
}

.top10-rank-num {
  position: absolute;
  left: 0;
  bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: rgba(14, 165, 233, 0.12);
  -webkit-text-stroke: 2px rgba(56, 189, 248, 0.48);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.28s var(--ease-cinema), color 0.28s var(--ease-cinema);
}

.top10-item:hover .top10-rank-num,
.top10-item:focus-within .top10-rank-num {
  transform: translate3d(-4px, -4px, 0);
  color: rgba(56, 189, 248, 0.26);
}

.top10-item .media-card {
  width: 100%;
  z-index: 2;
}

/* Continue Watching Wide Card Variant */
.rail-track.continue-track {
  grid-auto-columns: clamp(250px, 26vw, 330px);
}

.continue-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--surface-sheen);
  transition: transform 0.24s var(--ease-cinema), border-color 0.24s var(--ease-cinema);
}

.continue-card:hover,
.continue-card:focus-visible {
  transform: translate3d(0, -5px, 0);
  border-color: rgba(56, 189, 248, 0.48);
}

.continue-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070b12;
  overflow: hidden;
}

.continue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 9, 15, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  z-index: 3;
}

.continue-remove-btn:hover {
  background: var(--accent-crimson);
  color: #fff;
}

/* ==========================================================================
   DEDICATED STREAMING & SERIES EPISODE VIEW (MOVIE + MULTI-SEASON SERIES)
   ========================================================================== */
.watch-view {
  display: none;
  padding: calc(var(--nav-height) + 1rem) var(--container-pad) 4rem;
  animation: cinemaReveal 0.35s var(--ease-cinema) both;
}

.watch-view.is-open {
  display: block;
}

/* Ambient Cinema Curtain ("Matikan Lampu" Mode) */
.cinema-dimmer {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.94);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-cinema);
}

body.lights-off .cinema-dimmer {
  opacity: 1;
  pointer-events: auto;
}

body.lights-off .player-stage-column {
  position: relative;
  z-index: 950;
}

.watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-back-catalog {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  color: var(--text-primary);
  transition: background-color 0.2s var(--ease-cinema), transform 0.2s var(--ease-cinema);
}

.btn-back-catalog:hover {
  background: var(--bg-elevated-hover);
  transform: translate3d(-2px, 0, 0);
}

/* Watch Layout: Cinema Player + Series Episode Drawer / Side Panel */
.watch-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.watch-main-grid.has-episodes {
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.95fr);
}

/* Server & Stream Toolbar Above/Below Player */
.server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.server-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.server-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.server-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.79rem;
  font-weight: 700;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: background-color 0.18s var(--ease-cinema), color 0.18s var(--ease-cinema);
}

.server-btn:hover {
  color: #fff;
  background: var(--bg-elevated-hover);
}

.server-btn.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-bright);
  color: #fff;
}

.theater-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Custom Native Cinema Video Player Container */
.cinema-player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
  user-select: none;
}

.cinema-video-el,
.cinema-embed-iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #000;
}

.cinema-embed-iframe {
  display: none;
}

.cinema-player-shell.is-embed-mode .cinema-video-el,
.cinema-player-shell.is-embed-mode .player-custom-hud {
  display: none;
}

.cinema-player-shell.is-embed-mode .cinema-embed-iframe {
  display: block;
}

/* Custom Ad-Free HUD Overlay */
.player-custom-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, transparent 22%, transparent 66%, rgba(0, 0, 0, 0.88) 100%);
  opacity: 1;
  transition: opacity 0.25s var(--ease-cinema);
  padding: 1rem 1.15rem 0.9rem;
}

.cinema-player-shell.hud-hidden .player-custom-hud {
  opacity: 0;
  pointer-events: none;
}

.cinema-player-shell.hud-hidden {
  cursor: none;
}

.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hud-now-playing {
  display: flex;
  flex-direction: column;
}

.hud-playing-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

.hud-playing-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.hud-center-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.big-center-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s var(--ease-cinema), opacity 0.22s var(--ease-cinema);
}

.big-center-play:hover {
  transform: scale3d(1.08, 1.08, 1);
}

.cinema-player-shell.is-playing .big-center-play {
  opacity: 0;
  pointer-events: none;
  transform: scale3d(0.85, 0.85, 1);
}

/* Skip Intro & Next Episode Floating Prompts */
.skip-intro-btn,
.next-ep-prompt {
  position: absolute;
  right: 1.25rem;
  bottom: 4.8rem;
  z-index: 8;
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: background-color 0.2s var(--ease-cinema), transform 0.2s var(--ease-cinema);
}

.skip-intro-btn.is-visible,
.next-ep-prompt.is-visible {
  display: inline-flex;
}

.skip-intro-btn:hover,
.next-ep-prompt:hover {
  background: var(--brand-primary);
  border-color: var(--brand-bright);
  transform: translate3d(0, -2px, 0);
}

/* Bottom Timeline & Controls */
.hud-bottom-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  z-index: 6;
}

.timeline-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.timeline-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.timeline-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand-bright);
  border: 2px solid #ffffff;
}

.timecode-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.hud-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hud-ctrl-left,
.hud-ctrl-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 36px;
  height: 36px;
  padding: 0 0.55rem;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s var(--ease-cinema), transform 0.18s var(--ease-cinema);
}

.ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  transform: translate3d(0, -1px, 0);
}

.ctrl-select {
  background: rgba(12, 18, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 0.34rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
}

.volume-slider {
  width: 72px;
  accent-color: var(--brand-bright);
  cursor: pointer;
}

/* Episode Quick Navigation Bar Directly Under Video */
.player-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.ep-quick-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ep-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: background-color 0.18s var(--ease-cinema);
}

.ep-step-btn:hover:not(:disabled) {
  background: var(--brand-deep);
}

.ep-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   SERIES SEASON & EPISODE PANEL (LIKE REFERENCE #4 JOJO / NETFLIX SERIES)
   ========================================================================== */
.episodes-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-sheen);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 680px;
}

.episodes-panel-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(16, 24, 38, 0.75);
}

.episodes-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.episodes-panel-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
}

.episodes-total-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-bright);
  background: var(--brand-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Season Tabs */
.season-tabs-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.season-tabs-row::-webkit-scrollbar {
  display: none;
}

.season-tab-btn {
  padding: 0.44rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background-color 0.18s var(--ease-cinema), color 0.18s var(--ease-cinema);
}

.season-tab-btn:hover {
  color: #fff;
  background: var(--bg-elevated-hover);
}

.season-tab-btn.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-bright);
  color: #ffffff;
}

/* Episode List Items */
.episode-list-scroll {
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.episode-card-btn {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: transform 0.2s var(--ease-cinema), background-color 0.2s var(--ease-cinema), border-color 0.2s var(--ease-cinema);
}

.episode-card-btn:hover {
  background: var(--bg-elevated-hover);
  transform: translate3d(3px, 0, 0);
}

.episode-card-btn.is-playing {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--brand-bright);
}

.ep-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: #070b12;
}

.ep-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-duration-pill {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #f1f5f9;
}

.ep-playing-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-primary);
  color: #fff;
  text-transform: uppercase;
}

.ep-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.ep-num-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ep-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   WATCH DETAIL METADATA CARD & RELATED TITLES
   ========================================================================== */
.watch-details-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-sheen);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.detail-poster-mini {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 2 / 3;
}

.detail-poster-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.spec-box span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.spec-box strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* ==========================================================================
   DYNAMIC SOURCE & CUSTOM STREAM MANAGER MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 7, 13, 0.84);
  display: none;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop.is-open {
  display: grid;
}

.modal-panel {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), var(--surface-sheen);
  animation: cinemaReveal 0.25s var(--ease-cinema) both;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.38rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Toast Notification */
.toast-stack {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  padding: 0.72rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(12, 19, 31, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  animation: cinemaReveal 0.24s var(--ease-cinema) both;
}

/* ==========================================================================
   FOOTER (AL MUTHI CREATIVE ECOSYSTEM)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05080d;
  padding: 2.75rem var(--container-pad) 2.25rem;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 420px;
}

.footer-brand-col p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-col a,
.footer-col button {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--brand-bright);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE, TABLET, ULTRA-WIDE 4K TV)
   ========================================================================== */
@media (max-width: 1080px) {
  .watch-main-grid.has-episodes {
    grid-template-columns: minmax(0, 1fr);
  }
  .episodes-panel {
    max-height: 460px;
  }
  .adfree-indicator {
    display: none;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #080d16;
    border-bottom: 1px solid var(--border-strong);
    padding: 0.75rem var(--container-pad);
    overflow-x: auto;
    display: none;
  }
  .primary-nav.is-mobile-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: grid;
  }
  .tv-remote-hint {
    display: none;
  }
  .hero-slider-controls {
    position: static;
    margin-top: 1.25rem;
  }
  .hero-stage {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 480px;
  }
  .watch-details-card {
    grid-template-columns: 1fr;
  }
  .detail-poster-mini {
    width: 130px;
  }
}

@media (max-width: 560px) {
  .brand-subtitle,
  .icon-pill-btn span.btn-text-hide-sm {
    display: none;
  }
  .search-box {
    width: 138px;
  }
  .rail-track {
    grid-auto-columns: 146px;
    gap: 0.8rem;
  }
  .volume-slider {
    display: none;
  }
}

@media (min-width: 1800px) {
  html {
    font-size: 18px;
  }
  .rail-track {
    grid-auto-columns: 250px;
  }
}

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