/* Chalchitra TV — CinemaX Netflix-red OTT UI (static HTML port) */

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

:root {
  --bg: #000000;
  --red: #E50914;
  --red-dark: #a00000;
  --red-mid: #c0070f;
  --surface: #111;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --muted: rgba(255,255,255,0.45);
  --muted-2: rgba(255,255,255,0.55);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  min-height: 100%;
}

body {
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(229,9,20,0.5); border-radius: 2px; }

.page-wrap { position: relative; z-index: 2; }

a { color: var(--muted-2); text-decoration: none; }
a:hover { color: #fff; text-decoration: none; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

button:focus-visible {
  outline: 2px solid #E50914;
  outline-offset: 2px;
}

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

.is-hidden { display: none !important; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: transparent;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.97);
  background-image: none;
}

@media (min-width: 768px) { .navbar { padding: 0 3rem; } }

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand {
  flex-shrink: 0;
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 36px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .navbar-brand { margin-right: 2rem; }
  .navbar-brand img { height: 42px; }
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

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

.navbar-links button {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.navbar-links button:hover { color: #fecaca; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 768px) { .navbar-right { gap: 0.75rem; } }

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.nav-icon-btn:hover { background: rgba(255,255,255,0.08); }

.nav-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.nav-profile {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-search-wrap { position: relative; display: flex; align-items: center; }

.nav-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: width 0.25s, opacity 0.25s, padding 0.25s, border 0.25s;
}

.nav-search-wrap.open .nav-search-input {
  width: 180px;
  opacity: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  margin-right: 0.35rem;
}

@media (min-width: 768px) {
  .nav-search-wrap.open .nav-search-input { width: 220px; }
}

.nav-search-dropdown,
.nav-bell-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 90vw);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 60;
  display: none;
  overflow: hidden;
}

.nav-search-dropdown.open,
.nav-bell-dropdown.open { display: block; }

.nav-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  text-align: left;
  color: #fff;
}

.nav-search-item:hover { background: rgba(255,255,255,0.06); }

.nav-search-item img {
  width: 48px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-search-empty {
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-bell-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.nav-bell-item:last-child { border-bottom: none; }

.nav-bell-time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.nav-bell-badge {
  display: inline-block;
  margin: 0.75rem 1rem 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--red);
  font-size: 0.65rem;
  font-weight: 700;
}

.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

@media (min-width: 768px) { .navbar-hamburger { display: none; } }

.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.5);
}

.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  z-index: 45;
  width: 288px;
  height: 100%;
  background: #111;
  border-left: 3px solid var(--red);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 68px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
}

.mobile-menu-tagline {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.mobile-menu nav { padding: 0.5rem 1rem 1.5rem; display: flex; flex-direction: column; gap: 4px; }

.mobile-menu nav a,
.mobile-menu nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu nav a:hover,
.mobile-menu nav button:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* ── Hero (CinemaX classic) ─────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0a0000;
  touch-action: pan-y;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-1 {
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(229,9,20,0.15) 0%, rgba(120,0,0,0.08) 40%, transparent 70%);
}

.hero-bg-2 {
  background: radial-gradient(ellipse 40% 30% at 20% 60%, rgba(180,0,0,0.07) 0%, transparent 60%);
}

.hero-bg-3 {
  background: radial-gradient(ellipse 40% 30% at 80% 55%, rgba(160,20,0,0.07) 0%, transparent 60%);
}

.hero-orbit {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  margin-top: 54px;
  transform: translate(-50%, -50%);
  animation: orbitRing 28s linear infinite;
}

@media (min-width: 1024px) { .hero-orbit { display: block; } }

@keyframes orbitRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counterSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.hero-orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 70px;
  margin-left: -55px;
  margin-top: -35px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.7), 0 0 16px rgba(229,9,20,0.2);
  border: 1px solid rgba(229,9,20,0.25);
}

.hero-orbit-item > div {
  width: 100%;
  height: 100%;
  animation: counterSpin 28s linear infinite;
}

.hero-orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.15);
}

.hero-orbit-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,9,20,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 68px;
  z-index: 2;
}

