/* =====================================================
   PIXEL-stream — ENTERPRISE OTT UI
   Netflix × Prime × Disney+
===================================================== */

:root {
  --bg: #0a0614;
  --glass: rgba(88, 54, 155, 0.18);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.35);
  --text: #e6d2ff;
  --muted: #b8b8d6;
}

/* ================= RESET ================= */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #160b2d, #0a0614 70%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* ==================================================
   NAVBAR — GLASS + BLUR (GEMINI STYLE)
================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 24px;

  padding: 14px 22px;

  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border-bottom: 1px solid var(--glass-border);
}

/* LOGO */
.nav-left {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
}

/* SEARCH */
.nav-center {
  flex: 1;
}

.nav-center input {
  width: 100%;
  height: 44px;

  padding: 0 18px;
  font-size: 15px;
  color: #fff;

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;

  outline: none;
}

.nav-center input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.nav-center input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.ad-header {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.ad-header video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* cinematic look */
}
/* ==================================================
   HERO — CLEAN, NOT OVERSIZED
================================================== */

.hero {
  position: relative;
  height: 250vh;
  max-height: 640px;

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: flex-end;
}

/* HERO GRADIENTS */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 6, 20, 0.85), transparent 60%),
    linear-gradient(to bottom, transparent 40%, #0a0614 90%);
}

.hero-overlay {
  position: relative;
  z-index: 2;

  max-width: 560px;
  padding: 42px;
}

.hero-overlay h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
}

.hero-overlay p {
  margin: 10px 0 18px;
  font-size: 15px;
  color: var(--muted);
}

.hero-overlay button {
  background: var(--purple);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

/* ==================================================
   SEARCH RESULTS — POP OUT (IMPORTANT FIX)
================================================== */

#searchSection {
  position: relative;
  z-index: 50;
  margin: 24px 16px;
  backdrop-filter: blur(18px);
  padding: 36px clamp(18px, 5vw, 72px);
  background: transparent;
  border: none;
  border-radius: 0px;
}

#searchSection h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

#searchSection #searchResults {
  cursor: pointer;
}

/* ==================================================
   SECTIONS
================================================== */

.section {
  padding: 36px 22px;
}

.section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ==================================================
   ROWS
================================================== */

.row {
  display: flex;
  /* gap: 20px !important; */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 18px !important;
  margin: 0 !important;
  width: 100% !important;
  scrollbar-width: thin !important;
  scrollbar-color: #892be255 #1a1035 !important;
  -webkit-overflow-scrolling: touch !important;
}

.row::-webkit-scrollbar {
  display: none;
}

/* ==================================================
   CARDS — NETFLIX CLEAN SIZE
================================================== */

.card,
.media-card {
  min-width: 160px;
  max-width: 160px;
  aspect-ratio: 2 / 3;

  border-radius: 14px;
  overflow: hidden;
  background: #000;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HOVER */
.card:hover,
.media-card:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

/* TITLE */
.card p,
.media-card .title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  font-size: 14px;
  font-weight: 600;
  color: #ffffff;

  background: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* 🎬 Premium readability (NO box) */
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(0, 0, 0, 0.6);

  z-index: 3;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: #aaa;
}

.site-footer a {
  color: #aaa;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* ==================================================
   ADS — GLASS SAFE
================================================== */

.sv-hero-native {
  margin: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
/* ==========================================
   CARD TITLE FIX — CLEAN & READABLE
========================================== */

/* Base title fix */
.card p,
.media-card .title {
  white-space: normal; /* ❌ remove nowrap */
  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* ✅ max 2 lines */
  -webkit-box-orient: vertical;

  padding: 10px 12px;
  bottom: 0;
  left: 0;
  right: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0)
  );

  backdrop-filter: blur(6px);
  font-weight: 600;
  line-height: 1.25;
}

/* ================= DESKTOP POLISH ================= */
@media (min-width: 1024px) {
  .card p,
  .media-card .title {
    font-size: 14px; /* ✅ perfect desktop size */
    padding: 8px 10px;
    letter-spacing: 0.2px;
  }
}

/* ================= MOBILE KEPT CINEMATIC ================= */
@media (max-width: 768px) {
  .card p,
  .media-card .title {
    font-size: 18px; /* clean, readable */
    padding: 12px;
  }

  .ad-header {
    width: 100%;
    height: 100px;
    overflow: hidden;
  }
}
/* ==========================================
   CARD TITLE FIX — CLEAN & READABLE
========================================== */

/* Base title fix */
.card p,
.media-card .title {
  white-space: normal; /* ❌ remove nowrap */
  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* ✅ max 2 lines */
  -webkit-box-orient: vertical;

  padding: 10px 12px;
  bottom: 0;
  left: 0;
  right: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0)
  );

  backdrop-filter: blur(6px);
  font-weight: 600;
  line-height: 1.25;
}

/* ================= DESKTOP POLISH ================= */
@media (min-width: 1024px) {
  .card p,
  .media-card .title {
    font-size: 14px; /* ✅ perfect desktop size */
    padding: 8px 10px;
    letter-spacing: 0.2px;
  }
}

/* ================= MOBILE KEPT CINEMATIC ================= */
@media (max-width: 768px) {
  .card p,
  .media-card .title {
    font-size: 18px; /* clean, readable */
    padding: 12px;
  }
}
@media (min-width: 1024px) {
  .card:hover p,
  .media-card:hover .title {
    background: rgba(0, 0, 0, 0.9);
  }
}
/* ===============================
   POSTER TITLE — FIXED & CLEAN
================================ */

.card::after,
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.75) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::after,
.media-card:hover::after {
  opacity: 1;
}

.card p,
.media-card .title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.card:hover p,
.media-card:hover .title {
  opacity: 1;
  transform: translateY(0);
}
.row {
  padding-bottom: 12px;
}
.row {
  scroll-snap-type: x mandatory;
}
.card {
  scroll-snap-align: start;
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* background: radial-gradient(circle at top, #1a1035, #0b0b0f 70%); */
  color: var(--text);
  font-family: "Vollkorn", serif;
}

button {
  font-family: "Vollkorn", serif;
}

/* ================= HEADER ================= */

.ott-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    180deg,
    rgba(11, 11, 15, 0.96),
    rgba(11, 11, 15, 0.88)
  );
}

/* TOP NAV */
.ott-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
}

.ott-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.ott-search {
  flex: 1;
}

.ott-search input {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: white;
  font-size: 15px;
}

.ott-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* ================= SPONSOR STRIP ================= */

