/* ==========================================================================
   MEGAPIXELS PREMIUM OTT STYLING
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 1. CORE DESIGN SYSTEM & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0d0e12;
    --card-bg: #1a1c24;
    --text-color: #ffffff;
    --text-muted: #7e8494; 
    --accent-color: rgb(255, 15, 47); 
    --accent-hover: rgb(220, 0, 32);
    --accent-rgb: 255, 15, 47;
    --modal-bg: #14161d;
    --input-bg: #242731;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 2. HEADER NAVIGATION SYSTEM */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(13,14,18,0.95) 0%, rgba(13,14,18,0) 100%);
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: background 0.3s, padding 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 1010;
}

.logo {
    font-size: 28px; /* Slightly larger text logo */
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px; /* More elegant letter spacing */
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px; /* More spacing between nav links */
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px; /* Bolder and larger desktop menu */
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* FIXED SEARCH BAR SYSTEM */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-inside {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.search-bar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px 8px 40px; 
    border-radius: 20px;
    color: #fff;
    outline: none;
    font-size: 14px;
    width: 210px;
    transition: all 0.3s ease;
}

.search-bar:focus {
    width: 250px; 
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Search Button */
.search-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    display: none;
}

/* MOBILE OVERLAY SEARCH BAR */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0d0e12;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 4%;
    gap: 20px;
    z-index: 1020;
    overflow-y: auto;
}

.mobile-search-results {
    display: none;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background-color: transparent;
}

.mobile-search-results.active {
    display: flex;
}

