/* =========================================================
   FlixMirror v2 — Pure Zero-Lag Cinema OTT Design System
   - Zero blur jank, zero permanent will-change bloat
   - Pure transform/opacity GPU transitions
   - Responsive Mobile + Desktop Netflix/Prime Experience
   ========================================================= */

:root {
  --bg-canvas: #06070A;
  --bg-surface: #0D1017;
  --bg-elevated: #141926;
  --bg-card: #111520;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --red: #E50914;
  --red-dark: #B20710;
  --gold: #F5C518;
  --emerald: #10B981;
  --text-main: #FFFFFF;
  --text-soft: #CBD5E1;
  --text-muted: #8B97AC;
  --font-head: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: clamp(14px, 3.2vw, 44px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: clip;
  padding-bottom: calc(74px + var(--safe-bottom));
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
}

img {
  display: block;
}

.hidden {
  display: none !important;
}

/* =========================================================
   TOP CINEMA HEADER
   ========================================================= */
.ott-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: calc(10px + var(--safe-top)) var(--gutter) 10px var(--gutter);
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.92) 0%, rgba(6, 7, 10, 0.55) 65%, rgba(6, 7, 10, 0) 100%);
  transition: background-color 0.22s ease;
}

.ott-header.is-scrolled {
  background: rgba(6, 7, 10, 0.97);
  border-bottom: 1px solid var(--border-subtle);
}

.ott-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1560px;
  margin: 0 auto;
}

.ott-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 32px;
  width: auto;
}

.desk-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desk-nav-item {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.desk-nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.desk-nav-item.active {
  color: #FFFFFF;
  font-weight: 800;
  background: rgba(229, 9, 20, 0.22);
}

.ott-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desk-quick-search {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(15, 19, 28, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  width: 230px;
  color: var(--text-muted);
  transition: border-color 0.18s ease, width 0.2s ease;
}

.desk-quick-search:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  width: 280px;
}

.desk-quick-search input {
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  min-width: 0;
}

.desk-quick-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.desk-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #CBD5E1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.desk-quick-search.has-text .desk-clear-btn {
  display: inline-flex;
}

.desk-only-control {
  display: none;
}

.hdr-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 19, 28, 0.85);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.15s ease;
}

.hdr-icon-btn.desk-only-control {
  display: none;
}

.hdr-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hdr-icon-btn:active {
  transform: scale(0.92);
}

.hdr-apk-pill {
  background: rgba(15, 19, 28, 0.85);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.15s ease;
}

.hdr-apk-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.hdr-apk-pill:active {
  transform: scale(0.95);
}

body.on-search-tab #btnDeskSearchBtn {
  display: none !important;
}

@media (min-width: 900px) {
  body { padding-bottom: 24px; }
  .brand-logo-img { height: 35px; }
  .desk-nav { display: flex; }
  .desk-quick-search { display: flex; }
  .desk-only-control,
  .hdr-icon-btn.desk-only-control { display: inline-flex; }
  .bottom-nav-dock { display: none !important; }
}

.native-app-mode .desk-nav,
.native-app-mode .desk-quick-search,
.native-app-mode .hdr-icon-btn,
.native-app-mode .hdr-apk-pill {
  display: none !important;
}

/* =========================================================
   TAB VIEWS
   ========================================================= */
.tab-content-view {
  display: none;
}

.tab-content-view.active {
  display: block;
}

#tabSearch.active,
#tabCategories.active,
#tabSettings.active {
  animation: smoothFadeIn 0.16s ease-out;
}

@keyframes smoothFadeIn {
  from { opacity: 0.01; }
  to { opacity: 1; }
}

/* =========================================================
   FULL-BLEED CINEMA HERO BILLBOARD
   ========================================================= */
.hero-billboard {
  position: relative;
  width: 100%;
  height: clamp(350px, 54vh, 540px);
  background: #080A10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  touch-action: pan-y;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease-out;
}