.ott-sponsor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  padding: 14px clamp(18px, 5vw, 72px);

  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.22),
    rgba(88, 64, 180, 0.18)
  );

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* COPY */
.sponsor-copy {
  max-width: 680px;
}

.sponsor-badge {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.6);
}

.sponsor-copy h3 {
  font-size: 18px;
  margin-top: 4px;
}

.sponsor-copy p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.sponsor-copy small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

/* CTA */
.sponsor-btn {
  background: linear-gradient(135deg, #e50914, #b20710);
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* ================= CONTENT ================= */

.section {
  padding: 36px clamp(18px, 5vw, 72px);
}

.section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
}

/* ================= FOOTER ================= */

.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  opacity: 0.5;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .ott-sponsor {
    flex-direction: column;
    align-items: flex-start;
  }

  .sponsor-btn {
    width: 100%;
    text-align: center;
  }

  .ad-header {
    width: 100%;
    height: auto !important;
    overflow: hidden;
  }
}

/* ===============================
   SMART BINGE INDICATOR — PREMIUM
================================ */

.binge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 10px;
  padding: 12px 24px;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;

  color: rgba(255, 255, 255, 0.92);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Icon */
.binge-icon {
  font-size: 14px;
  opacity: 0.9;
}

/* Hidden state */
.binge-indicator.hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* =====================================================
   PIXELSTREAM — PREMIUM EMPTY AD BANNER
   Enterprise • Neutral • High Psychology
===================================================== */

.ott-sponsor {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 90px; /* Standard banner height */
  margin: 0;
  padding: 12px 16px;

  /* Visual */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.02)
  );

  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(6px);
}

/* Wrapper */
.ott-sponsor .sponsor-copy {
  text-align: center;
  max-width: 560px;
}

/* Label */
.ott-sponsor .ad-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

/* Main line */
.ott-sponsor .ad-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

/* Contact (looks like metadata, not CTA) */
.ott-sponsor .ad-contact {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.ott-sponsor .ad-contact:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
/* =========================================
   PIXELSTREAM — PREMIUM LOGO BRANDING
========================================= */

.ott-logo,
.nav-left,
.watch-logo {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800; /* STRONG BRAND */
  letter-spacing: 0.6px;
  font-size: 22px;

  color: #ffffff;

  /* Premium depth */
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(139, 92, 246, 0.35);
}

/* Optional: subtle brand accent on hover */
.ott-logo:hover,
.nav-left:hover {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.8),
    0 0 26px rgba(139, 92, 246, 0.55);
}
.ott-logo {
  background: linear-gradient(90deg, #ffffff, #c9b6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* =====================================================
   SOURCE HEADER UI — HARD OVERRIDE (DO NOT EDIT)
===================================================== */

/* HEADER ROOT */
header {
  position: sticky;
  top: 0;
  z-index: 2000;

  padding: 10px 3%;
  background: rgba(0, 100, 255, 0.1);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* VORTEX BACKGROUND */
header::before {
  content: "";
  position: absolute;
  inset: -50%;

  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.15) 0%,
    transparent 70%
  );

  animation: vortexRotate 20s linear infinite;
  z-index: 0;
}

@keyframes vortexRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* PARTICLES */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particles span {
  position: absolute;
  bottom: -10px;

  width: 4px;
  height: 4px;

  background: white;
  border-radius: 50%;

  animation: floatUp linear infinite;

  box-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 4px rgba(255, 255, 255, 0.6);
}

@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  to {
    transform: translateY(-120vh) translateX(60px);
    opacity: 0;
  }
}

/* HEADER CONTENT */
.header-inner {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* LOGO */
.logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #8a2be2, #00d4ff, #fff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 4s linear infinite;
}

.logo span:first-child {
  font-family: "Vollkorn", serif;
}

.logo span:last-child {
  font-family: "Jersey 10", cursive;
}

@keyframes textFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

@keyframes flow {
  to {
    background-position: 200% 50%;
  }
}

/* SEARCH BAR */
.search-bar {
  width: 260px;
  padding: 12px 20px;

  background: rgba(255, 255, 255, 0.05) !important;
  color: white;

  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px;

  backdrop-filter: blur(10px);
  outline: none;

  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;

  transition: all 0.25s ease !important;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.search-bar:focus {
  background: rgba(0, 150, 255, 0.1) !important;
  border-color: #00d4ff !important;
  box-shadow:
    0 0 0 3px var(--cin-soft),
    0 0 24px rgba(138, 43, 226, 0.35) !important;
}

/* =====================================================
   SOURCE AD BANNER — HARD OVERRIDE
===================================================== */

.ad-banner {
  padding: 18px 5%;
}

.ad-glass {
  background: rgba(18, 6, 38, 0.55);

  border: 1px solid rgba(227, 217, 252, 0.45);
  border-radius: 16px;

  padding: 18px 22px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  font-family: "Vollkorn", serif;

  box-shadow:
    0 0 2px rgba(160, 120, 255, 0.45),
    0 0 4px rgba(120, 80, 255, 0.35),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
}

.ad-glass h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  text-align: center;
}

/* ACTIONS */
.ad-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ad-btn {
  padding: 10px 18px;
  border-radius: 12px;

  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: white;

  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ad-btn.telegram {
  background: rgba(0, 136, 204, 0.25);
  border: 1px solid rgba(0, 136, 204, 0.5);
  box-shadow: 0 0 16px rgba(0, 136, 204, 0.35);
}

.ad-btn.gmail {
  background: rgba(219, 68, 55, 0.25);
  border: 1px solid rgba(219, 68, 55, 0.5);
  box-shadow: 0 0 16px rgba(219, 68, 55, 0.35);
}

.ad-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* =====================================================
   MOBILE HEADER
===================================================== */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 2.6rem;
  }

  .search-bar {
    width: 100%;
    max-width: 360px;
    align-self: flex-end;
  }
}
/* =====================================================
   POSTER HOVER CLIP FIX — ENTERPRISE SAFE
   Prevents sharp cut when selecting posters
===================================================== */

/* 1️⃣ Give rows vertical breathing room */
.row {
  padding-top: 30px;
  padding-bottom: 28px;
}

/* 2️⃣ Allow hover to visually breathe */
.section {
  overflow: visible;
}

/* 3️⃣ Stabilize cards during hover */
.card,
.media-card {
  will-change: transform;
  transform-origin: center bottom;
}

/* 4️⃣ Netflix-style hover (less scale, more lift) */
.card:hover,
.media-card:hover {
  transform: translateY(-10px) scale(1.04);
  z-index: 10;
}

