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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #000;
    color: white;

    font-family: Arial, Helvetica, sans-serif;

    overflow: hidden;
}


/* =========================================
   PAGE FILM
========================================= */

.film-page {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    background: black;
}


/* =========================================
   IMAGE DE FOND
========================================= */

.film-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}

.film-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* =========================================
   DÉGRADÉ SOMBRE
========================================= */

.film-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        /* gros dégradé noir gauche → droite */
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.92) 18%,
            rgba(0, 0, 0, 0.72) 36%,
            rgba(0, 0, 0, 0.25) 62%,
            rgba(0, 0, 0, 0.05) 100%
        ),

        /* assombrissement du bas */
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            transparent 65%
        );
}


/* =========================================
   CONTENU
========================================= */

.film-content {
    position: relative;

    z-index: 2;

    width: 520px;
    height: 100%;

    display: flex;
    flex-direction: column;

    /* on ne centre plus verticalement */
    justify-content: flex-start;

    padding-left: 4vw;

    /* position de tout le contenu depuis le haut */
    padding-top: 45px;
}



/* =========================================
   LOGO
========================================= */

.film-logo {
    position: fixed;

    top: 20px;
    right: 25px;
    left: auto;

    width: 70px;
    height: auto;

    object-fit: contain;

    margin: 0;

    z-index: 50;

    transition: transform 0.25s ease;
}

.film-logo:hover {
    transform: scale(1.08);
}


.back-button {
    position: fixed;

    top: 25px;
    left: 30px;

    z-index: 50;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;

    background: rgba(0,0,0,0.35);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: white;

    font-size: 27px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.back-button:hover {
    background: rgba(255,255,255,0.18);

    transform: scale(1.08);
}


/* =========================================
   TITRE
========================================= */

.TITRE {
    display: block;

    width: 250px;
    max-width: 100%;
    height: auto;

    margin-top: 80px;
    margin-bottom: 50px;
    margin-left: 80px ;
}


/* =========================================
   INFOS FILM
========================================= */

.film-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    font-size: 14px;

    color: #c7c7c7;
}


/* HD */

.film-meta span:last-child {
    padding: 2px 5px;

    border: 1px solid rgba(255,255,255,0.55);

    border-radius: 3px;

    font-size: 11px;

    color: white;
}


/* =========================================
   SYNOPSIS
========================================= */

.film-description {
    max-width: 470px;

    margin-bottom: 13px;

    font-size: 15px;

    line-height: 1.48;

    color: rgba(255,255,255,0.88);
}


/* =========================================
   CASTING
========================================= */

.film-cast {
    max-width: 470px;

    margin-bottom: 25px;

    font-size: 13px;

    line-height: 1.4;

    color: rgba(255,255,255,0.55);
}


/* =========================================
   MENU
========================================= */

.film-menu {
    width: 300px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


/* =========================================
   BOUTONS
========================================= */

.film-menu button {
    width: 100%;
    height: 44px;

    border: none;

    border-radius: 3px;

    padding: 0 16px;

    text-align: left;

    background: transparent;

    color: rgba(255,255,255,0.60);

    font-size: 16px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* SURVOL */

.film-menu button:hover {
    background: rgba(255,255,255,0.12);

    color: white;

    transform: translateX(5px);
}


/* =========================================
   REGARDER = BOUTON PRINCIPAL
========================================= */

#watchButton {
    background: white;

    color: black;

    font-weight: 600;

    margin-bottom: 5px;
}

#watchButton:hover {
    background: rgba(255,255,255,0.82);

    color: black;
}


/* =========================================
   ANIMATION APPARITION
========================================= */

@keyframes filmAppear {

    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}






/* ========================================
   OVERLAY EPISODES
======================================== */

.episodes-overlay {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px;

    /* voile sombre */
    background: rgba(0, 0, 0, 0.45);

    /* LE FLOU */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* Quand l'onglet est ouvert */

.episodes-overlay.active {

    opacity: 1;

    visibility: visible;
}



/* ========================================
   FENETRE
======================================== */

.episodes-panel {

    position: relative;

    width: min(1000px, 90vw);

    max-height: 85vh;

    overflow-y: auto;

    padding: 45px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(25, 25, 25, 0.97),
            rgba(5, 5, 5, 0.98)
        );

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 30px 100px rgba(0,0,0,0.8);

    transform: translateY(50px) scale(0.96);

    transition: transform 0.4s ease;
}


.episodes-overlay.active .episodes-panel {

    transform: translateY(0) scale(1);
}



/* ========================================
   BOUTON FERMER
======================================== */

.episodes-close {

    position: absolute;

    top: 20px;
    right: 22px;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,0.1);

    color: white;

    font-size: 18px;

    cursor: pointer;

    transition: 0.2s;
}


.episodes-close:hover {

    background: white;

    color: black;

    transform: rotate(90deg);
}



/* ========================================
   HEADER
======================================== */

.episodes-header {

    margin-bottom: 35px;
}


.episodes-header p {

    font-size: 11px;

    letter-spacing: 3px;

    color: #888;

    margin-bottom: 8px;
}


.episodes-header h2 {

    margin: 0;

    font-size: 42px;

    color: white;
}


.episodes-header span {

    display: block;

    margin-top: 8px;

    color: #aaa;

    font-size: 15px;
}



/* ========================================
   LISTE
======================================== */

.episodes-list {

    display: flex;

    flex-direction: column;
}



/* ========================================
   EPISODE
======================================== */

.episode-card {

    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 22px;

    padding: 20px 0;

    border-top: 1px solid rgba(255,255,255,0.10);

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.episode-card:hover {

    background: rgba(255,255,255,0.045);

    transform: translateX(5px);
}



/* ========================================
   MINIATURE
======================================== */

.episode-thumbnail {

    position: relative;

    width: 230px;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 6px;
}


.episode-thumbnail img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.episode-card:hover img {

    transform: scale(1.05);
}



/* BOUTON PLAY */

.episode-play {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0,0,0,0.65);

    border: 2px solid white;

    color: white;

    opacity: 0;

    transition: opacity 0.25s ease;
}


.episode-card:hover .episode-play {

    opacity: 1;
}



/* ========================================
   INFOS
======================================== */

.episode-info {

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.episode-title {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}


.episode-number {

    font-size: 11px;

    letter-spacing: 1px;

    color: #888;
}


.episode-info h3 {

    margin:

        5px
        0
        10px;

    font-size: 20px;

    color: white;
}


.episode-info p {

    max-width: 600px;

    margin: 0;

    color: #999;

    font-size: 14px;

    line-height: 1.5;
}


.episode-duration {

    color: #aaa;

    font-size: 13px;

    white-space: nowrap;
}






/* ===================================
   LECTEUR VIDEO W-STREAM
=================================== */

.STREAM-LECTEUR {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;

    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;
}


/* CACHER LE LECTEUR */

.STREAM-LECTEUR[hidden] {
    display: none;
}


/* VIDEO */

#STREAM-VIDEO {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #000;
}


/* BOUTON FERMER */

.STREAM-LECTEUR-FERMER {
    position: absolute;

    top: 30px;
    right: 35px;

    z-index: 10001;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;

    background: rgba(25,25,30,0.75);

    backdrop-filter: blur(12px);

    color: white;

    font-size: 24px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.STREAM-LECTEUR-FERMER:hover {
    background: rgba(220,35,45,0.95);

    transform: scale(1.1);
}