/* =========================
   CSS CUSTOM PROPERTIES
   ========================= */
:root {
    /* Color Palette - Your Original Colors Preserved */
    --clr-red: #e50914;
    --clr-red-dark: #b02525;
    --clr-red-light: #f52f2f;
    --clr-blue: #1cb7ff;
    --clr-bg-primary: #0b0b0b;
    --clr-bg-secondary: #0a0a0a;
    --clr-bg-card: #141414;
    --clr-bg-card-alt: #1a1a1a;
    --clr-bg-card-hover: #1f2937;
    --clr-text-primary: #ffffff;
    --clr-text-secondary: #e0e0e0;
    --clr-text-muted: #b0b0b0;
    --clr-text-dim: #9ca3af;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(16px);
    
    /* Gradients */
    --gradient-primary: linear-gradient(91deg, var(--clr-blue) 1.22%, var(--clr-red-light) 50.24%);
    --gradient-hover: linear-gradient(91deg, var(--clr-blue) 1.22%, var(--clr-red) 50.24%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 4px 20px rgba(229, 9, 20, 0.3);
    --shadow-red-hover: 0 8px 30px rgba(229, 9, 20, 0.5);
    --shadow-blue: 0 4px 12px rgba(28, 183, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --fs-xs: clamp(0.65rem, 1.5vw, 0.75rem);
    --fs-sm: clamp(0.75rem, 2vw, 0.875rem);
    --fs-base: clamp(0.875rem, 2.5vw, 1rem);
    --fs-md: clamp(1rem, 3vw, 1.125rem);
    --fs-lg: clamp(1.25rem, 4vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 5vw, 2rem);
    --fs-2xl: clamp(2rem, 6vw, 2.5rem);
    --fs-hero: clamp(2.5rem, 8vw, 4rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --radius-circle: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--clr-bg-primary);
    color: var(--clr-text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   MODERN SCROLLBAR
   ========================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg-card-alt);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--clr-red), var(--clr-red-dark));
    border-radius: 4px;
    border: 2px solid var(--clr-bg-card-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--clr-red-light), var(--clr-red));
}

/* =========================
   SELECTION
   ========================= */
::selection {
    background: rgba(229, 9, 20, 0.3);
    color: var(--clr-text-primary);
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    word-break: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   MODERN HEADER
   ========================= */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    gap: var(--space-lg);
    flex-wrap: wrap;
    transition: all var(--transition-base);
}

#main-header.scrolled {
    background: rgba(11, 11, 11, 0.95);
    box-shadow: var(--shadow-lg);
}
.main-2-header {
    display: contents;
}
.logo {
    font-size: var(--fs-lg);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

h2#mosttrend {
    font-size: var(--fs-xl);
    font-weight: 700;
    padding-left: var(--space-lg);
    position: relative;
}

h2#mosttrend::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* =========================
   MODERN NAVIGATION
   ========================= */
.desktop-nav {
    display: flex;
    gap: 6px;
    background: var(--glass-bg);
    padding: 4px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.nav-link {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--clr-text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-full);
    z-index: -1;
}

.nav-link:hover {
    color: var(--clr-text-primary);
    background: var(--glass-bg-strong);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--clr-text-primary);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-red);
    font-weight: 600;
}

.nav-link.active::before {
    opacity: 1;
}

/* =========================
   MODERN HAMBURGER MENU
   ========================= */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: calc(var(--z-modal) + 1);
    padding: 4px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--clr-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* =========================
   MODERN MOBILE NAV
   ========================= */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--gradient-dark);
    z-index: var(--z-modal);
    transition: left var(--transition-base);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--space-lg);
}

.mobile-nav-logo {
    font-size: var(--fs-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-nav-close {
    font-size: var(--fs-2xl);
    color: var(--clr-text-primary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    transition: all var(--transition-base);
}

.mobile-nav-close:hover {
    color: var(--clr-red);
    background: rgba(229, 9, 20, 0.1);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 var(--space-lg);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--clr-text-primary);
    font-size: var(--fs-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
}

.mobile-nav-link span {
    font-size: var(--fs-lg);
}

.mobile-nav-link:hover {
    background: rgba(229, 9, 20, 0.15);
    transform: translateX(6px);
    border-color: var(--clr-red);
}

.mobile-nav-link.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-red);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: calc(var(--z-modal) - 1);
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =========================
   MODERN SEARCH
   ========================= */
#search-container {
    position: relative;
    width: 320px;
    transition: width var(--transition-base);
}

#search {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--clr-text-primary);
    outline: none;
    transition: all var(--transition-base);
    font-size: var(--fs-sm);
    backdrop-filter: blur(8px);
}

