/* ==========================================================================
   REELBASE — Netflix × Prime Video Cinema Theme (Desktop & Mobile)
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-elevated: #0e1018;
  --surface: #131622;
  --surface-2: #1b2030;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --crimson: #e50914;
  --crimson-hover: #ff1a26;
  --crimson-glow: rgba(229, 9, 20, 0.35);

  --prime: #00a8e1;
  --prime-soft: rgba(0, 168, 225, 0.16);
  --gold: #f5c518;

  --text: #f6f7fb;
  --text-muted: #9ca3b5;
  --text-dim: #6b7285;
  --white: #ffffff;
  --black: #000000;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-h: 64px;
  --mbn-h: 64px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--mbn-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, .brand-text {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.site-main { flex: 1; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.page-pad {
  padding-top: 1.75rem;
  padding-bottom: 3.5rem;
}

.muted { color: var(--text-muted); font-size: 0.9rem; }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.hide-sm { display: none !important; }
.hide-md { display: none !important; }

@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }
@media (min-width: 960px) { .hide-md { display: inline-flex !important; } }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 8, 13, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

body.is-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(7, 8, 13, 0.88) 0%, rgba(7, 8, 13, 0) 100%);
  border-bottom-color: transparent;
  backdrop-filter: none;
}

body.is-home .site-header.is-scrolled {
  background: rgba(7, 8, 13, 0.94);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.brand-mark {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--crimson) 0%, #ff4d58 55%, var(--prime) 100%);
  box-shadow: 0 0 12px var(--crimson-glow);
}

.brand-text {
  background: linear-gradient(90deg, #ffffff 0%, #dbe7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--crimson);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-trigger:hover,
.search-trigger.active {
  border-color: var(--prime);
  background: var(--prime-soft);
  color: var(--white);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--crimson);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px var(--crimson-glow);
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-crimson:hover {
  background: var(--crimson-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(229, 9, 20, 0.55);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-lg {
  padding: 0.78rem 1.5rem;
  font-size: 0.95rem;
}

.pill-crimson {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-prime {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--prime-soft);
  border: 1px solid rgba(0, 168, 225, 0.45);
  color: #5cd6ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-hd {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.hero-meta-star {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-meta-txt,
.meta-pill {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ==========================================================================
   HERO SPOTLIGHT SLIDER (Netflix × Prime)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 66vh;
  min-height: 440px;
  max-height: 760px;
  background: #000;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-slider {
    height: 78vh;
    min-height: 540px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
  transition: transform 7s ease-out;
}

.hero-slide.is-active .hero-img {
  transform: scale(1);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(7, 8, 13, 0.72) 28%, rgba(7, 8, 13, 0.15) 62%, rgba(7, 8, 13, 0.5) 100%),
    linear-gradient(to right, rgba(7, 8, 13, 0.92) 0%, rgba(7, 8, 13, 0.55) 42%, rgba(7, 8, 13, 0) 78%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-bottom: 5rem;
  }
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-overview {
  margin: 0.85rem 0 1.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d6dbe7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .hero-overview { font-size: 1rem; }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .hero-controls {
    bottom: 1.6rem;
    padding: 0 2rem;
  }
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 18px;
  height: 4px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--crimson);
}

.hero-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(7, 8, 13, 0.6);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hero-arrow:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

/* ==========================================================================
   QUICK GENRE CHIPS
   ========================================================================== */
.home-content {
  position: relative;
  z-index: 6;
  margin-top: 0.5rem;
  padding-bottom: 3rem;
}

.quick-genres {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.5rem;
}

