  
/**
 * Feuille de style finale et consolidée pour le plugin Platinum VOD.
 */

/* ============================================= */
/* --- VARIABLES ET STYLES GÉNÉRAUX --- */
/* ============================================= */
:root {
    --pvod-bg-color: #141414;
    --pvod-card-bg-color: #1d1d1d;
    --pvod-text-color: #e5e5e5;
    --pvod-text-secondary-color: #b3b3b3;
    --pvod-primary-color: #e50914;
    --pvod-border-radius: 4px;
    --pvod-transition-speed: 0.3s;
}

body {
    background-color: var(--pvod-bg-color) !important; 
    color: var(--pvod-text-color);
}

#platinum-vod-app {
    background-color: var(--pvod-bg-color);
}

/* ============================================= */
/* --- EN-TÊTE DE NAVIGATION --- */
/* ============================================= */
#platinum-vod-app .pvod-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 55px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0));
    z-index: 200;
    transition: background-color 0.3s ease;
}

#platinum-vod-app .pvod-header-scrolled { 
    background-color: var(--pvod-bg-color); 
}

/*
 * Style du logo inspiré de Netflix
 */
#platinum-vod-app .pvod-logo {
  font-family: 'Bebas Neue', sans-serif;
  color: #E50914; /* Rouge Netflix officiel */
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1.5px; /* Un peu plus d'espace */
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6); /* Ombre plus diffuse */
  margin-right: 25px;
  transition: all 0.4s ease; /* Transition pour tous les effets */
  
  /* Effet 3D pour simuler la courbe "demi-lune" */
  transform: perspective(500px) rotateX(20deg);
}

#platinum-vod-app .pvod-logo:hover {
  color: #f40612; /* Un rouge légèrement plus vif au survol */
  transform: perspective(500px) rotateX(10deg); /* L'effet se redresse un peu au survol */
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

#platinum-vod-app .pvod-header-nav {
    display: flex;
    align-items: center;
    width: 100%;
}
#platinum-vod-app .pvod-header-nav a {
    color: #e5e5e5; 
    text-decoration: none; 
    margin-right: 20px;
    font-weight: bold; 
    transition: color 0.2s ease;
}

#platinum-vod-app .pvod-header-nav a:hover,
#platinum-vod-app .pvod-header-nav a.active { 
    color: #b3b3b3; 
}

/* ============================================= */
/* --- HERO BANNER (À LA UNE) --- */
/* ============================================= */
.pvod-hero-container {
    width: 100%;
    /* MODIFICATION : Ajustez la hauteur pour un ratio plus cinématique */
    height: 85vh; /* Vous pouvez jouer avec cette valeur (ex: 85vh, 95vh) */
    position: relative;
    display: flex;
    align-items: center;
    background-color: #000;
}

.pvod-hero-background,
.pvod-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* MODIFICATION : Dégradé plus subtil pour un look cinéma */
    background: 
        linear-gradient(to bottom, rgba(20, 20, 20, 0.5) 0%, transparent 20%, transparent 80%, rgba(20, 20, 20, 1) 100%),
        linear-gradient(to right, rgba(20, 20, 20, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pvod-hero-background iframe,
.pvod-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changez 'contain' pour 'cover' */
    border: none;
}

.pvod-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* On combine plusieurs dégradés pour un effet complet */
    background: 
        /* 1. Dégradé en haut et en bas pour l'effet cinéma */
        linear-gradient(to bottom, rgba(20, 20, 20, 0.8) 0%, transparent 25%, transparent 75%, rgba(20, 20, 20, 0.8) 100%),
        /* 2. Dégradé sur la gauche pour la lisibilité du titre */
        linear-gradient(to right, rgba(20, 20, 20, 0.8) 20%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pvod-hero-content {
    padding-left: 55px;
    max-width: 50%;
}

.pvod-hero-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.pvod-hero-buttons {
    display: flex;
    gap: 15px;
}

.pvod-hero-play-button,
.pvod-hero-info-button {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.pvod-hero-play-button {
    background-color: #fff;
    color: #000;
}
.pvod-hero-play-button:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.pvod-hero-info-button {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}
.pvod-hero-info-button:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

.pvod-hero-play-button svg,
.pvod-hero-info-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ============================================= */
/* --- SECTIONS ET RANGÉES DE CONTENU --- */
/* ============================================= */
#platinum-vod-app .pvod-sections-container {
    display: flex; 
    flex-direction: column;
    gap: 40px; 
    padding-top: 80px;
}

#platinum-vod-app .pvod-section-title {
    font-size: 1.4em; 
    font-weight: bold;
    margin: 0 0 15px 55px;
}

#platinum-vod-app .pvod-row { 
    position: relative; 
}