.mobile-search-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 10px 15px 10px 42px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.mobile-search-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.login-trigger-btn {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-size: 15px; /* Slightly larger login text */
    font-weight: 600;
    padding: 8px 20px; /* Better padding for bold feel */
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.login-trigger-btn:hover {
    background-color: var(--accent-hover);
}

/* 3. MOBILE NAVIGATION DRAWER */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px; 
    width: 280px;
    height: 100vh;
    background-color: #12141c;
    box-shadow: 5px 0 25px rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sidebar.open { left: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    color: #d1d4dc;
    text-decoration: none;
    font-size: 17px; /* Bolder and larger mobile menu */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
    border-radius: 8px;
}

.mobile-nav-links a.active {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

/* OVERLAYS BACKDROP */
.menu-overlay, .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    z-index: 1999;
    display: none;
}

/* PROFILE DROPDOWN MENU LOGGED IN SYSTEM */
.profile-wrapper {
  position: relative;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.profile-avatar:hover { border-color: #fff; }

.profile-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background-color: var(--modal-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  display: none; 
  flex-direction: column;
  overflow: hidden;
  z-index: 1100;
}

.profile-dropdown-menu.show { display: flex; }

.profile-dropdown-menu a, .profile-dropdown-menu button {
  color: #d1d4dc;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.profile-dropdown-menu a:hover, .profile-dropdown-menu button:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 5px 0;
}

/* 4. HERO BANNER - FIXED VIEW ALIGNMENT FOR BETTER DESKTOP COHERENCE */
.hero-banner {
    position: relative;
    width: 100vw;
    height: 85vh; 
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
    transition: background-image 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13,14,18,0.95) 25%, rgba(13,14,18,0.3) 70%, rgba(13,14,18,0) 100%), 
                linear-gradient(to bottom, transparent 40%, rgba(13,14,18,1) 100%);
    z-index: 2;
}

.hero-content { 
    position: relative;
    max-width: 650px; 
    margin-top: 40px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.hero-title { 
    font-size: 48px; 
    font-weight: 700; 
    line-height: 1.15; 
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.hero-meta { 
    display: flex; 
    gap: 15px; 
    font-size: 14px; 
    color: #d1d5db; 
    margin-bottom: 18px; 
    align-items: center; 
}

.badge { 
    background: rgba(255, 255, 255, 0.18); 
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 8px; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: 500;
}

.rating { color: #ffb400; font-weight: 600; }

.hero-description { 
    font-size: 16px; 
    color: #cbcdd6; 
    line-height: 1.6; 
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn { 
    padding: 12px 28px; 
    border-radius: 6px; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    border: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.2s ease-in-out; 
    justify-content: center;
}

.btn-primary { 
    background-color: var(--accent-color); 
    color: white; 
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.btn-mylist {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-mylist:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Dot Indicators */
.hero-dots {
    position: absolute;
    bottom: 25px;
    right: 6%;
    display: flex;
    gap: 8px;
    z-index: 20;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.active {
    background: var(--accent-color);
}

/* 5. MOVIE ROW DISPLAY SYSTEM */
.main-container { padding: 10px 0 40px 0; margin-top: -30px; position: relative; z-index: 10; }
.movie-row { padding: 0 4%; margin-bottom: 35px; position: relative; }
.row-title { font-size: 20px; font-weight: 600; margin-bottom: 15px; color: #fff; border-left: 4px solid var(--accent-color); padding-left: 10px; display: flex; align-items: center; }

.explore-all {
    margin-left: 15px;
    font-size: 12px;
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 500;
}

.card-container { 
    display: flex; 
    gap: 18px; 
    overflow-x: auto; 
    padding: 5px 0 15px 0; 
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.card-container::-webkit-scrollbar { height: 6px; }
.card-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }

.card-portrait { 
    min-width: 200px; 
    max-width: 200px; 
    height: 300px; 
    background-color: var(--card-bg); 
    border-radius: 8px; 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    transition: transform 0.3s; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
}
.card-portrait:hover { transform: scale(1.05); }

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.card-img { width: 100%; height: 100%; object-fit: fill; }

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.card-placeholder span {
    font-size: 13px;
    font-weight: 600;
    color: #cbcdd6;
    display: block;
    margin-top: 5px;
}
.card-placeholder svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.card-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px;
    background: linear-gradient(to top, rgba(13,14,18,1) 0%, rgba(13,14,18,0.85) 60%, rgba(13,14,18,0) 100%);
    z-index: 4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.card-portrait:hover .card-info-overlay {
    opacity: 1;
    transform: translateY(0);
}
.card-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* Watch progress overlay */
.card-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #555;
    z-index: 5;
}
.card-progress-fill {
    height: 100%;
    background: var(--accent-color);
}

.plan-badge-free {
    background-color: #2e7d32;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}
.plan-badge-basic {
    background-color: #f57f17;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}
.plan-badge-premium {
    background-color: #c62828;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.card-info-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.btn-play-sm, .btn-list-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s, transform 0.2s;
}
.btn-play-sm:hover, .btn-list-sm:hover {
    transform: scale(1.1);
}
.btn-list-sm {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-list-sm:hover {
    background: rgba(255,255,255,0.3);
}

.genre-pill {
    font-size: 9px;
    padding: 2px 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Scroll Arrow controls */
.scroll-arrow {
    position: absolute;
    top: 40px;
    bottom: 15px;
    width: 4%;
    background: rgba(13,14,18,0.5);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-arrow.left { left: 0; }
.scroll-arrow.right { right: 0; }
.movie-row:hover .scroll-arrow { opacity: 1; }
.scroll-arrow:hover { background: rgba(13,14,18,0.8); }

/* 6. AUTHENTICATION PORTAL (LOGIN/SIGNUP MODAL) */
.ott-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 420px;
    background-color: var(--modal-bg);
    border-radius: 12px;
    z-index: 2050;
    display: none;
    padding: 30px 25px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-tab-header { display: flex; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.auth-tab-btn { flex: 1; padding: 12px; background: transparent; border: none; color: var(--text-muted); font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; }
.auth-tab-btn.active { color: #fff; border-bottom: 3px solid var(--accent-color); }
.form-container-block { display: none; }
.form-container-block.active { display: block; }

.auth-input-group { position: relative; margin-bottom: 18px; }
.auth-input-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.auth-input-wrapper { position: relative; display: flex; align-items: center; }
.auth-input-wrapper i { position: absolute; left: 14px; color: var(--text-muted); font-size: 14px; }
.auth-input-field { width: 100%; background-color: var(--input-bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 11px 15px 11px 40px; color: #fff; font-size: 13px; outline: none; }
.auth-input-field:focus { border-color: rgba(255,255,255,0.3); }

/* ALERTS & TOASTS */
.alert-ui {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    width: 100%;
}
.alert-ui-success {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #4caf50;
}
.alert-ui-danger {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}
.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 0.3s ease forwards;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* SEARCH DROPDOWN RESULTS */
.search-dropdown-results {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 840px;
  background-color: var(--modal-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1010;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.search-dropdown-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  gap: 15px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background-color 0.2s ease;
  cursor: pointer;
  align-items: center;
}

.search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.search-result-thumb {
  width: 80px;
  aspect-ratio: 16/9;
  border-radius: 3px;
  object-fit: cover;
  background-color: var(--card-bg);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.search-result-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* 7. BRAND FOOTER SECTION */
footer { 
    background-color: #08090c; 
    padding: 60px 4% 30px 4%; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    width: 100vw;
}

.footer-socials { display: flex; gap: 20px; margin-bottom: 30px; }
.footer-socials a { color: var(--text-muted); font-size: 20px; transition: color 0.3s; text-decoration: none; }
.footer-socials a:hover { color: var(--accent-color); }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }

.contact-info .contact-item { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.contact-info i { color: var(--accent-color); font-size: 14px; margin-top: 4px; }
.contact-info p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.contact-info strong { color: #fff; }
.contact-info a { color: var(--text-muted); text-decoration: none; }

.footer-bottom { 
    padding-top: 25px; 
    border-top: 1px solid rgba(255, 255, 255, 0.04); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-copyright { color: var(--text-muted); font-size: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; }

/* 8. YOUTUBE VIDEO PLAYER WRAPPER */
.yt-player-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}
.yt-player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   9. CRITICAL BREAKPOINTS & MOBILE FIXES
   ========================================================================== */
@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle-btn { display: block; }
    .hero-title { font-size: 36px; }
    .hero-banner { padding: 0 4%; }
}

@media (max-width: 600px) {
    header { padding: 12px 4%; background: #0d0e12; }
    .logo { font-size: 20px; }
    
    .search-container { display: none; }
    .search-icon-btn { display: block; }
    
    .login-trigger-btn { padding: 6px 14px; font-size: 12px; }

    .hero-banner { height: 62vh; align-items: flex-end; padding-bottom: 35px; }
    .hero-title { font-size: 26px; margin-bottom: 8px; }
    .hero-description { font-size: 13px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; }
    .btn { padding: 10px 20px; font-size: 13px; width: 100%; }

    .row-title { font-size: 17px; margin-bottom: 10px; }
    .card-portrait { min-width: 160px; max-width: 160px; height: 240px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ott-modal { padding: 25px 18px; width: 94%; }
}

/* ==========================================================================
   10. DETAILS / SHOW VIEW CUSTOM PREMIUM STYLES
   ========================================================================== */
.detail-hero {
    position: relative;
    width: 100vw;
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-end;
    padding: 100px 4% 40px 4%;
    margin-top: 0;
}
.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13,14,18,0.95) 35%, rgba(13,14,18,0.5) 70%, rgba(13,14,18,0.2) 100%),
                linear-gradient(to bottom, transparent 30%, rgba(13,14,18,1) 100%);
    z-index: 1;
}
.detail-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: flex-end;
    width: 100%;
}
.detail-poster {
    min-width: 230px;
    max-width: 230px;
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.08);
}
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.detail-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.detail-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.tags-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tag-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
}
.btn-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.btn-netflix {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease-in-out;
    justify-content: center;
}
.btn-netflix.primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
}
.btn-netflix.primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}
.btn-netflix.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.btn-netflix.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.row-container {
    padding: 40px 4%;
}
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.cast-member {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.cast-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.cast-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.cast-character {
    font-size: 12px;
    color: var(--text-muted);
}

.series-section {
    padding: 40px 4%;
}
.season-select-wrapper {
    position: relative;
}
.season-select {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 32px 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.season-select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-muted);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.episode-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.episode-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}
.episode-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}
.episode-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.episode-card:hover .episode-thumb {
    transform: scale(1.05);
}
.episode-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.episode-card:hover .episode-play-overlay {
    opacity: 1;
}
.episode-play-overlay i {
    font-size: 44px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.episode-body {
    padding: 15px;
}
.episode-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.episode-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .detail-hero {
        min-height: auto;
        padding-top: 100px;
    }
    .detail-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .detail-poster {
        min-width: 160px;
        max-width: 160px;
        height: 240px;
    }
    .detail-title {
        font-size: 30px;
    }
    .tags-row, .btn-row {
        justify-content: center;
    }
}

/* ==========================================================================
   11. SEARCH & FILTER VIEW CUSTOM PREMIUM STYLES
   ========================================================================== */
.search-page {
    padding: 100px 4% 40px 4%;
}
.search-header-row {
    margin-bottom: 25px;
}
.search-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.search-layout {
    display: flex;
    gap: 30px;
}
.filter-sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}
.filter-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.filter-select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}
.form-input-netflix {
    background: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    outline: none;
    width: 100%;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 20px;
}
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .search-layout {
        flex-direction: column;
    }
    .filter-sidebar {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   12. WATCHLIST VIEW CUSTOM PREMIUM STYLES
   ========================================================================== */
.watchlist-page {
    padding: 100px 4% 60px 4%;
    min-height: 60vh;
}
.watchlist-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}
.main-container.no-hero {
    margin-top: 100px;
    padding-top: 20px;
    min-height: 60vh;
}

/* ==========================================================================
   13. ACCOUNT SETTINGS & BILLING VIEW PREMIUM STYLES
   ========================================================================== */
.account-page {
    padding: 100px 4% 60px 4%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}
.account-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}
.account-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.info-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px 30px;
    font-size: 14px;
}
.info-label {
    color: var(--text-muted);
    font-weight: 500;
}
.plans-list-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    -webkit-overflow-scrolling: touch;
}
.plans-list-container::-webkit-scrollbar {
    height: 6px;
}
.plans-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.plans-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.plans-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
.plan-card-upgrade {
    background: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    flex: 1 1 0;
    min-width: 250px;
}

@media (max-width: 768px) {
    .plans-list-container {
        flex-direction: column;
        overflow-x: visible;
        padding: 10px 0;
        gap: 25px;
    }
    .plan-card-upgrade {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}
.plan-card-upgrade:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}
.plan-card-upgrade.current {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.02);
}
.plan-card-upgrade.current::before {
    content: 'CURRENT PLAN';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.plan-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.plan-card-price {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.plan-card-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}
.plan-card-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}
.plan-card-features li {
    font-size: 13px;
    color: #cbcdd6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-card-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .account-page {
        padding: 80px 15px 40px 15px;
    }
    .account-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    .account-section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .info-label {
        font-size: 12px;
        margin-top: 8px;
    }
    .info-label:first-child {
        margin-top: 0;
    }
    .plans-list-container {
        gap: 15px;
        padding: 10px 0 15px 0;
        margin-left: -5px;
        margin-right: -5px;
    }
    .plan-card-upgrade {
        padding: 15px;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .account-section form {
        width: 100% !important;
        max-width: 100% !important;
    }
    .account-section form button[type="submit"] {
        width: 100%;
        justify-content: center;
        align-self: stretch;
    }
}