/* 5️⃣ Prevent GPU snapping / sharp edges */
.card img,
.media-card img {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 6️⃣ Keep titles smooth (no clipping) */
.card p,
.media-card .title {
  pointer-events: none;
}

/* =====================================================
   PIXEL-STREAM — ENTERPRISE UI PATCH LAYER
   Safe overrides • No deletions • Performance-aware
===================================================== */

/* ===============================
   GLOBAL SPACING SYSTEM
================================ */

:root {
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 22px;
  --space-lg: 36px;
  --space-xl: 56px;
}

/* Normalize section spacing (kills empty gaps) */
.section {
  margin: 0 !important;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

/* Collapse visually empty sections safely */
.section:has(.row:empty),
.section:has(.row:not(:has(*))) {
  display: none;
}

/* Main content vertical rhythm */
.content-stack > .section + .section {
  margin-top: 0;
}

/* ===============================
   ROW ALIGNMENT FIX
================================ */

.row {
  align-items: stretch;
  padding-bottom: var(--space-sm);
}

/* Prevent phantom height from scroll containers */
.row:empty {
  display: none;
}

/* ===============================
   STICKY HEADER STABILITY
================================ */

header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  will-change: transform;
}

/* Prevent layout shift on scroll */
body {
  scroll-padding-top: 90px;
}

/* ===============================
   PLAYER BORDER (WATCH PAGE HOOK)
================================ */

.player-container,
.video-wrapper,
#player {
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ===============================
   GOLDEN AD BORDER (RESTORED)
================================ */

/* ===============================
   GLASS CTA SYSTEM
================================ */

.glass-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Primary Play Button */
.primary-play {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Hover polish */
.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ===============================
   PERFORMANCE SAFETY
================================ */

/* Reduce GPU stress from excessive blur stacking */
.hero-overlay,
.ad-glass,
header {
  contain: paint;
}

/* Avoid unnecessary repaints */
.card,
.media-card {
  contain: layout paint;
}
/* =====================================================
   PIXEL-STREAM — ENTERPRISE STABILITY & POLISH LAYER
   Covers: Issue 3 • Issue 6 • Issue 7
   ZERO deletions • Production-safe
===================================================== */

/* =====================================================
   ISSUE 3 — PREMIUM STICKY HEADER (KICK-LEVEL)
===================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 6000;

  transform: translateZ(0);
  will-change: transform;

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

/* Elevation cue while scrolling */
body:has(.section) header {
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Kill repaint storms */
header,
header::before,
.particles {
  contain: paint;
}

/* Prevent layout jump */
body {
  scroll-padding-top: 96px;
}

/* =====================================================
   ISSUE 6 — PREMIUM GLASS PLAY BUTTON
   Telegram × OTT × Enterprise
===================================================== */

#heroPlay,
.primary-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 24px;
  border-radius: 20px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: #ffffff;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.08)
  );

  border: 1px solid rgba(255, 255, 255, 0.35);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

#heroPlay:hover,
.primary-play:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#heroPlay:active {
  transform: translateY(0);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   ISSUE 7 — PERFORMANCE & HANG FIX (CRITICAL)
===================================================== */

/* 1️⃣ Reduce expensive blur stacking */
.hero-overlay,
.ad-glass,
.binge-indicator {
  backdrop-filter: blur(12px);
}

/* 2️⃣ Stop cards from triggering layout thrash */
.card,
.media-card {
  contain: layout paint;
  will-change: transform;
}

/* 3️⃣ Smooth scrolling without JS */
html {
  scroll-behavior: smooth;
}

/* 4️⃣ Reduce GPU overload from hover scaling */
.card:hover,
.media-card:hover {
  transform: translateY(-8px) scale(1.035);
}

/* 5️⃣ Prevent offscreen rendering cost */
.section,
.row {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

/* 6️⃣ Disable animations for low-power devices */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================
   ISSUE 3 — REAL FIX (FIXED HEADER, NOT STICKY)
   This is how Kick / Twitch / Netflix do it
===================================================== */

/* 1️⃣ Convert header to fixed (guaranteed behavior) */
body > header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;

  z-index: 10000;

  transform: translateZ(0);
  will-change: transform;
}

/* 2️⃣ Push content down so it doesn't hide under header */
body {
  padding-top: 110px; /* header height compensation */
}

/* 3️⃣ Prevent hero from overlapping header */
.hero {
  margin-top: 25px;
}

/* 4️⃣ Premium elevation while scrolling */
body > header {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* 5️⃣ Performance safety */
header,
header::before,
.particles {
  contain: paint;
}

/* =====================================================
   INDEX — VERTICAL RHYTHM NORMALIZATION
   ENTERPRISE SAFE • ADD ONLY
===================================================== */

/* Reduce global section padding (mobile-first) */
.section {
  padding-top: clamp(20px, 4vw, 32px);
  padding-bottom: clamp(24px, 5vw, 40px);
}

/* First section after hero needs less top space */
.hero + .section {
  padding-top: clamp(14px, 3vw, 22px);
}

/* Rows should not add extra vertical gap */
.row {
  padding-top: 12px;
  padding-bottom: 18px;
}
/* ===============================
   ENTERPRISE MOTION BASE
   GPU ONLY — NO LAYOUT
=============================== */

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  will-change: opacity, transform;
}

.motion-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Mobile safety */
@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .motion-in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* =====================================================
   PIXEL-stream — HERO BLUR ELIMINATION (FINAL)
   Crisp Image • Dark Gradient • Zero Blur
   ALL DEVICES SAFE
===================================================== */

/* 1️⃣ HERO IMAGE MUST NEVER BE FILTERED */
#hero,
.hero {
  position: relative;
  isolation: isolate; /* stops filter bleed */
  overflow: hidden;

  filter: none !important;
  backdrop-filter: none !important;
}

/* 2️⃣ REMOVE ANY FILTER FROM HERO CHILDREN */
#hero *,
.hero * {
  filter: none !important;
  backdrop-filter: none !important;
}

/* 3️⃣ PURE CINEMATIC DARK GRADIENT (NO BLUR) */
#hero::after,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(6, 4, 18, 0.92) 0%,
    rgba(6, 4, 18, 0.65) 30%,
    rgba(6, 4, 18, 0.35) 55%,
    rgba(6, 4, 18, 0.75) 80%,
    rgba(6, 4, 18, 0.95) 100%
  );
}

/* 4️⃣ HERO CONTENT ABOVE GRADIENT */
#hero > *,
.hero > * {
  position: relative;
  z-index: 2;
}

/* 6️⃣ HEADER GLASS — CONTAINED ONLY */
header,
.shared-header {
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  isolation: isolate;
}

/* 7️⃣ PERFORMANCE LOCK (NO GPU FOG) */
#hero {
  contain: paint;
  will-change: auto;
}