#platinum-vod-app .pvod-row-content {
    display: flex; 
    gap: 10px; 
    padding: 50px 55px;
    margin: -50px -55px;
    overflow-x: auto; 
    scroll-behavior: smooth;
}

#platinum-vod-app .pvod-row-content::-webkit-scrollbar { 
    display: none; 
}

#platinum-vod-app .pvod-row-content { 
    scrollbar-width: none; 
}

/* ============================================= */
/* --- RANGÉE TOP 10 (VERSION AMÉLIORÉE) --- */
/* ============================================= */

.pvod-item-top10-wrapper.pvod-item-is-active {
    z-index: 10;
}

.pvod-section-top10 {
    padding-top: 10px;
    padding-bottom: 20px;
    /* On confirme qu'on ne met PAS 'overflow: hidden;' ici. C'est crucial. */
}

.pvod-row-top10 {
    display: flex;
    gap: 40px; /* AUGMENTÉ : Plus d'espace entre chaque élément */
    padding: 20px 55px;
    min-height: 450px;
    align-items: center;
    overflow: visible; 
}

.pvod-item-top10 {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 270px; /* AUGMENTÉ : On donne plus de largeur à chaque item */
    margin: 0 -20px;
    padding: 0 20px;
}

.pvod-top10-poster-container {
    position: absolute;
    top: 50%;
    left:110px; /* AUGMENTÉ : On pousse l'affiche bien plus à droite */
    transform: translateY(-50%);
    z-index: 2;
    height: 100%;
    width: 140px;
    transition: transform 0.2s ease-out;
}
.pvod-item-top10:hover {
    z-index: 100;
}

.pvod-top10-number {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 16em;
    line-height: 1;
    z-index: 1;
    text-shadow: none;
    color: transparent;
    -webkit-text-stroke: 4px #6c6c6c;
    text-stroke: 4px #6c6c6c;
    /* On retire le transform pour ne pas tasser le chiffre */
}

.pvod-item-top10:hover .pvod-top10-poster-container {
    transform: translateY(-50%) scale(1.15);
}

.pvod-top10-poster-container .pvod-item-poster-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--pvod-border-radius);
    cursor: pointer;
}

.pvod-item-top10-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

/* ============================================= */
/* --- CARTE INDIVIDUELLE (POSTER) --- */
/* ============================================= */
#platinum-vod-app .pvod-item {
    flex: 0 0 14%; /* Posters plus petits */
    min-width: 160px; /* Taille minimale réduite */
    border-radius: var(--pvod-border-radius);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
	aspect-ratio: 2 / 3;
}

#platinum-vod-app .pvod-item:hover {
    z-index: 100;
}

#platinum-vod-app .pvod-item-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--pvod-border-radius);
}
/* --- NOUVEAUX STYLES POUR LE TITRE DU POPUP --- */
.pvod-preview-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Hauteur du dégradé */
    background: linear-gradient(to top, rgba(24, 24, 24, 1) 10%, transparent);
    z-index: 3;
    border-radius: 0 0 6px 6px;
    pointer-events: none;
}