.genre-chip {
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.genre-chip:hover {
  border-color: var(--prime);
  color: var(--white);
  background: var(--prime-soft);
}

.genre-chip.active {
  border-color: var(--crimson);
  background: var(--crimson);
  color: var(--white);
  font-weight: 600;
}

/* ==========================================================================
   MEDIA ROWS & CAROUSELS
   ========================================================================== */
.media-row-section {
  padding: 1.25rem 0 0.5rem;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

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

.row-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .row-heading { font-size: 1.35rem; }
}

.row-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.48rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.row-tag-crimson {
  background: rgba(229, 9, 20, 0.18);
  color: #ff5b64;
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.row-tag-prime {
  background: var(--prime-soft);
  color: #5cd6ff;
  border: 1px solid rgba(0, 168, 225, 0.35);
}

.row-see-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--prime);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.row-see-all:hover { color: #7ce0ff; }

.carousel-shell {
  position: relative;
}

.media-row {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.35rem 0 0.85rem;
}

@media (min-width: 768px) {
  .media-row { gap: 1rem; }
}

.media-row-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-arrow {
  display: none;
}

@media (min-width: 768px) {
  .carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 72px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: rgba(7, 8, 13, 0.82);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.18s ease;
  }

  .carousel-shell:hover .carousel-arrow:not(.is-hidden) {
    opacity: 1;
  }

  .carousel-arrow:hover {
    background: var(--crimson);
    border-color: var(--crimson);
  }

  .carousel-prev { left: -12px; }
  .carousel-next { right: -12px; }
  .carousel-arrow.is-hidden { opacity: 0; pointer-events: none; }
}

/* ==========================================================================
   MEDIA CARDS (With Hover Play Orb & Top 10 Rank Numbers)
   ========================================================================== */
.media-card {
  display: block;
  width: 132px;
  position: relative;
}

@media (min-width: 640px) { .media-card { width: 162px; } }
@media (min-width: 1024px) { .media-card { width: 178px; } }

.media-card.is-ranked {
  display: flex;
  align-items: flex-end;
  width: 174px;
}

@media (min-width: 640px) { .media-card.is-ranked { width: 214px; } }

.rank-number {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: #0b0d14;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
  margin-right: -18px;
  margin-bottom: 34px;
  z-index: 1;
  user-select: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .rank-number { font-size: 7rem; margin-right: -22px; }
}

.media-card:hover .rank-number {
  -webkit-text-stroke-color: var(--crimson);
}

.media-card-inner {
  width: 100%;
  position: relative;
  z-index: 2;
}

.media-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.75);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover .media-poster {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(0, 168, 225, 0.65);
  box-shadow: 0 16px 32px -10px rgba(0, 168, 225, 0.28);
}

.media-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card:hover .media-poster img {
  transform: scale(1.06);
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dim);
}

.media-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.14rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.badge-hd {
  background: rgba(229, 9, 20, 0.88);
  color: var(--white);
}

.badge-prime {
  background: rgba(0, 168, 225, 0.9);
  color: #031520;
}

.media-rating {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: rgba(7, 8, 13, 0.84);
  color: var(--gold);
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.media-hover-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(7, 8, 13, 0.25) 0%, rgba(7, 8, 13, 0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.media-card:hover .media-hover-overlay,
.episode-card:hover .media-hover-overlay {
  opacity: 1;
}

.play-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.7);
  transform: scale(0.85);
  transition: transform 0.22s ease;
}

.play-orb-sm {
  width: 38px;
  height: 38px;
}

.media-card:hover .play-orb,
.episode-card:hover .play-orb {
  transform: scale(1);
}

.media-info {
  padding-top: 0.55rem;
}

.media-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-sub {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dot { opacity: 0.6; }

/* Responsive Poster Grids (Genre & Search) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 480px) {
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
}

@media (min-width: 1100px) {
  .media-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.media-grid .media-card { width: 100%; }

/* ==========================================================================
   WATCH PAGE & CINEMA THEATRE PLAYER
   ========================================================================== */
.watch-page {
  max-width: 1180px;
  padding-top: 1.25rem;
  padding-bottom: 4rem;
}

.watch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.watch-breadcrumb a:hover { color: var(--white); }
.crumb-current { color: var(--text-muted); }

.theatre-shell {
  position: relative;
  z-index: 2;
}

.theatre-ambient {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(55px) saturate(1.4);
  opacity: 0.28;
  z-index: -1;
  pointer-events: none;
  border-radius: 24px;
}

.player-wrap {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.9);
}

body.cinema-mode .theatre-shell {
  z-index: 90;
}

.cinema-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 80;
}

body.cinema-mode .cinema-backdrop {
  display: block;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.player-stage iframe,
.player-stage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.player-toast {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 12, 20, 0.92);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 10;
}

.player-resume {
  position: absolute;
  bottom: 4rem;
  left: 1rem;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.player-console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
}