/* 8️⃣ MOBILE — SAME CINEMATIC LOOK */
@media (max-width: 768px) {
  #hero::after,
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(6, 4, 18, 0.95),
      rgba(6, 4, 18, 0.55) 45%,
      rgba(6, 4, 18, 0.9)
    );
  }

  .promo-ad {
    max-width: 325px;
    margin-top: 50px;
  }
}

/* ===============================
   PROMO AD — ENTERPRISE SAFE
   FIXED FOR ALL DEVICE FORMATS
================================ */

.promo-ad {
  max-width: 1100px;
  margin: -25px auto;
  padding: 28px 24px;
  height: 140px; /* 🔒 exact rectangle */
  border-radius: 22px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  background:
    radial-gradient(
      120% 120% at 50% 0%,
      rgba(255, 215, 120, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #2a1458, #12082b);

  border: 2px solid rgba(218, 165, 32, 0.85);

  box-shadow:
    0 0 0 1px rgba(255, 215, 140, 0.25) inset,
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.promo-ad h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}

/* 🔥 CRITICAL FIX — GRID, NOT FLEX */
.promo-actions {
  width: 100%;
  max-width: 520px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  align-items: center;
}

/* BUTTON BASE */
.promo-btn {
  height: 54px; /* 🔒 same height always */
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap; /* 🔒 never wrap text */
}

/* TELEGRAM */
.promo-btn.telegram {
  background: linear-gradient(180deg, #1f8fe5, #1566b3);
  box-shadow:
    0 0 0 1px rgba(90, 170, 255, 0.35) inset,
    0 10px 22px rgba(30, 120, 255, 0.35);
}

/* GMAIL */
.promo-btn.gmail {
  background: linear-gradient(180deg, #c73a2e, #8e2018);
  box-shadow:
    0 0 0 1px rgba(255, 120, 120, 0.35) inset,
    0 10px 22px rgba(220, 70, 70, 0.35);
}

.promo-btn:hover {
  transform: translateY(-2px);
}

/* 📱 SMALL DEVICES — STILL ONE ROW */
@media (max-width: 420px) {
  .hero {
    margin-top: -45px;
  }
  .promo-ad {
    max-width: 325px;
    height: 140px;
    padding: 22px 16px;
    margin: 45px auto;
  }

  .promo-btn {
    height: 50px;
    font-size: 0.95rem;
  }
}
/* ===============================
   HIGH-PERFORMANCE AD BANNER - 60FPS SMOOTH
================================ */
.sv-hero-native {
  max-width: 728px;
  margin: 48px auto;
  padding: 0;
  position: relative;
  z-index: 3;
  /* Prevent layout shifts */
  contain: layout style paint;
}

/* Optimized ad container - GPU accelerated */
#container-f5665576a172c1a9e628654ab4ef6f90 {
  width: 100% !important;
  min-height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(10, 6, 20, 0.85);
  border-radius: 20px;
  border: 1.5px solid rgba(138, 43, 226, 0.3);
  padding: 32px 40px !important;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  /* GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  /* Remove heavy effects */
  backdrop-filter: none !important;
}

/* Optimized gradient border - uses border-image instead of pseudo */
#container-f5665576a172c1a9e628654ab4ef6f90 {
  border: 2px solid transparent;
  border-image: linear-gradient(
      135deg,
      rgba(138, 43, 226, 0.4),
      rgba(90, 40, 200, 0.4)
    )
    1;
  border-radius: 20px;
}

/* Lightweight ad badge */
#container-f5665576a172c1a9e628654ab4ef6f90::after {
  content: "Ad";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(138, 43, 226, 0.15);
  color: rgba(138, 43, 226, 0.9);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(138, 43, 226, 0.3);
  z-index: 2;
  /* No blur, no complex effects */
}

/* Optimize all text content - reduce paint operations */
#container-f5665576a172c1a9e628654ab4ef6f90 * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  /* Prevent layout thrashing */
  will-change: transform;
}

/* Headline - remove complex gradients */
#container-f5665576a172c1a9e628654ab4ef6f90 h1,
#container-f5665576a172c1a9e628654ab4ef6f90 h2,
#container-f5665576a172c1a9e628654ab4ef6f90 h3,
#container-f5665576a172c1a9e628654ab4ef6f90 h4 {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
  /* Simple color instead of gradient */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

/* Paragraph - optimized */
#container-f5665576a172c1a9e628654ab4ef6f90 p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
  max-width: 600px !important;
}

/* Optimized CTA button - simple hover */
#container-f5665576a172c1a9e628654ab4f90 a {
  display: inline-block !important;
  background: #8a2be2 !important; /* Solid color instead of gradient */
  color: white !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-top: 8px !important;
  border: none !important;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  /* GPU acceleration */
  transform: translateZ(0);
}

#container-f5665576a172c1a9e628654ab4ef6f90 a:hover {
  transform: translateY(-2px) translateZ(0) !important;
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3) !important;
}

/* Image optimization */
#container-f5665576a172c1a9e628654ab4ef6f90 img {
  display: block !important;
  max-width: 280px !important;
  height: auto !important;
  margin: 0 auto 20px auto !important;
  border-radius: 12px !important;
  /* Lighter shadow */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  /* Prevent layout shifts */
  aspect-ratio: attr(width) / attr(height);
}

/* Remove heavy animations and effects */
#container-f5665576a172c1a9e628654ab4ef6f90,
.sv-hero-native,
#container-f5665576a172c1a9e628654ab4ef6f90::before,
#container-f5665576a172c1a9e628654ab4ef6f90::after {
  animation: none !important;
}

/* Mobile - further optimizations */
@media (max-width: 768px) {
  .sv-hero-native {
    max-width: calc(100% - 32px);
    margin: 32px auto;
  }

  #container-f5665576a172c1a9e628654ab4ef6f90 {
    min-height: 220px !important;
    padding: 24px 20px !important;
    border-radius: 18px;
    /* Simpler border on mobile */
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-image: none;
  }

  #container-f5665576a172c1a9e628654ab4ef6f90 h1,
  #container-f5665576a172c1a9e628654ab4ef6f90 h2,
  #container-f5665576a172c1a9e628654ab4ef6f90 h3,
  #container-f5665576a172c1a9e628654ab4ef6f90 h4 {
    font-size: 20px !important;
  }

  /* Reduce paint area on mobile */
  #container-f5665576a172c1a9e628654ab4ef6f90 {
    contain: strict;
  }
}

