/* ==========================================================================
   MUJIES STREAMING - COMPONENTS STYLING
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--brand-primary-glow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  object-fit: contain;
}

.brand-logo:hover .brand-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--brand-primary-glow);
}

.brand-name {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: var(--brand-primary-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xs);
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.25rem;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding-block: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   2. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: var(--brand-primary-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw + 1rem, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-cta-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  justify-content: center;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Hero Metrics Ribbon */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 4.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-val.cyan {
  color: var(--brand-primary);
}

.metric-val.purple {
  color: var(--brand-accent);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Showcase 3D Layout */
.hero-stage {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  margin-top: 2rem;
  perspective: 1200px;
}

.hero-devices-cluster {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TV Frame in Hero */
.hero-tv-preview {
  width: 78%;
  height: 440px;
  background: #000;
  border-radius: 18px;
  border: 3px solid var(--border-medium);
  box-shadow: var(--shadow-lg), 0 0 35px var(--brand-primary-glow);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transform: translateY(-10px);
}

.hero-tv-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Phone Frame in Hero */
.hero-phone-preview {
  position: absolute;
  left: 2%;
  bottom: 0;
  width: 210px;
  height: 410px;
  background: var(--bg-surface);
  border-radius: 36px;
  border: 4px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 4;
  transform: rotate(-4deg);
  transition: transform var(--transition-medium);
}

.hero-phone-preview:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}

/* Desktop Frame in Hero */
.hero-desktop-preview {
  position: absolute;
  right: 2%;
  bottom: 10px;
  width: 320px;
  height: 220px;
  background: var(--bg-surface);
  border-radius: 14px;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 3;
  transform: rotate(3deg);
  transition: transform var(--transition-medium);
}

.hero-desktop-preview:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}

/* --------------------------------------------------------------------------
   3. PLATFORM SHOWCASE & SWITCHER
   -------------------------------------------------------------------------- */
.platform-section {
  position: relative;
  background: transparent;
}

.platform-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-card);
  padding: 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.platform-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-medium);
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.platform-tab-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.platform-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.platform-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-brand);
  font-weight: 700;
}

.platform-tab-btn.active svg {
  transform: scale(1.05);
  fill: #ffffff !important;
}

/* Platform View Panes */
.platform-pane {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.platform-pane.active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
}

/* TV Interface Mockup */
.tv-frame-container {
  position: relative;
}

.tv-chassis {
  background: #0b0f17;
  border: 4px solid var(--border-strong);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-lg), 0 0 35px var(--brand-primary-glow);
  position: relative;
}

.tv-display-bezel {
  background: #080c14;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Simulated TV 10-foot UI */
.tv-screen-ui {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 68px 1fr;
  position: relative;
}

.tv-sidebar {
  background: rgba(4, 7, 13, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 1.25rem;
  gap: 1.25rem;
  z-index: 5;
}

.tv-side-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tv-side-icon.active,
.tv-side-icon:hover {
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  box-shadow: 0 0 15px var(--brand-primary-glow);
}

.tv-main-canvas {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tv-hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 8, 13, 0.95) 30%, rgba(6, 8, 13, 0.4) 70%),
              url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?auto=format&fit=crop&w=1200&q=80') center/cover;
  z-index: 1;
}

.tv-featured-info {
  position: relative;
  z-index: 3;
  max-width: 460px;
}

.tv-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-subtle);
  border: 1px solid var(--border-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.tv-featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tv-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.tv-rail-container {
  position: relative;
  z-index: 3;
}

.tv-rail-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tv-cards-carousel {
  display: flex;
  gap: 0.75rem;
  overflow: hidden;
}

.tv-poster-card {
  width: 96px;
  height: 136px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 2px solid transparent;
  transition: all var(--transition-medium);
  flex-shrink: 0;
}

.tv-poster-card.focused {
  border-color: var(--brand-primary);
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--brand-primary-glow);
  z-index: 4;
}