.server-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.server-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.server-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.server-btn {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.server-btn:hover {
  border-color: var(--prime);
  color: var(--white);
  background: var(--prime-soft);
}

.server-btn.active {
  border-color: var(--crimson);
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 0 14px var(--crimson-glow);
}

.server-btn .quality {
  margin-left: 0.3rem;
  font-size: 0.68rem;
  opacity: 0.8;
}

.player-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.shortcut-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.shortcut-hint b {
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin: 0 2px;
}

.lights-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lights-btn:hover,
.lights-btn.is-active {
  border-color: var(--prime);
  background: var(--prime-soft);
  color: var(--white);
}

/* ==========================================================================
   DETAIL CARD & CAST
   ========================================================================== */
.detail-card {
  margin-top: 1.75rem;
  display: flex;
  gap: 1.5rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.detail-poster {
  display: none;
  width: 155px;
  border-radius: var(--radius-md);
  object-fit: cover;
  align-self: flex-start;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
}

@media (min-width: 640px) { .detail-poster { display: block; } }

.detail-body { flex: 1; min-width: 0; }

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.detail-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ep-subtitle {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.78em;
}

.detail-overview {
  margin: 0.7rem 0 0;
  max-width: 48rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cdd3e0;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.genre-tag {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.genre-tag:hover {
  border-color: var(--prime);
  color: var(--white);
  background: var(--prime-soft);
}

.cast-block { margin-top: 1.35rem; }

.section-mini-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.cast-list {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.cast-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cast-chip img,
.cast-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cast-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.cast-role {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   TV SEASONS & EPISODE CARDS (Prime Video Style)
   ========================================================================== */
.seasons-block {
  margin-top: 2rem;
}

.seasons-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.season-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.season-tab {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.season-tab:hover {
  border-color: var(--prime);
  color: var(--white);
}

.season-tab.active {
  border-color: var(--crimson);
  background: var(--crimson);
  color: var(--white);
}

.episode-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .episode-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .episode-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.episode-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.episode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 225, 0.55);
}

.episode-card.active {
  border-color: var(--crimson);
  box-shadow: 0 0 0 1px var(--crimson);
}

.episode-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

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

.ep-num-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(7, 8, 13, 0.85);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.16rem 0.45rem;
  border-radius: 4px;
}

.ep-playing-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
}

.episode-meta {
  padding: 0.85rem;
}

.episode-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.episode-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.episode-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.episode-overview {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   GENRE, SEARCH, PROSE, 404, ADS
   ========================================================================== */
.genre-header { margin-bottom: 1.5rem; }

.page-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.search-hero {
  max-width: 780px;
  margin: 0 auto 1.75rem;
}

.search-box-wrap {
  position: relative;
  margin-top: 1rem;
}

.search-box-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--white);
  padding: 0.95rem 1.1rem 0.95rem 2.9rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--prime);
  box-shadow: 0 0 0 3px var(--prime-soft);
}

.search-status {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pagination {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.prose-page {
  max-width: 780px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: #cdd3e0;
}

.prose-page h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--white);
}

.prose-page ul { padding-left: 1.25rem; }

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  color: #d6dbe7;
}

.notice-box {
  padding: 1.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.center-page {
  max-width: 480px;
  padding: 6rem 1rem;
  text-align: center;
}

.code-404 {
  margin: 0.85rem 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
}

.center-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Zero ad slots */

/* ==========================================================================
   FOOTER & MOBILE BOTTOM NAV
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #05060a;
  padding: 2.25rem 0;
  margin-top: auto;
}

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

.footer-note {
  margin: 0.55rem 0 0;
  max-width: 420px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-col a:hover { color: var(--white); }

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: calc(var(--mbn-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(7, 8, 13, 0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 768px) {
  .mobile-bottom-nav { display: none; }
}

.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.mbn-item.active {
  color: var(--crimson);
}


/* ==========================================================================
   STATIC SPA ADDITIONS: SKELETONS, SETUP CARD, KEY SETTINGS
   ========================================================================== */
@keyframes rbShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: rbShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-hero {
  width: 100%;
  height: 66vh;
  min-height: 440px;
  max-height: 760px;
  border-radius: 0;
}

@media (min-width: 768px) {
  .skeleton-hero { height: 78vh; min-height: 540px; }
}

.skeleton-row {
  display: flex;
  gap: 0.9rem;
  overflow: hidden;
  padding: 1rem 0;
}

.skeleton-card {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 2 / 3;
}

@media (min-width: 768px) {
  .skeleton-card { width: 178px; }
}

.skeleton-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.setup-wrap {
  max-width: 600px;
  margin: 5rem auto 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.85);
}

.setup-wrap h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.setup-wrap p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 560px) {
  .setup-form { flex-direction: row; }
}

.setup-input {
  flex: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--white);
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
  outline: none;
}

.setup-input:focus {
  border-color: var(--prime);
  box-shadow: 0 0 0 3px var(--prime-soft);
}

.setup-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.setup-note code {
  color: #5cd6ff;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.error-banner {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ffb3b7;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}


/* ==========================================================================
   V4 ADDITIONS: CLEAN/BACKUP SERVER SPLIT, CLASSICS, IMDB RATING, HEALTH TAG
   ========================================================================== */
.server-controls-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}

.backup-toggle-btn {
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text-dim);
  padding: 0.34rem 0.68rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.backup-toggle-btn:hover,
.backup-toggle-btn.is-open {
  border-color: var(--prime);
  color: #5cd6ff;
  background: var(--prime-soft);
}

.server-btn.is-backup {
  border-style: dashed;
  opacity: 0.86;
}

.server-btn.is-backup.active {
  border-style: solid;
  opacity: 1;
}

.try-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 168, 225, 0.45);
  background: var(--prime-soft);
  color: #7ce0ff;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.try-next-btn:hover {
  background: rgba(0, 168, 225, 0.28);
  color: var(--white);
}

.ad-warning-note {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ad-warning-note strong {
  color: var(--text-muted);
}

.pill-green {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-free {
  background: rgba(34, 197, 94, 0.9);
  color: #052e16;
}

.row-tag-green {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.38);
}

.imdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.45rem;
  border-radius: 4px;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.45);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
}