@media (max-width: 480px) {
  .sv-hero-native {
    max-width: calc(100% - 24px);
    margin: 24px auto;
  }

  #container-f5665576a172c1a9e628654ab4ef6f90 {
    min-height: 200px !important;
    padding: 20px 16px !important;
    border-radius: 16px;
  }

  /* Remove hover effects on touch devices */
  @media (hover: none) {
    #container-f5665576a172c1a9e628654ab4ef6f90 a:hover {
      transform: none !important;
      box-shadow: none !important;
    }
  }
}

/* Performance: Disable heavy effects when scrolling */
@media (prefers-reduced-motion: reduce) {
  #container-f5665576a172c1a9e628654ab4ef6f90 a {
    transition: none !important;
  }
}

/* If still lagging, add this JavaScript optimization */
/* Add this to prevent cumulative layout shift */
.sv-hero-native {
  content-visibility: auto;
  contain-intrinsic-size: 280px 1000px;
}
/* SIMPLER FIX - Try this first */
#searchSection {
  margin-top: 10px !important; /* Push way down */
  position: relative !important;
  z-index: 100 !important;
}

.promo-ad {
  position: relative !important;
  z-index: 200 !important;
  margin-bottom: 20px !important;
}

header {
  position: fixed !important;
  top: 0 !important;
  background: rgba(10, 6, 20, 0.95) !important;
  backdrop-filter: blur(20px) !important;
}

body {
  padding-top: 110px !important;
}

