/* ========================================
   STREAMORA - CSS UNIFIÉ
   Tous les styles dans un seul fichier
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================
   RESET ET BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    z-index: 9999 !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 80px !important;
    margin: 0 !important;
    transform: none !important;
}

/* Structure de navigation en 3 colonnes */
.nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 1;
}

/* Logo au centre */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.1);
}

.logo-container .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Liens de navigation à droite */
.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.nav-links li a:hover {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-links li a.active {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.nav-links li a i {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Tooltips personnalisés */
.nav-links li a::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-links li a:hover::after,
.nav-links li a:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Styles pour les anciens sélecteurs (compatibilité) */
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

.navbar li {
    position: relative;
}

.navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar li a:hover {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    transform: translateY(-2px);
}

.navbar li a.active {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-radius: 8px;
}

.navbar .logo {
    margin: 0 1rem;
}

.navbar .logo img {
    width: 40px;
    height: auto;
}

.nav-search {
    order: 1;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem !important;
        height: 70px !important;
    }
    
    .nav-left {
        flex: 0 0 auto;
    }
    
    .nav-center {
        flex: 1;
        justify-content: center;
    }
    
    .nav-right {
        flex: 0 0 auto;
        gap: 1rem;
    }
    
    .nav-links {
        display: none; /* Masquer les liens sur mobile */
    }
    
    .nav-search {
        display: none; /* Masquer la recherche sur mobile */
    }
    
    .logo-container .logo {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem !important;
        height: 60px !important;
    }
    
    .logo-container .logo {
        width: 50px;
        height: 50px;
    }
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    outline: none;
    width: 200px;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container button {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    transform: scale(1.1);
}

/* Bouton Sign In */
.btn-signin {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
    order: -1;
}

.btn-signin:hover {
    background: linear-gradient(45deg, #1E40AF, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* ========================================
   HERO SECTION (Page d'accueil)
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay pour améliorer la lisibilité */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(30,58,138,0.3));
    z-index: 2;
}

/* Titre principal */
.hero-title {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 50%;
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 10;
    line-height: 1.2;
}

/* Bouton Watch Now */
.btn-watch {
    position: absolute;
    top: 65%;
    left: 10%;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    color: white;
    font-size: 18px;
    padding: 18px 35px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
    display: inline-block;
}

.btn-watch:hover {
    background: linear-gradient(45deg, #1E40AF, #2563EB);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SECTIONS DE FILMS
   ======================================== */
.movies-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-transform: uppercase;
    color: white;
}

.movies-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    border-top: 3px solid #3B82F6;
    border-radius: 5px;
    margin-bottom: 3rem;
    width: 100px;
    margin-left: auto;
    margin-right: auto;
}

/* Container des films */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.movie-card {
    text-align: center;
    transition: transform 0.3s ease;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.movie-card:hover {
    transform: translateY(-10px);
    border-color: #3B82F6;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.movie-poster {
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-poster:hover img {
    transform: scale(1.05);
}

.movie-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #fff;
    text-transform: uppercase;
    padding: 0 1rem;
}

.movie-card span {
    color: #60A5FA;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 1rem 1rem;
    display: block;
}

/* Effet de survol pour les liens */
.movie-poster a {
    display: block;
    position: relative;
    overflow: hidden;
}

.movie-poster a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.movie-poster a:hover::before {
    opacity: 1;
}

/* ========================================
   FILTRES
   ======================================== */
.filters-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 15px;
    margin-bottom: 3rem;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: #60A5FA;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-group select option {
    background: #1a1a1a;
    color: white;
    padding: 8px;
}

.filter-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.filter-group input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.filter-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Trending Page Specific Styles */
.trending-top {
    margin-bottom: 3rem;
}

.trending-top h3 {
    color: #60A5FA;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-top h3 i {
    color: #f59e0b;
}

.top10-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.top10-item {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.top10-item:hover {
    transform: translateY(-5px);
    border-color: #3B82F6;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.top10-position {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top10-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.top10-item:hover img {
    transform: scale(1.05);
}

.top10-info {
    padding: 1rem;
    text-align: center;
}

.top10-info h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.top10-info .rating {
    color: #60A5FA;
    font-size: 0.9rem;
    font-weight: 500;
}

.trending-all h3 {
    color: #60A5FA;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-all h3 i {
    color: #10b981;
}

/* Amélioration des cartes pour trending */
.trending-top .movie-card,
.trending-all .movie-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.trending-top .movie-card:hover,
.trending-all .movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #3B82F6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.trending-top .movie-poster,
.trending-all .movie-poster {
    position: relative;
    overflow: hidden;
}

.trending-top .movie-poster::after,
.trending-all .movie-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-top .movie-card:hover .movie-poster::after,
.trending-all .movie-card:hover .movie-poster::after {
    opacity: 1;
}

/* View Options */
.view-options {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-color: #3B82F6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #111;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #3B82F6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3B82F6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 2rem;
    color: #999;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 1.5rem;
    border: 2px solid #3B82F6;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal pour les séries */
.series-modal {
    max-width: 1200px;
    width: 95%;
}

.modal-layout {
    display: flex;
    gap: 2rem;
    min-height: 500px;
}

.episode-sidebar {
    width: 300px;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.episode-sidebar h4 {
    color: #3B82F6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.episode-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.episode-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    transform: translateX(5px);
}

.episode-item.active {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-color: #3B82F6;
    color: white;
}

.episode-item.active::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #3B82F6;
    border-radius: 2px;
}

.episode-number {
    font-weight: 600;
    color: #3B82F6;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.episode-item.active .episode-number {
    color: white;
}

.episode-title {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.episode-item.active .episode-title {
    color: white;
}

.episode-duration {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.episode-item.active .episode-duration {
    color: rgba(255, 255, 255, 0.8);
}

.video-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    color: #3B82F6;
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    margin-bottom: 1rem;
}

.video-player-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.video-info h3 {
    color: #3B82F6;
    margin-bottom: 0.5rem;
}

/* Player Selection Styles */
.player-selection {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.player-selection h4 {
    color: #3B82F6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.player-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.player-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.player-option:hover::before {
    left: 100%;
}

.player-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.player-option.active {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-color: #3B82F6;
    color: #fff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.player-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.player-name {
    font-weight: 600;
    font-size: 1rem;
}

.player-badges {
    display: flex;
    gap: 0.5rem;
}

.player-option .quality-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.player-option .language-badge {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.player-option.active .quality-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.player-option.active .language-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.player-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.player-option.active .player-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Styles pour les états de chargement et d'erreur */
.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    flex-direction: column;
    border-radius: 10px;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iframe-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}

.error-content h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.error-content p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.retry-btn {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
}

.retry-btn:hover {
    background: linear-gradient(45deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.current-player-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

.current-player-info .player-name {
    color: #3B82F6;
    font-weight: 600;
}

.current-player-info .player-quality {
    color: #fbbf24;
    font-weight: 500;
}

.current-player-info .player-language {
    color: #22c55e;
    font-weight: 500;
}

/* Iframe Loading and Error Styles */
.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    flex-direction: column;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iframe-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    text-align: center;
    padding: 2rem;
}

.error-content h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-content p {
    margin-bottom: 0.5rem;
    color: #ccc;
    line-height: 1.6;
}

.retry-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.retry-btn i {
    font-size: 0.9rem;
}

.video-info p {
    color: #ccc;
    line-height: 1.6;
}

/* ========================================
   LOADING ET NO RESULTS
   ======================================== */
.loading {
    text-align: center;
    padding: 3rem;
    color: #60A5FA;
}

.spinner {
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-results i {
    font-size: 3rem;
    color: #3B82F6;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
        width: 60%;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        height: auto !important;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-search {
        order: 0;
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .btn-signin {
        order: 0;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        width: 80%;
        top: 25%;
        left: 5%;
    }
    
    .btn-watch {
        top: 60%;
        left: 5%;
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .movies-section {
        padding: 2rem 1rem;
    }
    
    .movies-section h2 {
        font-size: 2rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .movie-poster {
        height: 300px;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .hero-section {
        margin-top: 120px;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 1% auto;
        padding: 1rem;
        max-height: 95vh;
    }
    
    .series-modal {
        width: 98%;
    }
    
    .modal-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .episode-sidebar {
        width: 100%;
        max-height: 200px;
        order: 2;
    }
    
    .video-main-area {
        order: 1;
    }
    
    .player-options {
        grid-template-columns: 1fr;
    }
    
    .episode-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .episode-item {
        min-width: 200px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        width: 90%;
    }
    
    .btn-watch {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .movie-poster {
        height: 250px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeInUp 0.6s ease forwards;
}

.movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-card:nth-child(4) { animation-delay: 0.4s; }
.movie-card:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   PAGE CONTACT
   ======================================== */

/* Lien Discord */
.discord-link {
    display: inline-block;
    background: linear-gradient(45deg, #5865F2, #7289DA);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.discord-link:hover {
    background: linear-gradient(45deg, #4752C4, #5B6DAE);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

/* Icône Discord */
.contact-card .fab.fa-discord {
    color: #5865F2;
    font-size: 2rem;
}
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #3B82F6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    color: #3B82F6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-form-section {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.contact-form-section h2 {
    color: #3B82F6;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #60A5FA;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: white;
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ccc;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-color: #3B82F6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.submit-btn {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #1E40AF, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* FAQ Section */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.faq-section h2 {
    color: #3B82F6;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: #3B82F6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.faq-item h3 {
    color: #3B82F6;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #ccc;
    line-height: 1.6;
}

/* Responsive pour Contact */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section,
    .contact-card,
    .faq-item {
        padding: 1.5rem;
    }
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #1E3A8A, #3B82F6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1E40AF, #2563EB);
}