/* 5-item mobile nav when Classics is included */
.mobile-bottom-nav {
  grid-template-columns: repeat(5, 1fr);
}


/* ==========================================================================
   V5 ADDITIONS: INDIAN CINEMA, ANIME SUB/DUB, KIDS MODE, OTT WATCH PROVIDERS
   ========================================================================== */
.pill-amber {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-purple {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-anime {
  background: rgba(168, 85, 247, 0.92);
  color: #ffffff;
}

.badge-kids {
  background: rgba(245, 158, 11, 0.94);
  color: #1c1100;
}

.badge-india {
  background: linear-gradient(135deg, #ff7b00 0%, #e50914 100%);
  color: #ffffff;
}

.row-tag-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.row-tag-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Watch Providers (Netflix / Prime / Hotstar / Zee5 / SonyLIV) */
.ott-box {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ott-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ott-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ott-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--prime);
}

.ott-link:hover { text-decoration: underline; }

.ott-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ott-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.7rem 0.32rem 0.32rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ott-pill:hover {
  border-color: var(--prime);
  transform: translateY(-1px);
}

.ott-pill img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.ott-pill .ott-type {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Anime SUB/DUB switcher & episode grid */
.audio-toggle {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.audio-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.32rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.audio-btn.active {
  background: #a855f7;
  color: #ffffff;
}

.anime-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.5rem;
}

.anime-ep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.16s ease;
}

.anime-ep-btn:hover {
  border-color: var(--prime);
  color: var(--white);
  background: var(--prime-soft);
}

.anime-ep-btn.active {
  border-color: #a855f7;
  background: #a855f7;
  color: var(--white);
}

/* Ratings row (OMDb: IMDb / RT / Metacritic) */
.rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.14rem 0.45rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 700;
}

.mc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Tab bar for Indian / Kids / Search filters */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.35rem;
}

.sub-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sub-tab:hover {
  border-color: var(--prime);
  color: var(--white);
}

.sub-tab.active {
  border-color: var(--crimson);
  background: var(--crimson);
  color: var(--white);
}

/* TMDB Contractual Attribution in Footer */
.tmdb-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.tmdb-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #90cea1 0%, #01b4e4 100%);
  color: #032541;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}


/* ==========================================================================
   V6 ADDITIONS: BROWSE BY NETWORK (OTT PLATFORM TILES) & STRICT ZERO-AD UI
   ========================================================================== */
.network-section {
  padding: 1.5rem 0 0.65rem;
}

.network-grid {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.65rem;
}

@media (min-width: 1180px) {
  .network-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow-x: visible;
  }
}

.network-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.35rem 0.75rem 0.95rem;
  min-height: 146px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 25%, #161a26 0%, #0d1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.85);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

@media (min-width: 1180px) {
  .network-card {
    flex: initial;
    width: 100%;
  }
}

