/* ============================================================
   DRAMAHYPER - Complete UI Redesign
   Font: Bebas Neue (display) + Outfit (body)
   Theme: Dark luxury streaming platform
   ============================================================ */

   :root {
    --bg:          #0a0a0a;
    --bg-card:     #141414;
    --bg-elevated: #1a1a1a;
    --bg-hover:    #222222;
    --red:         #e50914;
    --red-dark:    #b20710;
    --red-glow:    rgba(229,9,20,0.3);
    --white:       #ffffff;
    --grey-1:      #e5e5e5;
    --grey-2:      #b3b3b3;
    --grey-3:      #808080;
    --grey-4:      #404040;
    --border:      rgba(255,255,255,0.08);
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-pill: 50px;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'Outfit', sans-serif;
    --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
    --shadow-card:  0 4px 24px rgba(0,0,0,0.6);
    --shadow-modal: 0 24px 80px rgba(0,0,0,0.85);
    --nav-h:        64px;
    --nav-total-h:  72px;
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--grey-1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  
  img { display: block; max-width: 100%; }
  
  a { text-decoration: none; color: inherit; }
  
  p { color: var(--grey-2); }
  
  /* ============================================================
     SCROLLBAR
     ============================================================ */
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--grey-4); border-radius: 2px; }
  
  /* ============================================================
     NAVBAR  — single row: logo | pill | auth
     ============================================================ */
  #mainNav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 5000;
    /* Transparent over hero, filled when scrolled */
    background: transparent;
    transition: background 0.3s ease;
  }
  
  #mainNav.scrolled {
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
  
  /* Single flex row that holds logo + pill + auth */
  .nav-pill-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 32px;
    max-width: 1800px;
    margin: 0 auto;
  }
  
  /* Logo — sits outside pill, left side */
  .nav-logo {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 3px;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  }
  .nav-logo span { color: var(--red); }
  
  /* Auth — sits outside pill, right side */
  .nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  .nav-btn-ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.83rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(8px);
  }
  .nav-btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.6);
  }
  
  .nav-avatar {
    position: relative;
    width: 36px; height: 36px;
    background: var(--red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    flex-shrink: 0;
  }
  .nav-avatar .nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 150px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  }
  .nav-avatar:hover .nav-dropdown { display: block; }
  .nav-dropdown a {
    display: block;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: var(--grey-2);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
  }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
  
  /* ============================================================
     FROSTED GLASS PILL  (centre of nav row)
     ============================================================ */
  .nav-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
      0 8px 32px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.07);
    overflow: visible;
    /* cap max width so pill doesn't sprawl on huge screens */
    max-width: 860px;
  }
  
  /* ---- Search ---- */
  .pill-search-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 12px;
    flex: 1;
    min-width: 0;
  }
  
  .pill-search-icon {
    color: var(--grey-3);
    flex-shrink: 0;
  }
  
  .pill-search-wrap input {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.87rem;
    font-family: var(--font-body);
    width: 100%;
    min-width: 0;
  }
  .pill-search-wrap input::placeholder { color: var(--grey-3); }
  
  .pill-clear-btn {
    background: none;
    border: none;
    color: var(--grey-3);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s;
  }
  .pill-clear-btn:hover { color: var(--white); }
  
  /* ---- Dividers ---- */
  .pill-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    margin: 0 2px;
  }
  
  /* ---- Genre dropdown ---- */
  .genre-dropdown-wrap { position: relative; flex-shrink: 0; }
  
  .genre-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--grey-2);
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.83rem;
    font-family: var(--font-body);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
  }
  .genre-dropdown:hover,
  .genre-dropdown.active { background: rgba(255,255,255,0.09); color: var(--white); }
  
  .pill-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.55;
  }
  .genre-dropdown.active .pill-chevron { transform: rotate(180deg); opacity: 1; }
  
  /* Genre options panel */
  .genre-options {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.75);
    z-index: 6000;
    padding: 6px;
  }
  
  .genre-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--grey-2);
    transition: background 0.12s, color 0.12s;
  }
  .genre-options label:hover { background: rgba(255,255,255,0.07); color: var(--white); }
  .genre-options label.checked { color: var(--white); }
  
  .genre-options input[type="checkbox"] { display: none; }
  
  .genre-check-box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--grey-4);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
  }
  .genre-options label.checked .genre-check-box {
    background: var(--red);
    border-color: var(--red);
  }
  .genre-options label.checked .genre-check-box::after {
    content: '';
    display: block;
    width: 4px; height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
  }
  
  /* ---- Sort select ---- */
  .sort-select {
    background: none;
    border: none;
    color: var(--grey-2);
    padding: 7px 10px;
    font-size: 0.83rem;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-pill);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .sort-select:hover { background: rgba(255,255,255,0.09); color: var(--white); }
  .sort-select option { background: #1c1c1c; color: var(--white); }
  
  /* ---- Movie / TV toggle ---- */
  .type-toggle {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(0,0,0,0.35);
    border-radius: var(--radius-pill);
    flex-shrink: 0;
  }
  
  .type-btn {
    background: transparent;
    border: none;
    color: var(--grey-3);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .type-btn.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(229,9,20,0.4);
  }
  .type-btn:not(.active):hover { color: var(--white); background: rgba(255,255,255,0.07); }
  
  /* ---- Mobile burger ---- */
  .filter-burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18,18,18,0.65);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(12px);
    flex-shrink: 0;
  }
  
  
  .hero-banner {
    position: relative;
    height: 90vh;
    min-height: 500px;
    background: #000;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-total-h));
    padding-top: var(--nav-total-h);
  }
  
  .hero-video-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(177.78vh);
    min-width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: none;
  }
  
  .hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(10,10,10,0.85) 0%,
      rgba(10,10,10,0.5) 50%,
      rgba(10,10,10,0.1) 100%
    ),
    linear-gradient(
      to top,
      rgba(10,10,10,1) 0%,
      rgba(10,10,10,0.6) 25%,
      transparent 60%
    );
    z-index: 1;
  }
  
  .hero-content {
    position: absolute;
    bottom: 120px;
    left: 64px;
    z-index: 2;
    max-width: 520px;
    animation: heroFadeIn 0.8s ease both;
  }
  
  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
  }
  
  .hero-logo-wrap img {
    max-height: 90px;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    margin-bottom: 8px;
  }
  
  #heroTitle {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.05;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    margin-bottom: 6px;
  }
  
  .hero-meta {
    font-size: 0.85rem;
    color: var(--grey-2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .hero-meta .meta-pill {
    background: rgba(255,255,255,0.12);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
  }
  
  .hero-meta .meta-rating {
    color: #f5c518;
    font-weight: 600;
  }
  
  .hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
  }
  .btn-primary-hero:hover { background: var(--red-dark); transform: scale(1.02); }
  .btn-primary-hero:active { transform: scale(0.98); }
  
  .btn-outline-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background var(--transition);
  }
  .btn-outline-hero:hover { background: rgba(255,255,255,0.25); }
  
  .btn-ghost-hero {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--grey-2);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
  }
  .btn-ghost-hero:hover { color: var(--white); background: var(--bg-hover); }
  
  .btn-mute {
    background: rgb(125 125 125 / 94%);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
  }
  .btn-mute img { width: 20px; height: 20px; }
  .btn-mute:hover { background: rgba(255,255,255,0.2); }
  
  /* Hero thumbnail strip */
  .hero-strip {
    position: absolute;
    bottom: 24px;
    left: 64px;
    right: 64px;
    display: flex;
    gap: 8px;
    z-index: 2;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hero-strip::-webkit-scrollbar { display: none; }
  
  .hero-strip-item {
    flex-shrink: 0;
    width: 70px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
  }
  .hero-strip-item img { width: 100%; height: 100%; object-fit: cover; }
  .hero-strip-item:hover { opacity: 0.85; transform: scale(1.06); }
  .hero-strip-item.active { border-color: var(--white); opacity: 1; }
  
  /* ============================================================
     HERO BANNER
     ============================================================ */
  #mainContent { padding-top: 16px; }
  
  .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 48px 48px;
  }
  
  /* Content rows */
  .content-row {
    margin-bottom: 40px;
  }
  
  .row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  
  .row-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--grey-1);
    letter-spacing: 0.3px;
  }
  
  .row-see-all {
    font-size: 0.8rem;
    color: var(--grey-3);
    cursor: pointer;
    margin-left: auto;
    transition: color var(--transition);
  }
  .row-see-all:hover { color: var(--white); }
  
  .row-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 3px;
  }
  .badge-new {
    background: var(--red);
    color: #fff;
  }
  
  /* ============================================================
     CAROUSEL
     ============================================================ */
  .carousel-wrapper {
    position: relative;
  }
  
  .carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .carousel-track::-webkit-scrollbar { display: none; }
  
  .carousel-btn {
    position: absolute;
    top: 0; bottom: 8px;
    width: 52px;
    background: rgba(10,10,10,0.85);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
  }
  .carousel-wrapper:hover .carousel-btn { opacity: 1; }
  .carousel-btn.left  { left: 0;  border-radius: 0 8px 8px 0; }
  .carousel-btn.right { right: 0; border-radius: 8px 0 0 8px; }
  .carousel-btn:hover { background: rgba(229,9,20,0.8); }
  
  /* ============================================================
     VIDEO CARD
     ============================================================ */
  .video-card {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow var(--transition);
    transform-origin: center;
  }
  
  .video-card:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 10;
  }
  
  .video-card img.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
  }
  
  .video-card:hover img.video-thumb { transform: scale(1.05); }
  
  /* Number overlay for top 10 */
  .video-card-number {
    position: absolute;
    bottom: -4px;
    left: -6px;
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px rgba(255,255,255,0.75);
    z-index: 3;
    pointer-events: none;
    text-shadow: none;
  }
  
  /* Card hover overlay */
  .video-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.22s ease;
  }
  .video-card:hover .video-info { opacity: 1; }
  
  .video-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 8px;
  }
  
  .watch-later-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
    font-size: 0.72rem;
    font-family: var(--font-body);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
    width: fit-content;
  }
  .watch-later-btn:hover { background: rgba(255,255,255,0.3); }
  
  /* ============================================================
     GENRE TABS
     ============================================================ */
  .genre-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 14px;
  }
  .genre-tabs::-webkit-scrollbar { display: none; }
  
  .genre-tab {
    flex-shrink: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--grey-2);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
  }
  .genre-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  .genre-tab:not(.active):hover { color: var(--white); border-color: var(--grey-3); }
  
  /* ============================================================
     DH MODAL (base)
     ============================================================ */
  .dh-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .details-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    color: var(--grey-2);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition), background var(--transition);
  }
  .details-close:hover { color: var(--white); background: rgba(255,255,255,0.15); }
  
  /* ============================================================
     DETAILS MODAL
     ============================================================ */
  #detailsModal { overflow-y: auto; }
  
  .details-panel {
    position: relative;
    background: var(--bg-card);
    width: 100%;
    max-width: 860px;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-modal);
    animation: modalIn 0.28s cubic-bezier(0.34,1.4,0.64,1) both;
    max-height: 85vh;
  }
  
  @keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
  }
  
  .details-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
  }
  
  .details-video-wrap iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: calc(177.78%);
    height: 100%;
    transform: translate(-50%, -50%);
    border: none;
    transition: opacity 0.4s ease;
  }
  
  .details-video-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
  }
  
  .details-body {
    padding: 24px 28px 28px;
  }
  
  .details-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 8px;
  }
  
  .details-meta {
    font-size: 0.85rem;
    color: var(--grey-3);
    margin-bottom: 14px;
  }
  
  .details-overview {
    font-size: 0.9rem;
    color: var(--grey-2);
    line-height: 1.65;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 20px;
  }
  
  .details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  /* ============================================================
     EPISODE MODAL
     ============================================================ */
  .episode-panel {
    position: relative;
    background: var(--bg-card);
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-modal);
    animation: modalIn 0.28s cubic-bezier(0.34,1.4,0.64,1) both;
  }
  
  .episode-poster-col {
    width: 220px;
    flex-shrink: 0;
    background: #0d0d0d;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow-y: auto;
  }
  
  .episode-poster-col img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
  
  .episode-poster-col h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: center;
    color: var(--white);
  }
  
  .ep-meta {
    font-size: 0.78rem;
    color: var(--grey-3);
    text-align: center;
  }
  
  .ep-desc {
    font-size: 0.8rem;
    color: var(--grey-2);
    line-height: 1.5;
    text-align: center;
  }
  
  .episode-main-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    gap: 14px;
  }
  
  .season-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
  }
  .season-tabs::-webkit-scrollbar { display: none; }
  
  .season-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--grey-2);
    transition: all var(--transition);
  }
  .season-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  
  .episodes-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
  }
  
  .episode-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
  }
  .episode-card:hover {
    background: var(--bg-hover);
    border-color: rgba(255,255,255,0.15);
    transform: translateX(4px);
  }
  
  .episode-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
  }
  
  .episode-desc {
    font-size: 0.78rem;
    color: var(--grey-3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* ============================================================
     AUTH MODAL
     ============================================================ */
  .auth-panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-modal);
    animation: modalIn 0.28s cubic-bezier(0.34,1.4,0.64,1) both;
  }
  
  .auth-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--white);
    text-align: center;
  }
  .auth-logo span { color: var(--red); }
  
  .auth-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
  }
  
  .auth-sub {
    font-size: 0.85rem;
    text-align: center;
    color: var(--grey-3);
  }
  
  .btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    width: 100%;
    transition: background var(--transition);
  }
  .btn-google:hover { background: #f0f0f0; }
  
  .auth-divider {
    text-align: center;
    position: relative;
    color: var(--grey-4);
    font-size: 0.8rem;
  }
  .auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
  }
  .auth-divider::before { left: 0; }
  .auth-divider::after  { right: 0; }
  
  .auth-panel input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
  }
  .auth-panel input:focus { border-color: var(--grey-3); }
  .auth-panel input::placeholder { color: var(--grey-4); }
  
  .auth-guest-btn {
    background: none;
    border: none;
    color: var(--grey-3);
    font-size: 0.82rem;
    font-family: var(--font-body);
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
    transition: color var(--transition);
  }
  .auth-guest-btn:hover { color: var(--white); }
  
  /* ============================================================
     PAYPAL MODAL
     ============================================================ */
  .paypal-panel {
    position: relative;
    background: linear-gradient(135deg, #1a0a0a, #120000);
    border: 1px solid rgba(229,9,20,0.3);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 60px rgba(229,9,20,0.15), var(--shadow-modal);
    animation: modalIn 0.28s cubic-bezier(0.34,1.4,0.64,1) both;
  }
  
  .paypal-icon {
    width: 72px; height: 72px;
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--red);
  }
  
  .paypal-panel h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 8px;
  }
  
  .paypal-panel p {
    font-size: 0.9rem;
    color: var(--grey-2);
    margin-bottom: 18px;
  }
  
  .paypal-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
  }
  .paypal-perks li {
    font-size: 0.85rem;
    color: var(--grey-2);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .paypal-perks li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--red); 
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  /* ============================================================
     PLAYER MODAL
     ============================================================ */
  #playerModal {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    align-items: center;
    justify-content: center;
  }
  
  #playerWrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  #playerFrame {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .player-ctrl-btn {
    position: absolute;
    z-index: 100;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    top: 16px;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
  }
  .player-ctrl-btn:hover { background: rgba(229,9,20,0.7); }
  #screenLockBtn { right: 64px; }
  #fullscreenBtn  { right: 16px; }
  
  /* Player-iOS fullscreen */
  .player-ios-fullscreen {
    position: fixed !important;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999;
    background: #000;
  }
  
  /* ============================================================
     TRAILER CLICK BLOCKER
     Sits on top of the iframe so the trailer cannot be interacted with
     ============================================================ */
  .details-trailer-blocker {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
  }
  
  /* ============================================================
     WATCH PARTY MODAL
     ============================================================ */
  #watchPartyModal {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  
  .wp-panel {
    position: relative;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 740px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.85);
    animation: modalIn 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
  }
  
  .wp-screen { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  
  /* ---- Lobby ---- */
  #wpLobby {
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 40px 40px;
    text-align: center;
  }
  
  .wp-logo {
    width: 64px; height: 64px;
    background: rgba(229,9,20,0.12);
    border: 1px solid rgba(229,9,20,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
    margin-bottom: 4px;
  }
  
  .wp-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--white);
  }
  
  .wp-sub {
    font-size: 0.88rem;
    color: var(--grey-3);
    max-width: 340px;
    line-height: 1.5;
  }
  
  .wp-input {
    width: 100%;
    max-width: 360px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 11px 18px;
    outline: none;
    transition: border-color 0.15s;
    text-align: center;
  }
  .wp-input:focus { border-color: rgba(255,255,255,0.3); }
  .wp-input::placeholder { color: var(--grey-4); }
  
  .wp-lobby-btns {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 360px;
  }
  
  .wp-join-row {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    align-items: center;
  }
  
  .wp-code-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  /* ---- Room layout ---- */
  #wpRoom {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    height: 100%;
    min-height: 0;
  }
  
  .wp-room-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .wp-room-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .wp-room-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey-4);
  }
  
  .wp-room-code {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: var(--white);
  }
  
  .wp-icon-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--grey-2);
    width: 30px; height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
  }
  .wp-icon-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }
  
  .wp-members {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .wp-member-chip {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    font-size: 0.75rem;
    color: var(--grey-2);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .wp-member-chip.is-host { border-color: rgba(229,9,20,0.4); color: var(--white); }
  .wp-member-chip .wp-host-crown { color: var(--red); font-size: 0.65rem; }
  
  /* ---- Embedded player ---- */
  .wp-player-wrap {
    background: #000;
    aspect-ratio: 16/9;
    width: 100%;
    flex-shrink: 0;
    position: relative; 
  }
  
  /* Fullscreen button inside WP player */
  .wp-fs-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
  }
  .wp-player-wrap:hover .wp-fs-btn { opacity: 1; }
  .wp-fs-btn:hover { background: rgba(229,9,20,0.75); }
  
  /* Sync overlay — shown briefly when host triggers play */
  .wp-sync-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 15;
    color: #fff;
    font-family: var(--font-body);
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .wp-sync-overlay.hidden { opacity: 0; }
  .wp-sync-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: wpSpin 0.8s linear infinite;
  }
  @keyframes wpSpin { to { transform: rotate(360deg); } }
  .wp-sync-text { font-size: 0.85rem; color: var(--grey-2); }
  
  /* ---- Transport controls ---- */
  .wp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
  }
  
  .wp-ctrl-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background 0.15s;
  }
  .wp-ctrl-btn:hover { background: rgba(255,255,255,0.13); }
  .wp-ctrl-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  
  .wp-leave-btn { margin-left: auto; color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
  .wp-leave-btn:hover { background: rgba(255,107,107,0.12); }
  
  .wp-sync-status {
    font-size: 0.75rem;
    color: var(--grey-3);
    margin-left: 4px;
  }
  .wp-sync-status.synced { color: #4caf50; }
  .wp-sync-status.waiting { color: #ff9800; }
  
  /* ---- Chat ---- */
  .wp-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 160px;
  }
  
  .wp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .wp-chat-msg {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--grey-2);
  }
  .wp-chat-msg .wp-chat-name {
    font-weight: 700;
    color: var(--white);
    margin-right: 5px;
  }
  .wp-chat-msg.is-system {
    font-style: italic;
    color: var(--grey-4);
    font-size: 0.76rem;
  }
  
  .wp-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 8px 12px 12px;
  }
  .wp-chat-input-row .wp-input {
    flex: 1;
    max-width: none;
    text-align: left;
    padding: 8px 14px;
    font-size: 0.83rem;
    border-radius: var(--radius-sm);
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    #wpLobby { padding: 36px 20px 28px; }
    .wp-panel { max-height: 100vh; border-radius: 0; }
    .wp-room-code { font-size: 1.1rem; }
  }
  
  /* ============================================================
     SPOTLIGHT SEARCH OVERLAY
     ============================================================ */
  .spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    animation: spotlightFadeIn 0.18s ease;
  }
  
  @keyframes spotlightFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  .spotlight-box {
    width: 100%;
    max-width: 660px;
    background: rgba(20,20,20,0.97);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.8);
    overflow: hidden;
    animation: spotlightSlideDown 0.2s cubic-bezier(0.34,1.56,0.64,1);
  }
  
  @keyframes spotlightSlideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  
  .spotlight-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  
  .spotlight-icon { color: var(--grey-3); flex-shrink: 0; }
  
  .spotlight-input-row input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 400;
    caret-color: var(--red);
  }
  .spotlight-input-row input::placeholder { color: var(--grey-4); }
  
  .spotlight-esc {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--grey-3);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    padding: 3px 7px;
    flex-shrink: 0;
    cursor: default;
    letter-spacing: 0.5px;
  }
  
  .spotlight-status {
    padding: 8px 20px 0;
    font-size: 0.78rem;
    color: var(--grey-3);
    min-height: 24px;
  }
  
  .spotlight-results {
    max-height: 460px;
    overflow-y: auto;
    padding: 8px 12px 12px;
  }
  
  .spotlight-results:empty { display: none; }
  
  /* Result rows grouped by type */
  .spotlight-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey-4);
    padding: 10px 8px 6px;
  }
  
  .spotlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.12s;
  }
  .spotlight-item:hover { background: rgba(255,255,255,0.07); }
  .spotlight-item.focused { background: rgba(255,255,255,0.09); }
  
  .spotlight-item-poster {
    width: 44px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
  }
  
  .spotlight-item-info { flex: 1; min-width: 0; }
  
  .spotlight-item-title {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .spotlight-item-meta {
    font-size: 0.77rem;
    color: var(--grey-3);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .spotlight-item-type {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grey-2);
  }
  
  .spotlight-item-rating {
    color: #f5c518;
    font-weight: 600;
  }
  
  .spotlight-play-hint {
    font-size: 0.75rem;
    color: var(--grey-4);
    flex-shrink: 0;
  }
  
  .spotlight-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--grey-3);
    font-size: 0.9rem;
  }
  
  /* ============================================================
     SEE ALL MODAL
     ============================================================ */
  #seeAllModal {
    align-items: flex-start;
    justify-content: center;
    padding: 0;
  }
  
  .seeall-panel {
    position: relative;
    background: #111;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.22s cubic-bezier(0.34,1.1,0.64,1);
  }
  
  .seeall-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .seeall-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
  }
  
  .seeall-grid {
    flex: 1;
    min-height: 0;        
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 40px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px 14px;
    align-content: start;
  }
  
  /* Cards inside see-all grid fill their column naturally */
  .seeall-grid .video-card {
    width: 100%;
    /* height: auto; */
    aspect-ratio: 2/3;
  }
  
  /* ============================================================
     TOAST
     ============================================================ */
  .toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999999;
    white-space: nowrap;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /* ============================================================
     FOOTER
     ============================================================ */
  .site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    text-align: center;
  }
  
  .footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--grey-3);
    margin-bottom: 8px;
  }
  .footer-logo span { color: var(--red); }
  
  .footer-legal {
    font-size: 0.78rem;
    color: var(--grey-4);
  }
  
  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 900px) {
    :root { --nav-total-h: 68px; }
  
    .nav-pill-row { padding: 12px 16px; gap: 10px; }
  
    /* Hide pill, show burger */
    .nav-pill       { display: none; }
    .filter-burger  { display: flex; }
  
    /* When open: pill drops down below nav as full-width sheet */
    .nav-pill.open {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      position: fixed;
      top: var(--nav-total-h);
      left: 0; right: 0;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      padding: 14px 16px;
      gap: 10px;
      background: rgba(14,14,14,0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255,255,255,0.1);
      border-top: none;
      box-shadow: 0 16px 40px rgba(0,0,0,0.65);
      z-index: 4999;
      max-width: 100%;
    }
  
    .nav-pill.open .pill-divider   { width: 100%; height: 1px; margin: 2px 0; }
    .nav-pill.open .pill-search-wrap { padding: 6px 10px; }
    .nav-pill.open .pill-search-wrap input { width: 100%; }
    .nav-pill.open .genre-dropdown-wrap { width: 100%; }
    .nav-pill.open .genre-dropdown  { width: 100%; justify-content: space-between; padding: 10px 14px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); }
    .nav-pill.open .sort-select     { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); }
    .nav-pill.open .type-toggle     { width: 100%; }
    .nav-pill.open .type-btn        { flex: 1; text-align: center; }
  
    .genre-options {
      left: 0;
      transform: none;
      right: 0;
      min-width: unset;
      width: 100%;
      position: relative;
      top: 4px;
      box-shadow: none;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
    }
  
    .hero-content { left: 16px; bottom: 80px; max-width: calc(100% - 32px); }
    .hero-strip   { left: 16px; right: 16px; }
    #heroTitle    { font-size: 2.2rem; }
  
    .container    { padding: 0 16px 40px; }
    .video-card   { width: 130px; height: 195px; }
  
    .episode-panel { flex-direction: column; max-height: 100vh; border-radius: 0; overflow: hidden; }
    .episode-poster-col { 
      width: 100%; align-items: flex-start; 
      padding: 14px 16px; gap: 12px; flex-shrink: 0;
      max-height: 30vh;
    }
    .episode-poster-col img { width: 70px; height: 105px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
    .episode-poster-col h3 { font-size: 1rem; text-align: left; }
    .ep-meta, .ep-desc { text-align: left; font-size: 0.74rem; }
    .ep-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .episode-main-col { padding: 0 12px 16px; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
    #episodeModal .details-close { top: 10px; right: 10px; width: 32px; height: 32px; }
      
    .auth-panel   { padding: 28px 22px 22px; }
    .paypal-panel { padding: 30px 22px 24px; }
  }

  .video-year {
    font-size: 0.72rem;
    color: var(--grey-3);
    margin-bottom: 6px;
  }

  .similar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-1);
  margin: 20px 0 12px;
}

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

