/* =====================================================
   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: #ffffff;
  --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: .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);
}

/* ==================================================
   HERO — CLEAN, NOT OVERSIZED
================================================== */

.hero {
  position: relative;
  height: 200vh;
  max-height: 640px;

  background-size: cover;
  background-position: center top;

  display: flex;
  align-items: flex-end;
}

/* HERO GRADIENTS */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,6,20,.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;
  padding: 18px;

  background: rgba(139,92,246,0.12);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06);
}

#searchSection h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

/* ==================================================
   SECTIONS
================================================== */

.section {
  padding: 36px 22px;
}

.section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ==================================================
   ROWS
================================================== */

.row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
}

.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 .3s ease,
    box-shadow .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,.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;
  }
}
/* ==========================================
   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 .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 .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: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI";
}

/* ================= 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;
  } 
}

/* ===============================
   SMART BINGE INDICATOR — PREMIUM
================================ */

.binge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 10px;
  padding: 6px 14px;

  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: 999px;

  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;
}

/* Mobile refinement */
@media (max-width: 768px) {
  .binge-indicator {
    font-size: 12px;
    padding: 5px 12px;
  }
}

