/* Cast section - neat grid */
.cast-neat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
}

.cast-member-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.cast-member-card:hover {
    transform: translateY(-4px);
}

.cast-neat-grid .cast-member-card:nth-child(n+9) {
    display: none;
}

.cast-avatar-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #222;
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cast-initials {
    font-size: 2rem;
    font-weight: 800;
    color: #444;
}

.cast-info-neat .actor-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.cast-info-neat .character-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .cast-neat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cast-neat-grid .cast-member-card:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 640px) {
    .cast-neat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .cast-neat-grid .cast-member-card:nth-child(n+5) {
        display: none;
    }
}
:root {
    --bg-body: #000000;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-primary: #e50914;
    --accent-hover: #b20710;
    --border: rgba(255, 255, 255, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --nav-height: 80px;
}

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

/* Prevent white overscroll on iOS */
html {
    background-color: var(--bg-body);
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    scroll-behavior: auto;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; }

/* ===== UNIFIED TOP NAVIGATION ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    padding: 0 2rem;
    gap: 2rem;
}

.nav-logo a {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
}

.logo-text {
    display: inline-block;
    min-width: 50px;
    letter-spacing: 2px;
}

/* Centered Search Bar */
.nav-search {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.search-form {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.search-form i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-form input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: none;
}

.search-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
}

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

/* Desktop Navigation Links */
.nav-links.desktop {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: nowrap;
    position: relative;
}

.nav-links.desktop > li {
    position: relative;
}

.nav-links.desktop a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-links.desktop a:hover {
    color: var(--accent-primary);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: none;
    z-index: 1001;
    padding: 0.5rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu li {
    padding: 0;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: none;
    white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:hover {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-primary);
    padding-left: 1.5rem;
}

.nav-dropdown .dropdown-menu a i {
    font-size: 0.9rem;
    width: 14px;
    text-align: center;
}

/* Mobile Menu Toggle */
.nav-toggle.mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: var(--text-primary);
    display: block;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent-primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: var(--nav-height);
    padding: 0;
    min-height: calc(100vh - var(--nav-height));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem auto;
    border: 1px solid var(--border);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alert-success { 
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.alert-error { 
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

/* ===== MOVIE GRID ===== */
.section-header {
    margin: 3rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.movie-grid {
    display: grid;
    padding: 0 2rem;
    margin-bottom: 3rem;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Mobile Grid (3-column iBomma style) */

.movie-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: none;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
}

.poster {
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

/* Hide nav search on home page for clean Google-style landing */
.hide-on-home {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.poster-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 3rem;
}

.card-info {
    padding: 1rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
}

/* ===== FILTER PILLS ===== */
.filter-pills {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 0 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    transition: none;
}

.filter-pill:hover,
.filter-pill.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(229, 9, 20, 0.1);
}

/* ===== FORMS ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 3rem auto;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== SMART FILTERS ===== */
.filters-page {
    padding: 3rem 0 2rem;
}

.filters-title {
    font-size: 2.4rem;
    margin: 0 0 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.5px;
}

.filters-title i {
    color: var(--accent-primary);
    font-size: 1.8rem;
}

/* ===== OTT WATCH BUTTONS ===== */
.ott-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ott-card {
    --ott-color: var(--accent-primary);
    padding: 1rem 1.1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--ott-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.ott-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.ott-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ott-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
}

.ott-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: var(--ott-color);
}

.ott-name {
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
}

.ott-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: capitalize;
    font-weight: 500;
}

.ott-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: var(--ott-color);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ott-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
    filter: brightness(1.05);
}

.ott-button-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ott-badge {
    padding: 0.18rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ott-badge-free {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.65);
}

.ott-badge-type {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== WHERE TO WATCH BUTTONS ===== */
.where-watch {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watch-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
}

.ott-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #2b2b2b;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ott-btn:hover {
    transform: scale(1.04);
    filter: brightness(0.98);
}

.ott-btn-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
}

.ott-btn-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
}