#search::placeholder {
    color: var(--clr-text-muted);
}

#search:focus {
    border-color: var(--clr-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2), var(--shadow-red);
    background: rgba(255, 255, 255, 0.12);
    width: 100%;
}

/* =========================
   MODERN SUGGESTIONS DROPDOWN
   ========================= */
#suggestions {
    position: absolute;
    top: calc(100% + 8px);
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    animation: fadeInDown 0.2s ease;
}

#suggestions::-webkit-scrollbar {
    width: 4px;
}

#suggestions::-webkit-scrollbar-thumb {
    background: var(--clr-red);
    border-radius: 2px;
}

.suggestion {
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion:last-child {
    border-bottom: none;
}

.suggestion:hover {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.15), rgba(28, 183, 255, 0.1));
}

.suggestion-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    color: var(--clr-text-primary);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: 2px;
}

.suggestion-type {
    color: var(--clr-red);
    font-size: var(--fs-xs);
    font-weight: 600;
}

/* =========================
   MODERN BANNER
   ========================= */
.banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    margin-top: -1px;
}

.swiper {
    height: 100%;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
    z-index: 2;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 60%
    );
    z-index: 2;
}

.banner-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 10;
    max-width: 600px;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-content h1 {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--space-md);
}

.banner-content p {
    font-size: var(--fs-md);
    color: var(--clr-text-secondary);
    line-height: 1.6;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================
   MODERN MOVIE SECTIONS
   ========================= */
.movie-section {
    margin: var(--space-2xl) 0;
    padding: 0 var(--space-lg);
    position: relative;
}

.movie-section h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.movie-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* =========================
   MODERN SLIDER
   ========================= */
.movie-slider {
    display: flex;
    overflow-x: auto;
    gap: var(--space-md);
    scroll-behavior: smooth;
    padding: var(--space-sm) 0 var(--space-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.movie-slider::-webkit-scrollbar {
    display: none;
}

/* =========================
   MODERN CARDS
   ========================= */
.card {
    min-width: 180px;
    max-width: 180px;
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-base);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: start;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-red);
    border-color: rgba(229, 9, 20, 0.3);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover img {
    transform: scale(1.08);
}

.card .info {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    background: linear-gradient(to top, var(--clr-bg-card), transparent);
}

.card h3 {
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.card .corner {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    font-size: var(--fs-xs);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   MODERN SLIDER BUTTONS
   ========================= */
.movie-section .left,
.movie-section .right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--clr-text-primary);
    font-size: var(--fs-lg);
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: var(--radius-circle);
    transition: all var(--transition-base);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-section:hover .left,
.movie-section:hover .right {
    opacity: 1;
}

.movie-section .left {
    left: var(--space-md);
}

.movie-section .right {
    right: var(--space-md);
}

.movie-section button:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    box-shadow: var(--shadow-red);
    transform: translateY(-50%) scale(1.1);
}

/* =========================
   MODERN SEARCH RESULTS GRID
   ========================= */
#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg);
    animation: fadeIn 0.5s ease;
}

/* =========================
   MODERN POPUP/MODAL
   ========================= */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: none;
    z-index: var(--z-modal);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--clr-bg-secondary);
    position: relative;
    min-height: 100vh;
}

#popup-close {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    color: var(--clr-text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: calc(var(--z-modal) + 1);
}

#popup-close:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-red);
}

/* =========================
   MODERN HERO SECTION (POPUP)
   ========================= */
.popup-hero {
    position: relative;
    min-height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 4rem;
    overflow: hidden;
}

.popup-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.8) 60%,
        rgba(0, 0, 0, 0.98) 100%
    );
    z-index: 1;
}

.popup-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

#trailer-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 800;
    margin-bottom: var(--space-md);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.hero-meta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.hero-meta span {
    background: rgba(229, 9, 20, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.rating-badge {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-size: var(--fs-base);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    color: var(--clr-text-secondary);
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.watch-now-btn {
    background: var(--gradient-primary);
    color: var(--clr-text-primary);
    font-weight: 700;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--fs-base);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.watch-now-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-red-hover);
}

.watch-now-btn:active {
    transform: translateY(0) scale(0.98);
}

.trailer-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: var(--clr-text-primary);
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--fs-base);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trailer-btn:hover {
    background: var(--clr-text-primary);
    color: var(--clr-bg-primary);
    border-color: var(--clr-text-primary);
    transform: translateY(-3px);
}

