/* Netflix-style CSS */
:root {
    --netflix-red: #E50914;
    --netflix-black: #141414;
    --netflix-dark-gray: #181818;
    --netflix-gray: #2F2F2F;
    --netflix-light-gray: #808080;
    --netflix-white: #FFFFFF;
}

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

/* Reset global des liens */
a {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    overflow-x: hidden;
}

/* Netflix-style Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--netflix-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-in;
    opacity: 1;
}

.splash-screen.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

.splash-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-text {
    font-size: 4rem;
    font-weight: 900;
    color: var(--netflix-red);
    letter-spacing: 2px;
    animation: logoAnimation 1.5s ease-in-out;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

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

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

@keyframes logoAnimation {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hide body content during splash - but allow scroll after animation */
body:has(.splash-screen:not(.fade-out)) {
    overflow: hidden;
}
body:has(.splash-screen.fade-out),
body.loaded {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 4%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent);
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: var(--netflix-black);
}

.header.nav-open {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--netflix-white);
    cursor: pointer;
    padding: 8px;
    margin-left: 16px;
}

.mobile-menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--netflix-white);
    position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--netflix-white);
    transition: transform 0.3s;
}

.mobile-menu-icon::before {
    top: -6px;
}

.mobile-menu-icon::after {
    top: 6px;
}

.header.nav-open .mobile-menu-icon {
    background: transparent;
}

.header.nav-open .mobile-menu-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.header.nav-open .mobile-menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.logo {
    color: var(--netflix-red) !important;
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
}

a.logo:visited,
a.logo:hover {
    color: var(--netflix-red) !important;
}

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

.user-menu-wrapper {
    position: relative;
}

.user-menu-button {
    background: none;
    border: none;
    color: var(--netflix-white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: var(--netflix-dark-gray);
    border-radius: 4px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 200;
}

.user-menu-link {
    display: block;
    padding: 12px 20px;
    color: var(--netflix-white);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-menu-link:hover {
    background: var(--netflix-gray);
}

.login-link {
    color: var(--netflix-white);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: var(--netflix-red);
    border-radius: 4px;
}

.mobile-user-area {
    display: none;
    margin-top: 16px;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mobile-account-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--netflix-white);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.mobile-login,
.mobile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--netflix-white);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
}

.mobile-login {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
}

.mobile-user-dropdown {
    display: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--netflix-white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--netflix-light-gray);
}

.nav-links a.active {
    color: var(--netflix-red);
    font-weight: 600;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--netflix-white);
    color: var(--netflix-white);
    border-radius: 4px;
    outline: none;
    width: 250px;
    transition: all 0.3s;
}

.search-input:focus {
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--netflix-dark-gray);
    border-radius: 4px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1000;
}

.search-result-item {
    display: flex;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--netflix-white);
}

.search-result-item:hover {
    background: var(--netflix-gray);
}

.search-result-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.search-result-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 12px;
    color: var(--netflix-light-gray);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 900px) {
    .header {
        padding: 16px 4%;
        background: var(--netflix-black);
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        display: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 12px;
    }

    .header.nav-open .main-nav {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 16px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .user-menu-wrapper {
        display: none;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .mobile-user-area {
        display: block;
    }
}

/* Hero Banner */
.hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-bottom: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.8) 100%),
                linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-overview {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--netflix-white);
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.btn-primary:hover {
    background: #f40612;
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: var(--netflix-white);
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.4);
}

/* Movie Rows */
.row {
    padding: 0 4%;
    margin-bottom: 40px;
    position: relative;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--netflix-white);
}

.row-container {
    position: relative;
}

.row-posters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.row-posters::-webkit-scrollbar {
    display: none;
}

.row-poster {
    min-width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.row-poster:hover {
    transform: scale(1.08);
    z-index: 10;
}

/* Netflix-style Hover Card */
.poster-container {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.poster-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.poster-container:hover .hover-card {
    display: block;
}

.poster-container:hover .row-poster {
    transform: scale(1.15);
    z-index: 100;
}

.hover-card {
    display: none;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 300px;
    background: var(--netflix-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    margin-bottom: 10px;
}

.poster-container:hover .hover-card {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-90%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-100%);
    }
}

.hover-card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--netflix-gray);
}

.hover-card-content {
    padding: 15px;
}

.hover-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--netflix-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hover-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--netflix-light-gray);
}

.hover-card-rating {
    color: #46d369;
    font-weight: 600;
}

.hover-card-overview {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--netflix-light-gray);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-card-buttons {
    display: flex;
    gap: 8px;
}

.hover-card-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hover-card-btn-primary {
    background: var(--netflix-white);
    color: var(--netflix-black);
}

.hover-card-btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hover-card-btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: var(--netflix-white);
}

.hover-card-btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
}