.pvod-preview-title {
    position: absolute;
    bottom: 15px; /* Espace par rapport au bas */
    left: 15px; /* Espace par rapport à la gauche */
    right: 50px; /* Espace pour ne pas toucher le bouton de volume */
    z-index: 4;
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." si le titre est trop long */
}
/* ============================================= */
/* --- POPUP DE PRÉVISUALISATION (SURVOL) --- */
/* ============================================= */
.pvod-preview-container {
    position: absolute;
    z-index: 101;
    top: 50%;
    /* MODIFIEZ LA LIGNE SUIVANTE */
    width: 380px; /* Ancien: 180% */
    background-color: #181818;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    animation-duration: 0.3s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

/* Règles pour l'alignement calculé par le JavaScript */
.pvod-preview-container.align-center {
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    animation-name: preview-pop-center;
}

.pvod-preview-container.align-left {
    left: 0;
    transform: translate(0, -50%) scale(0.7);
    animation-name: preview-pop-left;
}

.pvod-preview-container.align-right {
    left: 100%;
    transform: translate(-100%, -50%) scale(0.7);
    animation-name: preview-pop-right;
}

/* Animations de zoom pour chaque alignement */
@keyframes preview-pop-center {
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes preview-pop-left {
    to { transform: translate(0, -50%) scale(1); opacity: 1; }
}
@keyframes preview-pop-right {
    to { transform: translate(-100%, -50%) scale(1); opacity: 1; }
}

/* Rend le popup cliquable une fois qu'il est visible */
.pvod-item:hover .pvod-preview-container,
.pvod-item-top10:hover .pvod-preview-container {
    pointer-events: auto;
}
/* ============================================= */
/* --- CONTENU DU POPUP (BOUTONS, TITRE, MÉTA) --- */
/* ============================================= */

.pvod-preview-progress-bar {
    position: relative;
    width: 100%;
    height: 3px;
    background-color: #404040; /* Couleur de la barre de fond */
    margin: 15px 0;
    border-radius: 2px;
}

.pvod-preview-progress-bar .pvod-progress-bar-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #e50914; /* Couleur rouge de la progression */
    border-radius: 2px;
}

.pvod-preview-progress-bar span {
    position: absolute;
    right: 0;
    top: -20px; /* Positionne le texte au-dessus de la barre */
    font-size: 0.8em;
    color: var(--pvod-text-secondary-color);
}

.pvod-preview-video {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background-color: #000;
}

.pvod-preview-video iframe,
.pvod-preview-video img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pvod-preview-info {
    padding: 15px;
    position: relative;
    z-index: 5;
}

.pvod-preview-video {
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    position: relative;
    background-color: #000;
}

.pvod-preview-video iframe,
.pvod-preview-video img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pvod-preview-info {
    padding: 15px;
}

.pvod-preview-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pvod-preview-buttons button {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: rgba(42, 42, 42, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    padding: 8px; /* Ajuste la taille de l'icône à l'intérieur */
}

.pvod-preview-buttons button:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Style spécifique pour le bouton Play */
.pvod-preview-buttons .pvod-play-button {
    background-color: #fff;
    color: #141414; /* Icône noire */
    border-color: #fff;
}
.pvod-preview-buttons .pvod-play-button:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.pvod-preview-buttons .pvod-action-button:hover {
    color: #141414; /* Icône noire au survol */
}

/* Pousse le bouton "More Info" complètement à droite */
.pvod-preview-buttons .pvod-details-arrow {
    margin-left: auto;
}

.pvod-preview-buttons svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* NOUVEAUX STYLES POUR LES MÉTA-DONNÉES ET LES GENRES */
.pvod-preview-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
    font-weight: bold;
    color: #b3b3b3;
    margin-top: 12px;
}

.pvod-meta-content-rating {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    line-height: 1;
}

.pvod-meta-score {
    color: #46d369; /* Vert pour la note */
}

.pvod-preview-genres {
    margin-top: 8px;
    font-size: 0.85em;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================= */
/* --- LECTEUR VIDÉO PRINCIPAL (MODALE) --- */
/* ============================================= */
.pvod-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvod-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* NOUVELLE RÈGLE POUR CORRIGER LA TAILLE DE LA VIDÉO */
#pvod-player-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pvod-video-player, 
#pvod-player-container iframe {
    width: 100%; 
    height: 100%; 
    border: none;
}

.pvod-close-button {
    position: fixed; 
    top: 20px; 
    right: 30px;
    color: #fff; 
    font-size: 40px; 
    font-weight: bold;
    cursor: pointer; 
    z-index: 3010;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    transition: transform 0.2s ease, color 0.2s ease;
}

.pvod-close-button:hover { 
    color: var(--pvod-primary-color); 
    transform: scale(1.1); 
}

/* ============================================= */
/* --- MODALE DE DÉTAILS (CLIC) --- */
/* ============================================= */
/* ... (Cette section est longue et correcte, elle reste inchangée) ... */

.pvod-details-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px; /* Espace sous les boutons */
}