/* =========================
   MODERN DETAILS SECTION
   ========================= */
.popup-details {
    padding: var(--space-2xl) 5%;
    background: var(--clr-bg-secondary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.detail-card {
    background: var(--clr-bg-card-alt);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--clr-red);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-red);
    border-color: rgba(229, 9, 20, 0.3);
}

.detail-card h3 {
    color: var(--clr-red);
    margin-bottom: var(--space-md);
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.detail-card p {
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin: var(--space-sm) 0;
}

.detail-card strong {
    color: var(--clr-text-primary);
    font-weight: 600;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.genre-tag {
    background: rgba(229, 9, 20, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    color: var(--clr-red);
    font-weight: 500;
    border: 1px solid rgba(229, 9, 20, 0.2);
    transition: all var(--transition-fast);
}

.genre-tag:hover {
    background: var(--clr-red);
    color: var(--clr-text-primary);
}

/* =========================
   MODERN CAST SECTION
   ========================= */
.cast-section {
    margin: var(--space-2xl) 0;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.cast-card {
    background: var(--clr-bg-card-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cast-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-red);
    border-color: var(--clr-red);
    background: var(--clr-bg-card-hover);
}

.cast-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-circle);
    overflow: hidden;
    border: 3px solid var(--clr-red);
    transition: all var(--transition-base);
}

.cast-card:hover .cast-avatar {
    border-color: var(--clr-red-light);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.cast-card:hover .cast-avatar img {
    transform: scale(1.1);
}

.cast-name {
    color: var(--clr-text-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin: var(--space-sm) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    color: var(--clr-red);
    font-size: var(--fs-xs);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   MODERN MORE LIKE THIS
   ========================= */
.more-like-section {
    margin-top: var(--space-3xl);
}

.section-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.more-like-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.more-like-card {
    background: var(--clr-bg-card-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.more-like-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-red);
    border-color: rgba(229, 9, 20, 0.3);
}

.more-like-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.more-like-card:hover img {
    transform: scale(1.06);
}

.more-like-info {
    padding: var(--space-md);
}

.more-like-info h4 {
    color: var(--clr-text-primary);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.more-like-info p {
    color: var(--clr-red);
    font-size: var(--fs-xs);
    font-weight: 500;
}

/* =========================
   MODERN LOAD MORE BUTTON
   ========================= */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: 200px;
    margin: var(--space-2xl) auto 0;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--clr-text-primary);
    font-weight: 700;
    font-size: var(--fs-base);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
}

.load-more-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-red-hover);
    gap: 14px;
}

.load-more-btn:active {
    transform: translateY(0) scale(0.98);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================
   MODERN FILTER SYSTEM
   ========================= */

.filters-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

/* Filter Button */
.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--clr-text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--glass-bg-strong);
    color: var(--clr-text-primary);
    transform: translateY(-2px);
    border-color: var(--clr-red);
}

.filter-btn svg {
    transition: transform var(--transition-base);
}

.filter-btn:hover svg {
    transform: rotate(180deg);
}

/* Filter Dropdown */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 300px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 0.2s ease;
}

/* Filter Groups */
.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group label {
    display: block;
    color: var(--clr-text-dim);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    color: var(--clr-text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--fs-sm);
    transition: all var(--transition-base);
}

.filter-group select:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--clr-blue);
    box-shadow: 0 0 0 3px rgba(28, 183, 255, 0.15);
}