.hero-headline {
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

.hero-headline h1 {
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  text-shadow: 0 0 40px rgba(229,9,20,0.4);
}

.hero-headline .accent { color: #ff8a8a; }

.hero-headline p {
  color: #94a3b8;
  font-size: 0.75rem;
}

@media (min-width: 768px) { .hero-headline p { font-size: 0.875rem; } }

.letter {
  display: inline-block;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.letter:hover {
  transform: translateY(-6px) scale(1.12);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.hero-star-particle {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  color: #fff;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 220, 180, 0.7),
    0 0 22px rgba(229, 9, 20, 0.35);
  animation: hero-star-fly var(--dur, 0.8s) cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes hero-star-fly {
  0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.4); }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 0.55), calc(var(--ty) * 0.55))
      rotate(calc(var(--rot) * 0.5)) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.2);
  }
}

.hero-card {
  width: min(420px, 92vw);
  border-radius: 20px;
  background: rgba(20,5,5,0.88);
  border: 1px solid rgba(229,9,20,0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 60px rgba(0,0,0,0.6), 0 0 40px rgba(229,9,20,0.1);
  overflow: hidden;
}

.hero-card-row { padding: 12px 16px 10px; }

.hero-card-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.hero-card-media {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card-media img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(229,9,20,0.3);
  flex-shrink: 0;
}

.hero-card-media strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-card-media span {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.hero-card-swap {
  display: flex;
  align-items: center;
  margin: 0 16px;
}

.hero-card-swap::before,
.hero-card-swap::after {
  content: '';
  height: 1px;
  background: rgba(255,255,255,0.06);
  flex: 1;
}

.hero-swap-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  color: var(--red);
  font-size: 0.9rem;
}

.hero-watch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 32px);
  margin: 0 16px 14px;
  padding: 11px 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(90deg, #E50914 0%, #a00000 100%);
  border: 1px solid rgba(229,9,20,0.4);
  letter-spacing: 0.02em;
  transition: transform 0.15s;
}

.hero-watch:hover { transform: scale(1.02); }

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 1.25rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 20px;
  background: var(--red);
}

.hero-browse {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.05em;
}

.hero-browse:hover { color: #cbd5e1; }

/* ── Hero 360° ──────────────────────────────────────────── */
.hero-360 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
  user-select: none;
}

.hero-360-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at 50% 50%, rgba(229,9,20,0.18) 0%, rgba(40,0,0,0.35) 45%, #000 75%);
}

.hero-360-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 68px 1rem 1.5rem;
  gap: 1.25rem;
}

.hero-360-title {
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.hero-360-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 0.5rem;
  color: rgba(255,138,138,0.85);
}

.hero-360-title h2 {
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-shadow: 0 0 40px rgba(229,9,20,0.45);
}

.hero-360-hint {
  margin-top: 0.5rem;
  color: #94a3b8;
  font-size: 0.75rem;
}

@media (min-width: 768px) { .hero-360-hint { font-size: 0.875rem; } }

@media (max-width: 767px) {
  .hero-360 {
    height: auto;
    min-height: 100svh;
    touch-action: pan-y;
  }
}

@media (max-width: 639px) {
  .hero-360-scene {
    max-height: 44vh;
  }
  .hero-360-inner {
    gap: 0.85rem;
    padding-bottom: 1rem;
  }
  .hero-360-title h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .hero-360-card {
    border-radius: 12px;
  }
}

.hero-360-scene {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 48vh;
  perspective: 1400px;
  cursor: grab;
  z-index: 10;
  touch-action: pan-y;
}

.hero-360-scene.is-dragging { cursor: grabbing; }

.hero-360-ring {
  position: relative;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
}

.hero-360-card {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  padding: 0;
  background: #111;
  cursor: pointer;
}

.hero-360-card.is-front {
  border: 2px solid rgba(229,9,20,0.85);
  box-shadow: 0 12px 40px rgba(229,9,20,0.35), 0 8px 32px rgba(0,0,0,0.7);
}

.hero-360-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-360-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  pointer-events: none;
}

.hero-360-card-title {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
  z-index: 2;
  pointer-events: none;
}

.hero-360-card.is-front .hero-360-card-title { display: block; }

.hero-360-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.hero-360-active { text-align: center; }

.hero-360-active-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

@media (min-width: 768px) { .hero-360-active-title { font-size: 1.125rem; } }

.hero-360-active-cat {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2px;
}

.hero-360-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-360-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
}