.pvod-play-button-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--pvod-border-radius);
    background-color: #fff;
    color: #141414;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color var(--pvod-transition-speed) ease;
}

.pvod-play-button-large:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.pvod-play-button-large svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.pvod-action-button-large {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    transition: all var(--pvod-transition-speed) ease;
}

.pvod-action-button-large:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.pvod-action-button-large svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}


.pvod-details-modal { 
    position: fixed;
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    overflow-y: auto; /* Permet de scroller si le contenu est trop long */
    display: flex;
    /* On retire align-items: center pour un alignement en haut par défaut */
    justify-content: center;
    padding-top: 5vh; /* Ajoute une marge en haut de 5% de la hauteur de l'écran */
    padding-bottom: 5vh; /* Ajoute une marge en bas */
}
.pvod-details-modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    background-color: #181818;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    overflow-y: auto;
    
    /* On remplace l'animation par une transition */
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.pvod-details-modal-content.visible {
    opacity: 1;
    transform: translateY(0);
}
.pvod-details-header {
    position: relative; 
    padding-top: 56.25%; /* Force un ratio 16:9 pour l'en-tête */
    color: #fff;
    background-color: #000; /* Fond noir si l'image ne charge pas */
}

/* AJOUTEZ CES NOUVELLES RÈGLES JUSTE APRÈS */
.pvod-details-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se place derrière l'overlay */
}

.pvod-details-header-background iframe,
.pvod-details-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit l'espace */
    border: 0;
}

.pvod-details-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Hauteur du dégradé */
    background: linear-gradient(to top, rgba(24, 24, 24, 1) 10%, rgba(24, 24, 24, 0) 100%);
    z-index: 2; /* Se place entre le fond vidéo et le titre */
    pointer-events: none; /* Permet les clics "à travers" */
}
.pvod-details-title {
    position: absolute; /* Positionnement par rapport au header */
    bottom: 8%;         /* Position en bas, au-dessus des boutons (si vous en ajoutez plus tard) */
    left: 50px;
    right: 50px;
    z-index: 3;         /* S'assure qu'il est au-dessus de l'overlay */
    margin: 0;
    font-size: 2.5em;   /* Taille plus percutante */
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9); /* Ombre portée pour une lisibilité maximale sur la vidéo */
}

