
  :root {
    /* Colors - Enhanced Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-elevated: #1a1a1a;
    --bg-card: #181818;
    --brand-red: #E50914;
    --brand-red-hover: #F40612;
    --brand-red-dark: #B20710;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #b3b3b3;
    --text-dim: #808080;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-hero: linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.8) 50%, transparent 100%);
    
    /* Glassmorphism 2.0 */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-bg-strong: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(40px) saturate(180%);
    --glass-blur-strong: blur(60px) saturate(200%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.4);
    --shadow-glow-strong: 0 0 40px rgba(229, 9, 20, 0.6);
    
    /* Typography */
    --font-display: 'Netflix Sans', 'Bebas Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-swift: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* ===== ANIMATIONS ===== */
  
  @keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
  }

  @keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
  }

  @keyframes fadeInUp {
    from { 
      opacity: 0; 
      transform: translateY(30px); 
    }
    to { 
      opacity: 1; 
      transform: translateY(0); 
    }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes scaleIn {
    from { 
      opacity: 0; 
      transform: scale(0.9); 
    }
    to { 
      opacity: 1; 
      transform: scale(1); 
    }
  }

  @keyframes slideInFromBottom {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes glow {
    0%, 100% { 
      filter: drop-shadow(0 0 5px rgba(229, 9, 20, 0.5)); 
    }
    50% { 
      filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.8)); 
    }
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    background-color: var(--bg-primary);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Custom Scrollbar - Premium Dark Theme */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-primary); 
  }
  ::-webkit-scrollbar-thumb {
    background: #404040; 
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #606060; 
  }

  /* Large Screen Responsive Scaling */
  @media (min-width: 1600px) {
    html {
      font-size: 18px; /* Scale up base font size */
    }
    .card {
      width: 240px !important; /* Larger cards */
    }
    .billboard {
        height: 85vh !important; /* Taller billboard */
    }
  }

  /* ===== SKELETON LOADING ===== */
  
  .skeleton {
      background: linear-gradient(
          90deg,
          var(--bg-card) 0%,
          #252525 20%,
          #303030 40%,
          #252525 60%,
          var(--bg-card) 80%,
          var(--bg-card) 100%
      );
      background-size: 2000px 100%;
      animation: shimmer 2s ease-in-out infinite;
  }
  
  .skeleton-card {
      width: 180px;
      aspect-ratio: 2/3;
      border-radius: 6px;
      flex-shrink: 0;
  }
  
  .skeleton-billboard {
      width: 100%;
      height: 90vh;
      position: relative;
  }
  
  .skeleton-billboard-content {
      position: absolute;
      bottom: 25%;
      left: 4%;
      display: flex;
      flex-direction: column;
      gap: 16px;
  }
  
  .skeleton-title {
      height: 48px;
      width: 350px;
      border-radius: 8px;
  }
  
  .skeleton-text {
      height: 20px;
      border-radius: 4px;
  }
  
  .skeleton-text.short { width: 150px; }
  .skeleton-text.medium { width: 300px; }
  .skeleton-text.long { width: 450px; }
  
  .skeleton-button {
      height: 48px;
      width: 140px;
      border-radius: 6px;
  }
  
  .skeleton-row {
      padding: 24px 4% 16px;
  }
  
  .skeleton-row-title {
      height: 24px;
      width: 180px;
      border-radius: 4px;
      margin-bottom: 16px;
  }
  
  .skeleton-row-list {
      display: flex;
      gap: 12px;
      overflow: hidden;
  }
  
  /* Hide skeleton on content load */
  .skeleton-hide {
      display: none;
  }
  
  /* Fade transition for real content */
  .content-fade-in {
      animation: fadeIn 0.4s var(--transition-smooth);
  }
  
  @media (max-width: 768px) {
      .skeleton-card {
          width: 140px;
      }
      .skeleton-title {
          height: 32px;
          width: 200px;
      }
      .skeleton-text.long { width: 280px; }
  }

  /* ===== NAVBAR - Enhanced ===== */
  
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    padding: 0 4%;
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.4s var(--transition-smooth);
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  }
  
  .navbar.scrolled {
    background-color: var(--bg-secondary);
    background-image: none;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
  }

  .nav-logo {
    color: var(--brand-red);
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    margin-right: 2rem;
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
    letter-spacing: 1.5px;
    transition: all 0.3s var(--transition-smooth);
  }
  
  .nav-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(229, 9, 20, 0.9);
    animation: glow 2s ease-in-out infinite;
  }

  /* Modern Search - Enhanced */
  .search-box {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  
  .search-input {
    background: rgba(0,0,0,0.5);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 25px;
    outline: none;
    width: 260px;
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-family: var(--font-body);
  }

  .search-input::placeholder {
    color: var(--text-dim);
  }

  .search-input:focus {
    background: rgba(0,0,0,0.85);
    border-color: var(--text-primary);
    width: 340px;
    box-shadow: 0 0 20px rgba(255,255,255,0.15), var(--shadow-md);
    transform: translateY(-1px);
  }

  /* Search Results Polish */
  .search-results-header {
      margin-top: 100px;
      margin-bottom: 20px;
      padding: 0 4%;
  }
  
  /* ===== SEARCH HISTORY ===== */
  
  .search-box {
      position: relative;
  }
  
  .search-history {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      margin-top: 8px;
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 12px;
      display: none;
      z-index: 200;
      box-shadow: var(--shadow-lg);
      animation: fadeIn 0.2s var(--transition-smooth);
  }
  
  .search-history.show {
      display: block;
  }
  
  .search-history-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .search-history-title {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .search-history-clear {
      font-size: 0.75rem;
      color: var(--text-dim);
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      transition: all 0.2s;
  }
  
  .search-history-clear:hover {
      color: var(--brand-red);
      background: rgba(229, 9, 20, 0.1);
  }
  
  .search-history-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }
  
  .search-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 20px;
      font-size: 0.85rem;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s var(--transition-smooth);
  }
  
  .search-pill:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: var(--text-primary);
      color: var(--text-primary);
      transform: translateY(-1px);
  }
  
  .search-pill-remove {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      color: var(--text-dim);
      border: none;
      cursor: pointer;
      font-size: 0.7rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
  }
  
  .search-pill-remove:hover {
      background: var(--brand-red);
      color: var(--text-primary);
  }
  
  .search-history-empty {
      color: var(--text-dim);
      font-size: 0.85rem;
      text-align: center;
      padding: 8px;
  }

  /* ===== LIVE SEARCH DROPDOWN ===== */
  
  .live-search-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      margin-top: 8px;
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      display: none;
      z-index: 200;
      box-shadow: var(--shadow-lg);
      animation: fadeIn 0.2s var(--transition-smooth);
      max-height: 400px;
      overflow-y: auto;
  }
  
  .live-search-dropdown.show {
      display: block;
  }
  
  .live-search-result {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      cursor: pointer;
      transition: all 0.15s var(--transition-smooth);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      text-decoration: none;
      color: inherit;
  }
  
  .live-search-result:last-child {
      border-bottom: none;
  }
  
  .live-search-result:hover,
  .live-search-result.selected {
      background: rgba(255, 255, 255, 0.1);
  }
  
  .live-search-result.selected {
      background: rgba(229, 9, 20, 0.15);
      border-left: 3px solid var(--brand-red);
  }
  
  .live-search-poster {
      width: 40px;
      height: 60px;
      border-radius: 4px;
      object-fit: cover;
      background: var(--bg-card);
      flex-shrink: 0;
  }
  
  .live-search-poster-placeholder {
      width: 40px;
      height: 60px;
      border-radius: 4px;
      background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: var(--text-dim);
      flex-shrink: 0;
  }
  
  .live-search-info {
      flex: 1;
      min-width: 0;
  }
  
  .live-search-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 4px;
  }
  
  .live-search-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.8rem;
      color: var(--text-dim);
  }
  
  .live-search-year {
      color: var(--text-muted);
  }
  
  .type-badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .type-badge.movie {
      background: rgba(229, 9, 20, 0.2);
      color: #ff6b6b;
  }
  
  .type-badge.tv {
      background: rgba(70, 211, 105, 0.2);
      color: #46d369;
  }
  
  /* Live Search Loading State */
  .live-search-loading {
      padding: 16px;
  }
  
  .live-search-skeleton {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
  }
  
  .live-search-skeleton-poster {
      width: 40px;
      height: 60px;
      border-radius: 4px;
  }
  
  .live-search-skeleton-info {
      flex: 1;
  }
  
  .live-search-skeleton-title {
      height: 16px;
      width: 70%;
      border-radius: 4px;
      margin-bottom: 8px;
  }
  
  .live-search-skeleton-meta {
      height: 12px;
      width: 40%;
      border-radius: 4px;
  }
  
  /* Live Search Empty State */
  .live-search-empty {
      padding: 24px 16px;
      text-align: center;
      color: var(--text-dim);
  }
  
  .live-search-empty-icon {
      font-size: 1.5rem;
      margin-bottom: 8px;
      opacity: 0.5;
  }
  
  .live-search-empty-text {
      font-size: 0.9rem;
  }
  
  /* Live Search Footer */
  .live-search-footer {
      padding: 10px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.8rem;
      color: var(--text-dim);
      text-align: center;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 0 0 12px 12px;
  }
  
  .live-search-footer kbd {
      display: inline-block;
      padding: 2px 6px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      font-family: inherit;
      font-size: 0.75rem;
      margin: 0 2px;
  }

  /* ===== HERO BILLBOARD - Enhanced ===== */
  
  .billboard {
    position: relative;
    height: 80vh;
    width: 100%;
    background-size: cover;
    background-position: center top;
    display: flex;
    justify-content: center;
    align-items: center;
    mask-image: linear-gradient(to bottom, black 70%, transparent 98%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 98%);
    animation: fadeIn 0.8s var(--transition-smooth);
  }

  @media (max-width: 768px) {
    .billboard {
      height: 65vh;
    }
  }

  .billboard-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    pointer-events: none;
  }
  
  /* Bottom blend gradient */
  .billboard::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;;
      height: 50%;
      background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
      pointer-events: none;
      z-index: 1;
  }

  .billboard-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s var(--transition-smooth);
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
  }

  .billboard-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.7);
    line-height: 1;
    width: 100%;
    letter-spacing: -1px;
  }
  
  @media (max-width: 768px) {
    .billboard-title {
      font-size: 2.5rem;
    }
  }

  .billboard-desc {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    text-align: center;
    max-width: 90%;
    font-weight: 400;
  }

  /* Billboard Buttons Container */
  .billboard-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s var(--transition-smooth);
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
  }

  /* Glassmorphism Buttons - Enhanced */
  .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 0;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }

  .hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
  }

  .hero-btn:hover::before {
    left: 100%;
  }

  .btn-play {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 800;
  }
  
  .btn-play:hover {
    background: var(--text-secondary);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(255,255,255,0.3);
  }

  .btn-more {
    background: rgba(109, 109, 110, 0.5);
    color: var(--text-primary);
    border: 1.5px solid rgba(255,255,255,0.2);
  }
  
  .btn-more:hover {
    background: rgba(109, 109, 110, 0.7);
    border-color: var(--text-primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
  }

  /* Horizontal Rails */
  .row {
    margin: 3.5vw 0;
    position: relative;
    z-index: 20;
  }

  .row-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e5e5;
    margin: 0 4% 1rem 4%;
    display: flex;
    align-items: center;
  }
  
  .row-title:hover {
    color: white;
  }

  /* Row Subtitle for personalized context */
  .row-header-enhanced {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin: 0 4% 1rem 4%;
  }
  
  .row-subtitle {
      font-size: 0.85rem;
      color: var(--text-dim);
      font-weight: 400;
  }
  
  .row-subtitle strong {
      color: var(--text-muted);
      font-weight: 500;
  }
  
  /* Recommendation Badge on Cards */
  .rec-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      padding: 4px 8px;
      background: var(--glass-bg-strong);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      border-radius: 4px;
      font-size: 0.65rem;
      font-weight: 600;
      color: var(--text-secondary);
      z-index: 10;
      max-width: calc(100% - 56px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      opacity: 0;
      transform: translateY(-4px);
      transition: all 0.3s var(--transition-smooth);
  }
  
  .card:hover .rec-badge {
      opacity: 1;
      transform: translateY(0);
  }
  
  .rec-badge-icon {
      margin-right: 4px;
  }
  
  /* Genre Preference Pills (for Top Picks) */
  .genre-pills {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 4px;
  }
  
  .genre-pill-small {
      padding: 2px 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      font-size: 0.7rem;
      color: var(--text-dim);
  }

  .row-list {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0 4% 20px 4%; /* Bottom padding for hover scale */
    scrollbar-width: none; 
    scroll-behavior: smooth;
  }
  
  .row-list::-webkit-scrollbar {
    display: none; 
  }

  /* Search Grid Layout */
  .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 4% 4% 4%;
  }
  
  .grid-layout .card {
    width: 100% !important; /* Override fixed width */
  }

  /* ===== CONTENT CARDS - Enhanced ===== */
  
  .card {
    flex: 0 0 auto;
    width: 220px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    aspect-ratio: 2/3;
    border-radius: 8px;
    background-color: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  @media (max-width: 768px) {
    .card {
      width: 140px;
    }
    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.2rem;
    }
  }

  .card:hover {
    transform: scale(1.1);
    z-index: 99;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0,0,0,0.9);
    border: 2px solid rgba(255,255,255,0.3);
  }

  /* Fade In Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in;
  }
  
  .card-img.loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-out;
  }

  .card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    color: #888;
    background: linear-gradient(45deg, #202020, #2a2a2a);
    font-size: 0.9rem;
    font-weight: 500;
  }

  /* Hover Overlay for Cards - Enhanced */
  .card-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 18px 12px;
      background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
      opacity: 0;
      transition: opacity 0.4s var(--transition-smooth);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
  }
  
  .card:hover .card-overlay {
      opacity: 1;
  }
  
  .card-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-primary);
      text-shadow: 0 2px 4px rgba(0,0,0,0.9);
      margin-bottom: 4px;
      line-height: 1.3;
  }
  
  /* My List Heart Button */
  .mylist-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(10px);
      border: 1.5px solid rgba(255, 255, 255, 0.3);
      color: var(--text-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: scale(0.8);
      transition: all 0.3s var(--transition-smooth);
      z-index: 20;
      padding: 0;
  }
  
  .mylist-btn svg {
      width: 18px;
      height: 18px;
  }
  
  .card:hover .mylist-btn {
      opacity: 1;
      transform: scale(1);
  }
  
  .mylist-btn:hover {
      background: var(--text-primary);
      color: var(--bg-primary);
      border-color: var(--text-primary);
      transform: scale(1.15);
  }
  
  .mylist-btn.active {
      background: var(--brand-red);
      border-color: var(--brand-red);
      color: var(--text-primary);
      opacity: 1;
  }
  
  .mylist-btn.active:hover {
      background: var(--brand-red-hover);
  }
  
  /* My List Row Empty State */
  .mylist-empty {
      padding: 24px 4%;
      text-align: center;
      color: var(--text-dim);
      font-size: 0.95rem;
  }
  
  .mylist-empty-icon {
      font-size: 2.5rem;
      margin-bottom: 8px;
      opacity: 0.5;
  }
  
  /* Continue Watching Badge */
  .continue-badge {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.1);
      padding: 4px 10px;
      border-radius: 4px;
      display: inline-block;
      margin-top: 4px;
  }

  /* Watch Progress Bar - Netflix Style */
  .watch-progress-container {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.2);
      z-index: 10;
  }
  
  .watch-progress-bar {
      height: 100%;
      background: var(--brand-red);
      border-radius: 0 2px 2px 0;
      transition: width 0.3s var(--transition-smooth);
      box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
  }
  
  /* Progress percentage text on hover */
  .watch-progress-text {
      position: absolute;
      bottom: 8px;
      right: 8px;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text-primary);
      background: rgba(0, 0, 0, 0.7);
      padding: 2px 6px;
      border-radius: 3px;
      opacity: 0;
      transition: opacity 0.2s var(--transition-smooth);
  }
  
  .card:hover .watch-progress-text {
      opacity: 1;
  }

  /* Clear History Button */
  .clear-history-btn {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--text-muted);
      padding: 8px 14px;
      border-radius: 4px;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s var(--transition-smooth);
      display: inline-flex;
      align-items: center;
      gap: 6px;
  }
  
  .clear-history-btn svg {
      opacity: 0.7;
      transition: opacity 0.2s;
  }
  
  .clear-history-btn:hover {
      background: var(--brand-red);
      border-color: var(--brand-red);
      color: var(--text-primary);
  }
  
  .clear-history-btn:hover svg {
      opacity: 1;
  }

  /* Row Header - Design Standard */
  .row-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 4%;
      margin-bottom: 8px;
  }
  
  .row-header .row-title {
      margin: 0;
  }

  /* ===== PLAYER - Netflix Style ===== */
  
  .player-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    overflow: hidden; 
  }
  
  .player-wrapper.hide-cursor {
    cursor: none;
  }

  .player-frame {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Player Header Controls - Enhanced */
  .player-header-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    pointer-events: none;
    transition: opacity 0.4s var(--transition-smooth);
  }
  
  .ph-left {
      display: flex;
      align-items: center;
      gap: 24px;
      flex: 1;
      min-width: 0;
  }
  
  .ph-right {
      display: flex;
      align-items: center;
      gap: 16px;
      pointer-events: auto;
  }
  
  /* Season Selector - Netflix Style */
  .season-selector-wrapper {
      display: flex;
      align-items: center;
      gap: 12px;
      pointer-events: auto;
      position: relative;
      z-index: 100;
  }
  
  .season-label {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-primary);
  }
  
  .season-select {
      background: #2a2a2a;
      color: #ffffff;
      border: 2px solid rgba(255, 255, 255, 0.3);
      padding: 10px 16px;
      border-radius: 6px;
      font-size: 1rem;
      font-family: inherit;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      min-width: 140px;
      transition: border-color 0.3s, background-color 0.3s;
      pointer-events: auto;
      position: relative;
      z-index: 100;
  }
  
  .season-select:hover {
      border-color: #ffffff;
      background-color: #3a3a3a;
  }
  
  .season-select:focus {
      border-color: #ffffff;
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
  
  .season-select option {
      background: #1a1a1a;
      color: #ffffff;
      padding: 12px;
      font-size: 1rem;
  }
  
  /* Drawer Close Button */
  .drawer-close-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 2rem;
      cursor: pointer;
      transition: all 0.3s var(--transition-smooth);
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      line-height: 1;
  }
  
  .drawer-close-btn:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.1);
      transform: rotate(90deg);
  }

  /* Icon Buttons - Enhanced */
  .icon-btn {
      background: var(--glass-bg);
      border: 1.5px solid var(--glass-border);
      color: var(--text-primary);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.3rem;
      transition: all 0.3s var(--transition-smooth);
      backdrop-filter: blur(10px);
      pointer-events: auto;
      box-shadow: var(--shadow-sm);
  }
  
  .icon-btn:hover {
      background: var(--text-primary);
      color: var(--bg-primary);
      transform: scale(1.12);
      box-shadow: var(--shadow-md);
  }
  
  /* Floating Bottom Controls - Enhanced */
  .player-floating-controls {
      position: absolute;
      bottom: 100px;
      right: 48px;
      display: flex;
      gap: 16px;
      z-index: 60;
      pointer-events: none;
      transition: opacity 0.4s var(--transition-smooth);
      align-items: center;
  }
  
  .pill-btn {
      pointer-events: auto;
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur);
      border: 1.5px solid var(--glass-border);
      color: var(--text-primary);
      padding: 14px 28px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: all 0.3s var(--transition-smooth);
      box-shadow: var(--shadow-md);
  }
  
  .pill-btn.primary {
      background: var(--text-primary);
      color: var(--bg-primary);
      border: none;
      font-weight: 800;
      box-shadow: var(--shadow-lg);
  }
  
  .pill-btn:hover {
      transform: scale(1.08) translateY(-2px);
      box-shadow: var(--shadow-lg);
  }
  
  .pill-btn.primary:hover {
      background: var(--text-secondary);
      box-shadow: var(--shadow-xl), 0 0 20px rgba(255,255,255,0.3);
  }

  /* Responsive Player Controls */
  @media (max-width: 768px) {
      .player-floating-controls {
          bottom: 80px;
          right: 16px;
          gap: 10px;
      }
      .pill-btn {
          padding: 10px 16px;
          font-size: 0.85rem;
      }
      .icon-btn {
          width: 40px;
          height: 40px;
          font-size: 1rem;
      }
      .player-header-controls {
          padding: 0 16px;
          height: 80px;
      }
      .ph-title {
          font-size: 1.1rem;
      }
      .player-back {
          padding: 8px 14px;
          font-size: 0.9rem;
      }
  }

  /* Keyboard Shortcut Toast - Netflix Style */
  .keyboard-toast {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.8);
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      padding: 24px 40px;
      border-radius: 16px;
      z-index: 200;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s var(--transition-smooth);
      pointer-events: none;
      box-shadow: var(--shadow-xl);
  }
  
  .keyboard-toast.show {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, -50%) scale(1);
  }
  
  .keyboard-toast-icon {
      font-size: 3rem;
      line-height: 1;
  }
  
  .keyboard-toast-text {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-secondary);
  }
  
  .keyboard-toast-key {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.1);
      padding: 4px 8px;
      border-radius: 4px;
      margin-top: 4px;
  }

  /* ===== AUTO-PLAY COUNTDOWN ===== */
  
  .autoplay-overlay {
      position: fixed;
      bottom: 100px;
      right: 4%;
      z-index: 70;
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 24px 32px;
      box-shadow: var(--shadow-lg);
      animation: slideInFromBottom 0.4s var(--transition-smooth);
  }
  
  .autoplay-overlay.show {
      display: flex;
  }
  
  .autoplay-header {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
  }
  
  .autoplay-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-primary);
      max-width: 200px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .autoplay-countdown-ring {
      position: relative;
      width: 80px;
      height: 80px;
  }
  
  .autoplay-countdown-ring svg {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
  }
  
  .autoplay-countdown-ring circle {
      fill: none;
      stroke-width: 4;
  }
  
  .autoplay-countdown-ring .bg {
      stroke: rgba(255, 255, 255, 0.15);
  }
  
  .autoplay-countdown-ring .progress {
      stroke: var(--brand-red);
      stroke-linecap: round;
      transition: stroke-dashoffset 1s linear;
  }
  
  .autoplay-countdown-number {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--text-primary);
  }
  
  .autoplay-buttons {
      display: flex;
      gap: 12px;
  }
  
  .autoplay-btn {
      padding: 10px 20px;
      border-radius: 6px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s var(--transition-smooth);
  }
  
  .autoplay-btn.cancel {
      background: rgba(255, 255, 255, 0.15);
      color: var(--text-primary);
  }
  
  .autoplay-btn.cancel:hover {
      background: rgba(255, 255, 255, 0.25);
  }
  
  .autoplay-btn.play {
      background: var(--brand-red);
      color: var(--text-primary);
  }
  
  .autoplay-btn.play:hover {
      background: var(--brand-red-hover);
      transform: scale(1.05);
  }
  
  .autoplay-toggle {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.8rem;
      color: var(--text-dim);
      margin-top: 8px;
  }
  
  .autoplay-toggle input {
      width: 16px;
      height: 16px;
      accent-color: var(--brand-red);
  }

  /* Auto-hide on cursor inactive */
  .player-wrapper.hide-cursor .player-floating-controls {
      opacity: 0;
  }

  /* Back Button - Enhanced */
  .player-back {
    z-index: 51;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--glass-bg);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--glass-border);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .player-back:hover {
      background: rgba(255,255,255,0.25);
      border-color: var(--text-primary);
      transform: scale(1.05) translateY(-2px);
      box-shadow: var(--shadow-md);
  }

  /* Player Info - Enhanced */
  .ph-info {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    min-width: 0;
  }

  .ph-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
  }

  .ph-meta {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 600;
  }

  .player-wrapper.hide-cursor .ad-overlay {
    opacity: 0;
    pointer-events: none;
  }

  /* ===== PLAYER DRAWERS - Enhanced ===== */
  
  /* Drawer Header (Common) */
  .drawer-header {
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(30, 30, 30, 0.98);
      flex-shrink: 0;
      min-height: 70px;
  }
  
  .drawer-header h3 { 
      margin: 0; 
      font-size: 1.3rem;
      font-weight: 700;
      color: #ffffff;
  }
  
  .drawer-header button {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 2rem;
      cursor: pointer;
      transition: all 0.3s var(--transition-smooth);
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
  }
  
  .drawer-header button:hover {
      color: var(--text-primary);
      background: rgba(255,255,255,0.1);
      transform: rotate(90deg);
  }
  
  .drawer-content {
      padding: 16px 20px 40px 20px;
      overflow-y: auto;
      overflow-x: hidden;
      max-height: calc(100vh - 90px);
      scrollbar-width: thin;
      scrollbar-color: #404040 transparent;
  }
  
  .drawer-content.episodes-list {
      padding: 16px 16px 60px 16px;
  }

  /* Side Drawer (Episodes & Recommendations) - Enhanced */
  .side-drawer {
      position: absolute;
      top: 0;
      right: 0;
      width: 450px;
      height: 100vh;
      background: rgba(20, 20, 20, 0.95);
      backdrop-filter: blur(40px);
      z-index: 200;
      transform: translateX(100%);
      transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      border-left: 1.5px solid rgba(255, 255, 255, 0.1);
      box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
      display: flex;
      flex-direction: column;
      overflow: hidden;
  }
  
  @media (max-width: 768px) {
      .side-drawer { width: 100%; }
  }
  
  .side-drawer.open {
       transform: translateX(0);
  }

  /* Episodes List - Enhanced */
  .episode-item {
      display: flex;
      gap: 16px;
      padding: 16px;
      text-decoration: none;
      color: var(--text-primary);
      border-radius: 8px;
      transition: all 0.3s var(--transition-smooth);
      align-items: center;
      margin-bottom: 8px;
      background: transparent;
  }
  
  .episode-item:hover {
       background: rgba(255,255,255,0.1);
       transform: translateX(4px);
  }
  
  .episode-item.active { 
      background: rgba(80, 80, 80, 0.5); 
      border-left: 4px solid var(--brand-red);
      box-shadow: var(--shadow-sm);
  }
  
  .ep-num { 
      font-size: 1.6rem; 
      font-weight: 900; 
      color: var(--text-dim); 
      width: 35px;
      text-align: center;
  }
  
  .ep-thumb {
      width: 130px;
      height: 73px;
      background-size: cover;
      background-position: center;
      border-radius: 6px;
      flex-shrink: 0;
      background-color: var(--bg-card);
      box-shadow: var(--shadow-sm);
  }
  
  .ep-info { 
      flex: 1; 
      min-width: 0; 
  }
  
  .ep-title { 
      font-weight: 700; 
      margin-bottom: 5px; 
      white-space: nowrap; 
      overflow: hidden; 
      text-overflow: ellipsis;
      font-size: 1rem;
      color: var(--text-primary);
  }
  
  .ep-overview { 
      font-size: 0.85rem; 
      color: var(--text-muted);
      line-height: 1.4;
  }

  /* ===== BOTTOM SHEET - New Episode Selector ===== */
  
  .bottom-sheet {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 55vh;
      background: #141414;
      z-index: 300;
      transform: translateY(100%);
      transition: transform 0.4s ease-out;
      border-top: 1px solid #333;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  }
  
  .bottom-sheet.open {
      transform: translateY(0);
  }
  
  .sheet-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      background: #1a1a1a;
      border-bottom: 1px solid #333;
      border-radius: 16px 16px 0 0;
  }
  
  .sheet-close {
      background: none;
      border: none;
      color: #888;
      font-size: 2rem;
      cursor: pointer;
      padding: 0 8px;
      transition: color 0.2s;
  }
  
  .sheet-close:hover {
      color: #fff;
  }
  
  /* Season Tabs */
  .season-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
  }
  
  .season-tab {
      background: #2a2a2a;
      color: #aaa;
      border: 2px solid transparent;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .season-tab:hover {
      background: #3a3a3a;
      color: #fff;
  }
  
  .season-tab.active {
      background: #e50914;
      color: #fff;
      border-color: #e50914;
  }
  
  /* Sheet Content */
  .sheet-content {
      padding: 16px;
      overflow-y: auto;
      height: calc(55vh - 70px);
  }
  
  /* Episode Cards - New Design */
  .episode-card {
      display: flex;
      gap: 12px;
      padding: 12px;
      text-decoration: none;
      color: #fff;
      background: #1a1a1a;
      border-radius: 8px;
      margin-bottom: 10px;
      align-items: center;
      transition: background 0.2s, transform 0.2s;
      border: 2px solid transparent;
  }
  
  .episode-card:hover {
      background: #2a2a2a;
      transform: translateX(4px);
  }
  
  .episode-card.active {
      border-color: #e50914;
      background: #2a1a1a;
  }
  
  .ep-number {
      font-size: 1.4rem;
      font-weight: 800;
      color: #666;
      width: 30px;
      text-align: center;
      flex-shrink: 0;
  }
  
  .ep-thumbnail {
      width: 120px;
      height: 68px;
      background-size: cover;
      background-position: center;
      background-color: #2a2a2a;
      border-radius: 6px;
      flex-shrink: 0;
  }
  
  .ep-details {
      flex: 1;
      min-width: 0;
  }
  
  .ep-name {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .ep-desc {
      font-size: 0.8rem;
      color: #888;
      line-height: 1.3;
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
      .bottom-sheet {
          height: 70vh;
      }
      .sheet-content {
          height: calc(70vh - 70px);
      }
      .ep-thumbnail {
          width: 80px;
          height: 45px;
      }
      .season-tab {
          padding: 6px 12px;
          font-size: 0.8rem;
      }
  }

  /* Recommendation Cards */
  .rec-card {
      text-decoration: none;
      color: #fff;
      display: block;
      transition: transform 0.2s, opacity 0.2s;
  }
  
  .rec-card:hover {
      transform: scale(1.05);
  }
  
  .rec-poster {
      background-color: #2a2a2a;
      border-radius: 6px;
      transition: box-shadow 0.2s;
  }
  
  .rec-card:hover .rec-poster {
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  }
  
  .rec-title {
      font-size: 0.8rem;
      margin-top: 8px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #ccc;
  }

  /* Ad Overlay & Play Button - Enhanced */
  .ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.4s var(--transition-smooth);
  }
  
  .ad-overlay-text {
    width: 110px;
    height: 110px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-strong), var(--shadow-lg);
    transition: transform 0.4s var(--transition-bounce);
    cursor: pointer;
  }
  
  .ad-overlay:hover .ad-overlay-text {
    transform: scale(1.2);
    background: var(--brand-red-hover);
    animation: pulse-red 2s infinite;
  }

  /* CSS Play Icon Triangle */
  .ad-overlay-text::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 30px solid white;
    margin-left: 10px;
  }

  /* ===== INFO MODAL - Enhanced ===== */
  
  .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2000;
      background: rgba(0,0,0,0.85);
      backdrop-filter: var(--glass-blur);
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s var(--transition-smooth);
  }
  
  .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
  }
  
  .modal-content {
      width: 95%;
      max-width: 1200px;
      max-height: 90vh;
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur-strong);
      -webkit-backdrop-filter: var(--glass-blur-strong);
      border-radius: 20px;
      overflow-y: auto;
      position: relative;
      box-shadow: var(--shadow-xl), inset 0 0 0 1px var(--glass-border);
      transform: scale(0.9);
      transition: all 0.5s var(--transition-bounce);
      opacity: 0;
  }
  
  .modal-overlay.active .modal-content {
      transform: scale(1);
      opacity: 1;
  }
  
  .modal-hero {
      width: 100%;
      height: 450px;
      background-size: cover;
      background-position: center;
      position: relative;
      border-radius: 20px 20px 0 0;
  }
  
  .modal-hero::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 150px;
      background: linear-gradient(to top, var(--bg-elevated), transparent);
  }
  
  .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 10;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: var(--bg-elevated);
      color: var(--text-primary);
      border: 1.5px solid var(--glass-border);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.8rem;
      transition: all 0.3s var(--transition-smooth);
      backdrop-filter: blur(10px);
  }
  
  .modal-close:hover {
      background: rgba(255,255,255,0.2);
      border-color: var(--text-primary);
      transform: rotate(90deg) scale(1.1);
  }

  .modal-body {
      padding: 2.5rem 3.5rem 3.5rem;
      color: var(--text-secondary);
  }
  
  .modal-title {
      font-size: 3.2rem;
      font-weight: 900;
      margin-bottom: 1.25rem;
      color: var(--text-primary);
      text-shadow: 0 2px 15px rgba(0,0,0,0.6);
      letter-spacing: -1px;
  }
  
  .modal-meta {
      display: flex;
      gap: 16px;
      margin-bottom: 1.75rem;
      font-size: 1.05rem;
      color: var(--text-muted);
      align-items: center;
  }
  
  .modal-desc {
      font-size: 1.25rem;
      line-height: 1.7;
      margin-bottom: 2.5rem;
      color: var(--text-secondary);
      font-weight: 400;
  }
  
  /* ===== ERROR HANDLING & NOTIFICATIONS ===== */
  
  /* Offline Banner */
  .offline-banner {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 999;
      background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
      color: white;
      padding: 12px 20px;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: var(--shadow-md);
      animation: slideInFromTop 0.3s var(--transition-smooth);
  }
  
  .offline-banner.show {
      display: flex;
  }
  
  .offline-banner-icon {
      font-size: 1.2rem;
  }
  
  @keyframes slideInFromTop {
      from { transform: translateY(-100%); }
      to { transform: translateY(0); }
  }
  
  /* Toast Notifications */
  .toast-container {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 900;
      display: flex;
      flex-direction: column;
      gap: 12px;
      pointer-events: none;
  }
  
  .toast {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 20px;
      background: var(--glass-bg-strong);
      backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 0.9rem;
      font-weight: 500;
      box-shadow: var(--shadow-lg);
      animation: toastIn 0.3s var(--transition-smooth);
      pointer-events: auto;
      max-width: 400px;
  }
  
  .toast.success {
      border-left: 4px solid #22c55e;
  }
  
  .toast.error {
      border-left: 4px solid #ef4444;
  }
  
  .toast.info {
      border-left: 4px solid #3b82f6;
  }
  
  .toast-icon {
      font-size: 1.2rem;
      flex-shrink: 0;
  }
  
  .toast.success .toast-icon { color: #22c55e; }
  .toast.error .toast-icon { color: #ef4444; }
  .toast.info .toast-icon { color: #3b82f6; }
  
  .toast-out {
      animation: toastOut 0.3s var(--transition-smooth) forwards;
  }
  
  @keyframes toastIn {
      from {
          opacity: 0;
          transform: translateY(20px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  @keyframes toastOut {
      from {
          opacity: 1;
          transform: translateY(0);
      }
      to {
          opacity: 0;
          transform: translateY(-20px);
      }
  }
  
  /* Empty States */
  .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      text-align: center;
      min-height: 300px;
  }
  
  .empty-state-icon {
      font-size: 4rem;
      margin-bottom: 20px;
      opacity: 0.5;
  }
  
  .empty-state-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
  }
  
  .empty-state-desc {
      font-size: 1rem;
      color: var(--text-muted);
      max-width: 400px;
      line-height: 1.5;
      margin-bottom: 24px;
  }
  
  /* Retry Button */
  .retry-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 28px;
      background: var(--brand-red);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s var(--transition-smooth);
  }
  
  .retry-btn:hover {
      background: var(--brand-red-hover);
      transform: translateY(-2px);
      box-shadow: var(--shadow-glow);
  }
  
  .retry-btn:active {
      transform: translateY(0);
  }
  
  /* Error Page */
  .error-page {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }
  
  .error-content {
      text-align: center;
      max-width: 500px;
  }
  
  .error-code {
      font-size: 6rem;
      font-weight: 900;
      color: var(--brand-red);
      line-height: 1;
      margin-bottom: 16px;
      text-shadow: var(--shadow-glow);
  }
  
  .error-title {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 12px;
  }
  
  .error-desc {
      color: var(--text-muted);
      margin-bottom: 32px;
      line-height: 1.6;
  }

  /* ===== GENRE BROWSE PAGE ===== */
  
  .browse-header {
      position: sticky;
      top: 70px;
      z-index: 90;
      background: var(--bg-primary);
      padding: 16px 4%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px);
      transition: all 0.3s var(--transition-smooth);
  }
  
  .browse-header.scrolled {
      background: var(--bg-secondary);
      box-shadow: var(--shadow-md);
  }
  
  /* Genre Bar */
  .genre-bar {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      padding: 4px 0;
      flex: 1;
  }
  
  .genre-bar::-webkit-scrollbar {
      display: none;
  }
  
  .genre-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 24px;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.25s var(--transition-smooth);
      white-space: nowrap;
      flex-shrink: 0;
      text-decoration: none;
  }
  
  .genre-pill:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: var(--text-primary);
      color: var(--text-primary);
      transform: translateY(-2px);
  }
  
  .genre-pill.active {
      background: var(--brand-red);
      border-color: var(--brand-red);
      color: var(--text-primary);
      font-weight: 600;
      box-shadow: var(--shadow-glow);
  }
  
  .genre-pill.active:hover {
      background: var(--brand-red-hover);
      transform: translateY(-2px);
  }
  
  /* Sort Dropdown */
  .sort-dropdown-container {
      position: relative;
      flex-shrink: 0;
  }
  
  .sort-dropdown {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      color: var(--text-secondary);
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.25s var(--transition-smooth);
      min-width: 140px;
      font-family: var(--font-body);
  }
  
  .sort-dropdown:hover, .sort-dropdown:focus {
      background: rgba(255, 255, 255, 0.12);
      border-color: var(--text-primary);
      color: var(--text-primary);
      outline: none;
  }
  
  .sort-dropdown option {
      background: var(--bg-secondary);
      color: var(--text-primary);
      padding: 12px;
  }
  
  .sort-label {
      color: var(--text-dim);
      font-size: 0.8rem;
      margin-right: 4px;
  }
  
  /* Browse Container */
  .browse-container {
      padding: 24px 4% 48px;
      min-height: 100vh;
  }
  
  .browse-title {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 24px;
      color: var(--text-primary);
  }
  
  /* Browse Grid - 5 columns desktop, 3 tablet, 2 mobile */
  .browse-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
      animation: fadeIn 0.4s var(--transition-smooth);
  }
  
  .browse-grid .card {
      width: 100% !important;
  }
  
  @media (max-width: 1200px) {
      .browse-grid {
          grid-template-columns: repeat(4, 1fr);
          gap: 16px;
      }
  }
  
  @media (max-width: 1024px) {
      .browse-grid {
          grid-template-columns: repeat(3, 1fr);
          gap: 14px;
      }
      
      .browse-header {
          flex-direction: column;
          align-items: stretch;
          gap: 12px;
      }
      
      .sort-dropdown-container {
          width: 100%;
      }
      
      .sort-dropdown {
          width: 100%;
          justify-content: center;
      }
  }
  
  @media (max-width: 640px) {
      .browse-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 12px;
      }
      
      .genre-pill {
          padding: 6px 14px;
          font-size: 0.85rem;
      }
      
      .browse-title {
          font-size: 1.4rem;
      }
  }
  
  /* Load More Button */
  .load-more-container {
      display: flex;
      justify-content: center;
      padding: 48px 0;
  }
  
  .load-more-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 48px;
      background: rgba(255, 255, 255, 0.08);
      border: 2px solid rgba(255, 255, 255, 0.15);
      border-radius: 8px;
      color: var(--text-primary);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s var(--transition-smooth);
      font-family: var(--font-body);
  }
  
  .load-more-btn:hover {
      background: var(--brand-red);
      border-color: var(--brand-red);
      transform: translateY(-2px);
      box-shadow: var(--shadow-glow);
  }
  
  .load-more-btn:active {
      transform: translateY(0);
  }
  
  .load-more-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
  }
  
  .load-more-btn.loading {
      pointer-events: none;
  }
  
  .load-more-spinner {
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: var(--text-primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
      to { transform: rotate(360deg); }
  }
  
  /* Browse Page Info */
  .browse-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      color: var(--text-dim);
      font-size: 0.9rem;
  }
  
  .browse-count {
      color: var(--text-muted);
  }
  
  /* Empty Browse State */
  .browse-empty {
      text-align: center;
      padding: 80px 20px;
      color: var(--text-dim);
  }
  
  .browse-empty-icon {
      font-size: 4rem;
      margin-bottom: 16px;
      opacity: 0.5;
  }
  
  .browse-empty-title {
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 8px;
  }
  
  .browse-empty-desc {
      max-width: 400px;
      margin: 0 auto;
      line-height: 1.6;
  }