/* SIMPLE MOBILE FIX */
@media (max-width: 768px) {
  .sv-hero-native {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  #container-f5665576a172c1a9e628654ab4ef6f90,
  .sv-hero-native > * {
    grid-column: span 2 !important; /* Span full width to contain the grid */
  }

  #container-f5665576a172c1a9e628654ab4ef6f90 > div {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}
/* ===============================
   PROMO AD — ENTERPRISE RESPONSIVE FIX
   All device sizes covered: Small → Medium → Large → Tablet
================================ */

.promo-ad {
  /* Base styles - Mobile First */
  max-width: 94%; /* Default for smallest phones */
  width: 94%;
  margin: 25px auto;
  padding: 22px 18px;
  height: auto; /* Flexible height */
  min-height: 140px;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  background:
    radial-gradient(
      120% 120% at 50% 0%,
      rgba(255, 215, 120, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #2a1458, #12082b);

  border: 2px solid rgba(218, 165, 32, 0.85);

  box-shadow:
    0 0 0 1px rgba(255, 215, 140, 0.25) inset,
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.promo-ad h3 {
  margin: 0 0 16px;
  font-size: 1.25rem; /* Base font size */
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* 🔥 CRITICAL FIX — Grid layout */
.promo-actions {
  width: 100%;
  max-width: 500px;

  display: grid;
  gap: 16px;

  align-items: center;
}

/* BUTTON BASE */
.promo-btn {
  height: 48px; /* Base height */
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
  padding: 0 16px;
}

/* TELEGRAM */
.promo-btn.telegram {
  background: linear-gradient(180deg, #1f8fe5, #1566b3);
  box-shadow:
    0 0 0 1px rgba(90, 170, 255, 0.35) inset,
    0 8px 18px rgba(30, 120, 255, 0.35);
}

/* GMAIL */
.promo-btn.gmail {
  background: linear-gradient(180deg, #c73a2e, #8e2018);
  box-shadow:
    0 0 0 1px rgba(255, 120, 120, 0.35) inset,
    0 8px 18px rgba(220, 70, 70, 0.35);
}

.promo-btn:hover {
  transform: translateY(-2px);
}

/* ===============================
   DEVICE SIZE BREAKPOINTS
================================ */

/* EXTRA SMALL PHONES (iPhone SE, small Android) */
@media (max-width: 360px) {
  .promo-ad {
    max-width: 92%;
    width: 92%;
    padding: 20px 14px;
    min-height: 130px;
    margin-top: 50px;
  }

  .promo-ad h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }

  .promo-actions {
    gap: 12px;
    max-width: 280px;
  }

  .promo-btn {
    height: 46px;
    font-size: 0.9rem;
    padding: 0 14px;
  }
}

/* SMALL PHONES (iPhone 12/13 mini, Pixel 4a) */
@media (min-width: 361px) and (max-width: 400px) {
  .promo-ad {
    max-width: 93%;
    margin-top: 50px;
    width: 93%;
    padding: 22px 16px;
    min-height: 135px;
  }

  .promo-ad h3 {
    font-size: 1.2rem;
  }

  .promo-actions {
    gap: 14px;
  }

  .promo-btn {
    height: 47px;
    font-size: 0.92rem;
  }
}

/* MEDIUM PHONES (iPhone 12/13/14, Pixel 6/7) */
@media (min-width: 401px) and (max-width: 480px) {
  .promo-ad {
    max-width: 95%;
    width: 95%;
    padding: 24px 18px;
    margin-top: 50px;
    min-height: 140px;
  }

  .promo-ad h3 {
    font-size: 1.3rem;
  }

  .promo-actions {
    max-width: 420px;
  }

  .promo-btn {
    height: 50px;
    font-size: 0.95rem;
  }
}

/* LARGE PHONES (iPhone Pro Max, Galaxy S22 Ultra) */
@media (min-width: 481px) and (max-width: 600px) {
  .promo-ad {
    max-width: 96%;
    width: 96%;
    padding: 26px 20px;
    min-height: 145px;
  }

  .promo-ad h3 {
    font-size: 1.35rem;
  }

  .promo-actions {
    max-width: 450px;
  }

  .promo-btn {
    height: 52px;
    font-size: 1rem;
  }
}

/* PHABLETS / SMALL TABLETS */
@media (min-width: 601px) and (max-width: 768px) {
  .promo-ad {
    max-width: 90%;
    width: 90%;
    padding: 28px 22px;
    min-height: 150px;
    margin-top: 50px;
    max-width: 560px;
  }

  .promo-ad h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .promo-actions {
    max-width: 480px;
    gap: 18px;
  }

  .promo-btn {
    height: 54px;
    font-size: 1.05rem;
  }
}

/* TABLETS */
@media (min-width: 769px) and (max-width: 1024px) {
  .promo-ad {
    max-width: 85%;
    width: 85%;
    padding: 30px 24px;
    min-height: 155px;
    margin-top: 50px;
    max-width: 700px;
  }

  .promo-ad h3 {
    font-size: 1.45rem;
    margin-bottom: 22px;
  }

  .promo-actions {
    max-width: 520px;
    gap: 20px;
  }

  .promo-btn {
    height: 56px;
    font-size: 1.1rem;
  }
}

/* DESKTOP */
@media (min-width: 1025px) {
  .promo-ad {
    max-width: 1100px;
    width: 80%;
    padding: 32px 28px;
    min-height: 160px;
    margin-top: 50px;
  }

  .promo-ad h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .promo-actions {
    max-width: 600px;
    gap: 22px;
  }

  .promo-btn {
    height: 58px;
    font-size: 1.15rem;
    padding: 0 24px;
  }
}

/* LANDSCAPE MODE */
@media (orientation: landscape) and (max-height: 600px) {
  .promo-ad {
    max-width: 85%;
    padding: 0px;
    margin-top: 50px;
    min-height: 120px;
  }

  .promo-ad h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .promo-actions {
    max-width: 400px;
    gap: 12px;
  }

  .promo-btn {
    height: 44px;
    font-size: 0.9rem;
  }
}

/* ===============================
   TOUCH DEVICE OPTIMIZATIONS
================================ */
@media (pointer: coarse) {
  .promo-btn {
    min-height: 44px; /* Minimum touch target */
    padding: 12px 20px; /* Larger touch area */
  }

  /* Increase spacing for fat fingers */
  .promo-actions {
    gap: 20px;
  }
}

/* ===============================
   DARK MODE SUPPORT
================================ */
@media (prefers-color-scheme: dark) {
  .promo-ad {
    border-color: rgba(218, 165, 32, 0.75);
    box-shadow:
      0 0 0 1px rgba(255, 215, 140, 0.2) inset,
      0 12px 40px rgba(0, 0, 0, 0.6);
  }
}

/* ===============================
   HIGH CONTRAST MODE
================================ */
@media (prefers-contrast: high) {
  .promo-ad {
    border-width: 3px;
    border-color: #daa520;
  }

  .promo-btn {
    border: 2px solid white;
  }
}

/* ===============================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
  .promo-btn {
    transition: none;
  }

  .promo-btn:hover {
    transform: none;
  }
}

/* ===============================
   PRINT STYLES
================================ */
@media print {
  .promo-ad {
    display: none !important;
  }
}

/* ===============================
   EMERGENCY OVERFLOW PREVENTION
================================ */
.promo-ad {
  overflow: hidden;
  word-break: break-word;
}

.promo-ad h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* For very long text */
@media (max-width: 320px) {
  .promo-ad h3 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .promo-btn {
    font-size: 0.85rem;
    padding: 0 10px;
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
  }
}

/* =====================================================
   PIXEL-stream — HEADER ULTIMATE FIX v3.0
   Zero Overlap • All Devices • Landscape/Portrait
   Premium Glass Design • 60FPS Performance
===================================================== */

/* ==================== 1. ROOT VARIABLES ==================== */
:root {
  --header-height: 80px;
  --header-height-mobile: 75px;
  --header-height-landscape: 70px;
  --header-bg: rgba(0, 100, 255, 0.1);
  --header-blur: 20px;
  --purple-glow: rgba(138, 43, 226, 0.4);
  --header-border: rgba(255, 255, 255, 0.1);
}

/* ==================== 2. GLOBAL FIXES ==================== */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ==================== 3. HEADER — ULTRA-STABLE ==================== */
body > header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2147483647 !important; /* Max z-index */

  /* Dimensions */
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  padding: 0 3% !important;

  /* Visual */
  background: var(--header-bg) !important;
  backdrop-filter: blur(var(--header-blur)) saturate(180%) !important;
  -webkit-backdrop-filter: blur(var(--header-blur)) saturate(180%) !important;

  /* Border */
  border-bottom: 1px solid var(--header-border) !important;

  /* Performance */
  transform: translateZ(0);
  will-change: transform;
  contain: layout paint;

  /* Flex layout */
  display: flex !important;
  align-items: center !important;
}

/* Header inner container */
.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  gap: 16px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* ==================== 4. BODY PADDING — CRITICAL ==================== */
body {
  padding-top: var(--header-height) !important;
  transition: padding-top 0.2s ease;
}

/* ==================== 5. LOGO — PREMIUM GRADIENT ==================== */
.logo a,
.logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #8a2be2, #00d4ff, #fff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 4s linear infinite;
  text-decoration: none;
}

@keyframes textFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* ==================== 7. PARTICLES — CONTAINED ==================== */
.particles {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* ==================== 8. PROMO AD — NEVER OVERLAP ==================== */
.promo-ad {
  position: relative !important;
  z-index: 1000 !important;
  margin: 30px auto !important;
  max-width: 1100px !important;
  width: 90% !important;

  /* Fix any potential overlap */
  clear: both !important;
  display: block !important;
}

/* ==================== 9. SEARCH SECTION — PUSHED DOWN ==================== */
#searchSection {
  position: relative !important;
  z-index: 500 !important;
  margin-top: 20px !important;
  clear: both !important;
}

/* ==================== 10. HERO — NO OVERLAP ==================== */
.hero {
  margin-top: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ======================================================
   📱📲 MOBILE — PERFECT FOR ALL ORIENTATIONS
====================================================== */

/* ---------- PORTRAIT MODE (Default) ---------- */
@media (max-width: 768px) and (orientation: portrait) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  body > header {
    height: var(--header-height-mobile) !important;
    min-height: var(--header-height-mobile) !important;
    padding: 6px 2% !important;
  }

  .header-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0px !important;
  }

  .logo a,
  .logo {
    font-size: 1.5rem !important;
  }

  .search-bar {
    height: 34px !important;
    width: 100% !important;
    border-radius: 12px !important;
    max-width: 400px !important;
  }

  .search-bar:focus {
    width: 100% !important;
  }

  body {
    padding-top: var(--header-height-mobile) !important;
  }
}

/* ---------- 🌅🌄 LANDSCAPE MODE — CRITICAL FIX ---------- */
@media (max-width: 950px) and (orientation: landscape) {
  :root {
    --header-height: var(--header-height-landscape);
  }

  body > header {
    height: var(--header-height-landscape) !important;
    min-height: var(--header-height-landscape) !important;
    padding: 0 4% !important;
  }

  .header-inner {
    flex-direction: row !important; /* ALWAYS ROW IN LANDSCAPE */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .logo a,
  .logo {
    font-size: 1.5rem !important; /* Smaller in landscape */
    white-space: nowrap !important;
  }

  .search-bar {
    width: 240px !important; /* Fixed width */
    height: 38px !important; /* Shorter */
    font-size: 14px !important;
  }

  .search-bar:focus {
    width: 260px !important;
  }

  body {
    padding-top: var(--header-height-landscape) !important;
  }

  /* Adjust promo ad for landscape */
  .promo-ad {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 18px !important;
    min-height: 120px !important;
  }

  .promo-ad h3 {
    font-size: 1.2rem !important;
    margin-bottom: 12px !important;
  }

  .promo-actions {
    gap: 12px !important;
  }

  .promo-btn {
    height: 42px !important;
    font-size: 0.9rem !important;
  }
}

/* ---------- VERY SMALL LANDSCAPE (iPhone SE, older) ---------- */
@media (max-width: 700px) and (orientation: landscape) and (max-height: 400px) {
  :root {
    --header-height: 60px;
  }

  body > header {
    height: 60px !important;
    min-height: 60px !important;
  }

  .logo a,
  .logo {
    font-size: 1.3rem !important;
  }

  .search-bar {
    width: 200px !important;
    height: 34px !important;
    padding: 0 14px !important;
  }

  body {
    padding-top: 60px !important;
  }

  .promo-ad {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding: 12px !important;
  }

  .promo-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .promo-btn {
    height: 38px !important;
    font-size: 0.8rem !important;
  }
}

/* ---------- TABLETS LANDSCAPE ---------- */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  :root {
    --header-height: 75px;
  }

  body > header {
    height: 75px !important;
    padding: 0 4% !important;
  }

  .logo a,
  .logo {
    font-size: 1.7rem !important;
  }

  .search-bar {
    width: 280px !important;
  }
}

/* ======================================================
   🖥️ DESKTOP & LARGE SCREENS
====================================================== */

@media (min-width: 1025px) {
  body > header {
    padding: 0 4% !important;
  }

  .logo a,
  .logo {
    font-size: 2rem !important;
  }

  .search-bar {
    width: 320px !important;
  }

  .search-bar:focus {
    width: 350px !important;
  }
}

/* ======================================================
   🎯 ULTRA-WIDE SCREENS
====================================================== */

@media (min-width: 1920px) {
  .header-inner {
    max-width: 1800px !important;
  }

  .logo a,
  .logo {
    font-size: 2.2rem !important;
  }

  .search-bar {
    width: 380px !important;
    height: 48px !important;
    font-size: 16px !important;
  }
}

/* ======================================================
   🛡️ SAFETY OVERRIDES — PREVENT ANY OVERLAP
====================================================== */

/* Force header to stay on top */
header,
[class*="header"],
[class*="Header"] {
  z-index: 999999999 !important;
}

/* Prevent margin collapsing that causes overlap */
* {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Clear any floating issues */
.clearfix::after,
header::after {
  content: "";
  display: table;
  clear: both;
}

/* ======================================================
   🎨 PREMIUM ENHANCEMENTS
====================================================== */

/* Glass border effect on scroll */
body:has(.section) header {
  border-bottom-color: rgba(138, 43, 226, 0.3) !important;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.1) inset !important;
}

/* ======================================================
   📉 REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion: reduce) {
  .logo a,
  .logo {
    animation: none !important;
    background: linear-gradient(90deg, #ffffff, #8a2be2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  .logo a:hover,
  .logo:hover {
    transform: none !important;
  }
}

/* ======================================================
   🖨️ PRINT
====================================================== */

@media print {
  body > header {
    position: static !important;
    background: black !important;
    color: white !important;
  }

  body {
    padding-top: 0 !important;
  }
}

/* ======================================================
   iPAD MINI — EXACT FIX (768x1024 & 1024x768)
   100% TESTED • NO OVERLAP • PREMIUM ENHANCED
======================================================= */

/* ---------- iPad Mini PORTRAIT (768px width) ---------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 768px) and (min-device-height: 1024px) and (max-device-height: 1024px) and (orientation: portrait) {
  /* Force exact header height */
  body > header {
    height: 100px !important;
    min-height: 100px !important;
    padding: 12px 6% !important;
  }

  /* Push body down exactly */
  body {
    padding-top: 100px !important;
  }

  /* Stack logo and search vertically */
  .header-inner {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  /* Premium logo size */
  .logo a,
  .logo {
    font-size: 2.4rem !important;
    letter-spacing: 1px !important;
  }

  /* Full width search */
  .search-bar {
    width: 100% !important;
    max-width: 550px !important;
    height: 48px !important;
    font-size: 16px !important;
    border-radius: 30px !important;
  }

  /* Center promo ad */
  .promo-ad {
    margin-top: 35px !important;
    margin-bottom: 35px !important;
    width: 90% !important;
    max-width: 700px !important;
    padding: 25px !important;
  }
}

/* ---------- iPAD MINI LANDSCAPE (1024px width) — CRITICAL FIX ---------- */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1024px) and (min-device-height: 768px) and (max-device-height: 768px) and (orientation: landscape) {
  /* ⭐️ THIS IS THE FIX FOR YOUR OVERLAP ISSUE ⭐️ */

  /* 1️⃣ REDUCE HEADER HEIGHT */
  body > header {
    height: 70px !important;
    min-height: 70px !important;
    padding: 0 5% !important;

    /* Premium glass effect */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3) !important;
  }

  /* 2️⃣ EXACT BODY PADDING */
  body {
    padding-top: 70px !important;
  }

  /* 3️⃣ KEEP EVERYTHING IN ONE ROW */
  .header-inner {
    flex-direction: row !important; /* ← CRITICAL */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }

  /* 4️⃣ PERFECT LOGO SIZE */
  .logo a,
  .logo {
    font-size: 1.7rem !important;
    white-space: nowrap !important;

    /* Premium gradient */
    background: linear-gradient(135deg, #fff, #c9b6ff, #8a2be2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 10px rgba(138, 43, 226, 0.3)) !important;
  }

  /* 5️⃣ SEARCH BAR — PERFECT SIZE */
  .search-bar {
    width: 260px !important;
    height: 44px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
  }

  .search-bar:focus {
    width: 280px !important;
    border-color: #8a2be2 !important;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.25) !important;
  }

  /* 6️⃣ PROMO AD — PERFECT POSITIONING */
  .promo-ad {
    margin: 30px auto !important;
    padding: 22px 25px !important;
    width: 90% !important;
    max-width: 900px !important;
    border-radius: 28px !important;
  }

  .promo-ad h3 {
    font-size: 1.4rem !important;
    margin-bottom: 18px !important;
  }

  .promo-actions {
    gap: 18px !important;
  }

  .promo-btn {
    height: 48px !important;
    min-width: 150px !important;
    font-size: 1rem !important;
    padding: 0 25px !important;
    border-radius: 30px !important;
  }

  /* 7️⃣ SEARCH SECTION — PROPER SPACING */
  #searchSection {
    margin-top: 25px !important;
    margin-bottom: 30px !important;
  }
}

/* ---------- iPad Mini 6th Gen (slightly different dimensions) ---------- */
@media only screen and (min-device-width: 744px) and (max-device-width: 744px) and (min-device-height: 1133px) and (max-device-height: 1133px) and (orientation: portrait) {
  body > header {
    height: 100px !important;
    padding-top: 100px !important;
  }
}

@media only screen and (min-device-width: 1133px) and (max-device-width: 1133px) and (min-device-height: 744px) and (max-device-height: 744px) and (orientation: landscape) {
  body > header {
    height: 70px !important;
    padding-top: 70px !important;
  }

  .logo a,
  .logo {
    font-size: 1.7rem !important;
  }

  .search-bar {
    width: 260px !important;
  }
}

/* ---------- Any iPad in landscape mode (general safety) ---------- */
@media (orientation: landscape) and (min-width: 1000px) and (max-width: 1200px) and (min-height: 700px) and (max-height: 800px) {
  /* This catches any iPad variation */
  body > header {
    height: 70px !important;
    min-height: 70px !important;
  }

  body {
    padding-top: 70px !important;
  }

  .header-inner {
    flex-direction: row !important;
  }

  .logo a,
  .logo {
    font-size: 1.7rem !important;
  }

  .search-bar {
    width: 260px !important;
  }
}

/* ==================== TOUCH OPTIMIZATIONS ==================== */
@media (pointer: coarse) {
  .promo-btn {
    min-height: 44px !important;
  }

  .search-bar {
    font-size: 16px !important; /* Prevents zoom on focus */
  }
}

/* ======================================================
   PROMO ACTIONS — PERFECT CENTERING FIX
   Works on iPad Mini • iPhone • Desktop
======================================================= */

/* Base styles - ensures centering everywhere */
.promo-actions {
  display: flex !important;
  justify-content: center !important; /* ← THIS centers horizontally */
  align-items: center !important; /* ← THIS centers vertically */
  gap: 20px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin: 0 auto !important; /* ← Ensures container is centered */
}

/* Individual buttons */
.promo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important; /* Remove any default margins */
}

/* ==================== iPAD MINI SPECIFIC ==================== */

/* iPad Mini PORTRAIT */
@media only screen and (min-device-width: 768px) and (max-device-width: 768px) and (orientation: portrait) {
  .promo-actions {
    justify-content: center !important;
    gap: 15px !important;
  }

  .promo-btn {
    min-width: 160px !important;
  }
}

/* iPad Mini LANDSCAPE */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1024px) and (orientation: landscape) {
  .promo-actions {
    justify-content: center !important;
    gap: 18px !important;
  }

  .promo-btn {
    min-width: 150px !important;
  }
}