.pvod-details-meta { 
    display: flex; 
    gap: 15px; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

.pvod-details-rating { 
    color: #46d369; 
}

.pvod-details-description { 
    font-size: 1em; 
    line-height: 1.5; 
    max-width: 100%; /* La description peut maintenant prendre toute la largeur */
    margin-bottom: 15px;
}

.pvod-details-info-grid { 
    margin-top: 20px; 
    font-size: 0.8em; 
    color: #ccc; 
}

.pvod-details-info-grid p { 
    margin: 0 0 5px 0; 
}

.pvod-details-label { 
    color: #777; 
}
.pvod-details-close-button {
    position: absolute; 
    top: 15px; right: 15px;
    width: 36px; height: 36px; 
    background: rgba(0,0,0,0.7);
    color: #fff; 
    border-radius: 50%; 
    border: none;
    font-size: 24px; 
    cursor: pointer; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    z-index: 10;
}
.pvod-details-body {
    padding: 25px 50px;
    background-color: #181818; /* Assure la continuité du fond */
}
.pvod-seasons-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #404040; padding-bottom: 1em; margin-bottom: 1em;
}
.pvod-seasons-header h3 { margin: 0; font-size: 1.5em; }
.pvod-season-select {
    background-color: #333; color: #fff; border: 1px solid #555;
    border-radius: 4px; padding: 8px 12px; font-size: 1em;
}
.pvod-episodes-grid { display: flex; flex-direction: column; gap: 1px; }
.pvod-episode-card {
    display: grid; grid-template-columns: 40px 140px 1fr;
    align-items: center; gap: 15px; padding: 1em;
    border-radius: 4px; cursor: pointer; transition: background-color 0.2s ease;
}
.pvod-episode-card:hover { background-color: #2a2a2a; }
.pvod-episode-number { font-size: 1.5em; color: #777; text-align: center; }
.pvod-episode-thumbnail { position: relative; width: 140px; border-radius: 4px; overflow: hidden; }
.pvod-episode-thumbnail img { width: 100%; display: block; }
.pvod-play-icon-small {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 1.5em; color: #fff;
    opacity: 0; transition: opacity 0.2s ease;
    background-color: rgba(0,0,0,0.5); border-radius: 50%;
    width: 40px; height: 40px; display: flex;
    align-items: center; justify-content: center;
}
.pvod-episode-card:hover .pvod-play-icon-small { opacity: 1; }
.pvod-episode-title { margin: 0 0 5px 0; font-size: 1em; font-weight: bold; }
.pvod-episode-overview { margin: 0; font-size: 0.85em; color: #999; }

/* ============================================= */
/* --- FLÈCHES DE DÉFILEMENT --- */
/* ============================================= */
#platinum-vod-app .pvod-scroll-arrow {
    position: absolute; 
    top: 0; bottom: 0; 
    width: 55px;
    background-color: rgba(0, 0, 0, 0.5); 
    color: #fff;
    border: none; 
    font-size: 2.5em; 
    font-weight: bold;
    cursor: pointer; 
    z-index: 20; 
    display: flex;
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.2s ease;
}

#platinum-vod-app .pvod-row:hover .pvod-scroll-arrow { 
    opacity: 1; 
}

#platinum-vod-app .pvod-scroll-arrow:hover { 
    background-color: rgba(0, 0, 0, 0.8); 
}

#platinum-vod-app .pvod-scroll-arrow.left { left: 0; }
#platinum-vod-app .pvod-scroll-arrow.right { right: 0; }

/* ============================================= */
/* --- RESPONSIVE DESIGN --- */
/* ============================================= */
@media (max-width: 768px) {
    #platinum-vod-app .pvod-item { flex-basis: 28%; min-width: 150px; }
    #platinum-vod-app .pvod-scroll-arrow { display: none; }
    #platinum-vod-app .pvod-row-content { padding: 50px 20px; margin: -50px -20px; }
    #platinum-vod-app .pvod-header { padding: 15px 20px; }
    #platinum-vod-app .pvod-section-title { margin-left: 20px; }
}

@media (max-width: 480px) {
    #platinum-vod-app .pvod-item { flex-basis: 45%; min-width: 120px; }
    .pvod-details-body { padding: 15px 20px 20px 20px; }
    .pvod-details-title { font-size: 1.8em; }
}

/* ============================================= */
/* --- HERO : Positionnement du bouton de volume --- */
/* ============================================= */
.pvod-hero-container .pvod-mute-button {
    position: absolute;
    right: 5%;      /* Positionné à 5% du bord droit */
    bottom: 35%;    /* Positionné à 35% du bas */
    z-index: 10;
}

/* ============================================= */
/* --- BOUTON DE VOLUME (MUTE/UNMUTE) --- */
/* ============================================= */
.pvod-mute-button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Empêche le bouton de rétrécir */
    color: #ffffff; /* S'assure que l'icône SVG est blanche */
}

.pvod-mute-button:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.pvod-mute-button svg {
    width: 100%;
    height: 100%;
}

/* Positionnement pour l'aperçu au survol */
.pvod-preview-video .pvod-mute-button {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 6px;
    background-color: rgba(26, 26, 26, 0.5);
}

/* Positionnement du bouton de volume dans la modale de détails */
.pvod-details-header .pvod-mute-button {
    position: absolute;
    right: 60px; /* Espace pour le bouton fermer */
    bottom: 20px;
    z-index: 5;
    width: 40px;
    height: 40px;
    background-color: rgba(26, 26, 26, 0.6);
}