.hero-360-step.flip { transform: scaleX(-1); }

.hero-360 .hero-watch {
  width: auto;
  margin: 0;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
}

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

/* ── Content rows ───────────────────────────────────────── */
#premium-collection { background: #000; }

.content-section {
  padding: 1rem 0;
  scroll-margin-top: 5rem;
  background: #000;
}

@media (min-width: 768px) { .content-section { padding: 1.5rem 0; } }

.section-header {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) { .section-header { padding: 0 3rem; } }

.section-bar {
  width: 4px;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fff 0%, #E50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }

.section-explore {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-2);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  margin-left: 0.25rem;
}

.content-section:hover .section-explore {
  opacity: 1;
  transform: translateX(0);
}

.section-explore:hover { color: #fff; }

.row-wrap {
  position: relative;
}

.video-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 1.5rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

/* 2 rows × 4 columns portrait grid */
.video-grid-2x4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 0.75rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .video-grid-2x4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding: 0.75rem 3rem 1.75rem;
  }
}

.video-grid-2x4 .video-card {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .video-row {
    gap: 0.65rem;
    padding: 0.75rem 3rem 1.5rem;
  }
}

.row-arrow {
  position: absolute;
  top: 0;
  bottom: 1.25rem;
  width: 2.5rem;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  background: linear-gradient(90deg, rgba(0,0,0,0.85), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.row-arrow.right {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,0.85), transparent);
}

.row-arrow.left { left: 0; }

.row-wrap:hover .row-arrow.show { display: flex; opacity: 1; }

@media (min-width: 768px) {
  .row-wrap:hover .row-arrow.show { opacity: 1; }
}

/* Video card */
.video-card {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: visible;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  background: transparent;
  text-align: left;
  color: inherit;
}

@media (min-width: 640px) { .video-card { width: 180px; } }
@media (min-width: 768px) { .video-card { width: 200px; } }
@media (min-width: 1024px) { .video-card { width: 220px; } }

.card-landscape .video-card-inner { aspect-ratio: 1350 / 760; }
.card-portrait .video-card-inner { aspect-ratio: 1080 / 1350; }

.video-card-inner {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s;
  display: block;
}

.video-card:hover img { transform: scale(1.05); }

.video-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 45%);
  pointer-events: none;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 4;
  background: rgba(0,0,0,0.28);
}

.video-card:hover .video-card-play,
.video-card:focus-visible .video-card-play { opacity: 1; }

.video-card-play span,
.thumb-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55);
  transform: scale(0.92);
  transition: transform 0.2s;
}

.video-card:hover .video-card-play span,
.video-card:focus-visible .video-card-play span,
.coming-card:hover .thumb-play span,
.hero-360-card:hover .thumb-play span,
.c3d-card:hover .thumb-play span {
  transform: scale(1);
}

/* Shared play overlay */
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 4;
  background: rgba(0,0,0,0.28);
}

.coming-card:hover .thumb-play,
.hero-360-card:hover .thumb-play,
.hero-360-card.is-front:hover .thumb-play,
.c3d-card:hover .thumb-play {
  opacity: 1;
}

.video-card-below {
  padding: 0 0.1rem;
  min-width: 0;
}

.video-card-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #a3a3a3;
}

.video-card-rating { color: #46d369; }
.video-card-sep { color: #777; }
.video-card-dur { color: #a3a3a3; }

.video-card-info { display: none; }
.video-card-cat { display: none; }

/* Explore-all modal grid */
.explore-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0,0,0,0.95);
  overflow-y: auto;
  padding: 1.5rem;
}

.explore-modal.open { display: block; }

.explore-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.explore-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.explore-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) { .explore-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .explore-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .explore-grid { grid-template-columns: repeat(5, 1fr); } }

.explore-grid .video-card { width: 100%; }

/* ── Device showcase ────────────────────────────────────── */
.device-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  background: #000;
}