.network-card:hover {
  transform: translateY(-4px);
  border-color: var(--net-accent, rgba(0, 168, 225, 0.6));
  box-shadow: 0 14px 30px -12px var(--net-glow, rgba(0, 168, 225, 0.28));
  background: radial-gradient(circle at 50% 20%, #1b2131 0%, #10131d 100%);
}

.network-logo-box {
  height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: #9ca3b5;
  transition: color 0.18s ease;
}

.network-card:hover .network-footer {
  color: #ffffff;
}

.network-chevron {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.network-card:hover .network-chevron {
  transform: translateX(2px);
  opacity: 1;
}

/* Specific sleek brand logos inside each network tile */
.nl-prime {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.nl-prime-txt {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: #00a8e1;
}
.nl-prime-smile {
  width: 58px;
  height: 14px;
  margin-top: -1px;
}

.nl-jiohotstar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.42rem 0.62rem;
  border-radius: 7px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.nl-jio-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1b44c8 0%, #0c2685 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 16px rgba(15, 55, 190, 0.45);
}

.nl-kdrama {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nl-kdrama-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.nl-kdrama-main {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
}
.nl-kdrama-sub {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #d8b4fe;
  margin-top: 2px;
}

.nl-mx {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nl-mx-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #0e1118;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nl-mx-word {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.nl-mx-word b { font-weight: 800; }
.nl-mx-word span { font-weight: 400; opacity: 0.9; }

.nl-netflix {
  font-family: "Plus Jakarta Sans", Impact, sans-serif;
  font-weight: 900;
  font-size: 1.48rem;
  letter-spacing: 0.04em;
  color: #e50914;
  text-shadow: 0 4px 16px rgba(229, 9, 20, 0.38);
  transform: scaleY(1.12);
}

.nl-sonyliv {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: linear-gradient(160deg, #070914 0%, #1d154a 42%, #0072ff 68%, #ff2a85 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 114, 255, 0.32);
}
.nl-sony-top {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
}
.nl-sony-liv {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 2px;
  background: linear-gradient(90deg, #ffd43b 0%, #ff6b6b 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nl-zee5 {
  display: inline-flex;
  align-items: baseline;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1;
}
.nl-zee-z {
  font-size: 2.25rem;
  font-weight: 300;
  color: #d4d8e3;
}
.nl-zee-5 {
  font-size: 2.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 75%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zeroad-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
}


/* ==========================================================================
   DIMHOUSE V7 OVERRIDES: FIXED FULL-BLEED HERO + FLOATING PILL NAV + WATCHLIST
   ========================================================================== */

/* Brand Logo (DIM in crimson block + HOUSE in crisp bordered white) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.brand-logo-sm {
  font-size: 1.02rem;
}

.brand-part-a {
  background: var(--crimson);
  color: #ffffff;
  padding: 0.28rem 0.48rem;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}

.brand-part-b {
  color: #ffffff;
  padding: 0.22rem 0.08rem;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
}

/* Header with Centered Floating Glass Pill Navigation */
.site-header {
  height: 74px;
}

.header-inner {
  justify-content: space-between;
}

.nav-pill-bar {
  display: none;
  align-items: center;
  gap: 0.2rem;
  padding: 0.32rem 0.45rem;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.85);
}

@media (min-width: 820px) {
  .nav-pill-bar { display: inline-flex; }
}

.nav-pill-bar a {
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(246, 247, 251, 0.78);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-pill-bar a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill-bar a.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
}

.header-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-circle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 16, 24, 0.65);
  color: #f6f7fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}

.icon-circle-btn:hover,
.icon-circle-btn.active {
  border-color: var(--crimson);
  background: rgba(229, 9, 20, 0.2);
  color: #ffffff;
}

.wl-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--crimson);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FIXED FULL-BLEED CINEMA HERO (Matches Screenshot 2 — ZERO CUT-OFF!)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 76vh;
  min-height: 540px;
  max-height: 820px;
  background: #07080d;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-slider {
    height: 86vh;
    min-height: 600px;
    max-height: 860px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* CRITICAL FIX: position: absolute keeps image in background so text stays on top! */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transform: scale(1.02);
  transition: transform 7s ease-out;
  z-index: 0;
}

.hero-slide.is-active .hero-img {
  transform: scale(1);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(7, 8, 13, 0.78) 24%, rgba(7, 8, 13, 0.22) 58%, rgba(7, 8, 13, 0.58) 100%),
    linear-gradient(to right, rgba(7, 8, 13, 0.94) 0%, rgba(7, 8, 13, 0.72) 38%, rgba(7, 8, 13, 0.18) 68%, rgba(7, 8, 13, 0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

@media (max-width: 767px) {
  .hero-inner {
    align-items: flex-end;
    padding-top: 5rem;
    padding-bottom: 5.2rem;
  }
}

.hero-content {
  max-width: 600px;
}

/* Editorial Eyebrow with thin crimson dash */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.78);
}

.hero-kicker-line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--crimson);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #b7bfcf;
}

.hero-meta-bar .meta-quality {
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-overview {
  margin: 1rem 0 1.65rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(226, 232, 244, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 540px;
}

/* Action buttons matching Screenshot 2 */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-hero-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: 8px;
  border: none;
  background: #e8ecf2;
  color: #090b10;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.65);
  transition: transform 0.16s ease, background 0.18s ease;
}

.btn-hero-watch:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-hero-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 24, 34, 0.62);
  color: #f6f7fb;
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-hero-info:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-hero-plus {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 24, 34, 0.58);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-hero-plus:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-hero-plus.is-saved {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #ffffff;
}

/* Bottom-left Counter + Dashes + Arrows (Exact Screenshot 2 Placement) */
.hero-controls {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 1.65rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .hero-controls {
    bottom: 2.2rem;
    padding: 0 2rem;
  }
}

.hero-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  user-select: none;
  min-width: 46px;
}

