/* ============================================
   VIVASTREAM - STYLES COMPLETS
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1d29;
    --bg-tertiary: #272727;
    --text-primary: #f5f5f7;
    --text-secondary: #a8adb8;
    --accent-primary: #ff6b6b;
    --accent-secondary: #ffa502;
    --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 4px 20px rgba(255, 107, 107, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.search-box:hover {
    border-color: var(--accent-primary);
}

.search-box i {
    color: var(--text-secondary);
}

.notif-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notif-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-badge {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-logout {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-primary);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(15,15,15,0.7) 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 5%;
    max-width: 700px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.9);
}

.hero-meta .rating {
    color: var(--accent-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-meta .badge {
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

/* ===== SECTIONS CONTENU ===== */
.content-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-header h2 i {
    color: var(--accent-primary);
}

/* ===== CAROUSEL & GRILLE (DESKTOP) ===== */
.carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    display: block;
    transition: var(--transition);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    width: 55px;
    height: 55px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
}

.movie-badge, .movie-rank, .movie-year {
    position: absolute;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.movie-badge {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
}

.movie-badge.new {
    background: var(--accent-primary);
}

.movie-badge.continue {
    background: #00d4ff;
}

.movie-badge.soon {
    background: #745ef7;
}

.movie-year {
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.85);
    color: white;
}

.movie-rank {
    top: 10px;
    left: 10px;
    background: var(--accent-primary);
    color: white;
}

.movie-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 3;
}

.movie-progress-fill {
    height: 100%;
    width: 30%;
    background: var(--accent-gradient);
    border-radius: 0 2px 2px 0;
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.movie-info i {
    color: var(--accent-secondary);
}

/* ===== PAGE FILM ===== */
.player-section-top {
    margin-top: 70px;
    background: #000;
}

.video-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.no-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 1rem;
}

.no-video i {
    font-size: 4rem;
    opacity: 0.3;
}

/* Barre de contrôle unifiée */
.player-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 1rem auto 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.controls-left, .controls-center, .controls-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.control-label {
    font-size: 0.85rem;
}

.next-episode-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: white;
    border: none;
    font-weight: 600;
    animation: pulseNext 2s ease-in-out infinite;
}

@keyframes pulseNext {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 153, 255, 0); }
}

/* Sélecteur de sources */
.sources-selector {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 5%;
}

.sources-selector h4 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sources-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.source-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.source-btn:hover {
    border-color: var(--accent-primary);
}

.source-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.source-btn small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.source-btn.active small {
    color: rgba(255,255,255,0.8);
}

/* Infos du film */
.movie-info-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
}

.movie-poster-side {
    flex: 0 0 280px;
}

.movie-poster-side img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.movie-details-side {
    flex: 1;
    min-width: 0;
}

.movie-title-detail {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.movie-meta-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
}