.filter-group select option {
    background: #1a1a2e;
    color: var(--clr-text-primary);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.apply-btn, .reset-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.apply-btn {
    background: var(--gradient-primary);
    color: var(--clr-text-primary);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.reset-btn {
    background: var(--glass-bg);
    color: var(--clr-text-secondary);
    border: 1px solid var(--glass-border);
}

.reset-btn:hover {
    background: var(--glass-bg-strong);
    transform: translateY(-2px);
}

/* =========================
   FILTER RESPONSIVE FIXES
   ========================= */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .filter-dropdown {
        min-width: 280px;
        padding: var(--space-lg);
    }
    
    .filter-group select {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .apply-btn, .reset-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Mobile Landscape & Portrait (up to 768px) */
@media (max-width: 768px) {
    .filters-container {
        position: relative;
        margin-left: 0;
        width: 100%;
        order: 3;
        margin-top: var(--space-sm);
        z-index: var(--z-sticky);
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* FIXED: Dropdown now appears BELOW the button, not too high */
    .filter-dropdown {
        position: absolute;
        top: calc(100% + 10px);  /* Just below button */
        left: 0;                  /* Align to left on mobile */
        right: auto;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        max-height: 60vh;        /* Limit height */
        overflow-y: auto;
        border-radius: var(--radius-lg);
        padding: var(--space-lg);
    }
    
    .filter-group {
        margin-bottom: var(--space-md);
    }
    
    .filter-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .filter-group select {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Mobile Portrait (up to 480px) */
@media (max-width: 480px) {
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .filter-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .filter-dropdown {
        max-height: 55vh;
        padding: var(--space-md);
        top: calc(100% + 8px);
    }
    
    .filter-group {
        margin-bottom: var(--space-sm);
    }
    
    .filter-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .filter-actions {
        gap: var(--space-sm);
        margin-top: var(--space-md);
        padding-top: var(--space-md);
    }
    
    .apply-btn, .reset-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .filter-dropdown {
        max-height: 50vh;
        padding: var(--space-sm);
    }
    
    .filter-group label {
        font-size: 10px;
    }
    
    .filter-group select {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .apply-btn, .reset-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Animation for dropdown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dropdown {
    animation: fadeInDown 0.2s ease;
}

/* =========================
   MODERN TRENDING GRID
   ========================= */
#TrendingMovies {
    display: grid;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(12px, 3vw, 24px);
    width: 100%;
    margin: 0 auto;
    max-width: 1800px;
}

#TrendingMovies > div {
    background: var(--clr-bg-card-hover);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

#TrendingMovies > div:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-red);
    border-color: rgba(229, 9, 20, 0.3);
}

#TrendingMovies img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
    border-radius: var(--radius-sm);
}

#TrendingMovies > div:hover img {
    transform: scale(1.06);
}

#TrendingMovies .relative {
    overflow: hidden;
    border-radius: var(--radius-sm);
}

/* Responsive Grid Columns */
@media (max-width: 480px) {
    #TrendingMovies {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    #TrendingMovies {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #TrendingMovies {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #TrendingMovies {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    #TrendingMovies {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1281px) and (max-width: 1536px) {
    #TrendingMovies {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1537px) {
    #TrendingMovies {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =========================
   MODERN LOADERS
   ========================= */
.loader {
    --d: 22px;
    width: 4px;
    height: 4px;
    border-radius: var(--radius-circle);
    color: var(--clr-red);
    box-shadow:
        calc(1 * var(--d)) calc(0 * var(--d)) 0 0,
        calc(0.707 * var(--d)) calc(0.707 * var(--d)) 0 1px,
        calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,
        calc(-0.707 * var(--d)) calc(0.707 * var(--d)) 0 3px,
        calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,
        calc(-0.707 * var(--d)) calc(-0.707 * var(--d)) 0 5px,
        calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;
    animation: spinLoader 1s infinite steps(8);
    position: absolute;
    left: 50%;
    top: 80%;
    z-index: 99;
}

/* =========================
   POPUP LOADER
   ========================= */
.Popuploader {
    width: 60px;
    height: 60px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: calc(var(--z-modal) + 10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Popuploader::before {
    content: '';
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(229, 9, 20, 0.2);
    border-top-color: var(--clr-red);
    animation: popupSpin 0.8s linear infinite;
    position: absolute;
}

.Popuploader::after {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(28, 183, 255, 0.2);
    border-bottom-color: var(--clr-blue);
    animation: popupSpin 1.2s linear infinite reverse;
    position: absolute;
}

@keyframes popupSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Popup loader background overlay */
.popup-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) + 5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Sliderloader {
    width: 50px;
    aspect-ratio: 1;
    --_c: no-repeat radial-gradient(farthest-side, var(--clr-red) 92%, #0000);
    background:
        var(--_c) top,
        var(--_c) left,
        var(--_c) right,
        var(--_c) bottom;
    background-size: 12px 12px;
    animation: rotateLoader 1s infinite;
}

/* =========================
   MODERN SKELETON LOADING
   ========================= */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--clr-bg-card) 25%,
        var(--clr-bg-card-hover) 50%,
        var(--clr-bg-card) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    height: 300px;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
    width: 60%;
}

/* =========================
   MODERN FOOTER
   ========================= */
.site-footer {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--clr-bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.footer-section p {
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spinLoader {
    100% { transform: rotate(1turn); }
}

@keyframes rotateLoader {
    to { transform: rotate(1turn); }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animations for mobile nav */
.mobile-nav-link {
    animation: slideInFromLeft 0.3s ease forwards;
    opacity: 0;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }

/* =========================
   SCROLL TO TOP BUTTON
   ========================= */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    background: var(--clr-red);
    color: var(--clr-text-primary);
    border: none;
    cursor: pointer;
    font-size: var(--fs-lg);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: var(--clr-red-light);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-red);
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 75%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .more-like-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    #main-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .logo {
        font-size: var(--fs-md);
    }
    
    #search-container {
        width: 100%;
        order: 3;
    }
    
    .banner {
        height: 50vh;
        min-height: 350px;
    }
    
    .banner-content h1 {
        font-size: var(--fs-2xl);
    }
    
    .popup-hero {
        min-height: 60vh;
        padding: 0 5% 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: var(--fs-2xl);
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    
    .cast-avatar {
        width: 70px;
        height: 70px;
    }
    
    .movie-section .left,
    .movie-section .right {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: var(--fs-sm);
    }
}

@media (max-width: 480px) {
    .card {
        min-width: 140px;
        max-width: 140px;
    }
    
    .card img {
        height: 200px;
    }
    
    .hero-title {
        font-size: var(--fs-xl);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .watch-now-btn,
    .trailer-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .more-like-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cast-avatar {
        width: 60px;
        height: 60px;
    }
    
    #popup-close {
        width: 40px;
        height: 40px;
        top: var(--space-sm);
        right: var(--space-sm);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        max-width: 80%;
    }
}

@media (min-width: 1400px) {
    .popup-content {
        max-width: 1600px;
    }
    
    .hero-description {
        font-size: var(--fs-md);
        max-width: 700px;
    }
}

/* =========================
   TOUCH DEVICE OPTIMIZATIONS
   ========================= */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .more-like-card:hover,
    .cast-card:hover,
    #TrendingMovies > div:hover {
        transform: none;
    }
    
    .card:hover img,
    .more-like-card:hover img,
    #TrendingMovies > div:hover img {
        transform: none;
    }
    
    .watch-now-btn:hover,
    .trailer-btn:hover,
    .load-more-btn:hover {
        transform: none;
    }
    
    button:active {
        transform: scale(0.96) !important;
    }
}

/* =========================
   REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* =========================
   LANDSCAPE MOBILE
   ========================= */
@media (max-width: 768px) and (orientation: landscape) {
    .banner {
        height: 80vh;
    }
    
    #TrendingMovies {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .popup-hero {
        min-height: 100vh;
    }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
    .popup,
    .hamburger-menu,
    .mobile-nav,
    .desktop-nav,
    .filter-btn,
    .filter-dropdown,
    .scroll-to-top,
    .load-more-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    #TrendingMovies {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    #TrendingMovies button {
        display: none;
    }
    
    #TrendingMovies > div {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =========================
   UTILITY CLASSES
   ========================= */
.bg-primary { background-color: var(--clr-red); }
.bg-primary-dull { background-color: var(--clr-red-dark); }
.text-primary { color: var(--clr-red); }
.fill-primary { fill: var(--clr-red); }

.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(12px, 3vw, 24px);
}

.no-results,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--clr-red);
    font-size: var(--fs-base);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    margin: var(--space-lg);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.error-message {
    color: #ff4444;
}

/* Series Grid */
.series-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}


/* =========================
   RESPONSIVE TYPOGRAPHY
   ========================= */
.movie-title {
    font-size: clamp(12px, 3.5vw, 16px);
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-genre {
    font-size: clamp(10px, 3vw, 13px);
    color: var(--clr-text-dim);
    line-height: 1.4;
}

.watch-btn {
    transition: all var(--transition-fast);
    cursor: pointer;
}

.watch-btn:hover {
    background-color: var(--clr-red-dark);
    transform: scale(1.03);
}

/* Touch target improvements */
@media (max-width: 768px) {
    button,
    .nav-link,
    .mobile-nav-link {
        min-height: 44px;
    }
}