.hero-counter-cur {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-counter-tot {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-dot {
  width: 22px;
  height: 3px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: #ffffff;
}

.hero-nav-btns {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.35rem;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 16, 24, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
}

/* Watchlist button on detail pages */
.btn-wl-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-wl-inline:hover {
  border-color: var(--white);
}

.btn-wl-inline.is-saved {
  border-color: var(--crimson);
  background: rgba(229, 9, 20, 0.18);
  color: #ff6b72;
}


/* ==========================================================================
   V8 ADDITIONS: MULTI-LANGUAGE SELECTOR, THEATRICAL BADGE, SUBTITLES BAR
   ========================================================================== */
.lang-pill-select {
  height: 38px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 16, 24, 0.72);
  color: #f6f7fb;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.lang-pill-select:hover,
.lang-pill-select:focus {
  border-color: var(--prime);
}

.lang-pill-select option {
  background: #0e1018;
  color: #f6f7fb;
}

.badge-theatrical {
  background: rgba(245, 158, 11, 0.92);
  color: #1c1100;
}

.sub-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.sub-ext-pill {
  padding: 0.24rem 0.62rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.sub-ext-pill:hover {
  border-color: var(--prime);
  color: #ffffff;
}


/* ==========================================================================
   TOP-RIGHT KIDS MODE TOGGLE SWITCH + MODE VISIBILITY + PIN MODAL
   ========================================================================== */
.brand-kids-tag {
  display: none;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d8d 0%, #ff9f1c 55%, #00b4d8 100%);
  color: #ffffff;
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.35);
}

.nav-kids-only,
.footer-links-kids,
.mbn-kids {
  display: none !important;
}

body.kids-mode .brand-kids-tag { display: inline-flex; }
body.kids-mode .nav-normal,
body.kids-mode .footer-links-normal,
body.kids-mode .mbn-normal { display: none !important; }
body.kids-mode .footer-links-kids { display: flex !important; }

@media (min-width: 820px) {
  body.kids-mode .nav-kids-only { display: inline-flex !important; }
}

@media (max-width: 767px) {
  body.kids-mode .mbn-kids { display: grid !important; }
}

.mbn-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

/* Kids Mode Pill Toggle Switch (Always visible top-right on desktop & mobile) */
.kids-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 0.55rem 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 22, 34, 0.78);
  color: #f6f7fb;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.kids-switch-btn:hover {
  border-color: #ffb703;
  background: rgba(255, 183, 3, 0.16);
}

.ks-label {
  white-space: nowrap;
}

.ks-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.22s ease;
  flex-shrink: 0;
}

.ks-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kids-switch-btn.is-on {
  border-color: #ff4d8d;
  background: linear-gradient(135deg, #ff4d8d 0%, #ff9f1c 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(255, 77, 141, 0.5);
}

.kids-switch-btn.is-on .ks-track {
  background: rgba(255, 255, 255, 0.35);
}

.kids-switch-btn.is-on .ks-thumb {
  transform: translateX(14px);
}

/* ==========================================================================
   PIN SETUP / UNLOCK MODAL
   ========================================================================== */
.pin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 12, 26, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pin-modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.65rem 1.65rem;
  border-radius: 24px;
  background: #ffffff;
  color: #16213e;
  text-align: center;
  border: 3px solid #38bdf8;
  box-shadow: 0 28px 70px -12px rgba(0, 0, 0, 0.55);
}