/* Cible pour les lecteurs vidéo dynamiques */
#details-youtube-player,
[id^="preview-player-"] {
    width: 100%;
    height: 100%;
}
/* ============================================= */
/* --- PAGE D'AUTHENTIFICATION (LOGIN/SIGNUP) --- */
/* ============================================= */

.pvod-auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--pvod-bg-color);
}

/* Conteneur pour le logo et le formulaire */
.pvod-auth-content {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style spécifique pour le logo sur la page d'authentification */
.pvod-auth-logo {
    font-size: 4rem; /* Plus grand */
    margin-bottom: 40px; /* Espace en dessous */
    text-align: center;
    margin-right: 0; /* Annule la marge du header */
}

.pvod-auth-box {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 60px 68px 40px;
    border-radius: var(--pvod-border-radius);
    box-sizing: border-box;
}

.pvod-auth-box h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 28px;
}

.pvod-auth-box input {
    width: 100%;
    height: 50px;
    background: #333;
    border: none;
    border-radius: var(--pvod-border-radius);
    padding: 16px 20px;
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.pvod-auth-box button {
    width: 100%;
    padding: 16px;
    border-radius: var(--pvod-border-radius);
    background: var(--pvod-primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    margin-top: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pvod-auth-box button:hover {
    background: #f40612;
}

.pvod-auth-switch {
    color: #737373;
    margin-top: 16px;
}

.pvod-auth-switch a {
    color: #fff;
    text-decoration: none;
}

.pvod-auth-switch a:hover {
    text-decoration: underline;
}
/* Style pour le lien d'annulation sur la page de connexion */
.pvod-auth-cancel {
    text-align: center;
    margin-top: 25px;
}

.pvod-auth-cancel a {
    color: #b3b3b3; /* Gris clair */
    text-decoration: none;
    font-size: 0.9em;
}

.pvod-auth-cancel a:hover {
    text-decoration: underline;
}
/* Style pour le lien "Forgot password?" */
.pvod-auth-forgot {
    text-align: center; /* Centre le lien */
    margin-top: 15px;
}

.pvod-auth-forgot a {
    color: #b3b3b3; /* Gris clair */
    font-size: 0.9em;
    text-decoration: none;
}

.pvod-auth-forgot a:hover {
    text-decoration: underline;
}
/* ============================================= */
/* --- FONCTION DE RECHERCHE --- */
/* ============================================= */

.pvod-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.pvod-search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.pvod-search-button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.pvod-search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: rgba(0,0,0,0.75);
    border: 1px solid #fff;
    padding: 4px;
}

.pvod-search-input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 200px;
    padding: 5px;
    font-size: 0.9em;
}

/* Animation pour l'apparition du champ de recherche */
.pvod-search-fade-enter-active, .pvod-search-fade-leave-active {
  transition: all 0.4s ease;
}
.pvod-search-fade-enter-from, .pvod-search-fade-leave-to {
  width: 0;
  opacity: 0;
  padding: 4px 0;
}
.pvod-search-fade-enter-to, .pvod-search-fade-leave-from {
  width: 220px; /* Largeur finale du conteneur */
  opacity: 1;
}

/* Conteneur pour les résultats de recherche */
.pvod-search-results-container {
    padding: 100px 55px 40px;
}

.pvod-search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* ============================================= */
/* --- HERO BANNER (MODE CINÉMA PLEINE LARGEUR) --- */
/* ============================================= */

.pvod-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Très important : cache les parties de la vidéo qui dépassent */
    z-index: 1;
}

.pvod-hero-background iframe {
    /* Positionnement au centre parfait du conteneur */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* --- La magie du 16:9 "cover" --- */
    /* Ces valeurs forcent la vidéo à être toujours plus grande que son conteneur, 
       ce qui masque les bandes noires sur les côtés. */
    width: 177.77vh; /* Hauteur de l'écran * 16/9 */
    height: 56.25vw; /* Largeur de l'écran * 9/16 */
    min-width: 100%;
    min-height: 100%;
}

/* ============================================= */
/* --- PAGE "BROWSE BY LANGUAGE" --- */
/* ============================================= */

.pvod-language-browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 55px 20px 55px;
}

.pvod-language-browser-header h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

.pvod-language-selector-wrapper {
    position: relative;
	z-index: 1;
}