.hover-card-btn-icon {
    background: rgba(42, 42, 42, 0.6);
    color: var(--netflix-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
    flex: 0 0 32px;
}

.hover-card-btn-icon:hover {
    border-color: var(--netflix-white);
    background: rgba(42, 42, 42, 0.8);
}


/* Top 10 Badge */
.top10-item {
    position: relative;
    display: inline-block;
}

.top10-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--netflix-red) 0%, #ff6b6b 100%);
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
    border: 3px solid var(--netflix-black);
}

/* Navigation Buttons */
.row-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--netflix-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.row-nav-btn.left {
    left: 0;
}

.row-nav-btn.right {
    right: 0;
}

.row-nav-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Detail Page */
.detail-banner {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.detail-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--netflix-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.detail-back-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateX(-3px);
}

.detail-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--netflix-black) 100%);
}

.detail-content {
    position: absolute;
    bottom: 50px;
    left: 4%;
    z-index: 1;
    max-width: 600px;
}

.detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.detail-rating {
    color: #46d369;
}

.detail-overview {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.detail-info {
    padding: 40px 4%;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cast-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--netflix-gray) transparent;
}

.cast-list::-webkit-scrollbar {
    height: 6px;
}

.cast-list::-webkit-scrollbar-track {
    background: transparent;
}

.cast-list::-webkit-scrollbar-thumb {
    background: var(--netflix-gray);
    border-radius: 3px;
}

.cast-list::-webkit-scrollbar-thumb:hover {
    background: var(--netflix-light-gray);
}

.cast-item {
    text-align: center;
    min-width: 150px;
}

.cast-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.cast-name {
    font-size: 14px;
    font-weight: 600;
}

.cast-character {
    font-size: 12px;
    color: var(--netflix-light-gray);
}

/* Seasons & Episodes */
.season-selector {
    margin-bottom: 20px;
}

.season-select {
    padding: 10px 15px;
    background: var(--netflix-gray);
    color: var(--netflix-white);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.episodes-list {
    display: grid;
    gap: 16px;
}

a.episode-item,
.episode-item {
    display: flex;
    gap: 16px;
    background: var(--netflix-dark-gray);
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: var(--netflix-white) !important;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.episodes-list a {
    text-decoration: none !important;
    color: inherit !important;
}

.episode-item:hover {
    background: var(--netflix-gray);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.episode-item:active {
    transform: translateX(2px);
}

.episode-thumbnail-wrapper {
    position: relative;
    flex-shrink: 0;
}

.episode-thumbnail {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.episode-item:hover .episode-thumbnail {
    filter: brightness(0.7);
}

.episode-thumbnail-placeholder {
    background: var(--netflix-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Play icon overlay on hover */
.episode-thumbnail-wrapper::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--netflix-black);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.episode-item:hover .episode-thumbnail-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
}

.episode-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.episode-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--netflix-white);
    line-height: 1.3;
}

.episode-runtime {
    color: var(--netflix-light-gray);
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.episode-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.episode-overview {
    font-size: 0.9rem;
    color: var(--netflix-light-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Player */
.player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--netflix-black);
    z-index: 9999;
}

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

.player-back {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--netflix-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
}

.player-back:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Source buttons in player */
.source-btn {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.source-btn.active,
.source-btn.btn-primary {
    background: var(--netflix-red) !important;
    border-color: var(--netflix-red);
}

/* Hide splash and loader when in player */
body:has(.player-container) .splash-screen,
body:has(.player-container) .page-loader {
    display: none !important;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--netflix-gray);
    border-top-color: var(--netflix-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page Loader - Full Screen */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

/* NEVER block scroll - always allow scrolling */
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
/* Page loader should never block scroll */
.page-loader {
    pointer-events: auto;
    z-index: 99999;
}
/* Ensure content behind loader is still scrollable */
body:has(.page-loader) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
}

.loader-spinner::before {
    width: 80px;
    height: 80px;
    border-top: 4px solid var(--netflix-red);
    border-right: 4px solid var(--netflix-red);
    animation: spin 1s linear infinite;
}

.loader-spinner::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-bottom: 4px solid var(--netflix-red);
    border-left: 4px solid var(--netflix-red);
    animation: spinReverse 0.8s linear infinite;
}

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.loader-text {
    color: var(--netflix-white);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Filters Grid - 5 columns (4 rows of 5) */
.filters-results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 100%;
}

@media (max-width: 1400px) {
    .filters-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .filters-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .row-poster {
        min-width: 150px;
        height: 225px;
    }

    .episode-item {
        flex-direction: column;
        padding: 12px;
    }

    .episode-item:hover {
        transform: none;
    }

    .episode-thumbnail-wrapper {
        width: 100%;
    }

    .episode-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .episode-header {
        flex-direction: column;
        gap: 8px;
    }

    .episode-runtime {
        align-self: flex-start;
    }
}