/* TV Stand */
.tv-stand-base {
  width: 140px;
  height: 12px;
  background: linear-gradient(to bottom, #334155, #0f172a);
  margin-inline: auto;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.tv-stand-neck {
  width: 40px;
  height: 16px;
  background: #1e293b;
  margin-inline: auto;
}

/* Interactive TV Remote Simulation */
.tv-remote-widget {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 90px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.remote-power-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  cursor: pointer;
}

.remote-dpad {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #0f172a;
  border: 1px solid #334155;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-dpad-center {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px var(--brand-primary-glow);
}

.remote-arrow {
  position: absolute;
  color: var(--text-secondary);
  font-size: 0.65rem;
  cursor: pointer;
  padding: 3px;
}

.remote-arrow.up { top: 2px; }
.remote-arrow.down { bottom: 2px; }
.remote-arrow.left { left: 4px; }
.remote-arrow.right { right: 4px; }

.remote-arrow:hover {
  color: var(--brand-primary);
}

.remote-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Smartphone Mockup */
.phone-chassis {
  width: 320px;
  height: 620px;
  margin-inline: auto;
  background: var(--bg-surface);
  border: 5px solid var(--border-strong);
  border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-screen {
  background: #06080d;
  border-radius: 36px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

.phone-header {
  padding: 2.2rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-bottom-nav {
  margin-top: auto;
  height: 54px;
  background: rgba(10, 14, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-inline: 0.5rem;
}

.phone-nav-item {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  gap: 2px;
}

.phone-nav-item.active {
  color: var(--brand-primary);
}

/* Desktop App Window Mockup */
.desktop-chassis {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.desktop-titlebar {
  background: var(--bg-card-hover);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.desktop-window-dots {
  display: flex;
  gap: 6px;
}

.desktop-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.desktop-dot.red { background: #ff5f56; }
.desktop-dot.yellow { background: #ffbd2e; }
.desktop-dot.green { background: #27c93f; }

.desktop-search-bar {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Platform Info Column */
.platform-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.platform-heading {
  font-size: 2.25rem;
  font-weight: 800;
}

.platform-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary-subtle);
  border: 1px solid var(--border-glow);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. MOVIE & TV CATALOG PREVIEW SECTION
   -------------------------------------------------------------------------- */
.catalog-section {
  position: relative;
  background: transparent;
}

.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-brand);
  font-weight: 700;
}

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
  cursor: pointer;
  aspect-ratio: 2 / 3;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md), 0 0 20px var(--brand-primary-glow);
  border-color: var(--brand-primary);
}

.movie-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.movie-card:hover .movie-poster-img {
  transform: scale(1.08);
}

.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 13, 0.95) 0%, rgba(6, 8, 13, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  z-index: 2;
}

.movie-card-badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.quality-badge {
  padding: 0.2rem 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  backdrop-filter: blur(4px);
}

.play-hover-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 52px;
  height: 52px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 20px var(--brand-primary-glow);
  z-index: 4;
}

.movie-card:hover .play-hover-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.movie-meta-sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   5. VIDEO STREAMING PLAYER MODAL
   -------------------------------------------------------------------------- */
.player-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.player-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.player-modal-container {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-modal.is-open .player-modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

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

.modal-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Player Controls */
.player-custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 5;
}

.player-scrubber-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.player-scrubber-progress {
  height: 100%;
  width: 35%;
  background: var(--brand-primary);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 10px var(--brand-primary-glow);
}

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

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

.player-btn {
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.player-btn:hover {
  color: var(--brand-primary-light);
  transform: scale(1.1);
}

.modal-movie-details {
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   6. FEATURES GRID
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--brand-primary-subtle);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
}

.feature-icon-box.purple {
  background: var(--brand-accent-subtle);
  border-color: var(--border-purple-glow);
  color: var(--brand-accent);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   7. TV EASY SETUP GUIDE SECTION
   -------------------------------------------------------------------------- */
.tv-guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.tv-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tv-step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.tv-step-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}

.tv-step-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.code-pill {
  display: inline-block;
  background: var(--brand-primary-subtle);
  border: 1px solid var(--border-glow);
  color: var(--brand-primary);
  font-family: monospace;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   8. DOWNLOAD CENTER SECTION
   -------------------------------------------------------------------------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.download-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.download-card.highlight {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
}

.download-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
}

.download-specs-table {
  width: 100%;
  margin-block: 1.5rem;
  font-size: 0.85rem;
}

.download-spec-row {
  display: flex;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.download-spec-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. FAQ ACCORDION SECTION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-item.is-open {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}

.faq-icon-chevron {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
  transition: transform var(--transition-fast);
}

.faq-item.is-open .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding-inline: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.is-open .faq-content {
  max-height: 240px;
  padding-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

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

/* TV Power Off Effect */
.tv-interactive-screen.tv-power-off {
  filter: brightness(0.08) contrast(1.5) grayscale(1);
  pointer-events: none;
  transition: filter 0.5s ease;
}

.tv-interactive-screen {
  transition: filter 0.5s ease;
}

/* Mobile Nav Drawer */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.mobile-open {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links .nav-link {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-pane.active {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tv-guide-box {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-devices-cluster {
    height: 380px;
  }

  .hero-tv-preview {
    width: 95%;
    height: 280px;
  }

  .hero-phone-preview {
    width: 140px;
    height: 280px;
    left: -10px;
  }

  .hero-desktop-preview {
    display: none;
  }

  .platform-tabs {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .platform-tab-btn {
    width: 100%;
  }

  .tv-remote-widget {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