.similar-card {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.2s ease;
}
.similar-card:hover { transform: scale(1.05); }

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

.similar-card-info {
  padding: 5px 6px 7px;
}

.similar-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-card-year {
  font-size: 0.67rem;
  color: var(--grey-3);
  margin-top: 2px;
}
  
  @media (max-width: 600px) {
    .nav-logo     { font-size: 1.4rem; }
    .hero-banner  { height: 75vh; }
    .hero-video-wrap { display: none; }
    #heroTitle    { font-size: 1.9rem; }
    .hero-actions { gap: 8px; }
    .btn-primary-hero, .btn-outline-hero { padding: 10px 16px; font-size: 0.88rem; }
  
    .details-panel { border-radius: var(--radius-md); }
    .details-body  { padding: 16px; }
    .details-title { font-size: 1.5rem; }
  
    .site-footer   { padding: 24px 16px; }
  }

  .episode-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
  }
  
  .ep-play-btn,
  .ep-party-btn {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    transition: opacity 0.2s;
  }
  
  .ep-play-btn {
    background: var(--accent, #e50914);
    color: #fff;
  }
  
  .ep-party-btn {
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.25);
  }
  
  .ep-party-btn:hover {
    border-color: #fff;
    color: #fff;
  }


  .spotlight-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .spotlight-mylist-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
  }
  
  .spotlight-mylist-btn:hover {
    background: rgba(255,255,255,0.25);
  }

  /* ============================================================
   SKELETON LOADER
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    #1a1a1a 0%,
    #2a2a2a 40%,
    #333333 50%,
    #2a2a2a 60%,
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-md);
  display: block;
}

.skeleton-card {
  flex-shrink: 0;
  width: 160px;
  height: 240px;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 900px) {
  .skeleton-card { width: 130px; height: 195px; }
}