.device-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(229,9,20,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.device-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

.device-heading .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.device-heading h2 {
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fff 0%, #E50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.device-heading p {
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  font-size: 0.875rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.device-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.device-row-desktop {
  margin-bottom: 2.5rem;
}

.device-row-desktop .device-tv {
  width: min(560px, 88vw);
}

.device-row-mobile {
  align-items: center;
  margin-bottom: 0.5rem;
}

.device-row-mobile .device-phone {
  width: min(180px, 42vw);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .device-row { gap: 2.5rem; }
  .device-row-mobile .device-phone { width: min(200px, 22vw); }
}

.device-tv {
  position: relative;
  width: min(520px, 58vw);
  flex-shrink: 0;
}

.device-tv-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 6px solid #2a2a2a;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 40px rgba(229,9,20,0.15);
}

.device-tv-screen {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
}

.device-tv-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.device-tv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
}

.device-tv-sidebar {
  width: 28%;
  height: 100%;
  padding: 1rem 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.device-tv-sidebar .brand {
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.device-tv-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.device-tv-nav.active { color: var(--red); }

.device-tv-nav i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.device-tv-nav.active i {
  background: var(--red);
  border: none;
}

.device-tv-stand {
  display: flex;
  justify-content: center;
}

.device-tv-stand span:first-child {
  width: 18%;
  height: 18px;
  background: #2a2a2a;
  border-radius: 0 0 4px 4px;
}

.device-tv-base {
  display: flex;
  justify-content: center;
}

.device-tv-base span {
  width: 32%;
  height: 6px;
  background: #222;
  border-radius: 4px;
}

.device-badge {
  position: absolute;
  top: -12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.device-badge.left { left: -12px; }
.device-badge.right { right: -12px; }

.device-row-mobile .device-badge {
  left: 50%;
  right: auto;
  top: -14px;
  transform: translateX(-50%);
}

.device-phone {
  position: relative;
  width: min(160px, 18vw);
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.device-phone-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #1a1a1a;
  border: 5px solid #2a2a2a;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px rgba(229,9,20,0.15);
}

.device-phone-notch {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
  background: #1a1a1a;
}

.device-phone-notch span {
  width: 40px;
  height: 6px;
  border-radius: 9999px;
  background: #333;
}

.device-phone-screen {
  aspect-ratio: 1080 / 1350;
  background: #111;
}

.device-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0.85);
}

.device-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 0 1.5rem;
}

.device-pills span {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(229,9,20,0.12);
  border: 1px solid var(--red);
  color: var(--red);
}

/* ── 3D Carousel ────────────────────────────────────────── */
.c3d-section {
  background: #000;
  padding: 2.5rem 0;
}