.pvod-language-selector-wrapper select {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 30px 8px 15px;
    font-size: 1em;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Style pour la flèche du menu déroulant */
.pvod-language-selector-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    pointer-events: none;
}
/* ============================================= */
/* --- STYLES POUR L'ADMINISTRATION WORDPRESS --- */
/* ============================================= */

/* Boîte stylisée pour les sections de réglages */
.pvod-collapsible-box {
    border: 1px solid #c3c4c7;
    margin-top: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    background: #fff;
}

.pvod-collapsible-box .pvod-box-header {
    padding: 10px 15px;
    border-bottom: 1px solid #c3c4c7;
    background: #f9f9f9; /* Ajoute un fond légèrement grisé */
}

.pvod-collapsible-box h3 {
    margin: 0;
    font-size: 1.2em;
}

.pvod-collapsible-box .pvod-box-header p.description {
    margin: 5px 0 0;
}

.pvod-collapsible-box .pvod-box-content {
    padding: 15px;
}

/* Style spécifique pour la boîte de réinitialisation (alerte) */
.pvod-collapsible-box .pvod-box-header.pvod-header-warning {
    border-left: 4px solid #d63638; /* Bordure rouge pour l'avertissement */
}

/* ============================================= */
/* --- EN-TÊTE SECONDAIRE (TITRE + FILTRE GENRE) --- */
/* ============================================= */

/*
 * Conteneur de la barre secondaire
 */
.pvod-page-header {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 199;
    
    /* LIGNE MODIFIÉE : Opacité encore plus faible */
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.7) 0%, rgba(20, 20, 20, 0.2) 100%);
    
    /* LIGNE MODIFIÉE : Flou légèrement réduit pour accentuer la transparence */
    -webkit-backdrop-filter: blur(5px); /* Diminue le flou */
    backdrop-filter: blur(5px);         /* Diminue le flou */
    
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 55px;
}

.pvod-page-header h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

/*
 * Règle pour pousser le contenu (Hero + Sections) sous les deux barres
 */
.pvod-hero-container, .pvod-sections-container {
    position: relative; /* Ajout important pour définir le contexte de superposition */
    z-index: 10; /* S'assure qu'il est en dessous des barres fixes */
    padding-top: 180px; /* Espace pour les deux barres de menu */
}


/* ============================================= */
/* --- FILTRE DE GENRE (STYLE NETFLIX) --- */
/* ============================================= */

/* Conteneur du sélecteur */
.pvod-genre-filter {
    position: relative;
    margin-left: -10px; /* Rapproche le filtre du titre */
}

/* Style du sélecteur pour ressembler à Netflix */
.pvod-genre-filter select {
    background-color: #141414; /* Fond noir identique au reste */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 6px 30px 6px 12px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 2px; /* Léger arrondi */
    transition: all 0.2s ease;
}

.pvod-genre-filter select:hover {
    border-color: #fff;
    background-color: rgba(42, 42, 42, 0.9);
}

/* Style pour la petite flèche du menu déroulant */
.pvod-genre-filter::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    pointer-events: none;
}

/* ============================================= */
/* --- GRILLE DE CONTENU FILTRÉ --- */
/* ============================================= */

.pvod-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les posters */
    padding: 20px 4%; /* Marges sur les côtés */
}

.pvod-grid .pvod-item {
    width: calc(16.666% - 10px); /* Affiche 6 posters par ligne */
    /* Pour 7 par ligne, utilisez : width: calc(14.28% - 10px); */
    /* Pour 5 par ligne, utilisez : width: calc(20% - 10px); */
}

//* ============================================= */
/* --- FILTRE DE GENRE (STYLE NETFLIX) --- */
/* ============================================= */

/* Conteneur principal du filtre */
.pvod-genre-filter {
    position: relative; /* Essentiel pour positionner le menu déroulant */
    margin-left: -10px;
}

/* Style du bouton "Genres" */
.pvod-genre-button {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 7px 15px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.pvod-genre-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pvod-genre-button span {
    margin-right: 15px;
}

.pvod-genre-button .pvod-arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    margin: 0;
}