.pin-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.pin-close-btn:hover { background: #e2e8f0; color: #0f172a; }

.pin-badge {
  display: inline-flex;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3c4 0%, #fde68a 100%);
  color: #92400e;
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pin-title {
  margin: 0.75rem 0 0.35rem;
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.pin-desc {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #475569;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.pin-slot {
  width: 50px;
  height: 54px;
  border-radius: 14px;
  border: 2.5px solid #cbd5e1;
  background: #f8fafc;
  position: relative;
  transition: all 0.16s ease;
}

.pin-slot.is-active {
  border-color: #00b4d8;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
}

.pin-slot.is-filled {
  border-color: #ff4d8d;
  background: #fff1f5;
}

.pin-slot.is-filled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff4d8d;
  transform: translate(-50%, -50%);
}

.pin-error {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e11d48;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.pin-key {
  height: 52px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-family: "Fredoka", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.pin-key:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.pin-key:active {
  transform: scale(0.95);
}

.pin-key-action {
  font-size: 0.9rem;
  color: #64748b;
  background: #f1f5f9;
}

.pin-footer-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.pin-link-btn {
  border: none;
  background: transparent;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pin-shake {
  animation: pinShake 0.36s ease;
}

/* ==========================================================================
   FULL BRIGHT & COLORFUL KIDS MODE INTERFACE (body.kids-mode)
   ========================================================================== */
body.kids-mode {
  color-scheme: light;
  --bg: #eff7ff;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #e0f2fe;
  --border: rgba(14, 116, 144, 0.14);
  --border-strong: rgba(14, 116, 144, 0.24);
  --text: #16213e;
  --text-muted: #475569;
  --text-dim: #64748b;
  --crimson: #ff4d8d;
  --crimson-hover: #ff2a77;
  --crimson-glow: rgba(255, 77, 141, 0.35);
  --prime: #00a8e8;
  --prime-soft: rgba(0, 168, 232, 0.14);

  font-family: "Nunito", "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 224, 102, 0.45) 0%, transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(168, 85, 247, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #e0f2fe 0%, #fffdf2 46%, #fdf2f8 100%);
  background-attachment: fixed;
  color: #16213e;
}

body.kids-mode h1,
body.kids-mode h2,
body.kids-mode h3,
body.kids-mode .row-heading,
body.kids-mode .page-title,
body.kids-mode .detail-title,
body.kids-mode .hero-title {
  font-family: "Fredoka", "Nunito", sans-serif;
  letter-spacing: -0.01em;
}

/* Kids Header */
body.kids-mode .site-header,
body.kids-mode.is-home .site-header,
body.kids-mode.is-home .site-header.is-scrolled {
  position: sticky;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid #bae6fd;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -14px rgba(14, 165, 233, 0.35);
}

body.kids-mode .brand-part-a {
  background: linear-gradient(135deg, #ff4d8d 0%, #ff9f1c 100%);
  border-radius: 10px;
}

body.kids-mode .brand-part-b {
  color: #0284c7;
  border-top-color: #00b4d8;
  border-bottom-color: #ffb703;
}

body.kids-mode .nav-pill-bar {
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  box-shadow: 0 6px 18px -8px rgba(2, 132, 199, 0.25);
}

body.kids-mode .nav-pill-bar a {
  color: #334155;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

body.kids-mode .nav-pill-bar a:hover {
  color: #0284c7;
  background: #e0f2fe;
}

body.kids-mode .nav-pill-bar a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #00b4d8 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35);
}

body.kids-mode .icon-circle-btn {
  background: #ffffff;
  border: 2px solid #bae6fd;
  color: #0284c7;
}

body.kids-mode .icon-circle-btn:hover {
  background: #fff3c4;
  border-color: #ffb703;
  color: #b45309;
}

body.kids-mode .lang-pill-select {
  background: #ffffff;
  border: 2px solid #bae6fd;
  color: #0f172a;
}

body.kids-mode .lang-pill-select option {
  background: #ffffff;
  color: #0f172a;
}

/* Kids Hero — Bright Rounded Storybook Banner */
body.kids-mode .hero-slider {
  max-width: 1400px;
  margin: 1rem auto 0;
  border-radius: 26px;
  height: 58vh;
  min-height: 430px;
  max-height: 560px;
  border: 4px solid #ffffff;
  box-shadow: 0 22px 48px -18px rgba(14, 165, 233, 0.45);
}

@media (max-width: 767px) {
  body.kids-mode .hero-slider {
    margin: 0.75rem 0.75rem 0;
    width: calc(100% - 1.5rem);
    border-radius: 22px;
    min-height: 410px;
  }
}

body.kids-mode .hero-vignette {
  background:
    linear-gradient(to top, rgba(22, 33, 62, 0.92) 0%, rgba(22, 33, 62, 0.42) 44%, rgba(14, 165, 233, 0.14) 100%),
    linear-gradient(to right, rgba(22, 33, 62, 0.88) 0%, rgba(22, 33, 62, 0.45) 48%, rgba(22, 33, 62, 0.05) 85%);
}

body.kids-mode .hero-kicker {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  color: #fef08a;
}

body.kids-mode .hero-kicker-line { display: none; }

body.kids-mode .btn-hero-watch {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #ffffff;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  box-shadow: 0 10px 24px -6px rgba(251, 133, 0, 0.65);
}

body.kids-mode .btn-hero-watch:hover {
  transform: translateY(-2px) scale(1.03);
}

body.kids-mode .btn-hero-info,
body.kids-mode .btn-hero-plus {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

body.kids-mode .hero-dot.is-active {
  background: #ffb703;
}

/* Kids Welcome Banner */
.kids-welcome-strip {
  margin: 1.25rem 0 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffbeb 0%, #e0f2fe 55%, #fce7f3 100%);
  border: 2px solid #fde68a;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 10px 24px -14px rgba(245, 158, 11, 0.45);
}

.kw-emoji { font-size: 1.8rem; line-height: 1; }
.kids-welcome-strip strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  color: #0f172a;
}
.kids-welcome-strip span {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

/* Kids Category Pills */
body.kids-mode .genre-chip,
body.kids-mode .sub-tab {
  background: #ffffff;
  border: 2px solid #bae6fd;
  color: #0369a1;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px -6px rgba(14, 165, 233, 0.3);
}

body.kids-mode .genre-chip:hover,
body.kids-mode .sub-tab:hover {
  background: #fff3c4;
  border-color: #ffb703;
  color: #92400e;
  transform: translateY(-2px);
}

body.kids-mode .genre-chip.active,
body.kids-mode .sub-tab.active {
  background: linear-gradient(135deg, #ff4d8d 0%, #ff9f1c 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(255, 77, 141, 0.55);
}

/* Kids Cards & Carousels */
body.kids-mode .row-heading {
  color: #0f172a;
}

body.kids-mode .row-tag-amber {
  background: #fef3c7;
  color: #b45309;
  border: 2px solid #fcd34d;
  border-radius: 999px;
}

body.kids-mode .row-tag-prime {
  background: #e0f2fe;
  color: #0369a1;
  border: 2px solid #7dd3fc;
  border-radius: 999px;
}

body.kids-mode .row-tag-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 2px solid #d8b4fe;
  border-radius: 999px;
}

body.kids-mode .row-tag-green {
  background: #dcfce7;
  color: #15803d;
  border: 2px solid #86efac;
  border-radius: 999px;
}

body.kids-mode .row-see-all {
  color: #ff4d8d;
  font-family: "Fredoka", sans-serif;
}

body.kids-mode .rank-number {
  color: #fef08a;
  -webkit-text-stroke: 3px #ff4d8d;
}

body.kids-mode .media-card-inner {
  background: #ffffff;
  padding: 0.45rem;
  border-radius: 18px;
  border: 2px solid #e0f2fe;
  box-shadow: 0 10px 24px -12px rgba(2, 132, 199, 0.25);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

body.kids-mode .media-card:hover .media-card-inner {
  transform: translateY(-6px) scale(1.03);
  border-color: #ff4d8d;
  box-shadow: 0 18px 34px -12px rgba(255, 77, 141, 0.35);
}

body.kids-mode .media-poster {
  border-radius: 13px;
  border: none;
  box-shadow: none;
}

body.kids-mode .media-card:hover .media-poster {
  transform: none;
  box-shadow: none;
}

body.kids-mode .play-orb {
  background: linear-gradient(135deg, #ffb703 0%, #ff4d8d 100%);
  box-shadow: 0 0 24px rgba(255, 77, 141, 0.7);
}

body.kids-mode .media-title {
  color: #0f172a;
  font-weight: 800;
}

body.kids-mode .media-sub {
  color: #64748b;
  font-weight: 700;
}

body.kids-mode .carousel-arrow {
  background: #ffffff;
  color: #0284c7;
  border: 2px solid #bae6fd;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22);
}

body.kids-mode .carousel-arrow:hover {
  background: #ff4d8d;
  border-color: #ff4d8d;
  color: #ffffff;
}

/* Kids Watch Page, Player Console, Episodes & Search */
body.kids-mode .player-wrap {
  border: 4px solid #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 50px -16px rgba(2, 132, 199, 0.35);
}

body.kids-mode .player-console {
  background: #f8fafc;
  border-top: 2px solid #e0f2fe;
}

body.kids-mode .server-btn,
body.kids-mode .lights-btn {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #334155;
  border-radius: 999px;
}

body.kids-mode .server-btn.active {
  background: linear-gradient(135deg, #ff4d8d 0%, #ff9f1c 100%);
  border-color: transparent;
  color: #ffffff;
}

body.kids-mode .try-next-btn {
  background: #e0f2fe;
  border: 2px solid #7dd3fc;
  color: #0369a1;
  border-radius: 999px;
}

body.kids-mode .ad-warning-note {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  color: #166534;
}

body.kids-mode .detail-card,
body.kids-mode .episode-card,
body.kids-mode .notice-box {
  background: #ffffff;
  border: 2px solid #e0f2fe;
  border-radius: 20px;
  box-shadow: 0 12px 28px -16px rgba(2, 132, 199, 0.25);
}

body.kids-mode .detail-overview,
body.kids-mode .episode-overview {
  color: #334155;
}

body.kids-mode .episode-name,
body.kids-mode .cast-name {
  color: #0f172a;
}

body.kids-mode .cast-chip,
body.kids-mode .season-tab,
body.kids-mode .anime-ep-btn,
body.kids-mode .search-input {
  background: #ffffff;
  border: 2px solid #bae6fd;
  color: #0f172a;
}

body.kids-mode .season-tab.active,
body.kids-mode .anime-ep-btn.active {
  background: linear-gradient(135deg, #8338ec 0%, #ff4d8d 100%);
  border-color: transparent;
  color: #ffffff;
}

body.kids-mode .btn-glass {
  background: #ffffff;
  border: 2px solid #bae6fd;
  color: #0369a1;
  border-radius: 999px;
}

body.kids-mode .btn-crimson {
  background: linear-gradient(135deg, #ff4d8d 0%, #ff9f1c 100%);
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
}

body.kids-mode .site-footer {
  background: #ffffff;
  border-top: 2px solid #bae6fd;
}

body.kids-mode .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top: 2px solid #bae6fd;
}

body.kids-mode .mbn-item {
  color: #64748b;
  font-family: "Fredoka", sans-serif;
}

body.kids-mode .mbn-item.active {
  color: #ff4d8d;
}

body.kids-mode .skeleton {
  background: linear-gradient(90deg, #e0f2fe 25%, #f0f9ff 50%, #e0f2fe 75%);
  background-size: 200% 100%;
}

.kids-blocked-card {
  background: #ffffff;
  border: 3px solid #fde68a;
  border-radius: 26px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 20px 44px -16px rgba(245, 158, 11, 0.35);
}

.kb-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.kids-blocked-card h1 { margin: 0 0 0.5rem; font-size: 1.65rem; color: #0f172a; }