.hero-bg-layer.is-visible {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.52) 0%, rgba(6, 7, 10, 0.08) 34%, rgba(6, 7, 10, 0.72) 76%, var(--bg-canvas) 100%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.92) 0%, rgba(6, 7, 10, 0.56) 44%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--gutter) 24px var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hero-content {
  max-width: 610px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-badge {
  align-self: flex-start;
  background: rgba(229, 9, 20, 0.24);
  border: 1px solid rgba(229, 9, 20, 0.7);
  color: #FF6E76;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.6px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.meta-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  color: #F8FAFC;
}

.meta-tag.gold {
  background: rgba(245, 197, 24, 0.2);
  color: #F5C518;
  border: 1px solid rgba(245, 197, 24, 0.45);
}

.hero-synopsis {
  font-size: 13.5px;
  color: #D6DFEC;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Signature High-Contrast White Netflix Play Button */
.btn-hero-primary {
  background: #FFFFFF;
  color: #06070A;
  border: none;
  border-radius: 8px;
  height: 42px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

.btn-hero-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-hero-primary:active {
  transform: scale(0.96);
}

.btn-hero-glass {
  background: rgba(109, 109, 110, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  border-radius: 8px;
  height: 42px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.btn-hero-glass:hover {
  background: rgba(109, 109, 110, 0.68);
}

.btn-hero-glass.in-list {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  color: #6EE7B7;
}

.btn-hero-glass:active {
  transform: scale(0.96);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

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

.hero-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 7, 10, 0.55);
  color: #FFFFFF;
  font-size: 28px;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.18s ease;
}

.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

@media (hover: hover) and (pointer: fine) {
  .hero-arrow { display: flex; }
  .hero-billboard:hover .hero-arrow { opacity: 1; }
  .hero-arrow:hover { background: rgba(229, 9, 20, 0.85); }
}

@media (max-width: 640px) {
  .hero-billboard { height: clamp(310px, 43vh, 395px); }
  .hero-inner { flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .hero-dots { align-self: flex-end; }
  .hero-synopsis { display: none; }
  .btn-hero-primary { flex: 1; height: 40px; }
  .btn-hero-glass { height: 40px; padding: 0 14px; font-size: 13px; }
}

/* =========================================================
   HOME PLATFORM BAR & RAILS
   ========================================================= */
.home-controls-band {
  position: relative;
  z-index: 4;
  max-width: 1560px;
  margin: -6px auto 12px auto;
  padding: 0 var(--gutter);
}

.ad-slot-container {
  margin-bottom: 10px;
}

.ott-platform-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.ott-platform-bar::-webkit-scrollbar {
  display: none;
}

.ott-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ott-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.ott-pill-btn.active {
  background: #FFFFFF;
  color: #06070A;
  border-color: #FFFFFF;
}

.ott-pill-btn.netflix.active { background: #E50914; color: #FFFFFF; border-color: #E50914; }
.ott-pill-btn.prime.active { background: #00A8E1; color: #FFFFFF; border-color: #00A8E1; }
.ott-pill-btn.hotstar.active { background: #F59E0B; color: #06070A; border-color: #F59E0B; }
.ott-pill-btn.sonyliv.active { background: #8B5CF6; color: #FFFFFF; border-color: #8B5CF6; }

/* Rail Sections */
.rail-section {
  max-width: 1560px;
  margin: 0 auto 24px auto;
}

.rail-section:nth-of-type(n+5) {
  content-visibility: auto;
  contain-intrinsic-size: 265px;
}

.rail-header {
  padding: 0 var(--gutter) 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rail-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rail-title {
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.rail-title .highlight {
  color: var(--red);
}

.rail-date-hint {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.view-all-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.view-all-link:hover {
  color: #FFFFFF;
}

/* Rail Carousel */
.rail-carousel-wrap {
  position: relative;
}

.rail-scroll-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px var(--gutter) 12px var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.rail-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.rail-nav-btn {
  display: none;
  position: absolute;
  top: 6px;
  bottom: 44px;
  width: 44px;
  border: none;
  background: linear-gradient(90deg, rgba(6, 7, 10, 0.88), rgba(6, 7, 10, 0.5));
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 600;
  z-index: 15;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}

.rail-nav-btn.prev { left: 0; border-radius: 0 8px 8px 0; }
.rail-nav-btn.next { right: 0; border-radius: 8px 0 0 8px; background: linear-gradient(270deg, rgba(6, 7, 10, 0.88), rgba(6, 7, 10, 0.5)); }

@media (hover: hover) and (pointer: fine) {
  .rail-nav-btn { display: flex; }
  .rail-carousel-wrap:hover .rail-nav-btn:not(.is-hidden) { opacity: 1; }
  .rail-nav-btn:hover { background: rgba(229, 9, 20, 0.85); }
}

.rail-nav-btn.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* =========================================================
   MOVIE CARDS (ZERO-LAG COMPOSITOR) + 16:9 WIDE CARDS
   ========================================================= */
.movie-card {
  flex: 0 0 clamp(134px, 15.5vw, 178px);
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  contain: layout style paint;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease;
}

.wide-cards .movie-card {
  flex: 0 0 clamp(220px, 24vw, 275px);
}

.wide-cards .poster-wrap {
  aspect-ratio: 16 / 9;
}

@media (hover: hover) and (pointer: fine) {
  .movie-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(229, 9, 20, 0.65);
    z-index: 4;
  }
  .movie-card:hover .card-hover-overlay {
    opacity: 1;
  }
}

.movie-card:active {
  transform: scale(0.97);
}

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

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

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 7, 10, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.card-hover-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.94);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding-left: 2px;
}

.ott-badge-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
}
.ott-badge-tag.netflix { background: #E50914; color: #FFFFFF; }
.ott-badge-tag.prime { background: #00A8E1; color: #FFFFFF; }
.ott-badge-tag.hotstar { background: #F59E0B; color: #06070A; }
.ott-badge-tag.sonyliv { background: #8B5CF6; color: #FFFFFF; }

.card-quality-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F8FAFC;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

@media (max-width: 600px) {
  .ott-badge-tag {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 54px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7.5px;
    padding: 2px 5px;
  }
  .card-quality-badge {
    top: 6px;
    right: 6px;
    font-size: 7.5px;
    padding: 2px 5px;
  }
}

.card-date-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  background: rgba(6, 7, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  z-index: 2;
}

.card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
  padding: 8px 8px 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 8px 9px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Continue Watching Progress */
.card-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 3;
}

.card-progress-fill {
  height: 100%;
  background: var(--red);
}

.cw-remove-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 7, 10, 0.85);
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
  z-index: 4;
}

/* Top 10 Bold Overlapping Sculpted OTT Rank Card (1–10 Design) */
.top10-card-wrap {
  position: relative;
  flex: 0 0 auto;
  display: block;
  padding-left: 42px;
  overflow: visible;
  cursor: pointer;
}

.top10-card-wrap .movie-card {
  flex: 0 0 clamp(132px, 14.5vw, 170px);
  width: clamp(132px, 14.5vw, 170px);
  overflow: visible;
  contain: layout style;
}

.top10-card-wrap .poster-stage {
  position: relative;
  overflow: visible;
}

.top10-card-wrap .poster-wrap {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: -8px 4px 20px rgba(0, 0, 0, 0.55);
}

.top10-card-wrap .poster-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0) 0%, rgba(6, 7, 10, 0.86) 100%);
  pointer-events: none;
  z-index: 2;
}

.rank-number-svg {
  position: absolute;
  left: -38px;
  bottom: -6px;
  z-index: 8;
  width: 90px;
  height: 118px;
  margin: 0;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(5px 6px 16px rgba(0, 0, 0, 0.98));
}

.rank-number-svg.rank-two-digits {
  left: -42px;
  width: 114px;
}

.rank-number-svg text,
.rank-number-svg path {
  font-family: 'Outfit', 'Arial Black', 'Helvetica Neue', sans-serif;
  font-size: 82px;
  font-weight: 900;
  stroke: #E50914;
  stroke-width: 3.4px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

@media (max-width: 600px) {
  .top10-card-wrap { padding-left: 32px; }
  .top10-card-wrap .movie-card {
    flex: 0 0 130px;
    width: 130px;
  }
  .rank-number-svg {
    left: -30px;
    bottom: -5px;
    width: 72px;
    height: 94px;
  }
  .rank-number-svg.rank-two-digits {
    left: -32px;
    width: 92px;
  }
  .rank-number-svg text,
  .rank-number-svg path {
    font-size: 82px;
    stroke-width: 3px;
  }
}

#railTrending {
  padding-left: var(--gutter);
  gap: 8px;
}

/* Explore More Card */
.explore-more-card {
  flex: 0 0 120px;
  min-height: 200px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px dashed rgba(229, 9, 20, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  cursor: pointer;
  padding: 12px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.explore-more-card:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: var(--red);
}

.explore-more-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.explore-more-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-soft);
}

/* Dark Skeleton Shimmer (Zero CLS) */
.skeleton-card {
  flex: 0 0 clamp(134px, 15.5vw, 178px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.poster-grid .skeleton-card {
  width: 100%;
  flex: none;
}

.skeleton-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #151A28;
}

.skeleton-line {
  height: 10px;
  margin: 8px 8px 6px;
  border-radius: 4px;
  background: #1B2233;
}

.skeleton-line.short {
  width: 55%;
  height: 8px;
  margin-top: 0;
  margin-bottom: 9px;
}

/* =========================================================
   REBUILT PAGE SHELLS: SEARCH, BROWSE & SETTINGS
   ========================================================= */
.page-shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: calc(74px + var(--safe-top)) var(--gutter) 34px var(--gutter);
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.4px;
}

.page-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Search Page */
.search-input-panel {
  margin: 18px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text-muted);
  transition: border-color 0.16s ease;
}

.search-input-panel:focus-within {
  border-color: var(--red);
}

.search-input-panel input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}

.search-input-panel input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.btn-clear-search {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.recent-searches-box, .discover-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.section-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mini-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-link-danger {
  background: none;
  border: none;
  color: #FF6E76;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-chip, .recent-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #F1F5F9;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.discover-chip:hover, .recent-chip:hover {
  border-color: var(--red);
  background: rgba(229, 9, 20, 0.14);
}

.recent-chip-del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}

.search-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.section-sub-heading {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
}

.mini-filter-pills {
  display: flex;
  gap: 6px;
}

.mini-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mini-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

/* Shared High-Density Poster Grid (Search + Categories) */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

.poster-grid .movie-card {
  width: 100%;
  flex: none;
}

@media (max-width: 600px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Categories / Browse Toolbar */
.browse-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.ott-select {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CBD5E1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px 13px;
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 9px 36px 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.ott-select.small {
  padding: 8px 34px 8px 13px;
  min-width: 112px;
  font-size: 12.5px;
}

.filter-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.filter-scroller::-webkit-scrollbar {
  display: none;
}

.cat-chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cat-chip-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.genre-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.genre-pill.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #06070A;
}

.filter-scroller.subtle {
  margin-bottom: 10px;
}

/* Lazy Loader Sentinel */
.pagination-bar {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.lazy-load-sentinel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.lazy-load-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lazy-mini-spinner, .cinema-spinner {
  border-radius: 50%;
  border-style: solid;
  animation: spin 0.75s linear infinite;
}

.lazy-mini-spinner {
  width: 18px;
  height: 18px;
  border-width: 2.5px;
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
}

.btn-load-more-soft {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   REBUILT SETTINGS & PREFERENCES HUB
   ========================================================= */
.settings-profile-banner {
  background: linear-gradient(135deg, #111624 0%, #0A0D14 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-profile-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.settings-brand-trigger {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.settings-brand-trigger:active {
  transform: scale(0.95);
}

.settings-brand-trigger.is-unlocking {
  background: rgba(229, 9, 20, 0.2);
}

.settings-brand-logo {
  height: 28px;
  width: auto;
  pointer-events: none;
}

.profile-plan-badge {
  font-size: 12px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.4px;
}

.badge-ver {
  background: rgba(229, 9, 20, 0.22);
  color: #FF6E76;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.settings-mini-stats {
  display: flex;
  gap: 12px;
}

.mini-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  min-width: 92px;
}

.mini-stat-box strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
}

.mini-stat-box span {
  font-size: 11px;
  color: var(--text-muted);
}

.settings-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .settings-grid-two { grid-template-columns: 1fr; }
}

.settings-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 20px;
}

.settings-panel-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.set-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.set-pref-row strong {
  display: block;
  font-size: 13.5px;
}

.set-pref-row p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ott-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.ott-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ott-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ott-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.ott-switch input:checked + .ott-slider { background: var(--red); }
.ott-switch input:checked + .ott-slider::before { transform: translateX(20px); }

.btn-outline-danger {
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #FF8A90;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline-soft {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.apk-cta-btn {
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #FF8A90;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.apk-cta-btn:hover {
  background: rgba(229, 9, 20, 0.24);
  color: #FFFFFF;
}

.mylist-empty-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  margin: 18px 0;
}

.mylist-empty-box h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.mylist-empty-box p {
  color: var(--text-muted);
  font-size: 13px;
}

/* =========================================================
   MOVIE DETAILS MODAL
   ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.86);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  background: #0D1017;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow-y: auto;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(6, 7, 10, 0.88);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;
}

.modal-hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  background: #090B10;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-ambient-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  pointer-events: none;
}

.modal-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.45) 0%, #0D1017 100%);
  pointer-events: none;
}

.modal-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.modal-poster-box {
  position: relative;
  flex-shrink: 0;
  width: 126px;
  height: 188px;
  border-radius: 10px;
  overflow: hidden;
  background: #141926;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.modal-quality-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(6, 7, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-header-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal-network-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #FF6E76;
  background: rgba(229, 9, 20, 0.14);
  letter-spacing: 0.8px;
}

.m-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.15;
}

.m-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag.imdb {
  background: var(--gold);
  color: #06070A;
}

.modal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-modal-watch {
  background: #FFFFFF;
  color: #06070A;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-modal-sec {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-sec.in-list {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  color: #6EE7B7;
}

.modal-body-wrap {
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.m-section-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 8px;
}

.m-synopsis {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.langs-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lang-chip, .cast-chip, .genre-chip {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.lang-chip, .cast-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #E2E8F0;
}

.genre-chip {
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.36);
  color: #FF9EA4;
}

.episodes-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

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

.season-select-box {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--bg-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CBD5E1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px 13px;
  color: #FFFFFF;
  border: 1px solid var(--border-strong);
  padding: 7px 34px 7px 13px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.ep-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.ep-card-still {
  position: relative;
  width: 108px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #141926;
}

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

.ep-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ep-title-line {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-sub-line {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.modal-more-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.modal-more-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.modal-more-card span {
  display: block;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .modal-hero-wrap { padding: 16px 14px 14px; }
  .modal-hero-content { gap: 12px; align-items: center; }
  .modal-poster-box { width: 84px; height: 124px; }
  .m-title { font-size: 18px; }
  .modal-actions-row { gap: 6px; }
  .btn-modal-watch { padding: 8px 14px; font-size: 13px; }
  .btn-modal-sec { padding: 8px 11px; font-size: 12px; }
  .modal-body-wrap { padding: 14px 16px 24px; }
}

/* =========================================================
   IN-APP VIDEO PLAYER (HLS + EMBED FLOATING BAR)
   ========================================================= */
.player-fullscreen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  outline: none;
}

.player-fullscreen-overlay.active {
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#inAppVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#inAppVideoPlayer::cue {
  background: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
}

.iframe-player-fallback {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.player-fullscreen-overlay.is-embed .player-controls-container,
.player-fullscreen-overlay.is-resolving .player-controls-container {
  display: none !important;
}

.embed-wake-shield {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  background: transparent;
  pointer-events: none;
}

.player-fullscreen-overlay.is-embed.active.controls-idle .embed-wake-shield {
  display: block;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .player-fullscreen-overlay.is-embed.active.controls-idle .embed-wake-shield {
    display: none !important;
    pointer-events: none !important;
  }
}

.embed-fs-capture {
  display: none;
  position: absolute;
  right: 13px;
  bottom: 11px;
  width: 40px;
  height: 40px;
  z-index: 28;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.embed-fs-capture:hover,
.embed-fs-capture:focus,
.embed-fs-capture:focus-visible,
.embed-fs-capture:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.player-fullscreen-overlay.is-embed.active:not(.controls-idle):not(.is-resolving) .embed-fs-capture {
  display: block;
  pointer-events: auto;
}

.player-fullscreen-overlay.is-embed.controls-idle .embed-fs-capture {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 720px) {
  .player-fullscreen-overlay:not(.is-pseudo-landscape) .embed-fs-capture {
    right: 7px;
    bottom: 9px;
    width: 38px;
    height: 38px;
  }
}

.embed-floating-bar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + var(--safe-top)) 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-fullscreen-overlay.is-embed.active .embed-floating-bar {
  display: flex;
}

.player-fullscreen-overlay.is-embed.controls-idle .embed-floating-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.player-fullscreen-overlay.is-embed.controls-idle .embed-floating-bar .embed-pill-btn {
  pointer-events: none;
}

.embed-bar-right {
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 10px;
  pointer-events: none;
  flex-shrink: 0;
}

.embed-brand-logo {
  height: 22px;
  width: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

.embed-pill-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  box-sizing: border-box;
  background: rgba(6, 7, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.embed-pill-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.embed-bar-title {
  display: block;
  height: 32px;
  line-height: 30px;
  box-sizing: border-box;
  background: rgba(6, 7, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  max-width: 48vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: none) and (pointer: coarse) and (max-width: 980px), (hover: none) and (pointer: coarse) and (max-height: 540px) {
  .embed-floating-bar {
    padding: calc(10px + var(--safe-top)) 14px 16px;
  }
  .embed-floating-bar .embed-bar-right {
    height: 28px;
    gap: 8px;
  }
  .embed-floating-bar .embed-brand-logo {
    height: 18px;
  }
  .embed-floating-bar .embed-pill-btn {
    height: 28px;
    padding: 0 13px;
    font-size: 11.5px;
  }
  .embed-floating-bar .embed-bar-title {
    height: 26px;
    line-height: 24px;
    padding: 0 13px;
    font-size: 11.5px;
  }
}

@media (max-width: 600px) {
  .embed-floating-bar {
    padding: calc(10px + var(--safe-top)) 12px 14px;
  }
  .embed-floating-bar .embed-bar-right {
    height: 26px;
    gap: 7px;
  }
  .embed-floating-bar .embed-brand-logo {
    height: 15px;
  }
  .embed-floating-bar .embed-pill-btn {
    height: 27px;
    padding: 0 11px;
    font-size: 11px;
  }
  .embed-floating-bar .embed-bar-title {
    height: 25px;
    line-height: 23px;
    padding: 0 12px;
    font-size: 11px;
    max-width: 44vw;
  }
}

.player-controls-container {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 18px calc(14px + var(--safe-bottom));
  transition: opacity 0.24s ease, background 0.24s ease;
}

.player-top-bar,
.center-controls-row,
.player-bottom-bar {
  transition: opacity 0.22s ease;
}

.player-fullscreen-overlay.controls-idle .player-controls-container {
  background: transparent;
  pointer-events: auto;
}

.player-fullscreen-overlay.controls-idle .player-controls-container .player-top-bar,
.player-fullscreen-overlay.controls-idle .player-controls-container .center-controls-row,
.player-fullscreen-overlay.controls-idle .player-controls-container .player-bottom-bar,
.player-controls-container.hidden .player-top-bar,
.player-controls-container.hidden .center-controls-row,
.player-controls-container.hidden .player-bottom-bar {
  opacity: 0;
  pointer-events: none;
}

.player-fullscreen-overlay.controls-idle .player-controls-container .player-top-bar,
.player-controls-container.hidden .player-top-bar {
  transform: translateY(-8px);
}

.player-fullscreen-overlay.controls-idle .player-controls-container .player-bottom-bar,
.player-controls-container.hidden .player-bottom-bar {
  transform: translateY(8px);
}

.player-controls-container.hidden .player-center-tap-area,
.player-fullscreen-overlay.controls-idle .player-controls-container .player-center-tap-area {
  pointer-events: auto;
}

.player-fullscreen-overlay.is-pseudo-landscape {
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-fullscreen-overlay.is-pseudo-landscape > .video-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vh;
  width: 100dvh;
  height: 100vw;
  height: 100dvw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.player-fullscreen-overlay.is-pseudo-landscape .player-controls-container {
  padding: 10px calc(18px + var(--safe-bottom)) 12px calc(18px + var(--safe-top));
}

.player-fullscreen-overlay.is-pseudo-landscape .embed-floating-bar {
  top: 0;
  padding: 10px calc(14px + var(--safe-bottom)) 16px calc(14px + var(--safe-top));
}

.player-fullscreen-overlay.is-pseudo-landscape .player-sheet-modal {
  max-height: 82%;
}

.player-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-player-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(6, 7, 10, 0.75);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pt-main {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.top-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.player-pill-btn {
  background: rgba(15, 19, 28, 0.88);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.player-center-tap-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-controls-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.btn-center-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(6, 7, 10, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.btn-center-play-main {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.scrub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.slider-track-wrap { flex: 1; }
#playerScrubSlider { width: 100%; accent-color: var(--red); cursor: pointer; }
.time-label { font-size: 11px; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.bottom-tools-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-vol-group {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 20, 32, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 4px 8px 4px 4px;
}

.player-vol-slider {
  width: 96px;
  accent-color: var(--red);
  cursor: pointer;
}

.player-vol-pct {
  min-width: 40px;
  font-size: 11px;
  font-weight: 800;
  color: #F8FAFC;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.btn-tool-pill.is-voice-active {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.55);
  color: #6EE7B7;
}

@media (max-width: 640px) {
  .player-vol-group {
    width: 100%;
    justify-content: space-between;
  }
  .player-vol-slider {
    flex: 1;
    width: auto;
    min-width: 72px;
  }
}

.btn-tool-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.seek-ripple {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.seek-ripple.left { left: 0; background: radial-gradient(circle, rgba(229, 9, 20, 0.28) 0%, transparent 70%); }
.seek-ripple.right { right: 0; background: radial-gradient(circle, rgba(229, 9, 20, 0.28) 0%, transparent 70%); }
.seek-ripple.active { opacity: 1; }

.player-spinner-wrap {
  position: absolute;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.cinema-spinner {
  width: 42px;
  height: 42px;
  border-width: 3.5px;
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--red);
}

.player-sheet-modal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0D1017;
  border-top: 1px solid var(--border-strong);
  border-radius: 18px 18px 0 0;
  padding: 18px 20px calc(24px + var(--safe-bottom));
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s;
  z-index: 99999;
  max-height: 70vh;
  overflow-y: auto;
}

.player-sheet-modal.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.player-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-sheet-title { font-size: 16px; font-weight: 800; }
.player-sheet-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.sheet-sub-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}

.sheet-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.sheet-option-btn.is-selected {
  background: rgba(229, 9, 20, 0.16);
  border-color: var(--red);
}

.next-ep-overlay {
  position: absolute;
  right: 20px;
  bottom: calc(82px + var(--safe-bottom));
  z-index: 45;
  background: rgba(13, 16, 23, 0.96);
  border: 1px solid rgba(229, 9, 20, 0.55);
  border-radius: 14px;
  padding: 16px;
  width: min(320px, calc(100vw - 32px));
}

.next-ep-kicker { font-size: 10px; font-weight: 800; color: #FF6E76; letter-spacing: 1px; }
.next-ep-title { font-size: 14px; font-weight: 800; margin: 4px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-ep-actions { display: flex; gap: 8px; }

.player-preroll-ad-box {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ad-notice-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}

.ad-media-wrap { max-width: 90%; max-height: 62vh; border-radius: 12px; overflow: hidden; }
.ad-media-wrap img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.ad-skip-bar { position: absolute; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 12px; }
.ad-timer-text { font-size: 13px; color: var(--text-muted); }
.btn-skip-ad { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); color: #FFFFFF; padding: 9px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; }
.btn-skip-ad:not(:disabled) { background: var(--red); border-color: var(--red); }

/* Screen Fit Modes */
.video-container.mode-fit #inAppVideoPlayer, .video-container.mode-fit iframe { width: 100% !important; height: 100% !important; object-fit: contain !important; transform: none !important; }
.video-container.mode-fill #inAppVideoPlayer, .video-container.mode-fill iframe { width: 100% !important; height: 100% !important; object-fit: cover !important; transform: scale(1.2) !important; }
.video-container.mode-stretch #inAppVideoPlayer, .video-container.mode-stretch iframe { width: 100vw !important; height: 100vh !important; object-fit: fill !important; transform: scaleX(1.26) scaleY(1.06) !important; }

/* =========================================================
   MOBILE FLOATING DOCK, SEO FOOTER & TOAST
   ========================================================= */
.bottom-nav-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: calc(58px + var(--safe-bottom));
  background: rgba(6, 7, 10, 0.96);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.nav-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 700;
}

.nav-tab-btn.active { color: var(--red); }

.flix-seo-footer {
  max-width: 1560px;
  margin: 22px auto 30px;
  padding: 18px var(--gutter) 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.75;
}

.seo-foot-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.seo-foot-link { color: var(--text-soft); text-decoration: none; font-weight: 700; }
.seo-foot-link:hover { color: #FFFFFF; }
.seo-foot-titles { opacity: 0.78; }
.seo-foot-sub { color: var(--text-muted); text-decoration: none; margin: 0 6px; }
.seo-foot-sub:hover { color: #FFFFFF; }

.flix-toast {
  position: fixed;
  bottom: calc(74px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: #141926;
  border: 1px solid rgba(229, 9, 20, 0.55);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  z-index: 10050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* Custom Dark FlixMirror Select (replaces native mobile browser popup) */
.flix-select-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.flix-native-select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.flix-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 148px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.flix-select-wrap.is-small .flix-select-btn {
  min-width: 112px;
  padding: 8px 12px;
  font-size: 12.5px;
  gap: 10px;
}

.flix-select-wrap.is-season .flix-select-btn {
  background: var(--bg-elevated);
  min-width: 118px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
}

.flix-select-wrap.is-open .flix-select-btn,
.flix-select-btn:hover {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.04);
}

.flix-select-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.flix-select-wrap.is-open .flix-select-chevron {
  transform: rotate(180deg);
  color: #FFFFFF;
}

.flix-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(260px, 82vw);
  max-height: 250px;
  overflow-y: auto;
  background: #0F1420;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  z-index: 650;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.flix-select-wrap.align-right .flix-select-menu {
  left: auto;
  right: 0;
}

.flix-select-wrap.is-open .flix-select-menu {
  display: flex;
}

.flix-select-option {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #CBD5E1;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}

.flix-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.flix-select-option.is-active {
  background: rgba(229, 9, 20, 0.18);
  color: #FFFFFF;
  font-weight: 700;
}

.flix-select-option.is-active::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* FlixMirror Community Modal (Branded Reference Layout) */
.comm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.comm-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: radial-gradient(circle at top, rgba(229, 9, 20, 0.14) 0%, #0C0E14 48%, #090B10 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88);
  text-align: center;
}

.comm-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comm-close-btn:hover {
  color: #FFFFFF;
  border-color: var(--red);
}

.comm-brand-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.comm-brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.comm-title {
  font-family: 'Outfit', sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.comm-msg {
  font-size: 14px;
  line-height: 1.5;
  color: #9CA3AF;
  max-width: 340px;
  margin: 0 auto 20px;
}

.comm-primary-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #161922 0%, #101218 100%);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.14);
  transition: transform 0.14s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.comm-primary-btn:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  background: #1A1D28;
}

.comm-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.comm-secondary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.comm-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.comm-sec-link:hover {
  color: #FFFFFF;
}

.comm-divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
}

.comm-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.comm-eco-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #9CA3AF;
  text-transform: uppercase;
}

.comm-eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comm-eco-card {
  background: #13161E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 15px 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: border-color 0.16s ease, transform 0.14s ease;
}

.comm-eco-card:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.comm-eco-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.4px;
}

.comm-eco-card-title span {
  color: var(--red);
}

.comm-eco-card-sub {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
}

.comm-dismiss-btn {
  margin-top: 18px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
}

.comm-dismiss-btn:hover {
  color: #FFFFFF;
}

.preroll-video-el {
  width: 100%;
  max-height: 70vh;
  background: #000000;
  border-radius: 12px;
  object-fit: contain;
}

.ad-visit-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