.ott-badge-pill {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.ott-netflix { background: #e50914; }
.ott-amazon-prime-video,
.ott-prime-video,
.ott-amazon-prime { background: #00a8e1; }
.ott-disney-hotstar,
.ott-disney-plus-hotstar,
.ott-disneyplus-hotstar,
.ott-hotstar { background: linear-gradient(90deg, #0f79af, #1f80e0); }
.ott-aha { background: #ff4b2b; }
.ott-zee5 { background: #6f2dbd; }
.ott-sony-liv,
.ott-sonyliv { background: #246bff; }
.ott-jio-cinema,
.ott-jiocinema { background: #1b5cff; }
.ott-sun-nxt,
.ott-sun-nxts { background: #ff6a00; }
.ott-mx-player,
.ott-mxplayer { background: #0096d6; }
.ott-apple-tv,
.ott-apple-tv-plus,
.ott-apple-tvplus { background: #111111; }
.ott-youtube { background: #ff0000; }
.ott-google-play-movies,
.ott-google-play { background: #3ddc84; }
.ott-eros-now,
.ott-erosnow { background: #b31b1b; }
.ott-voot { background: #6d28d9; }
.ott-trailer { background: #2b2b2b; }

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: scale(1.04);
}

.trailer-btn {
    background: #2b2b2b;
    color: #fff;
}

.watchlist-btn {
    background: transparent;
    border: 1px solid #aaa;
    color: #aaa;
}

/* ===== TRAILER MODAL ===== */
.trailer-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.trailer-modal.is-open {
    display: flex;
}

.trailer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.trailer-modal__dialog {
    position: relative;
    width: min(900px, 92vw);
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.trailer-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.trailer-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.trailer-modal__frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.trailer-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ott-unavailable {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.4rem 0 0 0;
    font-style: italic;
}

.ott-netflix { --ott-color: #e50914; }
.ott-amazon-prime-video,
.ott-prime-video,
.ott-amazon-prime { --ott-color: #00a8e1; }
.ott-disney-hotstar,
.ott-disney-plus-hotstar,
.ott-disneyplus-hotstar,
.ott-hotstar { --ott-color: #1a3d8f; }
.ott-aha { --ott-color: #ff4b2b; }
.ott-zee5 { --ott-color: #6f2dbd; }
.ott-sony-liv,
.ott-sonyliv { --ott-color: #246bff; }
.ott-jio-cinema,
.ott-jiocinema { --ott-color: #1b5cff; }
.ott-sun-nxt,
.ott-sun-nxts { --ott-color: #ff6a00; }
.ott-mx-player,
.ott-mxplayer { --ott-color: #0096d6; }
.ott-apple-tv,
.ott-apple-tv-plus,
.ott-apple-tvplus { --ott-color: #111111; }
.ott-youtube { --ott-color: #ff0000; }
.ott-google-play-movies,
.ott-google-play { --ott-color: #3ddc84; }
.ott-eros-now,
.ott-erosnow { --ott-color: #b31b1b; }
.ott-voot { --ott-color: #6d28d9; }

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-primary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */

/* ===== VISIBILITY HELPERS FOR RESPONSIVE LAYOUT ===== */
/* Default to desktop layout - overridden by mobile.css on mobile screens */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Hide bottom navigation on desktop */
.bottom-nav-bar {
    display: none;
}

/* ========== NETFLIX-STYLE HOME PAGE ========== */

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-bg {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-search-form {
    display: flex;
    max-width: 600px;
    margin-bottom: 1.5rem;
    gap: 0;
}

.hero-search-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px 0 0 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
}

.hero-search-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0 6px 6px 0;
    background: var(--accent-primary);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-search-form button:hover {
    background: var(--accent-hover);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-hero-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Row Sections */
.row-section {
    padding: 5rem 0 2rem;
    position: relative;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.row-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.row-see-all {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.row-see-all::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.row-see-all:hover {
    color: var(--accent-primary);
}

.row-see-all:hover::after {
    width: 100%;
}

/* Horizontal Scroll with Carousel Arrows */
.carousel-container {
    position: relative;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 1rem;
}

.carousel-arrow.right {
    right: 1rem;
}

/* Poster Cards */
.poster-card {
    flex: 0 0 auto;
    width: 180px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-card:hover {
    transform: scale(1.07) translateY(-8px);
}

.poster-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-wrapper.image-error {
    background: var(--bg-card);
}

.poster-card:hover .poster-wrapper {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* Platform Badges */
.platform-badges {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 5;
}

.platform-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
}

.platform-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.platform-badge.netflix {
    background: #E50914;
}

.platform-badge.prime {
    background: #00A8E1;
}

.platform-badge.hotstar {
    background: #7B2CBF;
}

.platform-badge.jiocinema {
    background: #0A1428;
}

.platform-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.poster-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-card:hover .poster-wrapper img {
    filter: brightness(0.75);
}

.rating-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffc107;
}

.new-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.upcoming-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.poster-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.poster-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Why Radar Section */
.why-radar {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5), rgba(30, 30, 30, 0.3));
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(25, 25, 25, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(229, 9, 20, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */

/* CTA Button Hover Effects */
.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5) !important;
}

.cta-btn:nth-child(2):hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1) !important;
}
/* ===== OTT-LIKE DISCOVER PAGE ===== */
.discover-page {
    padding: var(--nav-height) 2rem 4rem;
    max-width: 100%;
    background: var(--bg-body);
}

.discover-header {
    margin-bottom: 3rem;
    text-align: center;
}

.discover-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.discover-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Quick Search Bar */
.discover-search-bar {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: sticky;
    top: 70px;
    z-index: 50;
    background: linear-gradient(to bottom, var(--bg-body), rgba(16, 16, 16, 0.95));
    padding: 1rem 0;
}

.search-form-discover {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form-discover i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input-discover {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input-discover:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

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

/* Filter Chips */
.filter-chips-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-chips-scroll {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filters-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.chip-group {
    display: flex;
    gap: 0.8rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-chip-active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
    transform: translateY(-2px);
}

.filter-chip i {
    font-size: 0.85rem;
}

/* Advanced Filters Button */
.sidebar-toggle {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-height: 44px;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Main Layout */
.discover-layout {
    display: flex;
    gap: 2rem;
    position: relative;
}

/* Sidebar - Advanced Filters */
.filters-sidebar {
    width: 240px;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 120px;
    transition: none;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: none;
    padding: 0;
}

.sidebar-close:hover {
    color: var(--accent-primary);
}

.filters-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-section-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-section-sidebar:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-label-sidebar {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input-sidebar {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: none;
    outline: none;
}

.filter-input-sidebar:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.filter-input-sidebar:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.filter-input-sidebar[multiple] {
    min-height: 90px;
}

.filter-input-sidebar option {
    background: var(--bg-body);
    color: var(--text-primary);
}

.checkbox-group {
    gap: 1rem !important;
}

.filter-checkbox-sidebar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: none;
}

.filter-checkbox-sidebar:hover {
    color: var(--accent-primary);
}

.filter-checkbox-sidebar input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-sidebar-apply,
.btn-sidebar-reset {
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-sidebar-apply {
    background: var(--accent-primary);
    color: white;
}

.btn-sidebar-apply:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-sidebar-reset {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-sidebar-reset:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Main Content Area */
.discover-main {
    flex: 1;
    min-width: 0;
}

.results-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.movie-card {
    position: relative;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.movie-card:hover {
    transform: scale(1.05) translateY(-6px);
}

.movie-poster {
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .movie-poster {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.movie-card:hover .movie-poster img {
    filter: brightness(0.8);
}

.movie-poster-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-poster-placeholder i {
    font-size: 2.5rem;
    color: var(--text-secondary);
}

.movie-rating {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    padding: 0.5rem 0.9rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.movie-info {
    margin-top: 1rem;
    flex: 1;
}

.movie-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

.movie-card:hover .movie-title {
    color: var(--accent-primary);
}

.movie-year {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Load More Button */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
}

.btn-load-more:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.4);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

/* No Results */
.no-results {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.btn-reset-filters {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 1.8rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: none;
}

.btn-reset-filters:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Mobile Responsive */

/* ===== OPTIMIZATIONS: Skeleton Loaders, Lazy Loading, Modal ===== */

/* Skeleton Loader Animation */

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

.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

.skeleton-loader .poster-wrapper {
    aspect-ratio: 2/3;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.skeleton-loader .poster-title {
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 8px;
}

/* Lazy Loading Image Fade-In */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Trailer Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
}

/* Trailer Container (16:9 ratio) */
#trailer-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}

#trailer-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Modal Adjustments */

/* Infinite Scroll Sentinel (hidden element) */
#infinite-scroll-sentinel {
    height: 1px;
    width: 100%;
    margin-top: 2rem;
}

/* Performance Optimizations */
.poster-card {
    will-change: transform;
}

.poster-card:hover {
    transform: scale(1.05);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* SKELETON LOADERS */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite;
}

    100% {
        background-position: -200% 0;
    }
}

.skeleton-loader {
    cursor: default !important;
    pointer-events: none;
}

.skeleton-loader:hover {
    transform: none !important;
}

/* LAZY LOADING */
img.lazy {
    opacity: 0.5;
}

img.lazy[src*="placeholder"] {
    background-color: var(--bg-card);
    min-height: 240px;
}

/* IMAGE OPTIMIZATION */
.poster-wrapper img {
    transition: opacity 0.3s ease-in-out;
}

.poster-wrapper img[loading="lazy"] {
    opacity: 0.8;
}

.poster-wrapper img:not([src*="placeholder"]) {
    opacity: 1;
}

/* TRAILER MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.2s ease-in-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background-color: transparent;
    width: 90%;
    max-width: 900px;
    animation: slideUp 0.3s ease-out;
}

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: -40px;
    top: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 2001;
}

.modal-close:hover,
.modal-close:focus {
    transform: scale(1.2);
    color: var(--accent-primary);
}

.modal-body {
    width: 100%;
}

/* OTT BUTTONS OPTIMIZATION */
.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    position: absolute;
    top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-badge:nth-child(1) {
    left: 8px;
}

.platform-badge:nth-child(2) {
    left: 44px;
}

.platform-badge:nth-child(n+3) {
    display: none;
}

.platform-badge.netflix {
    background-color: rgba(229, 9, 20, 0.8);
}

.platform-badge.prime {
    background-color: rgba(0, 102, 204, 0.8);
}

.platform-badge.amazon {
    background-color: rgba(255, 153, 0, 0.8);
}

.platform-badge.hotstar {
    background-color: rgba(0, 98, 214, 0.8);
}

.platform-badge.jiocinema {
    background-color: rgba(52, 94, 234, 0.8);
}

.platform-badge.zee5 {
    background-color: rgba(187, 0, 102, 0.8);
}

/* POSTER CARD OPTIMIZATIONS */
.poster-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.poster-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
}

.poster-title {
    font-size: 14px;
    margin-top: 12px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    height: 36px;
}

.poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 255, 255, 0.05));
    color: var(--text-secondary);
}

.poster-fallback i {
    font-size: 48px;
    opacity: 0.3;
}

/* IMAGE ERROR STATE */
.image-error .poster-fallback {
    display: flex !important;
}

/* INFINITE SCROLL SENTINEL */
#infinite-scroll-sentinel {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

#infinite-scroll-sentinel.visible {
    display: flex;
}

/* OPTIMIZED HERO TRAILER BUTTON */
.hero-trailer-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-trailer-btn:hover {
    background-color: var(--accent-primary) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(229, 9, 20, 0.4);
}

.hero-trailer-btn:active {
    transform: scale(0.98);
}

/* PERFORMANCE: GPU acceleration */
.movie-grid {
    will-change: scroll-position;
}

.poster-card,
.poster-wrapper,
.poster-wrapper img {
    will-change: transform;
}

/* REDUCED ANIMATIONS FOR ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== MOVIE DETAIL PAGE RESPONSIVE LAYOUT ===== */
.movie-detail-content {
    /* Match the global container max-width */
    max-width: 1400px !important;
    margin: 0 auto !important;
    /* KEY FIX: Use 2rem horizontal padding to match the Hero banner alignment perfectly */
    padding: 3rem 2rem !important;
}

/* Grid Layout for Content + Sidebar */
.movie-content-grid {
    display: grid;
    /* Slightly reduced sidebar (340px) to give main text more room */
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

/* Hero info overlay - keep poster and title neat with edges */
.movie-detail-hero {
    max-width: 100% !important;
}

.movie-detail-hero .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
}

/* Responsive: Stack sidebar below content on Laptops/Tablets (below 1100px) 
   This prevents the "Overview" text from looking squashed on 1024px screens */

/* Mobile adjustments */

/* Ensure images in the grid don't overflow */
.movie-content-grid img {
    max-width: 100%;
    height: auto;
}

/* Trailer Section - Compact and Polished */
section > div[style*="position: relative; width: 100%; max-width: 768px"] {
    position: relative;
    width: 100%;
    max-width: 768px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

section > div[style*="position: relative; width: 100%; max-width: 768px"] iframe {
    width: 100%;
    height: 100%;
    border: none;
}

section button[onclick="fetchTrailer()"] {
    max-width: 768px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== DESKTOP HOMEPAGE ENHANCEMENTS ===== */

/* Hero section hover effects for CTAs */
.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* CTA buttons in the suggestion section */
.cta-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn:hover {
    transform: translateY(-3px);
}

/* Footer link hover effects */
.footer-column a:hover {
    color: var(--accent-primary) !important;
}

/* Poster card enhanced hover for desktop */
@media (min-width: 768px) {
    .poster-card:hover {
        transform: scale(1.08);
        z-index: 10;
    }
    
    .poster-card:hover .poster-wrapper {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

/* Container max-width consistency */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Row section spacing for desktop */
@media (min-width: 768px) {
    .row-section {
        padding: 2rem 0;
    }
    
    .row-title {
        font-size: 1.8rem;
        font-weight: 800;
    }
}

/* ===== ADMIN DASHBOARD ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0 1.5rem;
}

.admin-header h1 {
    font-size: 2.1rem;
    margin: 0 0 0.35rem 0;
}

.section-desc {
    color: var(--text-secondary);
    margin: 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.stat-card-modern {
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.5);
}

.stat-card-modern.warn {
    border-color: rgba(255, 152, 0, 0.45);
}

.stat-card-modern.error {
    border-color: rgba(255, 82, 82, 0.6);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.18);
    color: var(--accent-primary);
    margin-bottom: 0.35rem;
}

.stat-card-modern.warn .stat-icon {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.stat-card-modern.error .stat-icon {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.stat-card-modern h3 {
    margin: 0;
    font-size: 1.8rem;
}

.stat-card-modern p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-change {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.admin-section {
    margin-bottom: 2.5rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-section .text-link {
    text-decoration: none;
}

.integrity-snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.snapshot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.snapshot-fill {
    background: linear-gradient(135deg, var(--accent-primary), #ff1744);
}

.platform-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-bar {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.platform-name {
    font-weight: 600;
    color: var(--text-primary);
}

.platform-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.platform-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #ff1744);
}

.platform-count {
    text-align: right;
    color: var(--text-secondary);
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.quick-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.5);
}

/* Improve admin portal on tablet/mobile */
@media (max-width: 1200px) {
    .admin-header {
        gap: 1rem;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 900px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    
    .header-actions a {
        flex: 1;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .platform-bar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .platform-count {
        text-align: left;
    }
    
    .integrity-snapshot {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        margin-bottom: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.6rem;
    }
}