.c3d-scene {
  display: grid;
  overflow: hidden;
  perspective: 35em;
  mask: linear-gradient(90deg, #0000, red 18% 82%, #0000);
  -webkit-mask: linear-gradient(90deg, #0000, red 18% 82%, #0000);
  height: 280px;
  width: 100%;
}

.c3d-ring {
  display: grid;
  place-self: center;
  transform-style: preserve-3d;
  animation: c3d-ry 32s linear infinite;
}

@keyframes c3d-ry { to { rotate: y 1turn; } }

.c3d-card {
  --w: 17em;
  --gap: 0.35em;
  --ba: calc(1turn / 12);
  grid-area: 1 / 1;
  width: var(--w);
  aspect-ratio: 16 / 10;
  border-radius: 1em;
  overflow: hidden;
  backface-visibility: hidden;
  position: relative;
  transform:
    rotatey(calc(var(--i) * var(--ba)))
    translatez(calc(-1 * (0.5 * var(--w) + var(--gap)) / tan(0.5 * var(--ba))));
  border: 1px solid rgba(229,9,20,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  background: #111;
}

.c3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c3d-card:hover .thumb-play { opacity: 1; }

@media (max-width: 767px) {
  .c3d-section {
    padding: 1rem 0 0.5rem;
  }

  .c3d-section .section-header {
    padding: 0 1rem;
    margin-bottom: 0.25rem;
  }

  .c3d-scene {
    height: 200px;
    perspective: 42em;
    mask: linear-gradient(90deg, #0000, red 12% 88%, #0000);
    -webkit-mask: linear-gradient(90deg, #0000, red 12% 88%, #0000);
  }

  .c3d-card {
    /* Fixed em width so transform radius calc works (min() breaks translateZ) */
    --w: 11.5em;
    --gap: 0.55em;
    border-radius: 0.65em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c3d-ring { animation-duration: 128s; }
  .hero-orbit { animation-duration: 90s; }
  .hero-orbit-item > div { animation-duration: 90s; }
}

/* ── Coming Soon ────────────────────────────────────────── */
.coming-section {
  padding: 2.5rem 0;
  background: #000;
}

.coming-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.75rem 1.5rem 1.5rem;
}

@media (min-width: 768px) { .coming-row { padding: 0.75rem 3rem 1.5rem; } }

.coming-card {
  flex-shrink: 0;
  width: min(280px, 75vw);
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.coming-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229,9,20,0.4);
}

.coming-card-img {
  position: relative;
  aspect-ratio: 16/9;
  background: #1a1a1a;
}

.coming-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coming-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--red);
  color: #fff;
}

.coming-card-body { padding: 0.85rem 1rem 1rem; }

.coming-card-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.coming-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.coming-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 600;
}

/* Coming detail modal */
.coming-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.coming-detail.open { display: flex; }

.coming-detail-box {
  width: min(480px, 100%);
  background: #111;
  border: 1px solid var(--red);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.coming-detail-box img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.coming-detail-body { padding: 1.25rem; }

.coming-detail-body h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.coming-detail-body p {
  color: var(--muted-2);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* ── Netflix-style title detail ──────────────────────────── */
.title-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.78);
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.title-detail.open { display: flex; }

.title-detail-box {
  width: min(860px, 100%);
  background: #181818;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  margin: auto;
}

.title-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 24, 24, 0.92);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.title-detail-hero {
  position: relative;
  background: #141414;
  display: flex;
  flex-direction: column;
}

.title-detail-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.title-detail-hero.is-portrait .title-detail-hero-media {
  aspect-ratio: 1080 / 1350;
  max-height: 70vh;
}

.title-detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.title-detail-hero-fade { display: none; }

.title-detail-hero-content {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 1rem 1.5rem 0.35rem;
  z-index: 1;
  background: #181818;
}

.td-uhd-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1200;
  background: linear-gradient(180deg, #f5d76e, #c9a227);
  border-radius: 3px;
}

.td-display {
  display: none;
}

.td-title {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: #fff;
}

.td-tagline {
  font-size: 0.9rem;
  color: #b3b3b3;
  margin: 0 0 0.85rem;
}

.td-progress-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  max-width: 420px;
}

.td-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}

.td-progress span {
  display: block;
  height: 100%;
  width: 62%;
  background: #e50914;
}

.td-runtime {
  font-size: 0.8rem;
  color: #d2d2d2;
  white-space: nowrap;
}

.td-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.td-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.td-play:hover { background: #e6e6e6; }

.td-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(42,42,42,0.55);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.td-icon-btn:hover {
  border-color: #fff;
  background: rgba(60,60,60,0.8);
}

.td-icon-btn.active {
  border-color: #fff;
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.td-icon-btn.active svg {
  fill: #fff;
  stroke: #fff;
}

.td-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  z-index: 10100;
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.95);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.td-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.title-detail-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem 1.75rem;
  padding: 0.25rem 1.5rem 1.75rem;
}

.td-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: #fff;
}

.td-match {
  color: #46d369;
  font-weight: 800;
}

.td-chip {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  font-size: 0.75rem;
  color: #d2d2d2;
}

.td-desc {
  color: #d2d2d2;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.td-meta-right p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.4;
}

.td-label { color: #777; }

/* Hide site chrome while title detail is open */
body.title-detail-open .page-wrap {
  opacity: 0;
  pointer-events: none;
}

body.title-detail-open .title-detail {
  z-index: 10050;
}

/* Mobile: true full-page sheet */
@media (max-width: 768px) {
  .title-detail {
    padding: 0;
    background: #141414;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    z-index: 10050;
  }

  .title-detail-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #141414;
  }

  .title-detail-close {
    position: fixed;
    top: max(0.65rem, env(safe-area-inset-top));
    right: 0.65rem;
    width: 44px;
    height: 44px;
    z-index: 10060;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255,255,255,0.2);
  }

  .title-detail-hero {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    background: #141414;
  }

  .title-detail-hero-media {
    aspect-ratio: 1350 / 760;
    background: #141414;
  }

  .title-detail-hero.is-portrait .title-detail-hero-media {
    aspect-ratio: 1080 / 1350;
    max-height: 62vh;
    max-height: 62dvh;
  }

  .title-detail-hero-media img {
    object-fit: contain;
    object-position: center center;
  }

  .title-detail-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5.5rem;
    height: 5.5rem;
    background: radial-gradient(circle at top right, rgba(20,20,20,0.75) 0%, transparent 70%);
    pointer-events: none;
    z-index: 3;
  }

  .title-detail-hero-content {
    padding: 0.9rem 1rem 0.25rem;
    padding-right: 1rem;
    background: #141414;
  }

  .td-display { display: none !important; }

  .td-title {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    max-width: 100%;
  }

  .td-tagline {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .td-progress-row {
    max-width: none;
    margin-bottom: 0.9rem;
  }

  .td-actions {
    width: 100%;
    gap: 0.7rem;
  }

  .td-play {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
  }

  .td-icon-btn {
    width: 48px;
    height: 48px;
  }

  .title-detail-meta {
    flex: 1;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 0.85rem 1.1rem 2.25rem;
    padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
    background: #141414;
  }

  .td-stats {
    gap: 0.45rem 0.65rem;
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
  }

  .td-desc {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }
}