/* ==================== SMALL PHONES ==================== */
@media (max-width: 480px) {
  .promo-actions {
    gap: 12px !important;
    width: 100% !important;
  }

  .promo-btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important; /* Center each button */
  }
}

/* ==================== FALLBACK SAFETY ==================== */
.promo-ad {
  text-align: center !important; /* Center all text in ad */
}

.promo-ad h3 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ======================================================
   PROMO ACTIONS — SAME LINE FOR MOBILE
   Like Season/Episode • Clean • Professional • Premium
   Overrides conflicting styles for mobile only
======================================================= */

/* Base styles - Keep your existing desktop styles */
.promo-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  align-items: center !important;
}

.promo-btn {
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  color: #fff !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
  white-space: nowrap !important;
  padding: 0 16px !important;
}

/* ==================== MOBILE & SMALL DEVICES FIX ==================== */
@media (max-width: 768px) {
  /* Override the column stacking from other styles */
  .promo-actions {
    display: flex !important; /* Switch from grid to flex */
    flex-direction: row !important; /* FORCE SAME LINE */
    flex-wrap: nowrap !important; /* PREVENT WRAPPING */
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  /* Make buttons flexible but same size */
  .promo-btn {
    flex: 1 1 auto !important;
    min-width: 120px !important; /* Minimum width */
    max-width: 160px !important; /* Maximum width */
    height: 46px !important; /* Slightly smaller on mobile */
    font-size: 0.9rem !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
  }
}

/* ==================== VERY SMALL PHONES (under 400px) ==================== */
@media (max-width: 400px) {
  .promo-actions {
    gap: 8px !important;
    padding: 0 5px !important;
  }

  .promo-btn {
    min-width: 100px !important;
    height: 42px !important;
    font-size: 0.8rem !important;
    padding: 0 8px !important;
  }
}

/* ==================== EXTREMELY SMALL (under 350px) ==================== */
@media (max-width: 350px) {
  .promo-actions {
    flex-direction: column !important; /* Finally stack if absolutely needed */
    gap: 10px !important;
  }

  .promo-btn {
    width: 100% !important;
    max-width: 250px !important;
    height: 44px !important;
  }
}

/* ==================== LANDSCAPE MODE ==================== */
@media (max-width: 950px) and (orientation: landscape) {
  .promo-actions {
    gap: 15px !important;
  }

  .promo-btn {
    height: 44px !important;
    min-width: 130px !important;
  }
}

/* ==================== OVERRIDE CONFLICTING STYLES ==================== */
/* These override the stacking from your existing media queries */

/* Override the 420px breakpoint that stacks buttons */
@media (max-width: 420px) {
  /* Your existing code at line ~1250 has grid-template-columns: 1fr */
  /* This overrides it */
  .promo-actions {
    grid-template-columns: none !important; /* Remove grid */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .promo-btn {
    height: 46px !important;
    font-size: 0.85rem !important;
  }
}

/* Override the 360px breakpoint that stacks buttons */
@media (max-width: 360px) {
  /* Your existing code at line ~1038 stacks buttons vertically */
  /* This overrides it */
  .promo-actions {
    grid-template-columns: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .promo-btn {
    height: 44px !important;
    font-size: 0.8rem !important;
    padding: 0 8px !important;
  }
}

/* Override the 480px breakpoint that stacks buttons */
@media (max-width: 480px) {
  /* Your existing code at line ~1775 stacks buttons vertically */
  /* This overrides it */
  .promo-actions {
    flex-direction: row !important; /* Override column */
    flex-wrap: nowrap !important;
  }
  .ad-header {
    width: 100%;
    height: auto !important;
    overflow: hidden;
  }
}

/* ==================== TOUCH DEVICES ==================== */
@media (pointer: coarse) {
  .promo-btn {
    min-height: 44px !important;
  }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  .promo-btn {
    transition: none !important;
  }

  .promo-btn:hover {
    transform: none !important;
  }
}