.movie-meta-detail .rating-lg {
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.movie-meta-detail .badge {
    background: var(--bg-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.genre-link {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.genre-link:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.movie-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.movie-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Sélecteur épisodes */
#series-selector-container {
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.6rem;
}

.episode-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-height: 50px;
    font-weight: 600;
}

.episode-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.episode-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ===== SKELETON LOADERS ===== */
.player-skeleton, .poster-skeleton {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-skeleton {
    width: 100%;
    aspect-ratio: 16/9;
}

.poster-skeleton {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-secondary);
}

.skeleton-content i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.skeleton-card {
    aspect-ratio: 2/3;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

/* ===== RECHERCHE ===== */
.search-section {
    margin-top: 90px;
    padding: 2rem 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-big {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.search-big:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.search-big i.fa-search {
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-right: 1rem;
}

.search-big input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    display: none;
}

.clear-btn.visible {
    display: block;
}

.clear-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.quick-suggestions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.suggestion-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.suggestion-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
}

.suggestion-chip:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.search-placeholder, .search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.search-placeholder i, .search-no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.search-placeholder kbd {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    color: var(--accent-primary);
}

/* ===== COMMENTAIRES ===== */
.comment-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.rating-input i {
    cursor: pointer;
    transition: var(--transition);
}

.rating-input i:hover,
.rating-input i.active {
    color: var(--accent-secondary);
    transform: scale(1.1);
}

.comment-form textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
    min-height: 80px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-item {
    background: var(--bg-secondary);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.comment-item:hover {
    border-color: rgba(255, 107, 107, 0.3);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-username {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.comment-rating {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.comment-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.comment-action-btn.liked {
    color: var(--accent-primary);
}

.comment-action-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ===== PROFIL ===== */
.profile-page {
    margin-top: 90px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    overflow: hidden;
    border: 4px solid var(--accent-primary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--bg-secondary);
    transition: var(--transition);
}

.avatar-edit:hover {
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    min-width: 250px;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.profile-stat {
    text-align: center;
}

.profile-stat h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.profile-stat p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-referral {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border: 1px solid rgba(102,126,234,0.3);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.referral-code {
    background: var(--bg-primary);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
    display: inline-block;
    margin: 0.5rem 0;
    cursor: pointer;
    border: 2px dashed var(--accent-primary);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
}

.badge-card.unlocked {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255,107,107,0.2);
}

.badge-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.badge-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.badge-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.badge-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.collection-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.collection-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card-profile {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.stat-card-profile h3 {
    font-size: 2rem;
    color: var(--accent-primary);
}

.stat-card-profile p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== BANDEAU ADBLOCK ===== */
.adblock-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa502 50%, #ff6b6b 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    color: white;
    padding: 0.7rem 3rem 0.7rem 1rem;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.adblock-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.adblock-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

.adblock-content:hover {
    animation-play-state: paused;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.adblock-content i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.adblock-content strong {
    font-weight: 700;
    margin: 0 0.3rem;
}

.adblock-close {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.adblock-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) rotate(90deg);
}

body.has-adblock-banner .hero {
    margin-top: 110px;
}

/* ===== MODE CINÉMA ===== */
.cinema-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

body.cinema-mode {
    background: #000 !important;
}

body.cinema-mode .header,
body.cinema-mode .movie-info-layout,
body.cinema-mode .content-section:not(.player-section-top .content-section),
body.cinema-mode .footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body.cinema-mode .player-section-top {
    padding-top: 0;
    margin-top: 0;
    max-width: 100%;
}

body.cinema-mode .video-wrapper {
    border-radius: 0;
    max-height: 100vh;
}

body.cinema-mode .cinema-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.cinema-mode:hover .cinema-controls {
    opacity: 1;
}

/* ===== NOTIFICATIONS DROPDOWN ===== */
.notif-dropdown {
    position: absolute;
    top: 70px;
    right: 5%;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
}

.notif-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.notif-item:hover {
    background: var(--bg-tertiary);
}

.notif-item.unread {
    background: rgba(255, 107, 107, 0.05);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-content strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.notif-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.notif-content small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ===== PWA BANNER ===== */
#pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: bottom 0.3s ease;
}

#pwa-install-banner.show {
    bottom: 20px;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-banner-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.pwa-banner-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pwa-btn-install {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.pwa-btn-install:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pwa-btn-dismiss:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
    margin-top: 3rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-primary);
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== UTILITAIRES ===== */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.badge-draft {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
}

.action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.action-btn:hover {
    background: var(--bg-tertiary);
}

.action-btn.danger {
    color: #ff4757;
}

.action-btn.danger:hover {
    background: rgba(255, 71, 87, 0.15);
}

.genre-chip {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.genre-chip:hover, .genre-chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* ============================================
   MOBILE APP STYLE (YouTube/WhatsApp)
   ============================================ */

@supports (padding: max(0px)) {
    .header {
        padding-top: max(0.5rem, env(safe-area-inset-top));
    }
    .bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
        background: #0f0f0f;
    }
    
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(15, 15, 15, 0.98);
        border-bottom: 1px solid #272727;
        padding: 0.6rem 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .nav-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }
    
    .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
    
    .nav-right .search-box {
        background: #272727;
        border-radius: 20px;
        padding: 0.5rem 0.9rem;
        border: none;
    }
    
    .nav-right .search-box i {
        color: #fff;
        font-size: 1rem;
    }
    
    .notif-btn {
        background: #272727;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        color: #fff;
    }
    
    .notif-badge {
        top: -3px;
        right: -3px;
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
    }
    
    .btn-logout {
        background: #272727;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: none;
    }
    
    .admin-badge {
        display: none;
    }
    
    .username {
        display: none;
    }
    
    .btn-sm {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    /* HERO MOBILE */
    .hero {
        height: 75vh;
        min-height: 480px;
        margin-top: 0;
    }
    
    .hero-overlay {
        background: linear-gradient(to top, #0f0f0f 0%, rgba(15,15,15,0.7) 40%, transparent 100%);
    }
    
    .hero-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1.5rem 1rem 2rem;
        text-align: left;
    }
    
    .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(255, 107, 107, 0.95);
        padding: 0.4rem 0.9rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        backdrop-filter: blur(10px);
    }
    
    .hero-title {
        font-size: 1.8rem;
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 0.6rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        word-wrap: break-word;
    }
    
    .hero-meta {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.8);
    }
    
    .hero-meta .rating {
        color: #ffa502;
        font-weight: 600;
    }
    
    .hero-meta .badge {
        background: rgba(255,255,255,0.15);
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .hero-desc {
        font-size: 0.85rem;
        line-height: 1.5;
        color: rgba(255,255,255,0.85);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        gap: 0.6rem;
    }
    
    .hero-buttons .btn {
        flex: 1;
        padding: 0.8rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        justify-content: center;
        border: none;
    }
    
    .hero-buttons .btn-primary {
        background: #ff6b6b;
        color: white;
    }
    
    .hero-buttons .btn-secondary {
        background: rgba(255,255,255,0.15);
        color: white;
        backdrop-filter: blur(10px);
    }
    
    /* SECTIONS MOBILE */
    .content-section {
        padding: 1.2rem 0;
    }
    
    .section-header {
        padding: 0 1rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    /* CAROUSEL HORIZONTAL STYLE YOUTUBE */
    .carousel {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.8rem;
        padding: 0 1rem 1rem;
        scrollbar-width: none;
    }
    
    .carousel::-webkit-scrollbar {
        display: none;
    }
    
    .movie-card {
        flex: 0 0 auto;
        width: 140px;
        scroll-snap-align: start;
    }
    
    .movie-poster {
        width: 100%;
        aspect-ratio: 2/3;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        background: #272727;
    }
    
    .movie-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .movie-overlay {
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    .movie-card:active .movie-overlay {
        opacity: 1;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
        background: rgba(255, 107, 107, 0.95);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        border: none;
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
    
    .play-btn i {
        font-size: 1.1rem;
        margin-left: 3px;
    }
    
    .movie-title {
        font-size: 0.85rem;
        font-weight: 500;
        margin-top: 0.5rem;
        color: #fff;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .movie-info {
        font-size: 0.75rem;
        color: #aaa;
        margin-top: 0.2rem;
    }
    
    .movie-badge, .movie-rank, .movie-year {
        position: absolute;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-weight: 600;
        backdrop-filter: blur(10px);
    }
    
    .movie-badge {
        top: 8px;
        right: 8px;
        background: rgba(0,0,0,0.7);
        color: white;
    }
    
    .movie-badge.new { background: #ff6b6b; }
    .movie-badge.continue { background: #00d4ff; }
    .movie-badge.soon { background: #745ef7; }
    
    .movie-year {
        bottom: 8px;
        left: 8px;
        background: rgba(0,0,0,0.8);
        color: white;
    }
    
    .movie-rank {
        top: 8px;
        left: 8px;
        background: #ff6b6b;
        color: white;
    }
    
    /* BOTTOM NAVIGATION */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0f0f0f;
        border-top: 1px solid #272727;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    }
    
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.4rem;
        color: #aaa;
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        transition: all 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bottom-nav-item i {
        font-size: 1.3rem;
    }
    
    .bottom-nav-item.active {
        color: #ff6b6b;
    }
    
    .bottom-nav-item:active {
        transform: scale(0.95);
    }
    
    /* PAGE FILM MOBILE */
    .player-section-top {
        margin-top: 0;
        background: #000;
    }
    
    .video-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
        background: #000;
    }
    
    .player-controls-bar {
        background: #0f0f0f;
        padding: 0.6rem;
        gap: 0.4rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #272727;
        margin: 0;
        max-width: 100%;
    }
    
    .control-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        border-radius: 20px;
        background: #272727;
        color: #fff;
        border: none;
    }
    
    .control-label {
        display: none;
    }
    
    .movie-info-layout {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .movie-poster-side {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .movie-details-side {
        width: 100%;
    }
    
    .movie-title-detail {
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }
    
    .movie-meta-detail {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .movie-genres {
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .genre-link {
        background: #272727;
        color: #fff;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        text-decoration: none;
    }
    
    .movie-description {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #ccc;
        margin-bottom: 1rem;
    }
    
    .movie-actions {
        flex-direction: row;
        gap: 0.6rem;
    }
    
    .movie-actions .btn {
        flex: 1;
        padding: 0.8rem;
        border-radius: 25px;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    /* SÉLECTEUR ÉPISODES MOBILE */
    #series-selector-container {
        padding: 1rem;
    }
    
    #episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 0.5rem;
    }
    
    .episode-btn {
        min-height: 50px;
        border-radius: 10px;
        background: #272727;
        color: #fff;
        border: none;
    }
    
    .episode-btn.active {
        background: #ff6b6b;
    }
    
    /* FOOTER MOBILE */
    .footer {
        padding: 2rem 1rem 1rem;
        margin-bottom: 70px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        color: #666;
    }
    
    /* BANDEAU ADBLOCK MOBILE */
    .adblock-banner {
        top: 60px;
        padding: 0.6rem 2.5rem 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .adblock-content {
        font-size: 0.8rem;
    }
    
    body.has-adblock-banner .hero {
        margin-top: 60px;
    }
    
    /* SEARCH MOBILE */
    .search-section {
        margin-top: 70px;
        padding: 1rem;
    }
    
    .search-big {
        border-radius: 25px;
        padding: 0.8rem 1rem;
    }
    
    .search-big input {
        font-size: 0.95rem;
    }
    
    .quick-suggestions {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .suggestion-chip {
        padding: 0.5rem 0.9rem;
        border-radius: 20px;
        font-size: 0.85rem;
    }
    
    .search-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* LOADER MOBILE */
    .page-loader {
        background: #0f0f0f;
    }
    
    .loader-logo {
        font-size: 2rem;
    }
    
    /* PWA BANNER MOBILE */
    #pwa-install-banner {
        width: 95%;
        bottom: 80px;
        border-radius: 12px;
    }
    
    .pwa-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }
    
    .pwa-banner-text p {
        display: none;
    }
    
    /* PROFIL MOBILE */
    .profile-page {
        margin-top: 70px;
        padding: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stats-grid-profile {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    /* COMMENTAIRES MOBILE */
    .comment-form {
        padding: 1rem;
    }
    
    .rating-input {
        font-size: 1.3rem;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* NOTIF DROPDOWN MOBILE */
    .notif-dropdown {
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
    }
}

/* ===== TABLETTE ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
        overflow-x: visible;
    }
    
    .movie-card {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ===== GRANDS ÉCRANS ===== */
@media (min-width: 1025px) {
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ===== MODE PAYSAGE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-desc {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}
/* Overlay anti-pub */
.video-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,29,41,0.95), rgba(15,15,15,0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.video-click-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    color: var(--text-primary);
}

.overlay-content i {
    font-size: 5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.video-wrapper {
    position: relative;
}
/* ============================================
   BLOQUEUR DE PUB - OVERLAY PROXY
   ============================================ */
#shield-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1d29 0%, #0f0f0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

#shield-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.shield-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: pulseShield 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.4);
}

.shield-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes pulseShield {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 107, 107, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(255, 107, 107, 0.6); }
}

.shield-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shield-subtitle {
    color: #a8adb8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.shield-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
}

.shield-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #2ed573;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.shield-feature i {
    font-size: 0.7rem;
}
/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.notif-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 360px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.notif-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.notif-item:hover {
    background: var(--bg-tertiary);
}

.notif-item.unread {
    background: rgba(255, 107, 107, 0.05);
    border-left: 3px solid var(--accent-primary);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1rem;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-content strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.notif-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.3rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-content small {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ============================================
   BOUTON SUIVRE UNE SÉRIE
   ============================================ */
.follow-btn {
    background: rgba(116, 94, 255, 0.15);
    color: #745ef7;
    border: 1px solid rgba(116, 94, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.follow-btn:hover {
    background: rgba(116, 94, 255, 0.25);
    transform: translateY(-2px);
}

.follow-btn.following {
    background: #745ef7;
    color: white;
}

.follow-btn.following:hover {
    background: #5a45d6;
}
/* ============================================
   BOUTON SOUTENIR VIVASTREAM
   ============================================ */
.donate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.donate-link:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donate-link i {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}