/* Le panneau déroulant qui s'affiche */
.pvod-genre-dropdown {
    position: absolute;
    top: calc(100% + 15px); /* Se positionne sous le bouton avec une marge */
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #fff;
    padding: 1.5em;
    z-index: 200;
    width: 550px; /* Largeur du panneau */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* LA CLÉ : Création des colonnes */
.pvod-genre-dropdown ul {
    list-style: none; /* Retire les puces */
    margin: 0;
    padding: 0;
    -webkit-column-count: 3; /* Pour Safari/Chrome */
    -moz-column-count: 3;    /* Pour Firefox */
    column-count: 3;         /* Standard */
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
}

/* Style des liens dans le menu */
.pvod-genre-dropdown li {
    margin-bottom: 1em;
    /* Empêche un genre de se couper entre deux colonnes */
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.pvod-genre-dropdown li a {
    color: #fff;
    text-decoration: none; /* Retire le soulignement */
    display: block;
    font-size: 0.9em;
}

.pvod-genre-dropdown li a:hover {
    text-decoration: underline; /* Ajoute le soulignement au survol, comme Netflix */
}

//* ============================================= */
/* --- AFFICHE 7 POSTERS PAR RANGÉES (SECTION LANGUAGES) --- */
/* ============================================= */
#platinum-vod-app .pvod-language-view .pvod-item {
  /*
   * On définit une largeur fixe, similaire à celle des posters 
   * dans les autres rangées de l'application.
   * La valeur de 180px est une estimation courante.
  */
  width: 160px !important; 
  
  /* On garde cette règle pour éviter que la dernière ligne ne s'étire */
  flex-grow: 0 !important;
}

/* ============================================= */
/* --- AFFICHE LA TV --- */
/* ============================================= */

/* Règle pour le conteneur principal */
.pvod-sections-container {
    padding-top: 68px; 
}

/* Règle pour le conteneur de l'iframe */
.pvod-iframe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 68px); 
    margin-top: -68px;
    background-color: #000000 !important; /* Ajouté : Fond noir */
}

.pvod-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/*
 * Correction pour les éléments de navigation à droite (Recherche, Utilisateur, Exit)
 */

/* Étape 1 : On étire le conteneur et on espace les éléments */
.pvod-nav-right {
    display: flex;
    align-items: center; /* Aligne tout verticalement au centre */
    gap: 20px;           /* Ajoute un espace de 20px entre chaque élément */
}

/* Étape 2 : On met le texte et les liens en blanc */
.pvod-nav-right a,
.pvod-nav-right .pvod-user-greeting {
    color: #ffffff;
    text-decoration: none; /* Enlève le soulignement bleu */
}

/* Étape 3 : On s'assure que les icônes (SVG) sont aussi blanches */
.pvod-nav-right .pvod-search-button,
.pvod-nav-right a svg {
    color: #ffffff;
    fill: currentColor; /* Le SVG prendra la couleur blanche définie ci-dessus */
}

/* Étape 4 (Optionnel) : On change la couleur au survol pour un meilleur effet */
.pvod-nav-right a:hover {
    color: #b3b3b3; /* Un gris clair au survol */
}
.pvod-user-greeting {
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}
/* Cible le conteneur du lecteur YouTube dans la section "hero" */
.pvod-hero-background iframe {
  pointer-events: none; /* Empêche le clic sur la vidéo elle-même pour éviter d'aller sur YouTube */
}

/* Cible les lecteurs dans les modales et les aperçus pour les rendre cliquables si besoin */
.pvod-details-header-background iframe,
.pvod-preview-video iframe {
  pointer-events: auto; /* Rétablit le comportement normal pour les autres lecteurs */
}

/*
 * NOTE IMPORTANTE : Les sélecteurs ci-dessous dépendent de la structure interne de YouTube.
 * YouTube peut les changer à tout moment, ce qui pourrait annuler l'effet de ce code.
 * Malheureusement, c'est la seule méthode disponible.
*/
:deep(.ytp-cards-button),
:deep(.ytp-button[aria-label="Regarder plus tard"]),
:deep(.ytp-button[aria-label="Partager"]),
:deep(.ytp-watermark) {
    display: none !important;
    opacity: 0 !important;
}