/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --dark-color: #141414;
    --light-color: #f4f4f4;
    --gray-color: #999;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff;
}

/* En-tête et navigation */
header {
    background-color: var(--dark-color) !important;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.logo a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

/* Styles du menu de navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.login-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px;
    margin-left: 1rem !important;
}

.login-btn:hover {
    background-color: #f40612;
    color: white !important;
}

.login-btn::after {
    display: none;
}

/* Styles du bouton hamburger amélioré */
.hamburger {
    display: none;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.hamburger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.5);
}

.hamburger-box {
    width: 28px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 2px;
    background-color: var(--light-color);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
    left: 0;
}

.hamburger-inner::before {
    top: -8px;
    width: 22px;
}

.hamburger-inner::after {
    bottom: -8px;
    width: 18px;
}

/* Animation du bouton hamburger amélioré */
.hamburger.active {
    position: fixed;
    right: 20px;
    top: 20px;
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger.active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.1s;
    width: 28px;
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    width: 28px;
    transform: translateY(0) rotate(0);
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: translateY(0) rotate(-90deg);
    width: 28px;
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
        order: 2;
    }

    .navbar {
        position: relative;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        padding: 80px 20px 40px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        margin: 4px 8px !important;
        font-size: 0.95rem !important;
        padding: 10px 16px !important;
        border-radius: 6px;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.9) !important;
        background: transparent;
        width: calc(100% - 16px);
        text-align: left;
        display: flex;
        align-items: center;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--primary-color);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(5px);
        color: white !important;
    }

    .nav-link:hover::before,
    .nav-link:focus::before {
        transform: scaleY(1);
    }

    .nav-link::after {
        display: none;
    }

    .login-btn {
        margin: 2rem 0 1rem !important;
        padding: 12px 25px !important;
        text-align: center;
        width: 100%;
        font-size: 1.1rem;
        border-radius: 8px;
        background: linear-gradient(45deg, var(--primary-color), #f40612) !important;
        border: none;
        box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
        transition: all 0.3s ease;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    }

    /* Animation des liens du menu */
    .nav-links.active .nav-link {
        animation: fadeInRight 0.5s ease forwards;
    }

    .nav-links.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active .login-btn { animation-delay: 0.25s; }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Contenu principal */
main {
    margin-top: 70px;
    min-height: calc(100vh - 150px);
    padding: 2rem;
}

/* Section héro */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Section fonctionnalités */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    background: var(--dark-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

/* Page 404 */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Pied de page */
footer {
    background-color: var(--dark-color);
    color: var(--gray-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Boutons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        padding: 80px 20px 40px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
}

/* Styles du menu utilisateur */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

/* Styles pour les boutons du menu utilisateur */
.user-menu .nav-link {
    padding: 0.5rem 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu .nav-link i {
    font-size: 1.1rem;
}

/* Bouton de déconnexion avec style différent */
.user-menu .login-btn {
    margin-left: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.user-menu .login-btn:hover {
    background-color: #d30812 !important;
}

/* Menu déroulant pour mobile */
@media (max-width: 1024px) {
    .search-container {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 1000px;
        padding: 0.5rem 0 1rem 2rem;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-toggle .dropdown-icon {
        transition: transform 0.3s;
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .user-menu {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    
    .user-menu .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .user-menu .login-btn {
        margin-top: 0.5rem !important;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #333;
    }
    
    .dropdown-menu {
        width: 100%;
        padding-left: 1rem !important;
    }
    
    .search-container {
        margin: 1rem 0;
    }
    
    .user-dropdown .user-avatar {
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 1rem !important;
    }
}

/* Styles pour les menus déroulants */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-toggle .dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1f1f1f;
    min-width: 220px;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid #333;
}

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

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.5rem;
    color: #e5e5e5;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #777;
}

.dropdown-item:hover {
    background-color: #2a2a2a;
    color: white;
    padding-left: 1.75rem;
}

.dropdown-item.text-danger {
    color: #ff6b6b;
}

.dropdown-item.text-danger:hover {
    color: #ff4f4f;
    background-color: rgba(255, 0, 0, 0.05);
}

.dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 0.5rem 0;
}

.dropdown-header {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Barre de recherche */
.search-container {
    position: relative;
    margin: 0 1rem;
    flex: 1;
    max-width: 500px;
}

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

.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 3rem;
    border-radius: 30px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu utilisateur */
.user-dropdown .user-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem !important;
    border-radius: 50px;
    transition: all 0.2s;
}

.user-dropdown .user-avatar:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.username {
    font-weight: 500;
    font-size: 0.95rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles pour les messages flash */
.flash-message {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    max-width: 90%;
    width: auto;
}

.flash-message.success {
    background-color: #10b981;
    border-left: 4px solid #059669;
}

.flash-message.error {
    background-color: #ef4444;
    border-left: 4px solid #dc2626;
}

.flash-message i {
    font-size: 1.25rem;
}

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

/* Animation de sortie pour les messages flash */
.flash-message.hide {
    animation: slideOut 0.3s ease-in forwards;
}

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

/* Style pour le bouton de fermeture du message flash */
.flash-message .close-flash {
    margin-left: 0.75rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.flash-message .close-flash:hover {
    opacity: 1;
}

/* Styles pour les pages de films */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

/* Grille de films */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .films-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.film-card {
    position: relative;
    transition: transform 0.3s ease;
}

.film-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

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

.film-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    aspect-ratio: 2/3;
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.film-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.film-card:hover .film-overlay {
    opacity: 1;
}

.film-info {
    width: 100%;
}

.film-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.film-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.75rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffd700;
}

.rating i {
    font-size: 0.75rem;
}

.year {
    color: #999;
}

.play-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    width: 100%;
    justify-content: center;
}

.play-btn:hover {
    background-color: #c40812;
}

/* Badges */
.badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-new {
    background-color: #00c853;
    color: white;
}

.badge-trending {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    background-color: #1a1a1a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-info {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Message "Aucun résultat" */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-color);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.2rem;
}

/* Grille de genres */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.genre-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.genre-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.genre-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.genre-card:hover .genre-icon {
    transform: scale(1.1) rotate(5deg);
}

.genre-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 80px 1rem 1rem;
    }
    
    .genre-card {
        padding: 1.5rem;
    }
    
    .genre-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .genre-name {
        font-size: 1rem;
    }
}

/* Page de détails du film */
.film-details {
    padding-top: 70px;
}

.film-banner {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 2rem;
}

.film-banner-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.film-poster-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.film-poster-large img {
    width: 100%;
    display: block;
}

.film-details-info {
    color: white;
}

.film-details-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.film-details-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.3rem;
}

.separator {
    color: #666;
}

.film-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.genre-tag {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--primary-color);
}

.film-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary, .btn-icon {
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: #c40812;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: white;
}

.btn-icon {
    padding: 0.75rem 1rem;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-icon:hover {
    background-color: rgba(255,255,255,0.2);
}

.film-overview {
    max-width: 800px;
}

.film-overview h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.film-overview p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ddd;
}

.film-additional-info {
    padding: 3rem 0;
    border-top: 1px solid #333;
    margin-top: 2rem;
}

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

.info-item h4 {
    color: var(--gray-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: white;
    font-size: 1rem;
}

.similar-films {
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: white;
}

/* Responsive pour la page de détails */
@media (max-width: 768px) {
    .film-banner {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .film-banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .film-poster-large {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .film-details-title {
        font-size: 2rem;
    }
    
    .film-details-meta {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .rating-large {
        font-size: 1.1rem;
    }
    
    .film-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===================================
   PAGE DÉTAILS SÉRIE
   =================================== */

.serie-details {
    min-height: 100vh;
    background-color: #141414;
}

.serie-banner {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.serie-banner-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 4rem;
}

.serie-poster-large {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.serie-poster-large img {
    width: 100%;
    height: auto;
    display: block;
}

.serie-details-info {
    color: white;
}

.serie-details-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.serie-details-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rating-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #e50914;
}

.rating-large i {
    color: #ffd700;
}

.separator {
    color: #999;
}

.serie-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-ongoing {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-ended {
    background-color: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.serie-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.genre-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background-color: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
}

.serie-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
    transform: scale(1.1);
}

.serie-overview {
    max-width: 800px;
}

.serie-overview h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.serie-overview p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}

/* Saisons */
.seasons-section {
    margin: 4rem 0;
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.season-card {
    transition: transform 0.3s ease;
}

.season-card:hover {
    transform: translateY(-10px);
}

.season-link {
    text-decoration: none;
    color: inherit;
}

.season-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.season-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.season-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 1.5rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.season-card:hover .season-overlay {
    opacity: 1;
}

.season-info {
    color: white;
}

.season-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.season-episodes {
    font-size: 0.9rem;
    color: #e50914;
    margin-bottom: 0.3rem;
}

.season-year {
    font-size: 0.85rem;
    color: #999;
}

/* Informations supplémentaires */
.serie-additional-info {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

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

.info-item h4 {
    color: #e50914;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.5;
}

/* Séries similaires */
.similar-series {
    margin: 4rem 0;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.serie-card {
    transition: transform 0.3s ease;
}

.serie-card:hover {
    transform: translateY(-10px);
}

.serie-link {
    text-decoration: none;
    color: inherit;
}

.serie-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.serie-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.serie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 1.5rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.serie-card:hover .serie-overlay {
    opacity: 1;
}

.serie-info {
    color: white;
}

.serie-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.serie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.serie-meta .rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #e50914;
}

.serie-meta .rating i {
    color: #ffd700;
}

.serie-meta .year {
    color: #999;
}

/* Responsive pour la page de détails série */
@media (max-width: 768px) {
    .serie-banner {
        min-height: auto;
        padding: 2rem 0;
    }

    .serie-banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .serie-poster-large {
        max-width: 250px;
        margin: 0 auto;
    }

    .serie-details-title {
        font-size: 2rem;
    }

    .serie-details-meta {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .rating-large {
        font-size: 1.1rem;
    }

    .serie-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .seasons-grid,
    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* ===================================
   PAGE DÉTAILS SAISON
   =================================== */

.season-details {
    min-height: 100vh;
    background-color: #141414;
}

.season-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 6rem 0 3rem;
}

.season-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.season-poster-small {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.season-poster-small img {
    width: 100%;
    height: auto;
    display: block;
}

.season-header-info {
    color: white;
}

.breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #999;
}

.breadcrumb a {
    color: #e50914;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff0a16;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #666;
}

.season-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.season-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.season-overview {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    max-width: 800px;
}

/* Liste des épisodes */
.episodes-section {
    margin: 3rem 0;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.episode-card {
    display: grid;
    grid-template-columns: 60px 300px 1fr;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.episode-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #e50914;
    transform: translateX(10px);
}

.episode-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-number span {
    font-size: 2rem;
    font-weight: bold;
    color: #e50914;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.episode-thumbnail {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: #000;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #666;
    font-size: 3rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(229, 9, 20, 0.9);
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.episode-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button:hover {
    background-color: #e50914;
    transform: translate(-50%, -50%) scale(1.2);
}

.episode-info {
    color: white;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.episode-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
    white-space: nowrap;
}

.episode-duration {
    color: #ddd;
}

.episode-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #e50914;
}

.episode-rating i {
    color: #ffd700;
}

.episode-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.episode-overview {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.no-overview {
    font-style: italic;
    color: #666;
}

.no-episodes {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-episodes i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #666;
}

.no-episodes p {
    font-size: 1.2rem;
}

/* Navigation entre saisons */
.season-navigation {
    margin: 4rem 0;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.season-navigation h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.seasons-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.season-nav-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.season-nav-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    background-color: rgba(255, 255, 255, 0.08);
}

.season-nav-card.active {
    border-color: #e50914;
    background-color: rgba(229, 9, 20, 0.1);
}

.season-nav-poster {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.season-nav-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.season-nav-info {
    padding: 1rem;
}

.season-nav-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.season-nav-info p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* Responsive pour la page saison */
@media (max-width: 1024px) {
    .episode-card {
        grid-template-columns: 50px 250px 1fr;
        gap: 1rem;
    }

    .episode-number span {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .season-header-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .season-poster-small {
        max-width: 200px;
        margin: 0 auto;
    }

    .season-title {
        font-size: 1.8rem;
    }

    .episode-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .episode-number {
        position: absolute;
        top: 1rem;
        left: 1rem;
        background-color: rgba(229, 9, 20, 0.9);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        z-index: 1;
    }

    .episode-number span {
        font-size: 1.2rem;
        color: white;
    }

    .episode-thumbnail {
        width: 100%;
    }

    .episode-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .episode-meta {
        justify-content: flex-start;
    }

    .seasons-nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
}