@media (min-width: 769px) {
  .title-detail-meta { grid-template-columns: 1.4fr 1fr; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #000;
  border-top: 2px solid var(--red);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ── Modals (unlock / account) ──────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open { display: flex; }

.modal-box {
  width: 100%;
  max-width: 22rem;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(229,9,20,0.4);
  padding: 1rem 0.875rem 0.875rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover { color: #fff; }

.modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.modal-sub { color: var(--muted); font-size: 0.8125rem; margin-bottom: 0.75rem; line-height: 1.35; }

.unlock-plans-note {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  margin: 0.5rem 0 0;
  line-height: 1.35;
}

.phone-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
}

.phone-input:focus,
.phone-input.valid { border-color: var(--red); }

.phone-input.is-invalid { border-color: #f87171; }
.phone-field.is-invalid .phone-prefix { border-color: #f87171; }

.phone-error {
  margin: -0.75rem 0 1rem;
  font-size: 0.75rem;
  color: #f87171;
  display: none;
}

.phone-error.is-visible { display: block; }

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.btn-continue,
.btn-subscribe {
  width: 100%;
  padding: 0.875rem;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #E50914 0%, #a00000 100%);
  transition: transform 0.15s, opacity 0.2s;
}

.btn-continue:hover,
.btn-subscribe:hover { transform: scale(1.02); }

.btn-continue:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-back {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  display: block;
}

.btn-back:hover { color: #fff; }

.plan-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  text-align: left;
  background: #1a1a1a;
  border: 2px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.plan-option.active {
  background: rgba(229,9,20,0.12);
  border-color: var(--red);
}

.plan-name { font-weight: 700; font-size: 0.9375rem; }
.plan-period { font-size: 0.6875rem; color: var(--muted); margin-top: 1px; }
.plan-price { font-size: 1.0625rem; font-weight: 900; margin-top: 2px; }
.plan-price-wrap { display: flex; align-items: center; gap: 0.75rem; }

.plan-check {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.plan-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
}

.plan-card-head {
  margin-bottom: 0.5rem;
}

.plan-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-pay-btn {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
  transition: background 0.2s, border-color 0.2s;
}

.plan-pay-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 1px;
}

.plan-pay-once {
  background: var(--red);
}

.plan-pay-once:hover {
  background: #b20710;
}

.plan-pay-auto {
  background: rgba(229,9,20,0.12);
  border-color: rgba(229,9,20,0.45);
  color: #fecaca;
}

.plan-pay-auto:hover {
  background: rgba(229,9,20,0.22);
  border-color: var(--red);
}

@media (max-width: 767px) {
  .modal-backdrop {
    padding: 0.5rem 0.65rem;
  }

  .modal-box {
    max-width: 20.5rem;
    padding: 0.875rem 0.75rem 0.75rem;
    max-height: 92dvh;
  }

  .modal-title {
    font-size: 1.125rem;
  }

  .modal-close-btn {
    top: 0.55rem;
    right: 0.55rem;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  .btn-back {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .plan-card {
    padding: 0.6rem 0.65rem;
    margin-bottom: 0.45rem;
  }

  .plan-card-head {
    margin-bottom: 0.45rem;
  }

  .plan-name {
    font-size: 0.875rem;
  }

  .plan-price {
    font-size: 1rem;
  }

  .plan-card-actions {
    gap: 0.35rem;
  }

  .plan-pay-btn {
    padding: 0.5rem 0.65rem;
  }
}

.account-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.account-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E50914, #a00000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.account-badge {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fecaca;
  font-weight: 600;
  background: rgba(229,9,20,0.12);
  border: 1px solid rgba(229,9,20,0.35);
  margin-bottom: 1rem;
}

.account-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
}

.account-label { font-size: 0.75rem; color: var(--muted); }
.account-value { font-weight: 600; }
.account-empty { color: var(--muted); font-size: 0.875rem; text-align: center; margin-bottom: 1rem; }

.account-logout {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  color: #f87171;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
}

.account-logout:hover { color: #fca5a5; }

/* ── Player ─────────────────────────────────────────────── */
.player-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.player-modal.open { display: flex; }

.player-shell {
  position: relative;
  width: 100%;
  max-width: 48rem;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(229,9,20,0.35);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-top,
.player-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.player-modal.show-ctrl .player-top,
.player-modal.show-ctrl .player-bottom,
.player-modal:not(.is-playing) .player-top,
.player-modal:not(.is-playing) .player-bottom {
  opacity: 1;
  pointer-events: auto;
}

.player-top {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.player-title-text {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.player-close {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.player-close:hover { background: rgba(255,255,255,0.1); }

.player-center-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.player-center-play svg {
  padding: 16px;
  border-radius: 9999px;
  background: rgba(229,9,20,0.9);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.player-bottom {
  bottom: 0;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.player-progress {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  accent-color: var(--red);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.player-controls-left,
.player-controls-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-btn {
  color: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  line-height: 1;
}

.player-btn:hover { background: rgba(255,255,255,0.1); }

.player-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
}

/* ── Legal pages ────────────────────────────────────────── */
.legal-page {
  background: #000;
  min-height: 100vh;
}

.legal-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.95);
  position: sticky;
  top: 0;
  z-index: 20;
}

.legal-header-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-brand {
  display: flex;
  align-items: center;
}

.legal-brand img {
  height: 40px;
  width: auto;
}

.legal-back {
  font-size: 0.875rem;
  color: var(--muted-2);
}

.legal-back:hover { color: #fff; }

.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal-main h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.legal-main h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  color: #fecaca;
}

.legal-main p,
.legal-main li {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.legal-main .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.legal-main ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) { .about-grid { grid-template-columns: repeat(4, 1fr); } }

.about-card {
  background: #111;
  border: 1px solid rgba(229,9,20,0.25);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-card strong { font-size: 0.85rem; }
.about-card span { font-size: 0.75rem; color: var(--muted); }

/* ── RSS / Celebuzz Entertainment ───────────────────────── */
.rss-section {
  padding: 1.5rem 0 3rem;
  background: #000;
}

.rss-section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.rss-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rss-hint {
  color: #666;
  font-size: 0.75rem;
}

.rss-live-badge-wrap {
  padding: 0 1.5rem 0.75rem;
  margin: 0;
}

@media (min-width: 768px) {
  .rss-live-badge-wrap { padding: 0 3rem 0.75rem; }
}

.rss-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rss-live-badge-dot {
  color: var(--red);
  animation: rss-pulse 1.4s ease-in-out infinite;
}

@keyframes rss-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rss-disclaimer {
  display: block;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.7rem;
  opacity: 0.85;
}

.rss-status {
  padding: 0.5rem 1.5rem 1rem;
  color: #555;
  font-size: 0.85rem;
  margin: 0;
}

@media (min-width: 768px) {
  .rss-status { padding: 0.5rem 3rem 1rem; }
}

.rss-status.error { color: #ff8a8a; }

.rss-frame-shell {
  margin: 0 1rem 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .rss-frame-shell { margin: 0 1.5rem 0.5rem; }
}

.rss-scroll-frame {
  display: block;
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  background: #0a0a0a;
}

.rss-back-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rss-back-bar[hidden] {
  display: none !important;
}

.rss-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(229, 9, 20, 0.55);
  background: linear-gradient(90deg, #E50914 0%, #a00000 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.rss-back-btn:hover {
  filter: brightness(1.08);
}

.rss-back-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}
