/* =========================================================
   IVOIRE PLAY — PREMIUM STREAMING DESIGN
   Thème cinéma : noir, blanc, orange et verre dépoli
   Cartes paysage avec actions directement sur les affiches
   ========================================================= */

/* ==================== 1. VARIABLES ==================== */

:root {
    --background: #080808;
    --background-soft: #101010;
    --surface: #151515;
    --surface-light: #202020;

    --orange: #ff7600;
    --orange-light: #ff963d;
    --orange-dark: #d85f00;

    --text: #ffffff;
    --text-secondary: #b7b7b7;
    --text-muted: #777777;

    --glass: rgba(18, 18, 18, 0.76);
    --glass-light: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);

    --danger: #ff4949;
    --success: #39d98a;

    --navbar-height: 76px;
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;

    --transition: 0.28s ease;
    --content-padding: 4.5%;

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --orange-glow: 0 0 30px rgba(255, 118, 0, 0.18);
}

/* ==================== 2. RESET ==================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 16px);
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255, 118, 0, 0.055),
            transparent 40%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.55;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
    cursor: pointer;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
}

img {
    display: block;
}

::selection {
    color: white;
    background: var(--orange);
}

::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: #3b3b3b;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==================== 3. LOGO ==================== */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.6px;
    line-height: 1;
    white-space: nowrap;
}

.logo-ivoire {
    color: #ffffff;
}

.logo-play {
    color: var(--orange);
    margin-left: 5px;
}

.logo:hover .logo-play {
    text-shadow: 0 0 20px rgba(255, 118, 0, 0.55);
}

/* ==================== 4. NAVIGATION ==================== */

.navbar {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;
    right: 0;

    height: var(--navbar-height);
    padding: 0 var(--content-padding);

    display: flex;
    align-items: center;
    gap: 24px;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.97),
        rgba(8, 8, 8, 0.88)
    );

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

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

    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.96);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    position: relative;

    padding: 9px 0;

    border: none;
    background: transparent;

    color: #c9c9c9;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition: color var(--transition);
}

.nav-link::after {
    content: "";

    position: absolute;
    bottom: 1px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--orange);
    border-radius: 10px;

    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.icon-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;

    flex-shrink: 0;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.icon-button:hover {
    background: var(--glass-light);
    border-color: var(--glass-border);
}

.icon-button svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.account-button {
    min-height: 40px;
    padding: 0 16px;

    background: linear-gradient(
        135deg,
        var(--orange),
        var(--orange-dark)
    );

    color: white;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;

    box-shadow: 0 5px 20px rgba(255, 118, 0, 0.15);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.account-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 118, 0, 0.3);
}

.adminAccessButton {
    flex-shrink: 0;
}

/* ==================== 5. RECHERCHE ==================== */

.search-box {
    width: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;

    transition:
        width 0.3s ease,
        opacity 0.3s ease;
}

.search-box.open {
    width: 220px;
    opacity: 1;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 13px;

    color: white;
    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;

    outline: none;
}

.search-box input:focus {
    border-color: rgba(255, 118, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.09);
}

.search-box input::placeholder {
    color: #929292;
}

/* ==================== 6. STRUCTURE DES PAGES ==================== */

#mainContent {
    min-height: 70vh;
}

.page {
    display: none;
    min-height: 70vh;
    animation: pageAppear 0.35s ease both;
}

.page.active,
.catalog-page.active {
    display: block;
}

@keyframes pageAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 7. GRANDE BANNIÈRE HERO ==================== */

.hero {
    position: relative;

    min-height: 590px;
    height: min(76vh, 790px);

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 75% 35%,
            rgba(255, 118, 0, 0.13),
            transparent 40%
        ),
        linear-gradient(
            120deg,
            #17110c,
            #090909 55%,
            #111111
        );
}
.hero-background {
    position: absolute;
    z-index: -3;
    inset: 0;

    overflow: hidden;

    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-poster-image {
    position: absolute;
    z-index: 0;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: contain;
    object-position: right center;

    pointer-events: none;

    opacity: 1;
    visibility: visible;

    transition: opacity 0.35s ease;
}

/* Pleine largeur uniquement sur ordinateur */
@media (min-width: 701px) {
    .hero-poster-image {
        object-fit: cover;
        object-position: center center;
    }
}

#heroPosterImage:not([src]),
#heroPosterImage[src=""] {
    display: none;
}

.hero-trailer-video {
    position: absolute;
    z-index: 1;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center;

    background: #080808;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

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

.hero.trailer-playing .hero-trailer-video {
    opacity: 1;
    visibility: visible;
}

.hero.trailer-playing .hero-poster-image {
    opacity: 0;
}

.hero-gradient {
    position: absolute;
    z-index: 1;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0.03) 0%,
        rgba(8, 8, 8, 0.02) 35%,
        rgba(8, 8, 8, 0.15) 55%,
        rgba(8, 8, 8, 0.45) 75%,
        rgba(8, 8, 8, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;

    width: min(680px, 62%);

    margin-top: 45px;
    margin-left: var(--content-padding);
    padding-bottom: 60px;

    animation: heroEnter 0.85s ease both;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: #eeeeee;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero-label-line {
    width: 29px;
    height: 3px;

    border-radius: 10px;
    background: var(--orange);

    box-shadow: 0 0 14px rgba(255, 118, 0, 0.65);
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 18px;

    color: white;

    font-size: clamp(38px, 5.2vw, 72px);
    font-weight: 900;
    letter-spacing: -2.6px;
    line-height: 1.04;

    text-wrap: balance;

    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

.hero-description {
    max-width: 510px;
    margin: 0 0 27px;

    color: #d0d0d0;

    font-size: 15px;
    line-height: 1.85;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-bottom-fade {
    position: absolute;
    z-index: -1;

    bottom: 0;
    left: 0;
    right: 0;

    height: 100px;

    background: linear-gradient(
        0deg,
        #080808,
        transparent
    );

    pointer-events: none;
}

/* ==================== 8. BOUTONS GÉNÉRAUX ==================== */

.button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 22px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--orange-light),
        var(--orange),
        var(--orange-dark)
    );

    box-shadow: 0 6px 22px rgba(255, 118, 0, 0.2);
}

.button-primary:hover:not(:disabled) {
    box-shadow: 0 9px 32px rgba(255, 118, 0, 0.4);
}

.button-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.button-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.play-symbol {
    font-size: 14px;
}

.info-symbol {
    width: 19px;
    height: 19px;

    display: inline-grid;
    place-items: center;

    border: 1.5px solid currentColor;
    border-radius: 50%;

    font-size: 12px;
    font-weight: 900;
}

/* ==================== 9. SECTIONS DE CONTENU ==================== */

.content-section {
    position: relative;
    z-index: 2;

    margin: 0;
    padding: 14px var(--content-padding) 27px;
}

.hero + .content-section {
    padding-top: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 17px;
}

.section-heading h2 {
    margin: 0;

    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.see-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 5px 0;

    border: none;
    background: transparent;

    color: var(--orange);

    font-size: 12px;
    font-weight: 700;

    transition: color var(--transition);
}

.see-all-button:hover {
    color: var(--orange-light);
}

.see-all-button span {
    font-size: 20px;
    line-height: 1;
}

/* ==================== 10. RANGÉES HORIZONTALES ==================== */

.content-row,
.genre-row {
    display: flex;
    align-items: stretch;
    gap: 12px;

    min-width: 0;
    max-width: 100%;

    padding: 5px 3px 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;
}

.content-row::-webkit-scrollbar,
.genre-row::-webkit-scrollbar {
    display: none;
}

.content-row > *,
.genre-row > * {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* =========================================
   IVOIRE PLAY — CARROUSEL DES GENRES
   ORDINATEUR UNIQUEMENT
========================================= */

/* =========================================
   IVOIRE PLAY — CARROUSEL DES GENRES
========================================= */

.genre-carousel {
    position: relative;
    min-width: 0;
    width: 100%;
}

.genre-carousel .genre-row {
    width: 100%;
}

/* Flèches discrètes sur ordinateur */
.genre-carousel .genre-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;

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

    width: 36px;
    height: 58px;
    padding: 0;

    color: #fff;
    font-size: 25px;
    line-height: 1;

    background: rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    cursor: pointer;
    transform: translateY(-50%);

    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        visibility 0.2s ease;
}

.genre-carousel .genre-arrow-left {
    left: 2px;
}

.genre-carousel .genre-arrow-right {
    right: 2px;
}

/* Afficher les flèches au survol de la rangée */
.genre-carousel:hover .genre-arrow:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.genre-carousel .genre-arrow:hover {
    background: rgba(255, 118, 0, 0.9);
    border-color: rgba(255, 118, 0, 0.8);
}

/* Masquer les flèches désactivées */
.genre-carousel .genre-arrow[hidden] {
    display: none !important;
}

/* Pas de flèches sur téléphone */
@media (max-width: 700px) {
    .genre-carousel .genre-arrow {
        display: none !important;
    }
}
/* ==================== 11. CARTES DE CONTENUS ==================== */

/*
   Les cartes utilisent l'affiche comme surface complète.
   Le titre, les informations et les actions sont superposés
   à l'image : aucun bloc noir sous l'affiche.
*/

.movie-card {
    position: relative;

    display: block;

    flex: 0 0 260px;
    min-width: 0;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #151515;

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

    isolation: isolate;
    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-4px);

    border-color: rgba(255, 118, 0, 0.45);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 118, 0, 0.07);

    z-index: 3;
}

/* L'affiche couvre la totalité de la carte. */

.movie-card-poster {
    position: absolute;
    z-index: 0;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    aspect-ratio: auto;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 118, 0, 0.18),
            transparent 55%
        ),
        linear-gradient(145deg, #262626, #111111);
}

.movie-card-poster img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.55s ease,
        filter 0.4s ease;
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.035);
}

/* Dégradé léger pour rendre le texte lisible sur l'image. */

.movie-card-poster::after {
    content: "";

    position: absolute;
    z-index: 1;

    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18) 0%,
        transparent 28%,
        transparent 48%,
        rgba(0, 0, 0, 0.28) 66%,
        rgba(0, 0, 0, 0.90) 100%
    );

    opacity: 1;

    pointer-events: none;

    transition: opacity var(--transition);
}

.movie-card:hover .movie-card-poster::after {
    opacity: 1;
}

/*
   Le bouton Lecture existant dans app.js reste dans le HTML,
   mais il ne s'affiche plus, même au survol.
*/

.movie-card-play,
.movie-card:hover .movie-card-play {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Le titre et les informations restent sur l'affiche. */

.movie-card-info {
    position: absolute;
    z-index: 3;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;

    min-width: 0;
    padding: 43px 11px 9px;

    background: transparent;

    pointer-events: none;

    overflow: hidden;
}

/* Titre directement en bas de l'affiche. */

.movie-card-title {
    position: relative;
    z-index: 3;

    margin: 0 0 4px;
    padding-right: 4px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.9);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    overflow-wrap: anywhere;
}

.movie-card-meta {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    color: #e1e1e1;
    font-size: 10px;

    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.movie-card-category {
    color: var(--orange-light);
    font-weight: 800;
}

/* Badges Nouveau / À venir sur l'image. */

.movie-card-badge {
    position: absolute;
    z-index: 6;

    top: 8px;
    left: 8px;

    padding: 4px 7px;

    color: #ffffff;
    background: var(--orange);

    border-radius: 4px;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.movie-card-badge.badge-new {
    background: #ff7600;
}

.movie-card-badge.badge-coming {
    background: #282828;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Barre de progression directement au bas de l'affiche. */

.movie-card-progress {
    position: absolute;
    z-index: 7;

    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

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

    pointer-events: none;
}

.movie-card-progress span {
    display: block;
    height: 100%;

    background: var(--orange);
}

/*
   Informations et Ma liste sont regroupées en haut à droite.
   Les boutons sont toujours visibles sur ordinateur et mobile.
*/

.movie-card-actions {
    position: absolute;
    z-index: 8;

    top: 8px;
    right: 8px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    margin: 0;
    padding: 0;

    pointer-events: auto;
}

.movie-card-actions button {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: #ffffff;

    background: rgba(12, 12, 12, 0.75);

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

    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);

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

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.movie-card-actions button:hover {
    color: #ffffff;

    background: var(--orange);

    border-color: rgba(255, 255, 255, 0.8);

    transform: scale(1.07);
}

/* Le bloc d'informations ne capte pas le clic sur la carte. */

.movie-card-info > * {
    pointer-events: none;
}

.movie-card-info .movie-card-actions,
.movie-card-info .movie-card-actions button {
    pointer-events: auto;
}

/* ==================== 12. GRILLES DE CATALOGUE ==================== */

.catalog-page {
    padding-top: calc(var(--navbar-height) + 38px);
    padding-bottom: 70px;
}

.catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin: 0 var(--content-padding) 32px;
}

.eyebrow {
    margin: 0 0 10px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.catalog-heading h1 {
    margin: 0;

    font-size: clamp(34px, 4vw, 50px);
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1.1;
}

.catalog-description {
    margin: 12px 0 0;

    color: var(--text-secondary);
    font-size: 13px;
}

.catalog-heading select {
    max-width: 250px;
    min-height: 42px;
    padding: 0 36px 0 13px;

    color: #ffffff;
    background: #181818;

    border: 1px solid #363636;
    border-radius: 9px;

    outline: none;
}

.catalog-heading select:focus {
    border-color: var(--orange);
}

.catalog-heading select option {
    color: white;
    background: #181818;
}

.films-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: start;
    gap: 20px;

    padding: 0 var(--content-padding);
}

/* Les grilles emploient également des cartes entièrement paysage. */

.films-grid .movie-card,
.content-row-landscape-grid .movie-card {
    width: 100%;
    min-width: 0;

    flex: initial;

    aspect-ratio: 16 / 9;
}

.films-grid .movie-card:hover {
    transform: translateY(-3px);
}

.films-grid .movie-card-poster {
    aspect-ratio: auto;
}

/* ==================== 13. ÉTATS VIDES ==================== */

.empty-state {
    padding: 55px 20px;

    color: var(--text-secondary);
    text-align: center;
}

.empty-icon {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    color: var(--orange);
    background: rgba(255, 118, 0, 0.08);

    border: 1px solid rgba(255, 118, 0, 0.19);
    border-radius: 22px;

    font-size: 36px;
}

.empty-state h2,
.empty-state h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 20px;
}

.empty-state p {
    margin: 0 auto 18px;
    max-width: 430px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== 14. CATÉGORIES ==================== */

.category-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;

    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 8px;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    white-space: nowrap;

    padding: 10px 17px;

    color: #eeeeee;
    background: rgba(255, 255, 255, 0.045);

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

    font-size: 12px;
    font-weight: 700;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.category-chip:hover,
.category-chip.active {
    color: #ffffff;

    background: rgba(255, 118, 0, 0.15);
    border-color: rgba(255, 118, 0, 0.55);

    transform: translateY(-2px);
}

/* ==================== 15. FILMS CLASSÉS PAR GENRE ==================== */


.genre-sections {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.genre-section {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.genre-section .section-heading {
    margin-top: 0;
    margin-bottom: 3px;
}

.genre-section .section-heading h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 0;
}

.genre-row {
    padding-top: 0;
    margin-top: 0;
}

.genre-row .movie-card {
    flex: 0 0 260px;
    aspect-ratio: 16 / 9;
}

/* ==================== 16. LECTEUR VIDÉO ==================== */

.player-view {
    position: relative;

    min-height: 100vh;

    padding-top: calc(var(--navbar-height) + 14px);
    padding-bottom: 60px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255, 118, 0, 0.07),
            transparent 45%
        ),
        #080808;
}

.player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 0 var(--content-padding) 15px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;

    color: white;
    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    font-size: 12px;
    font-weight: 700;

    transition: background var(--transition);
}

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

.back-button span {
    font-size: 25px;
    line-height: 1;
}

.player-logo {
    font-size: 21px;
    font-weight: 900;
}

.video-container {
    position: relative;

    width: min(1180px, 92%);
    margin: 0 auto;

    overflow: hidden;

    background: #000000;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(255, 118, 0, 0.04);
}

.video-container video {
    display: block;

    width: 100%;
    height: auto;
    max-height: 72vh;

    aspect-ratio: 16 / 9;

    background: black;
}

.player-information {
    width: min(1180px, 92%);

    margin: 23px auto 0;

    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.player-main-info {
    flex: 1;
    min-width: 0;
}

.player-title-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.player-title-rating h1 {
    margin: 0;
}

/* Fenêtre des commentaires */
#commentsSection.comments-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    padding: 55px 20px 30px;
    overflow-y: auto;
    background: rgba(8, 8, 8, 0.98);
    box-sizing: border-box;
}

#commentsSection.comments-modal .comments-modal-close {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 50%;
    background: #202020;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#commentsSection.comments-modal .rating-panel {
    display: none;
}

/* Cacher les avis sous le lecteur lorsque la fenêtre est fermée */
#commentsSection:not(.comments-modal) {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    #commentsSection.comments-modal {
        padding: 60px 14px 25px;
    }
}

.player-title-rating .rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.player-title-rating .rating-star {
    width: 32px;
    height: 32px;
    font-size: 19px;
    border-radius: 7px;
}

@media (max-width: 600px) {
    .player-title-rating {
        gap: 8px;
    }

    .player-title-rating .rating-star {
        width: 27px;
        height: 27px;
        font-size: 16px;
    }
}

.player-main-info h1 {
    margin: 0 0 10px;

    font-size: clamp(25px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;

    margin-bottom: 13px;

    color: var(--text-secondary);
    font-size: 12px;
}

#playerDescription {
    max-width: 900px;

    margin: 0;

    color: #c6c6c6;

    font-size: 14px;
    line-height: 1.85;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

.player-rating-summary {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 13px;

    color: #bcbcbc;
    font-size: 12px;
}

.player-rating-summary #playerRatingAverage,
.player-rating-summary > span:nth-child(2) {
    color: var(--orange);
    font-weight: 900;
}

.player-rating-summary #playerRatingAverage {
    font-size: 15px;
}

/* ==================== 17. BARRE D'ACTIONS DU LECTEUR ==================== */

.player-action-bar {
    width: min(1180px, 92%);

    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 9px;

    margin: 22px auto 0;
    padding: 13px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.055),
        rgba(255, 255, 255, 0.018)
    );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
}

.player-action-button {
    min-width: 0;
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    flex: 0 1 auto;

    padding: 7px 11px;

    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.player-action-button:hover:not(:disabled) {
    color: white;
    background: rgba(255, 118, 0, 0.12);
    border-color: rgba(255, 118, 0, 0.4);
    transform: translateY(-2px);
}

.player-action-button:active:not(:disabled) {
    transform: scale(0.98);
}

.player-action-icon {
    display: inline-grid;
    place-items: center;

    width: 19px;
    height: 19px;

    flex-shrink: 0;

    color: var(--orange);

    font-size: 17px;
    line-height: 1;
}

.player-download-button {
    background: linear-gradient(
        135deg,
        rgba(255, 118, 0, 0.19),
        rgba(255, 118, 0, 0.08)
    );

    border-color: rgba(255, 118, 0, 0.28);
}

/* Bouton Lecture / Pause — dégradé orange et noir */
.player-play-pause-button {
    background: linear-gradient(
        135deg,
        #ff7600 0%,
        #b94700 45%,
        #111111 100%
    );

    border-color: rgba(255, 118, 0, 0.65);
    color: #ffffff;

    box-shadow: 0 4px 15px rgba(255, 118, 0, 0.18);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.player-play-pause-button:hover {
    transform: translateY(-2px);
    border-color: #ff7600;
    box-shadow: 0 6px 20px rgba(255, 118, 0, 0.3);
}

.player-play-pause-button .player-action-icon {
    color: #ffffff;
    font-size: 17px;
}

.player-action-button.is-active {
    color: white;
    background: rgba(255, 118, 0, 0.16);
    border-color: rgba(255, 118, 0, 0.48);
}

.player-action-button.is-active .player-action-icon {
    color: var(--orange-light);
}

/* ==================== 18. ÉTAT DU TÉLÉCHARGEMENT ==================== */

.player-download-status {
    width: min(1180px, 92%);

    margin: 13px auto 0;
    padding: 16px;

    background: #121212;
    border: 1px solid rgba(255, 118, 0, 0.25);
    border-radius: 11px;
}

.player-download-status p {
    margin: 0 0 10px;
    color: #dedede;
    font-size: 12px;
}

.player-download-progress-track {
    width: 100%;
}

#playerDownloadProgress {
    display: block;
    width: 100%;
    height: 7px;

    overflow: hidden;

    appearance: none;
    -webkit-appearance: none;

    border: none;
    border-radius: 20px;

    background: #303030;
}

#playerDownloadProgress::-webkit-progress-bar {
    background: #303030;
    border-radius: 20px;
}

#playerDownloadProgress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
    border-radius: 20px;
}

#playerDownloadProgress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
    border-radius: 20px;
}

.player-download-status .button {
    margin-top: 12px;
}

/* ==================== 19. SAISONS ET ÉPISODES ==================== */

.player-season-controls {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 15px;
}

.player-season-controls label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.player-season-controls select {
    min-width: 140px;
    min-height: 38px;

    padding: 0 12px;

    color: #fff;
    background: #171717;

    border: 1px solid #383838;
    border-radius: 8px;
}

.episodes-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
    padding: 13px;

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

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.episode-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 118, 0, 0.35);
}

.episode-card h3 {
    margin: 0 0 5px;
    font-size: 13px;
}

.episode-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
}

.episode-number {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--orange);
    background: rgba(255, 118, 0, 0.09);

    border-radius: 9px;
    font-weight: 900;
}

/* ==================== 20. NOTES ET COMMENTAIRES ==================== */

.player-reviews-section {
    width: min(1180px, 92%);
    margin: 30px auto 0;
    padding: 25px 0 0;

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

.player-reviews-section > .section-heading {
    margin-bottom: 22px;
}

.comments-count {
    color: var(--text-muted);
    font-size: 11px;
}

.rating-panel,
.comment-panel {
    padding: 20px;
    margin-bottom: 16px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
}

.rating-panel h3,
.comment-panel h3 {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 800;
}

.rating-panel > p,
.comment-panel > p {
    color: var(--text-secondary);
    font-size: 12px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 15px 0 6px;
}

.rating-star {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #555;
    background: #202020;

    border: 1px solid #383838;
    border-radius: 9px;

    font-size: 22px;
    line-height: 1;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.rating-star:hover,
.rating-star.active {
    color: var(--orange-light);
    background: rgba(255, 118, 0, 0.13);
    border-color: rgba(255, 118, 0, 0.42);
}

.rating-star:hover {
    transform: translateY(-2px);
}

.rating-selection-label {
    min-height: 18px;
    margin: 7px 0 15px;
    color: var(--text-secondary);
    font-size: 11px;
}

#ratingForm .button {
    min-height: 40px;
}

.comment-input-wrapper textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    resize: vertical;

    padding: 12px 13px;

    color: white;
    background: rgba(0, 0, 0, 0.27);

    border: 1px solid #343434;
    border-radius: 9px;

    font-size: 13px;
    line-height: 1.7;

    outline: none;
}

.comment-input-wrapper textarea:focus {
    border-color: rgba(255, 118, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.07);
}

.comment-input-wrapper textarea::placeholder {
    color: #777;
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 12px;
}

.comment-form-footer small {
    color: var(--text-muted);
    font-size: 10px;
}

.comment-form-footer .button {
    min-height: 39px;
}

.player-feedback {
    margin: 12px 0 0;
    padding: 10px 12px;

    color: #eee;
    background: rgba(255, 255, 255, 0.05);

    border-left: 3px solid var(--orange);
    border-radius: 5px;

    font-size: 12px;
}

.player-feedback.success {
    border-left-color: var(--success);
}

.comments-list-wrapper {
    margin-top: 27px;
}

.comments-list-wrapper > .section-heading h3 {
    margin: 0;
    font-size: 17px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-card,
.comment-item {
    padding: 15px 16px;

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

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.comment-card-header,
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 8px;
}

.comment-author {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.comment-date {
    color: var(--text-muted);
    font-size: 10px;
    flex-shrink: 0;
}

.comment-card-body,
.comment-item p {
    margin: 0;
    color: #c6c6c6;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.comment-card-actions button {
    min-height: 30px;
    padding: 5px 9px;

    color: #bbb;
    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;

    font-size: 10px;
}

.comment-card-actions button:hover {
    color: #fff;
    border-color: rgba(255, 118, 0, 0.4);
}

.comment-reply {
    margin-top: 12px;
    padding-left: 13px;
    border-left: 2px solid rgba(255, 118, 0, 0.5);
}

.comment-reply p {
    margin: 5px 0 0;
    color: #bbb;
    font-size: 11px;
    line-height: 1.7;
}

/* ==================== 21. TÉLÉCHARGEMENTS ==================== */

.downloads-storage-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0 var(--content-padding) 25px;
    padding: 20px;

    background: linear-gradient(
        120deg,
        rgba(255, 118, 0, 0.11),
        rgba(255, 255, 255, 0.025)
    );

    border: 1px solid rgba(255, 118, 0, 0.2);
    border-radius: 14px;
}

.downloads-storage-information {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.downloads-storage-icon {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--orange);
    background: rgba(255, 118, 0, 0.1);

    border: 1px solid rgba(255, 118, 0, 0.22);
    border-radius: 12px;

    font-size: 26px;
}

.downloads-storage-information h2 {
    margin: 0 0 5px;
    font-size: 16px;
}

.downloads-storage-information p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.downloads-storage-information .downloads-storage-usage {
    margin-top: 4px;
    color: var(--orange-light);
}

.downloads-storage-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.downloads-storage-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
}

.downloads-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    margin: 0 var(--content-padding) 18px;
}

.downloads-toolbar label {
    color: var(--text-secondary);
    font-size: 12px;
}

.downloads-toolbar select {
    min-height: 39px;
    max-width: 260px;

    padding: 0 12px;

    color: #fff;
    background: #171717;

    border: 1px solid #363636;
    border-radius: 8px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    padding: 0 var(--content-padding);
}

.download-card,
.download-item {
    min-width: 0;
    overflow: hidden;

    background: #141414;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.download-card:hover,
.download-item:hover {
    border-color: rgba(255, 118, 0, 0.42);
    transform: translateY(-3px);
}

.download-card-poster,
.download-item-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #202020;
}

.download-card-poster img,
.download-item-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card-info,
.download-item-info {
    padding: 12px;
}

.download-card-title,
.download-item-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.download-card-meta,
.download-item-meta {
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.7;
}

.download-card-status,
.download-item-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 9px;
    padding: 4px 8px;

    color: #ddd;
    background: rgba(255, 255, 255, 0.06);

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}

.download-card-status.is-complete,
.download-item-status.is-complete {
    color: #b8f5c5;
    background: rgba(57, 217, 138, 0.12);
}

.download-card-status.is-error,
.download-item-status.is-error {
    color: #ffb2b2;
    background: rgba(255, 73, 73, 0.12);
}

.download-card-progress,
.download-item-progress {
    width: 100%;
    height: 5px;
    margin-top: 10px;

    overflow: hidden;

    background: #303030;
    border-radius: 10px;
}

.download-card-progress span,
.download-item-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
}

.download-card-actions,
.download-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

    padding: 0 12px 12px;
}

.download-card-actions .button,
.download-item-actions .button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
}

.downloads-help {
    margin: 35px var(--content-padding) 0;
    padding: 19px;

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

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
}

.downloads-help h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
}

.downloads-help p {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}

.downloads-help p:last-child {
    margin-bottom: 0;
}

/* ==================== 22. MODALES ==================== */

.modal-overlay {
    position: fixed;
    z-index: 3000;
    inset: 0;

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

    padding: 24px;

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

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

    animation: modalFade 0.22s ease both;
    overflow-y: auto;
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    position: relative;

    width: min(100%, 470px);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    color: white;

    background: linear-gradient(
        145deg,
        rgba(35, 35, 35, 0.96),
        rgba(13, 13, 13, 0.98)
    );

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(255, 118, 0, 0.055);

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

    animation: modalEnter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    z-index: 10;

    top: 13px;
    right: 13px;

    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    color: white;
    background: rgba(0, 0, 0, 0.52);

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

    font-size: 25px;
    line-height: 1;

    transition:
        background var(--transition),
        transform var(--transition);
}

.modal-close:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

/* ==================== 23. MODALE INFORMATIONS ==================== */

.info-modal-card {
    width: min(100%, 650px);
}

.modal-backdrop {
    min-height: 250px;

    background:
        linear-gradient(
            0deg,
            rgba(20, 20, 20, 1),
            rgba(20, 20, 20, 0.05)
        ),
        radial-gradient(
            ellipse at 70% 30%,
            rgba(255, 118, 0, 0.22),
            transparent 60%
        ),
        #1a1a1a;

    background-position: center;
    background-size: cover;
}

.modal-body {
    padding: 22px 27px 30px;
}

.modal-body h2 {
    margin: 0 0 12px;

    font-size: clamp(24px, 4vw, 35px);
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
}

.modal-meta {
    margin: 0 0 13px;
    color: var(--text-secondary);
    font-size: 12px;
}

.modal-body > p:not(.eyebrow):not(.modal-meta) {
    color: #c6c6c6;
    font-size: 13px;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* ==================== 24. CONNEXION / INSCRIPTION ==================== */

.auth-modal-card {
    padding: 35px 36px 28px;
}

.auth-logo {
    margin-bottom: 27px;
    font-size: 26px;
}

.auth-modal-card > h2 {
    margin: 0 0 7px;

    font-size: 29px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.auth-subtitle {
    margin: 0 0 23px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;

    padding: 5px;
    margin-bottom: 24px;

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

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.auth-tab {
    min-height: 38px;
    padding: 7px;

    color: #aaaaaa;
    background: transparent;

    border: none;
    border-radius: 7px;

    font-size: 11px;
    font-weight: 800;

    transition:
        color var(--transition),
        background var(--transition);
}

.auth-tab.active {
    color: white;
    background: rgba(255, 118, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 118, 0, 0.25);
}

#authForm {
    display: flex;
    flex-direction: column;
}

#authForm label {
    margin: 0 0 8px;
    color: #e4e4e4;
    font-size: 11px;
    font-weight: 800;
}

#authForm input {
    width: 100%;
    min-height: 47px;

    padding: 0 13px;
    margin-bottom: 19px;

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

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;

    outline: none;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

#authForm input:focus {
    background: rgba(255, 255, 255, 0.065);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.09);
}

#authForm input::placeholder {
    color: #747474;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
}

.auth-message {
    padding: 10px 12px;
    margin: -3px 0 15px;

    color: #ffffff;
    background: rgba(255, 73, 73, 0.1);

    border: 1px solid rgba(255, 73, 73, 0.25);
    border-radius: 8px;

    font-size: 11px;
    line-height: 1.6;
}

.auth-message.success {
    background: rgba(57, 217, 138, 0.09);
    border-color: rgba(57, 217, 138, 0.25);
}

.auth-legal {
    margin: 22px 0 0;

    color: #777777;

    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

/* ==================== 25. MODALE D'ACCÈS ==================== */

.access-modal-card {
    padding: 38px 32px 32px;
    text-align: center;
}

.access-icon {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    margin: 0 auto 23px;

    color: white;

    background: linear-gradient(
        135deg,
        var(--orange-light),
        var(--orange-dark)
    );

    border-radius: 21px;

    font-size: 23px;

    box-shadow: 0 10px 35px rgba(255, 118, 0, 0.23);
}

.access-modal-card h2 {
    margin: 0 0 13px;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.25;
}

.access-modal-card > p:not(.eyebrow) {
    max-width: 340px;
    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.85;
}

.access-modal-card .modal-actions {
    justify-content: center;
}

/* ==================== 26. ABONNEMENTS ==================== */

.subscription-hero {
    position: relative;

    padding: 60px 30px;
    margin: 0 var(--content-padding) 35px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 80% 20%,
            rgba(255, 118, 0, 0.15),
            transparent 48%
        ),
        linear-gradient(
            120deg,
            #17120d,
            #101010
        );

    border: 1px solid rgba(255, 118, 0, 0.15);
    border-radius: 18px;
}

.subscription-hero h1 {
    max-width: 700px;
    margin: 0 0 15px;

    font-size: clamp(30px, 4vw, 47px);
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1.12;
}

.subscription-hero > p:last-child {
    max-width: 570px;
    margin: 0;
    color: #c1c1c1;
    line-height: 1.8;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0 var(--content-padding);
}

.subscription-card {
    padding: 27px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.065),
        rgba(255, 255, 255, 0.02)
    );

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.subscription-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 118, 0, 0.4);
    box-shadow: var(--orange-glow);
}

.subscription-card h2 {
    margin: 0 0 15px;
    font-size: 22px;
}

.subscription-price {
    color: var(--orange);
    font-size: 21px;
    font-weight: 900;
}

.subscription-card > p:not(.eyebrow):not(.subscription-price) {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}

/* ==================== 27. NAVIGATION MOBILE ==================== */

.mobile-bottom-nav {
    display: none;
}

/* ==================== 28. PIED DE PAGE ==================== */

.site-footer {
    padding: 40px var(--content-padding) 105px;
    margin-top: 30px;

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

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.012),
        rgba(0, 0, 0, 0.15)
    );
}

.footer-logo {
    margin-bottom: 14px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
}

.site-footer > p {
    color: #898989;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
}

.footer-links a {
    color: #aaaaaa;
    font-size: 11px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
}

.site-footer .copyright {
    margin-top: 28px;
    font-size: 10px;
}

/* ==================== 29. NOTIFICATIONS ==================== */

.toast-container {
    position: fixed;
    z-index: 5000;

    top: calc(var(--navbar-height) + 15px);
    right: 22px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    width: min(350px, calc(100vw - 30px));

    pointer-events: none;
}

.toast {
    padding: 14px 17px;

    color: white;
    background: rgba(25, 25, 25, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--orange);
    border-radius: 10px;

    box-shadow: var(--shadow);

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

    font-size: 12px;
    line-height: 1.65;

    animation: toastEnter 0.3s ease both;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 30. ADMINISTRATION ==================== */

#adminPage {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 24px;

    color: #f5f5f5;
}

#adminPage *,
#adminPage *::before,
#adminPage *::after {
    box-sizing: border-box;
}

#adminPage h1,
#adminPage h2,
#adminPage h3 {
    color: #fff;
    line-height: 1.3;
}

#adminPage h1 {
    font-size: clamp(24px, 3vw, 34px);
    margin: 0 0 10px;
}

#adminPage h2 {
    font-size: 21px;
    margin: 0 0 18px;
}

#adminPage h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

#adminPage p {
    line-height: 1.6;
}

#adminPage button,
#adminPage input,
#adminPage select,
#adminPage textarea {
    font: inherit;
}

#adminPage button {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#adminPage button:hover {
    opacity: 0.88;
}

#adminPage button:active {
    transform: scale(0.98);
}

#adminPage input,
#adminPage select,
#adminPage textarea {
    width: 100%;
    min-width: 0;

    padding: 11px 12px;

    color: #f5f5f5;
    background: #171717;

    border: 1px solid #393939;
    border-radius: 7px;

    outline: none;
}

#adminPage input:focus,
#adminPage select:focus,
#adminPage textarea:focus {
    border-color: #ff7600;
    box-shadow: 0 0 0 2px rgba(255, 118, 0, 0.15);
}

#adminPage input::placeholder,
#adminPage textarea::placeholder {
    color: #929292;
}

#adminPage select option {
    color: #fff;
    background: #171717;
}

#adminPage textarea {
    min-height: 100px;
    resize: vertical;
}

#adminPage label {
    display: block;
    margin-bottom: 6px;
    color: #dedede;
    font-size: 13px;
    font-weight: 600;
}

#adminPage input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #ff7600;
    cursor: pointer;
}

#adminPage input[type="checkbox"] + label {
    display: inline;
    margin: 0;
}

#adminPage .admin-header,
#adminPage .admin-page-header,
#adminPage .admin-topbar,
#adminPage .admin-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#adminPage .admin-actions,
#adminPage .admin-header-actions,
#adminPage .admin-button-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#adminPage button[type="submit"],
#adminPage .admin-primary-button,
#adminPage .admin-btn-primary {
    padding: 11px 16px;
    color: #fff;
    background: #ff7600;
    border: 1px solid #ff7600;
    border-radius: 7px;
    font-weight: 700;
}

#adminPage .admin-secondary-button,
#adminPage .admin-btn-secondary,
#adminPage button[type="button"] {
    padding: 10px 14px;
    color: #f5f5f5;
    background: #252525;
    border: 1px solid #424242;
    border-radius: 7px;
}

#adminPage .admin-danger-button,
#adminPage .admin-btn-danger {
    color: #fff;
    background: #a92828;
    border: 1px solid #a92828;
    border-radius: 7px;
    padding: 10px 14px;
}

#adminPage .admin-stats-grid,
#adminPage .admin-statistics,
#adminPage .admin-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}

#adminPage .admin-stat-card,
#adminPage .admin-stat,
#adminPage .stat-card {
    min-width: 0;
    padding: 18px;
    background: #151515;
    border: 1px solid #303030;
    border-radius: 10px;
}

#adminPage .admin-stat-label {
    display: block;
    margin-bottom: 8px;
    color: #bdbdbd;
    font-size: 12px;
}

#adminPage .admin-stat-card h3,
#adminPage .admin-stat h3,
#adminPage .stat-card h3 {
    margin-bottom: 8px;
    color: #bdbdbd;
    font-size: 13px;
    font-weight: 500;
}

#adminPage .admin-stat-card strong,
#adminPage .admin-stat strong,
#adminPage .stat-card strong,
#adminPage .admin-stat-value {
    display: block;
    color: #ff7600;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

#adminPage .admin-panel,
#adminPage .admin-section,
#adminPage .admin-card {
    min-width: 0;
    margin-bottom: 22px;
    padding: 20px;
    background: #111;
    border: 1px solid #2c2c2c;
    border-radius: 11px;
}

#adminPage .admin-section-header,
#adminPage .admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

#adminPage .admin-section-header h2,
#adminPage .admin-panel-header h2 {
    margin-bottom: 0;
}

#adminPage form {
    min-width: 0;
}

#adminPage .admin-form-grid,
#adminPage .admin-grid,
#adminPage .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#adminPage .admin-field,
#adminPage .admin-form-group,
#adminPage .form-group {
    min-width: 0;
    margin-bottom: 14px;
}

#adminPage .admin-field-full,
#adminPage .admin-form-group.full-width,
#adminPage .form-group.full-width,
#adminPage .admin-full-width {
    grid-column: 1 / -1;
}

#adminPage .admin-field small,
#adminPage .admin-help-text {
    display: block;
    margin-top: 7px;
    color: #999;
    font-size: 11px;
    line-height: 1.7;
}

#adminPage .admin-checkboxes,
#adminPage .admin-checkbox-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 14px 0;
}

#adminPage .admin-checkboxes label,
#adminPage .admin-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

#adminPage .admin-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

#adminPage .admin-search-bar,
#adminPage .admin-search-form,
#adminPage .admin-filters,
#adminPage .admin-table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

#adminPage .admin-search-bar input,
#adminPage .admin-search-form input,
#adminPage .admin-filters input,
#adminPage .admin-filters select,
#adminPage .admin-table-toolbar select {
    flex: 1 1 180px;
}

#adminPage #adminMemberSearchResults,
#adminPage #adminSubscribersList,
#adminPage #adminOnlineList,
#adminPage #adminFilmsList,
#adminPage #adminSeriesList,
#adminPage #adminEpisodesList {
    min-width: 0;
    overflow-wrap: anywhere;
}

#adminPage .admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#adminPage .admin-list-item,
#adminPage .admin-result-item,
#adminPage .admin-member-item,
#adminPage .admin-content-item,
#adminPage .admin-film-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 13px;
    background: #191919;
    border: 1px solid #303030;
    border-radius: 8px;
}

#adminPage .admin-list-item > *,
#adminPage .admin-result-item > *,
#adminPage .admin-member-item > *,
#adminPage .admin-content-item > * {
    min-width: 0;
}

#adminPage .admin-item-info {
    flex: 1;
    min-width: 0;
}

#adminPage .admin-item-info strong,
#adminPage .admin-item-title {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    overflow-wrap: anywhere;
}

#adminPage .admin-item-info small,
#adminPage .admin-item-meta {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

#adminPage .admin-item-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

#adminPage .admin-badge,
#adminPage .status-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 9px;
    color: #eee;
    background: #333;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

#adminPage .status-active,
#adminPage .badge-active {
    color: #b8f5c5;
    background: #173b25;
}

#adminPage .status-pending,
#adminPage .badge-pending {
    color: #ffe0a0;
    background: #4a3515;
}

#adminPage .status-expired,
#adminPage .badge-expired {
    color: #ffb2b2;
    background: #481f1f;
}

#adminPage .admin-thumbnail,
#adminPage .admin-poster {
    flex: 0 0 90px;
    width: 90px;
    height: 55px;
    object-fit: cover;
    background: #252525;
    border-radius: 5px;
}

#adminPage .admin-message,
#adminPage .admin-status,
#adminPage .admin-feedback {
    margin: 12px 0;
    padding: 10px 12px;
    color: #eee;
    background: #202020;
    border-left: 3px solid #ff7600;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

#adminPage .admin-empty,
#adminPage .admin-empty-state {
    padding: 22px 12px;
    color: #aaa;
    text-align: center;
}

#adminPage .admin-table-wrap,
#adminPage .admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #303030;
    border-radius: 8px;
}

#adminPage table,
#adminPage .admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#adminPage th,
#adminPage td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #303030;
    overflow-wrap: anywhere;
}

#adminPage th {
    color: #ff7600;
    background: #191919;
    font-weight: 700;
}

#adminPage td {
    color: #ddd;
}

#adminPage tr:last-child td {
    border-bottom: none;
}

/* ==================== 31. TABLETTES ==================== */

@media (max-width: 1100px) {
    :root {
        --content-padding: 3.5%;
    }

    .navbar {
        gap: 18px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero {
        min-height: 540px;
        height: 68vh;
    }

    .movie-card,
    .content-row-portrait .movie-card,
    .genre-row .movie-card,
    .content-row-landscape .movie-card {
        flex-basis: 240px;
        aspect-ratio: 16 / 9;
    }

    .films-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subscription-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .episodes-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==================== 32. MOBILES ==================== */

@media (max-width: 700px) {
    :root {
        --navbar-height: 60px;
        --content-padding: 16px;
    }

    body {
        font-size: 13px;
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .navbar {
        height: var(--navbar-height);
        padding: 0 12px;
        gap: 9px;
        background: rgba(8, 8, 8, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    }

    .logo {
        font-size: 21px;
        letter-spacing: -1.3px;
    }

    .logo-play {
        margin-left: 4px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 3px;
        margin-left: auto;
    }

    .icon-button {
        width: 35px;
        height: 35px;
    }

    .icon-button svg {
        width: 19px;
        height: 19px;
    }

    .account-button {
        min-height: 33px;
        padding: 0 9px;
        border-radius: 7px;
        font-size: 10px;
    }

    .search-box.open {
        position: absolute;
        top: calc(100% + 7px);
        left: 12px;
        right: 12px;

        width: auto;
        padding: 7px;

        background: rgba(15, 15, 15, 0.97);

        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;

        box-shadow: var(--shadow);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .search-box.open input {
        height: 42px;
    }

    /* HERO MOBILE */

    .hero {
    position: relative;
    min-height: 0;
    height: auto;
    max-height: none;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;

    padding-top: 0;
    overflow: hidden;


    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;

    padding-top: 0;
    overflow: hidden;
}

.hero-background {
    position: relative;
    z-index: 0;

    inset: auto;
    width: 100%;
    height: auto;

    /* Réserve l'espace de l'affiche */
    aspect-ratio: 2 / 3;

    flex-shrink: 0;
    overflow: hidden;

    background-position: center top;
    background-size: contain;
    background-repeat: no-repeat;
}
.hero-poster-image {
    position: absolute;
    z-index: 0;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: center top;

    pointer-events: none;
}

.hero-trailer-video {
    object-fit: cover;
}

.hero-gradient {
    background:
        linear-gradient(
            0deg,
            #080808 0%,
            rgba(8, 8, 8, 0.75) 22%,
            rgba(8, 8, 8, 0.15) 58%,
            transparent 100%
        );
}

.hero-content {
    position: absolute;
    z-index: 3;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    margin: 0;
    padding: 100px 17px 24px;

    background: linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0) 0%,
        rgba(8, 8, 8, 0.30) 20%,
        rgba(8, 8, 8, 0.78) 55%,
        #080808 100%
    );

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

    animation: heroEnter 0.85s ease both;
}

.hero-label {
    gap: 8px;
    margin-bottom: 10px;

    font-size: 9px;
    letter-spacing: 2px;
}

.hero-label-line {
    width: 21px;
    height: 2px;
}

.hero h1 {
    max-width: 100%;
    margin: 0 0 10px;

    font-size: clamp(30px, 8vw, 43px);
    letter-spacing: -1.2px;
    line-height: 1.08;
}

.hero-description {
    max-width: 100%;
    margin: 0 0 14px;

    font-size: 12px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.button {
    min-height: 41px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 11px;
}
    /* SECTIONS MOBILE */

.content-section {
    padding: 7px 0 2px;
}

.hero + .content-section {
    padding-top: 0;
}

.section-heading {
    padding: 0 16px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 16px;
    letter-spacing: -0.3px;
}

.see-all-button {
    font-size: 10px;
}

.content-row,
.genre-row {
    gap: 9px;
    padding: 4px 16px 2px;
    margin-bottom: 0;
    scrollbar-width: none;
}

.content-row::-webkit-scrollbar,
.genre-row::-webkit-scrollbar {
    display: none;
}
    /* CARTES PAYSAGE MOBILE */

    .movie-card,
    .content-row-portrait .movie-card,
    .genre-row .movie-card,
    .content-row-landscape .movie-card {
        display: block;

        flex: 0 0 190px;
        aspect-ratio: 16 / 9;

        border-radius: 8px;
    }

    .movie-card:hover {
        transform: translateY(-2px);

        border-color: rgba(255, 118, 0, 0.35);

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .movie-card-poster,
    .content-row-portrait .movie-card-poster,
    .genre-row .movie-card-poster,
    .content-row-landscape .movie-card-poster {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;
        min-height: 0;

        aspect-ratio: auto;
    }

    .movie-card-info {
        position: absolute;
        inset: 0;

        padding: 40px 9px 8px;

        background: transparent;
    }

    .movie-card-title {
        margin-bottom: 4px;
        font-size: 11px;
        line-height: 1.4;
    }

    .movie-card-meta {
        gap: 4px;
        font-size: 9px;
    }

    .movie-card-badge {
        top: 5px;
        left: 5px;
        padding: 3px 5px;
        border-radius: 3px;
        font-size: 8px;
    }

    /*
       Important : le bouton Lecture ne réapparaît pas sur mobile,
       ni au toucher, ni au survol simulé.
    */

    .movie-card-play,
    .movie-card:hover .movie-card-play,
    .movie-card:active .movie-card-play {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .movie-card-poster::after {
        opacity: 1;
    }

    .movie-card-actions {
        top: 5px;
        right: 5px;
        gap: 5px;
        margin: 0;
    }

    .movie-card-actions button {
        width: 28px;
        height: 28px;

        color: #fff;
        background: rgba(12, 12, 12, 0.78);

        border-color: rgba(255, 255, 255, 0.45);

        font-size: 13px;

        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .movie-card-actions button:active {
        transform: scale(0.94);
    }

    /* CATALOGUE MOBILE */

    .catalog-page {
        padding-top: calc(var(--navbar-height) + 24px);
        padding-bottom: 35px;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin: 0 16px 23px;
    }

    .catalog-heading h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .catalog-description {
        margin-top: 7px;
        font-size: 11px;
    }

    .catalog-heading select {
        width: 100%;
        max-width: none;
        min-height: 40px;
        font-size: 11px;
    }

    .films-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 12px;
    }

    .films-grid .movie-card {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .films-grid .movie-card-info {
        padding: 38px 8px 7px;
    }

    .films-grid .movie-card-title {
        font-size: 10px;
    }

    .films-grid .movie-card-meta {
        font-size: 8px;
    }

    /* CATÉGORIES MOBILE */

    .category-list {
        padding: 0 16px 8px;
        gap: 8px;
    }

    .category-chip {
        padding: 8px 12px;
        font-size: 10px;
    }

    .genre-sections {
        gap: 10px;
    }

    .genre-section .section-heading {
        margin-bottom: 8px;
    }

    .genre-section .section-heading h2 {
        font-size: 15px;
    }

    .genre-row {
        gap: 9px;
        padding: 4px 16px 12px;
    }

    /* LECTEUR MOBILE */

    .player-view {
        padding-top: calc(var(--navbar-height) + 8px);
        padding-bottom: 30px;
    }

    .player-topbar {
        padding: 0 14px 12px;
    }

    .player-logo {
        font-size: 18px;
    }

    .back-button {
        padding: 7px 10px;
        font-size: 11px;
    }
    .video-container {
        width: calc(100% - 32px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }

    .video-container video {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 57vh;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        object-fit: contain;
    }


    .player-information {
        width: auto;
        margin: 18px 16px 0;
    }

    .player-main-info h1 {
        margin-bottom: 9px;
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    #playerDescription {
        font-size: 12px;
        line-height: 1.8;
    }

    .player-meta {
        gap: 8px;
        font-size: 10px;
    }

    .player-rating-summary {
        margin-bottom: 10px;
    }

    /* ACTIONS DU LECTEUR MOBILE */

    .player-action-bar {
        width: auto;
        margin: 16px 12px 0;
        padding: 8px;
        gap: 6px;
        border-radius: 11px;
    }

    .player-action-button {
        min-width: 0;
        min-height: 47px;
        flex: 1 1 calc(33.333% - 6px);
        flex-direction: column;
        gap: 3px;
        padding: 5px 3px;
        font-size: 9px;
        border-radius: 8px;
    }

    .player-action-icon {
        width: 21px;
        height: 21px;
        font-size: 18px;
    }

    #episodesSection,
    #similarSection {
        margin-top: 22px;
    }

    .player-reviews-section {
        width: auto;
        margin: 22px 14px 0;
    }

    .rating-panel,
    .comment-panel {
        padding: 14px;
        border-radius: 10px;
    }

    .rating-panel h3,
    .comment-panel h3 {
        font-size: 14px;
    }

    .rating-star {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .comment-input-wrapper textarea {
        min-height: 90px;
        font-size: 12px;
    }

    .episodes-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .player-season-controls {
        padding: 0 16px;
    }

    /* TÉLÉCHARGEMENTS MOBILE */

    .downloads-storage-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin: 0 12px 20px;
        padding: 14px;
    }

    .downloads-storage-information {
        align-items: flex-start;
        gap: 11px;
    }

    .downloads-storage-icon {
        width: 39px;
        height: 39px;
        font-size: 21px;
    }

    .downloads-storage-information h2 {
        font-size: 14px;
    }

    .downloads-storage-actions {
        width: 100%;
        justify-content: stretch;
    }

    .downloads-storage-actions .button {
        flex: 1;
        padding: 0 8px;
        font-size: 10px;
    }

    .downloads-toolbar {
        justify-content: space-between;
        margin: 0 14px 15px;
    }

    .downloads-toolbar label {
        font-size: 11px;
    }

    .downloads-toolbar select {
        max-width: 65%;
        min-height: 36px;
        font-size: 10px;
    }

    .downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 12px;
    }

    .download-card-info,
    .download-item-info {
        padding: 8px;
    }

    .download-card-title,
    .download-item-title {
        font-size: 10px;
    }

    .download-card-meta,
    .download-item-meta {
        font-size: 9px;
    }

    .download-card-actions,
    .download-item-actions {
        gap: 5px;
        padding: 0 8px 9px;
    }

    .download-card-actions .button,
    .download-item-actions .button {
        min-height: 32px;
        padding: 0 7px;
        font-size: 9px;
    }

    .downloads-help {
        margin: 25px 12px 0;
        padding: 14px;
    }

    .downloads-help h2 {
        font-size: 14px;
    }

    .downloads-help p {
        font-size: 11px;
    }

    /* MODALES MOBILE */

    .modal-overlay {
        align-items: center;
        padding: 12px;
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
    }

    .modal-card {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 33px;
        height: 33px;
        font-size: 23px;
    }

    .modal-backdrop {
        min-height: 175px;
    }

    .modal-body {
        padding: 18px 18px 22px;
    }

    .modal-body h2 {
        font-size: 25px;
    }

    .modal-body > p:not(.eyebrow):not(.modal-meta) {
        font-size: 12px;
    }

    .modal-actions {
        gap: 8px;
        margin-top: 17px;
    }

    .auth-modal-card {
        padding: 26px 21px 22px;
    }

    .auth-logo {
        margin-bottom: 21px;
        font-size: 24px;
    }

    .auth-modal-card > h2 {
        font-size: 25px;
    }

    .auth-subtitle {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .auth-tabs {
        margin-bottom: 19px;
    }

    #authForm label {
        font-size: 10px;
    }

    #authForm input {
        min-height: 43px;
        margin-bottom: 15px;
        font-size: 12px;
    }

    .auth-legal {
        margin-top: 17px;
        font-size: 9px;
    }

    .access-modal-card {
        padding: 30px 20px 24px;
    }

    .access-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 18px;
        border-radius: 17px;
    }

    .access-modal-card h2 {
        font-size: 22px;
    }

    .access-modal-card > p:not(.eyebrow) {
        font-size: 11px;
    }

    /* ABONNEMENTS MOBILE */

    .subscription-hero {
        padding: 30px 20px;
        margin: 0 14px 25px;
        border-radius: 14px;
    }

    .subscription-hero h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .subscription-hero > p:last-child {
        font-size: 11px;
    }

    .subscription-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 0 14px;
    }

    .subscription-card {
        padding: 21px;
        border-radius: 13px;
    }

    /* NAVIGATION BASSE : SIX BOUTONS */

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1500;

        left: 0;
        right: 0;
        bottom: 0;

        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));

        min-height: 67px;

        padding:
            5px 3px
            calc(5px + env(safe-area-inset-bottom));

        background: rgba(12, 12, 12, 0.96);

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

        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.24);

        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;

        min-width: 0;
        min-height: 50px;

        padding: 3px 1px;

        color: #909090;
        background: transparent;

        border: none;
        border-radius: 8px;

        font-size: 8px;
        font-weight: 600;
        line-height: 1.2;

        transition:
            color var(--transition),
            background var(--transition);
    }

    .mobile-nav-icon {
        font-size: 20px;
        line-height: 1.1;

        transition: transform var(--transition);
    }

    .mobile-nav-item.active {
        color: var(--orange);
        background: rgba(255, 118, 0, 0.055);
    }

    .mobile-nav-item.active .mobile-nav-icon {
        transform: translateY(-1px);
    }

    .mobile-nav-item:active {
        background: rgba(255, 118, 0, 0.12);
    }

    /* PIED DE PAGE MOBILE */

    .site-footer {
        padding: 30px 16px 30px;
        margin-top: 15px;
    }

    .footer-logo {
        font-size: 21px;
    }

    .site-footer > p {
        font-size: 11px;
    }

    .footer-links {
        gap: 12px 17px;
    }

    .footer-links a {
        font-size: 10px;
    }

    .site-footer .copyright {
        margin-top: 22px;
        font-size: 9px;
    }

    /* NOTIFICATIONS MOBILE */

    .toast-container {
        top: calc(var(--navbar-height) + 10px);
        right: 12px;
        width: calc(100vw - 24px);
    }

    /* ADMINISTRATION MOBILE */

    #adminPage {
        padding: 14px 10px;
    }

    #adminPage h1 {
        font-size: 24px;
    }

    #adminPage h2 {
        font-size: 18px;
    }

    #adminPage .admin-stats-grid,
    #adminPage .admin-statistics,
    #adminPage .admin-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin: 15px 0 20px;
    }

    #adminPage .admin-stat-card,
    #adminPage .admin-stat,
    #adminPage .stat-card {
        padding: 12px;
    }

    #adminPage .admin-panel,
    #adminPage .admin-section,
    #adminPage .admin-card {
        padding: 13px;
        margin-bottom: 15px;
    }

    #adminPage .admin-form-grid,
    #adminPage .admin-grid,
    #adminPage .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    #adminPage .admin-field-full,
    #adminPage .admin-form-group.full-width,
    #adminPage .form-group.full-width,
    #adminPage .admin-full-width {
        grid-column: auto;
    }

    #adminPage .admin-list-item,
    #adminPage .admin-result-item,
    #adminPage .admin-member-item,
    #adminPage .admin-content-item {
        align-items: flex-start;
        padding: 10px;
        gap: 9px;
    }

    #adminPage .admin-item-actions {
        gap: 6px;
    }

    #adminPage .admin-item-actions button,
    #adminPage .admin-form-actions button,
    #adminPage .admin-actions button {
        padding: 9px 10px;
        font-size: 12px;
    }

    #adminPage .admin-header,
    #adminPage .admin-page-header,
    #adminPage .admin-topbar {
        align-items: flex-start;
        margin-bottom: 17px;
    }

    #adminPage .admin-heading-actions,
    #adminPage .admin-header-actions,
    #adminPage .admin-button-group {
        width: 100%;
    }

    #adminPage .admin-search-bar,
    #adminPage .admin-search-form {
        align-items: stretch;
    }

    #adminPage input,
    #adminPage select {
        padding: 10px;
    }
}

/* ==================== 33. PETITS ÉCRANS ==================== */

@media (max-width: 380px) {
    :root {
        --content-padding: 12px;
    }

    .navbar {
        padding: 0 9px;
        gap: 5px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-actions {
        gap: 1px;
    }

    .icon-button {
        width: 32px;
        height: 32px;
    }

    .account-button {
        padding: 0 7px;
        font-size: 9px;
    }

    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-description {
        font-size: 11px;
    }

    .button {
        min-height: 39px;
        padding: 0 11px;
        font-size: 10px;
    }

    .movie-card,
    .content-row-portrait .movie-card,
    .genre-row .movie-card,
    .content-row-landscape .movie-card {
        flex-basis: 185px;
        aspect-ratio: 16 / 9;
    }

    .movie-card-actions {
        top: 4px;
        right: 4px;
        gap: 4px;
    }

    .movie-card-actions button {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .movie-card-info {
        padding: 35px 7px 7px;
    }

    .films-grid {
        gap: 9px;
        padding: 0 9px;
    }

    .films-grid .movie-card-title {
        font-size: 9px;
    }

    .section-heading h2 {
        font-size: 15px;
    }

    .player-action-button {
        font-size: 8px;
    }

    .downloads-grid {
        gap: 8px;
        padding: 0 9px;
    }

    .download-card-actions,
    .download-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .download-card-actions .button,
    .download-item-actions .button {
        width: 100%;
    }

    .auth-modal-card {
        padding: 24px 16px 20px;
    }
}

/* ==================== 34. GRANDS ÉCRANS ==================== */

@media (min-width: 1500px) {
    :root {
        --content-padding: max(
            4.5%,
            calc((100vw - 1600px) / 2)
        );
    }

    .movie-card,
    .content-row-portrait .movie-card,
    .genre-row .movie-card,
    .content-row-landscape .movie-card {
        flex-basis: 290px;
        aspect-ratio: 16 / 9;
    }

    .films-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero {
        min-height: 700px;
    }
}

/* ==================== 35. ACCESSIBILITÉ ==================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   IVOIRE PLAY — STYLE FORMULES
   ================================ */

/* PAGE DES FORMULES */

#subscriptionPage {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 22px);
    padding-bottom: 35px;
}

#subscriptionPage .subscription-hero {
    margin: 0 var(--content-padding) 20px;
    padding: 27px 25px;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 80% 20%,
            rgba(255, 118, 0, 0.15),
            transparent 48%
        ),
        linear-gradient(120deg, #17120d, #101010);

    border: 1px solid rgba(255, 118, 0, 0.15);
    border-radius: 14px;
}

#subscriptionPage .subscription-hero h1 {
    max-width: 700px;
    margin: 0 0 10px;

    font-size: clamp(27px, 3.5vw, 39px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

#subscriptionPage .subscription-hero > p:last-child {
    max-width: 570px;
    margin: 0;

    color: #c1c1c1;
    font-size: 13px;
    line-height: 1.7;
}

/* TROIS FORMULES */

#subscriptionPage .subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: min(
        1150px,
        calc(100% - var(--content-padding) * 2)
    );

    gap: 18px;
    margin: 0 auto 35px;
    padding: 0;
}

#subscriptionPage .subscription-card {
    display: flex;
    flex-direction: column;
    min-width: 0;

    padding: 24px;

    border: 1px solid #303030;
    border-radius: 14px;

    background: linear-gradient(
        145deg,
        #1c1c1c,
        #0d0d0d
    );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#subscriptionPage .subscription-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 118, 0, 0.4);
    box-shadow: var(--orange-glow);
}

#subscriptionPage .subscription-card:nth-child(2) {
    border-color: rgba(255, 118, 0, 0.75);

    background: linear-gradient(
        145deg,
        #281d12,
        #101010 75%
    );
}

#subscriptionPage .subscription-card .eyebrow {
    margin-bottom: 5px;

    color: #ff7600;
    font-weight: 800;
    letter-spacing: 1.8px;
}

#subscriptionPage .subscription-card h2 {
    margin: 12px 0 8px;

    color: #fff;
    font-size: 23px;
    font-weight: 850;
}

#subscriptionPage .subscription-price {
    margin: 0 0 12px;

    color: #ff7600;
    font-size: 26px;
    font-weight: 900;
}

#subscriptionPage .subscription-card > p:not(.eyebrow):not(.subscription-price) {
    margin: 0;

    color: #c2c2c2;
    font-size: 12px;
    line-height: 1.7;
}

#subscriptionPage .subscription-card ul {
    display: grid;
    gap: 10px;

    margin: 18px 0 22px;
    padding: 0;

    list-style: none;
}

#subscriptionPage .subscription-card li {
    color: #e2e2e2;
    font-size: 12px;
    line-height: 1.6;
}

#subscriptionPage .subscription-card li::before {
    content: "✓";
    margin-right: 10px;

    color: #ff7600;
    font-weight: 900;
}

/* BOUTONS DES FORMULES */

#subscriptionPage .subscription-card [data-subscription-request] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 43px;

    margin-top: auto;
    padding: 10px 12px;

    border: none;
    border-radius: 8px;

    background: #ff7600;
    color: #111;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

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

#subscriptionPage .subscription-card [data-subscription-request]:hover {
    background: #ff9438;
    transform: translateY(-2px);
}

/* ================================
   FORMULAIRE DE DEMANDE
   ================================ */

/* Affichage en haut de la page */

#subscriptionRequestPage {
    min-height: auto;

    padding:
        calc(var(--navbar-height) + 22px)
        0
        35px;
}

/* Carte du formulaire */

#subscriptionRequestPage .subscription-request-box {
    width: min(640px, calc(100% - 32px));

    margin: 0 auto;
    padding: 21px;

    border: 1px solid #303030;
    border-radius: 13px;

    background: linear-gradient(
        145deg,
        #1b1b1b,
        #0d0d0d
    );
}

/* Retour aux formules */

#subscriptionRequestPage .subscription-request-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    margin: 0 0 15px;
    padding: 7px 11px;

    border: 1px solid #383838;
    border-radius: 7px;

    background: #222;
    color: #e6e6e6;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

#subscriptionRequestPage .subscription-request-back:hover {
    color: #fff;
    border-color: #ff7600;
}

/* Titre et introduction */

#subscriptionRequestPage .subscription-request-heading {
    margin-bottom: 15px;
}

#subscriptionRequestPage .subscription-request-heading .eyebrow {
    margin-bottom: 6px;
}

#subscriptionRequestPage .subscription-request-heading h2 {
    margin: 0 0 7px;

    color: #fff;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.25;
}

#subscriptionRequestPage .subscription-request-heading p {
    margin: 0;

    color: #bdbdbd;
    font-size: 12px;
    line-height: 1.65;
}

/* Champs du formulaire */

#subscriptionRequestPage .subscription-request-field {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;
    margin-top: 12px;
}

#subscriptionRequestPage .subscription-request-field label {
    color: #e7e7e7;
    font-size: 12px;
    font-weight: 700;
}

#subscriptionRequestPage .subscription-request-field input,
#subscriptionRequestPage .subscription-request-field textarea {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 38px;

    padding: 9px 11px;

    border: 1px solid #383838;
    border-radius: 7px;

    outline: none;

    background: #101010;
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}
/* CHOIX DE FORMULE ET FICHIER - STYLE PC */
@media (min-width: 769px) {
    #subscriptionRequestPage .subscription-request-field select {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 9px 11px;
        border: 1px solid #383838;
        border-radius: 7px;
        outline: none;
        background: #101010;
        color: #fff;
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        color-scheme: dark;
    }

    #subscriptionRequestPage .subscription-request-field select:focus {
        border-color: #ff7600;
        box-shadow: 0 0 0 2px rgba(255, 118, 0, 0.1);
    }

    #subscriptionRequestPage .subscription-request-field input[type="file"] {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 7px;
        border: 1px solid #383838;
        border-radius: 7px;
        background: #101010;
        color: #bdbdbd;
        font-family: inherit;
        font-size: 13px;
    }

    #subscriptionRequestPage .subscription-request-field input[type="file"]::file-selector-button {
        margin-right: 12px;
        padding: 7px 12px;
        border: none;
        border-radius: 5px;
        background: #ff7600;
        color: #fff;
        font-family: inherit;
        font-weight: 700;
        cursor: pointer;
    }
}

#subscriptionRequestPage .subscription-request-field input:focus,
#subscriptionRequestPage .subscription-request-field textarea:focus {
    border-color: #ff7600;
    box-shadow: 0 0 0 2px rgba(255, 118, 0, 0.1);
}

#subscriptionRequestPage .subscription-request-field input[readonly] {
    color: #aaa;
    background: #181818;
}

#subscriptionRequestPage .subscription-request-field textarea {
    min-height: 65px;
    resize: vertical;
}

/* Information sur la demande */

#subscriptionRequestPage .subscription-request-notice {
    margin: 14px 0;
    padding: 10px 11px;

    border: 1px solid rgba(255, 118, 0, 0.2);
    border-radius: 7px;

    background: rgba(255, 118, 0, 0.07);
    color: #dedede;

    font-size: 11px;
    line-height: 1.6;
}

/* Boutons */

#subscriptionRequestPage .subscription-request-actions {
    display: flex;
    align-items: stretch;
    gap: 9px;

    margin-top: 15px;
}

#subscriptionRequestPage .subscription-request-actions button {
    min-height: 39px;
    padding: 9px 13px;

    border-radius: 7px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

#subscriptionRequestPage #subscriptionRequestSubmit {
    flex: 1;

    border: 1px solid #ff7600;

    background: #ff7600;
    color: #111;
}

#subscriptionRequestPage #subscriptionRequestSubmit:hover {
    background: #ff9438;
}

#subscriptionRequestPage #subscriptionRequestCancel {
    border: 1px solid #383838;

    background: #222;
    color: #fff;
}

#subscriptionRequestPage #subscriptionRequestCancel:hover {
    border-color: #606060;
}

/* Confirmation ou erreur */

#subscriptionRequestPage #subscriptionRequestStatus {
    margin: 12px 0 0;

    color: #ddd;
    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

/* =========================================
   ADMIN — NAVIGATION HORIZONTALE COMPACTE
   ========================================= */

.admin-workspace-nav {
    position: relative;

    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    margin: 12px 0 18px;
    padding: 8px;

    overflow-x: auto;
    overscroll-behavior-x: contain;

    scrollbar-width: thin;
    scrollbar-color: #454545 transparent;

    background: #111;

    border: 1px solid #292929;
    border-radius: 10px;
}

.admin-workspace-nav::-webkit-scrollbar {
    height: 4px;
}

.admin-workspace-nav::-webkit-scrollbar-thumb {
    background: #454545;
    border-radius: 10px;
}

.admin-workspace-tab {
    flex: 0 0 auto;

    min-height: 36px;
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;
    color: #bcbcbc;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.admin-workspace-tab:hover {
    background: #222;
    color: #fff;
}

.admin-workspace-tab.active {
    background: #ff7600;
    border-color: #ff7600;
    color: #111;

    font-weight: 800;
}

/* ==========================================
   IVOIRE PLAY — FORMULAIRES ADMIN COMPACTS
   ========================================== */

.admin-page {
    padding-bottom: 20px;
}

.admin-page .admin-heading {
    margin-bottom: 10px;
}

.admin-page > .admin-section:not(.hidden) {
    width: 100%;
    margin: 0 auto 14px;
    padding: 16px;

    border-radius: 12px;
}

.admin-page .section-heading {
    margin-bottom: 14px;
}

.admin-page .section-heading h2 {
    margin-bottom: 5px;
    font-size: 19px;
}

.admin-page .catalog-description {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.admin-page .admin-form {
    margin: 0;
    padding: 0;
}

.admin-page .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-page .admin-field {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;
}

.admin-page .admin-field label {
    font-size: 12px;
    font-weight: 700;
}

.admin-page .admin-field input,
.admin-page .admin-field select,
.admin-page .admin-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;

    padding: 9px 11px;

    border-radius: 7px;
    font-size: 13px;
}

.admin-page .admin-field textarea {
    min-height: 76px;
    resize: vertical;
}

.admin-page .admin-field small {
    font-size: 11px;
    line-height: 1.4;
}

.admin-page .admin-field-full {
    grid-column: 1 / -1;
}

/* Cases à cocher */

.admin-page .admin-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;

    margin-top: 13px;
}

.admin-page .admin-checkboxes label {
    font-size: 12px;
}

/* Boutons des formulaires admin */

.admin-page .admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 15px;
}

.admin-page .admin-form-actions .button {
    min-height: 36px;
    padding: 9px 13px;

    border-radius: 7px;
    font-size: 12px;
}

/* Recherche des membres */

.admin-page .admin-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.admin-page .admin-search-form .admin-field {
    min-width: 0;
}

/* Tableaux admin */

.admin-page .admin-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;
}

.admin-page .admin-table-toolbar label {
    font-size: 12px;
}

.admin-page .admin-table-toolbar select,
.admin-page .admin-table-toolbar button {
    min-height: 35px;
    padding: 7px 10px;
    font-size: 12px;
}

.admin-page .admin-table th,
.admin-page .admin-table td {
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.admin-page .admin-table-wrapper {
    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    border-radius: 8px;
}

.admin-page .admin-help-text {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE — TABLETTES
   ========================================== */

@media (max-width: 1100px) {
    #subscriptionPage .subscription-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================
   RESPONSIVE — TÉLÉPHONES
   ========================================== */

@media (max-width: 700px) {

    #subscriptionPage {
        padding: calc(var(--navbar-height) + 16px) 0 24px;
    }

    #subscriptionRequestPage {
        padding: calc(var(--navbar-height) + 16px) 0 24px;
    }

    /* Bannière */

    #subscriptionPage .subscription-hero {
        margin: 0 14px 16px;
        padding: 22px 17px;

        border-radius: 12px;
    }

    #subscriptionPage .subscription-hero h1 {
        font-size: 27px;
        letter-spacing: -0.7px;
    }

    #subscriptionPage .subscription-hero > p:last-child {
        font-size: 12px;
        line-height: 1.65;
    }

    /* Formules en une colonne */

    #subscriptionPage .subscription-grid {
        width: calc(100% - 28px);

        grid-template-columns: minmax(0, 1fr);
        gap: 12px;

        margin: 0 auto;
        padding: 0;
    }

    #subscriptionPage .subscription-card {
        padding: 19px;
        border-radius: 12px;
    }

    #subscriptionPage .subscription-card h2 {
        margin-top: 9px;
        font-size: 22px;
    }

    #subscriptionPage .subscription-price {
        font-size: 25px;
    }

    #subscriptionPage .subscription-card ul {
        gap: 8px;
        margin: 15px 0 18px;
    }

    #subscriptionPage .subscription-card [data-subscription-request] {
        min-height: 41px;
        font-size: 12px;
    }

    /* Formulaire mobile */

    #subscriptionRequestPage .subscription-request-box {
        width: calc(100% - 24px);

        margin: 0 auto;
        padding: 16px 13px;

        border-radius: 11px;
    }

    #subscriptionRequestPage .subscription-request-heading h2 {
        font-size: 21px;
    }

    #subscriptionRequestPage .subscription-request-heading p {
        font-size: 11px;
    }

    #subscriptionRequestPage .subscription-request-field {
        margin-top: 11px;
    }

    #subscriptionRequestPage .subscription-request-field label {
        font-size: 11px;
    }

    #subscriptionRequestPage .subscription-request-field input,
    #subscriptionRequestPage .subscription-request-field textarea {
        min-height: 37px;
        padding: 9px 10px;
        font-size: 12px;
    }

    #subscriptionRequestPage .subscription-request-field textarea {
        min-height: 62px;
    }

    #subscriptionRequestPage .subscription-request-actions {
        flex-direction: column;
        gap: 8px;
    }

    #subscriptionRequestPage .subscription-request-actions button {
        width: 100%;
        min-height: 39px;
    }

    /* Navigation admin */

    .admin-workspace-nav {
        gap: 5px;
        margin: 8px 0 14px;
        padding: 6px;

        border-radius: 8px;
    }

    .admin-workspace-tab {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Administration compacte */

    #adminPage {
        padding: 14px 10px;
    }

    #adminPage h1 {
        font-size: 24px;
    }

    #adminPage h2 {
        font-size: 18px;
    }

    #adminPage .admin-stats-grid,
    #adminPage .admin-statistics,
    #adminPage .admin-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin: 15px 0 20px;
    }

    #adminPage .admin-stat-card,
    #adminPage .admin-stat,
    #adminPage .stat-card {
        padding: 12px;
    }

    #adminPage .admin-panel,
    #adminPage .admin-section,
    #adminPage .admin-card {
        padding: 13px;
        margin-bottom: 15px;
    }

    #adminPage .admin-form-grid,
    #adminPage .admin-grid,
    #adminPage .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    #adminPage .admin-field-full,
    #adminPage .admin-form-group.full-width,
    #adminPage .form-group.full-width,
    #adminPage .admin-full-width {
        grid-column: auto;
    }

    #adminPage .admin-form-actions {
        gap: 7px;
    }

    #adminPage .admin-form-actions .button {
        min-height: 35px;
        padding: 8px 10px;
    }

    #adminPage .admin-search-form {
        grid-template-columns: minmax(0, 1fr);
    }

    #adminPage .admin-list-item,
    #adminPage .admin-result-item,
    #adminPage .admin-member-item,
    #adminPage .admin-content-item {
        align-items: flex-start;
        padding: 10px;
        gap: 9px;
    }

    #adminPage .admin-item-actions {
        gap: 6px;
    }

    #adminPage .admin-item-actions button,
    #adminPage .admin-form-actions button,
    #adminPage .admin-actions button {
        padding: 9px 10px;
        font-size: 12px;
    }

    #adminPage .admin-header,
    #adminPage .admin-page-header,
    #adminPage .admin-topbar {
        align-items: flex-start;
        margin-bottom: 17px;
    }

    #adminPage .admin-heading-actions,
    #adminPage .admin-header-actions,
    #adminPage .admin-button-group {
        width: 100%;
    }

    #adminPage .admin-search-bar,
    #adminPage .admin-search-form {
        align-items: stretch;
    }

    #adminPage input,
    #adminPage select {
        padding: 10px;
    }
}

/* ==========================================
   RESPONSIVE — TRÈS PETITS ÉCRANS
   ========================================== */

@media (max-width: 380px) {

    #subscriptionPage .subscription-hero {
        margin-right: 12px;
        margin-left: 12px;
        padding: 19px 14px;
    }

    #subscriptionPage .subscription-hero h1 {
        font-size: 24px;
    }

    #subscriptionPage .subscription-grid {
        width: calc(100% - 24px);
    }

    #subscriptionPage .subscription-card {
        padding: 16px;
    }

    #subscriptionPage .subscription-price {
        font-size: 23px;
    }

    #subscriptionRequestPage .subscription-request-box {
        width: calc(100% - 18px);
        padding: 14px 11px;
    }

    #subscriptionRequestPage .subscription-request-heading h2 {
        font-size: 19px;
    }

    .admin-workspace-nav {
        gap: 4px;
        padding: 5px;
    }

    .admin-workspace-tab {
        padding: 7px 8px;
        font-size: 10px;
    }
}

/* =========================================
   IVOIRE PLAY — SÉLECTION DES PROFILS
========================================= */

/* =========================================================
   IVOIRE PLAY — SÉLECTION DES PROFILS
   Design premium : noir, orange, blanc et verre dépoli
   ========================================================= */

.profile-chooser-screen {
    position: fixed;
    inset: 0;
    z-index: 12000;

    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;

    background:
        radial-gradient(
            ellipse at 50% 38%,
            rgba(255, 118, 0, 0.10) 0%,
            transparent 48%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(255, 118, 0, 0.06) 0%,
            transparent 40%
        ),
        #080808;

    color: #fff;

    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* EN-TÊTE */

.profile-chooser-header {
    position: relative;
    z-index: 1;

    width: 100%;
    padding: 25px 5%;
}

.profile-chooser-logo {
    display: inline-block;

    font-size: 29px;
    font-weight: 900;
    letter-spacing: -1.3px;

    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.profile-chooser-logo span {
    color: #ff7600;
    text-shadow: 0 0 22px rgba(255, 118, 0, 0.25);
}

/* CONTENU PRINCIPAL */

.profile-chooser-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1100px;

    margin: auto;
    padding: 40px 24px 65px;

    text-align: center;
}

.profile-chooser-content h1 {
    margin: 0 0 14px;

    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -1.2px;

    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.5);
}

.profile-chooser-subtitle {
    margin: 0 0 42px;

    color: #b9b9b9;
    font-size: 15px;
    line-height: 1.6;
}

/* GRILLE DES PROFILS */

.profile-chooser-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;

    gap: 28px;
    width: 100%;
    margin: 0 auto 42px;
}

.profile-chooser-loading {
    color: #c2c2c2;
    font-size: 14px;
}

/* CARTES DES PROFILS */

.profile-chooser-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 145px;
    max-width: 28vw;
    padding: 12px 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.025);
    color: #aaa;

    text-align: center;
    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.profile-chooser-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 118, 0, 0.55);

    background: rgba(255, 118, 0, 0.07);
    color: #fff;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 118, 0, 0.07);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.profile-chooser-card:focus-visible {
    outline: 2px solid #ff7600;
    outline-offset: 4px;
}

/* AVATARS */

.profile-chooser-avatar {
    position: relative;

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

    width: 125px;
    height: 125px;
    max-width: 100%;
    aspect-ratio: 1;

    margin: 0 auto 15px;
    overflow: hidden;

    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 118, 0, 0.13),
            rgba(255, 255, 255, 0.025) 50%,
            rgba(0, 0, 0, 0.5)
        ),
        #171717;

    color: #ff7600;
    font-size: 42px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 7px 20px rgba(0, 0, 0, 0.25);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.profile-chooser-card:hover .profile-chooser-avatar {
    transform: scale(1.035);

    border-color: #ff7600;

    box-shadow:
        0 0 0 1px rgba(255, 118, 0, 0.2),
        0 0 24px rgba(255, 118, 0, 0.22),
        0 10px 25px rgba(0, 0, 0, 0.35);
}

.profile-chooser-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* NOM DU PROFIL */

.profile-chooser-name {
    display: block;

    overflow: hidden;
    width: 100%;
    padding: 0 2px;

    color: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.profile-chooser-card:hover .profile-chooser-name {
    color: #fff;
}

/* AJOUTER UN PROFIL */

.profile-chooser-add {
    border: 1px dashed rgba(255, 118, 0, 0.4);

    background: rgba(255, 118, 0, 0.035);
}

.profile-chooser-card:hover .profile-chooser-add {
    border-color: #ff7600;

    background:
        linear-gradient(
            145deg,
            rgba(255, 118, 0, 0.18),
            rgba(255, 255, 255, 0.025)
        );

    color: #ff7600;
}

/* BOUTON GÉRER LES PROFILS */

.profile-manage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 27px;

    border: 1px solid rgba(255, 118, 0, 0.65);
    border-radius: 8px;

    background: rgba(255, 118, 0, 0.07);
    color: #fff;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.1px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

    -webkit-tap-highlight-color: transparent;
}

.profile-manage-button:hover {
    transform: translateY(-2px);

    border-color: #ff7600;
    background: #ff7600;
    color: #080808;

    box-shadow: 0 6px 22px rgba(255, 118, 0, 0.22);
}

.profile-manage-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.profile-manage-button:active {
    transform: scale(0.98);
}

/* ANIMATIONS D'APPARITION */

@keyframes profileChooserAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-chooser-content h1,
.profile-chooser-subtitle,
.profile-chooser-grid,
.profile-manage-button {
    animation: profileChooserAppear 0.45s ease both;
}

.profile-chooser-subtitle {
    animation-delay: 0.05s;
}

.profile-chooser-grid {
    animation-delay: 0.1s;
}

.profile-manage-button {
    animation-delay: 0.15s;
}

/* ACCESSIBILITÉ : RESPECT DU CHOIX DE RÉDUCTION DES ANIMATIONS */

@media (prefers-reduced-motion: reduce) {
    .profile-chooser-card,
    .profile-chooser-avatar,
    .profile-manage-button {
        transition: none;
    }

    .profile-chooser-content h1,
    .profile-chooser-subtitle,
    .profile-chooser-grid,
    .profile-manage-button {
        animation: none;
    }
}

/* ADAPTATION MOBILE */

@media (max-width: 600px) {
    .profile-chooser-header {
        padding: 20px 20px;
    }

    .profile-chooser-logo {
        font-size: 25px;
    }

    .profile-chooser-content {
        padding: 30px 16px 40px;
    }

    .profile-chooser-content h1 {
        font-size: clamp(25px, 7vw, 32px);
        letter-spacing: -0.7px;
    }

    .profile-chooser-subtitle {
        margin-bottom: 30px;
        font-size: 13px;
    }

    .profile-chooser-grid {
        gap: 14px 12px;
        margin-bottom: 30px;
    }

    .profile-chooser-card {
        width: 125px;
        max-width: calc(50% - 8px);
        padding: 9px 7px 12px;
        border-radius: 13px;
    }

    .profile-chooser-avatar {
        width: 100%;
        max-width: 105px;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 11px;
        border-radius: 12px;
        font-size: 35px;
    }

    .profile-chooser-name {
        font-size: 12px;
    }

    .profile-manage-button {
        min-height: 42px;
        padding: 10px 22px;
        font-size: 11px;
    }
}

/* PETITS TÉLÉPHONES */

@media (max-width: 360px) {
    .profile-chooser-grid {
        gap: 12px 8px;
    }

    .profile-chooser-card {
        width: 112px;
    }

    .profile-chooser-avatar {
        max-width: 92px;
    }

    .profile-chooser-content {
        padding-right: 12px;
        padding-left: 12px;
    }
}
/* Adaptation aux téléphones */

@media (max-width: 600px) {
    .profile-chooser-header {
        padding: 14px 16px;
    }

    .profile-chooser-logo {
        font-size: 20px;
    }

    .profile-chooser-content {
        padding: 28px 12px 24px;
    }

    .profile-chooser-content h1 {
        font-size: 23px;
    }

    .profile-chooser-subtitle {
        margin-bottom: 24px;
        font-size: 12px;
    }

    .profile-chooser-grid {
        gap: 20px 12px;
        margin-bottom: 24px;
    }

    .profile-chooser-card {
        width: 95px;
        max-width: 40%;
    }

    .profile-chooser-avatar {
        width: 82px;
        height: 82px;
        border-radius: 9px;
        font-size: 29px;
    }

    .profile-chooser-name {
        font-size: 12px;
    }

    .profile-manage-button {
        min-height: 38px;
        padding: 8px 15px;
        font-size: 11px;
    }
}
/* FIN — SÉLECTION DES PROFILS */

/* =========================================
   IVOIRE PLAY — POP-UP ESSAI TERMINÉ
   Centrage PC + mobile
========================================= */

.trial-expired-overlay {
    position: fixed;
    inset: 0;
    z-index: 15000;

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

    width: 100%;
    height: 100%;
    height: 100dvh;

    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;

    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Carte principale centrée */

.trial-expired-box {
    position: relative;

    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 40px);

    margin: auto;
    padding: 30px 26px 24px;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid rgba(255, 118, 0, 0.35);
    border-radius: 16px;

    background:
        radial-gradient(
            circle at top,
            rgba(255, 118, 0, 0.12),
            transparent 45%
        ),
        #151515;

    color: #fff;
    text-align: center;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.75);

    animation: trialPopupAppear 0.25s ease-out;
}

/* Apparition douce */

@keyframes trialPopupAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bouton fermer */

.trial-expired-close {
    position: absolute;
    top: 11px;
    right: 12px;

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

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #292929;
    color: #fff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.trial-expired-close:hover {
    background: #3b3b3b;
}

/* Cadenas */

.trial-expired-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 17px;

    border: 1px solid rgba(255, 118, 0, 0.35);
    border-radius: 50%;

    background: rgba(255, 118, 0, 0.10);

    font-size: 30px;
}

/* Titre et message */

.trial-expired-box h2 {
    margin: 0 0 14px;

    color: #fff;

    font-size: clamp(21px, 4vw, 27px);
    font-weight: 900;
    line-height: 1.25;
}

.trial-expired-message {
    margin: 0 0 22px;

    color: #c5c5c5;

    font-size: 14px;
    line-height: 1.65;
}

/* Boutons */

.trial-expired-subscribe,
.trial-expired-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 46px;

    padding: 12px 15px;

    border: 1px solid #383838;
    border-radius: 7px;

    background: #222;
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.trial-expired-subscribe {
    min-height: 48px;
    margin-bottom: 20px;

    border-color: #ff7600;
    background: #ff7600;
    color: #111;

    font-size: 14px;
}

.trial-expired-subscribe:hover {
    border-color: #ff953d;
    background: #ff953d;
}

.trial-expired-separator {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 15px;

    color: #888;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.trial-expired-separator::before,
.trial-expired-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #383838;
}

.trial-expired-contact {
    margin-top: 9px;
}

.trial-expired-contact:hover {
    border-color: #ff7600;
    background: #2b211a;
}

.trial-expired-whatsapp {
    border-color: #286a42;
}

.trial-expired-whatsapp:hover {
    border-color: #35a661;
    background: #14271b;
}

/* Coordonnées du gérant */

.trial-expired-phone {
    margin: 18px 0 0;

    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
}

.trial-expired-phone strong {
    color: #ff953d;
    white-space: nowrap;
}

/* Adaptation aux téléphones */

@media (max-width: 600px) {
    .trial-expired-overlay {
        padding:
            max(12px, env(safe-area-inset-top))
            14px
            max(12px, env(safe-area-inset-bottom));
    }

    .trial-expired-box {
        width: 100%;
        max-width: 390px;

        max-height: calc(
            100dvh
            - env(safe-area-inset-top)
            - env(safe-area-inset-bottom)
            - 24px
        );

        padding: 25px 19px 20px;
        border-radius: 13px;
    }

    .trial-expired-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 13px;
        font-size: 26px;
    }

    .trial-expired-box h2 {
        margin-bottom: 11px;
        font-size: 22px;
    }

    .trial-expired-message {
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.55;
    }

    .trial-expired-subscribe,
    .trial-expired-contact {
        min-height: 43px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .trial-expired-subscribe {
        margin-bottom: 17px;
        font-size: 13px;
    }

    .trial-expired-separator {
        margin-bottom: 12px;
        font-size: 9px;
    }

    .trial-expired-phone {
        margin-top: 14px;
        font-size: 11px;
    }
}

/* Petits écrans très bas */

@media (max-height: 600px) {
    .trial-expired-overlay {
        align-items: flex-start;
    }

    .trial-expired-box {
        margin-top: auto;
        margin-bottom: auto;
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .trial-expired-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
        font-size: 23px;
    }

    .trial-expired-box h2 {
        font-size: 20px;
    }

    .trial-expired-message {
        margin-bottom: 14px;
        font-size: 12px;
    }
}

/* FIN — POP-UP ESSAI TERMINÉ */

/* =========================================
   IVOIRE PLAY — STATUT ESSAI GRATUIT
========================================= */

.trial-subscription-status {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 30px auto;
    padding: 22px 25px;

    border: 1px solid rgba(255, 118, 0, 0.28);
    border-radius: 14px;

    background:
        radial-gradient(
            circle at top right,
            rgba(255, 118, 0, 0.10),
            transparent 45%
        ),
        #151515;

    color: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.trial-subscription-status-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#trialSubscriptionIcon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 118, 0, 0.22);
    border-radius: 12px;

    background: rgba(255, 118, 0, 0.08);
    font-size: 25px;
}

.trial-subscription-status-header h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.trial-subscription-status-header p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
}

.trial-subscription-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.trial-subscription-dates > div {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
    padding: 15px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;

    background: #1d1d1d;
}

.trial-subscription-label {
    color: #999;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-subscription-dates strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.trial-subscription-remaining {
    margin: 17px 0 0;
    padding-top: 15px;

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

    color: #ff953d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

/* État d'un abonnement actif */

.trial-subscription-status.is-active {
    border-color: rgba(74, 190, 113, 0.35);
}

.trial-subscription-status.is-active
.trial-subscription-remaining {
    color: #65df8b;
}

/* État d'un accès expiré */

.trial-subscription-status.is-expired {
    border-color: rgba(255, 85, 85, 0.35);
}

.trial-subscription-status.is-expired
.trial-subscription-remaining {
    color: #ff7777;
}

/* Téléphones et petits écrans */

@media (max-width: 600px) {
    .trial-subscription-status {
        width: calc(100% - 28px);
        margin: 20px auto;
        padding: 17px;
        border-radius: 11px;
    }

    .trial-subscription-status-header {
        gap: 11px;
        margin-bottom: 16px;
    }

    #trialSubscriptionIcon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 22px;
    }

    .trial-subscription-status-header h2 {
        font-size: 16px;
    }

    .trial-subscription-status-header p {
        font-size: 12px;
    }

    .trial-subscription-dates {
        gap: 8px;
    }

    .trial-subscription-dates > div {
        gap: 7px;
        padding: 11px 9px;
    }

    .trial-subscription-label {
        font-size: 9px;
        letter-spacing: 0;
    }

    .trial-subscription-dates strong {
        font-size: 12px;
    }

    .trial-subscription-remaining {
        margin-top: 13px;
        padding-top: 12px;
        font-size: 12px;
    }
}

/* FIN — STATUT ESSAI GRATUIT */

/* =========================================================
   IVOIRE PLAY — OPTIMISATION MOBILE
   Conserve le design, les fonctionnalités et la navigation.
   ========================================================= */

@media screen and (max-width: 700px) {

    /* 1. Espaces généraux */
    :root {
        --navbar-height: 60px;
        --content-padding: 12px;
    }

    html {
        scroll-padding-top: 68px;
    }

    body {
        overflow-x: hidden;
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    main,
    .main-content,
    .page-content {
        min-width: 0;
        max-width: 100%;
    }

    /* 2. Titres et sections */
    .content-section,
    .genre-section,
    .genre-sections {
        min-width: 0;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .section-title,
    .genre-section h2,
    .genre-section h3 {
        margin-top: 0;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    /* 3. Rangées horizontales de films et séries */
    .genre-row,
    .movies-row,
    .movie-row,
    .films-row {
        max-width: 100%;
        gap: 10px;
        padding-bottom: 2px;
        scroll-padding-left: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .movie-card {
        flex: 0 0 205px;
        min-width: 0;
        max-width: 205px;
    }

    .movie-card img {
        max-width: 100%;
    }

    /* 4. Grilles des catalogues */
    .films-grid,
    .series-grid,
    #seriesPageGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 9px;
        width: 100%;
        min-width: 0;
    }

    .films-grid > *,
    .series-grid > *,
    #seriesPageGrid > * {
        min-width: 0;
        max-width: 100%;
    }

    /* 5. Boutons : zones tactiles adaptées au téléphone */
    button,
    .btn,
    .button {
        max-width: 100%;
        touch-action: manipulation;
    }

    .category-chip,
    .genre-chip {
        flex-shrink: 0;
    }

    /* 6. Navigation mobile : conserver les six boutons */
    .mobile-bottom-nav {
        box-sizing: border-box;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav button,
    .mobile-bottom-nav a {
        min-width: 0;
        min-height: 48px;
        padding-left: 2px;
        padding-right: 2px;
    }

    /* 7. Fenêtres et modales */
    .modal,
    .modal-overlay,
    .popup-overlay,
    .access-popup,
    .auth-modal {
        box-sizing: border-box;
    }

    .modal,
    .modal-content,
    .modal-box,
    .popup-content,
    .auth-modal,
    .access-popup-content {
        max-width: 100%;
        min-width: 0;
    }

    .modal-content,
    .modal-box,
    .popup-content,
    .auth-modal,
    .access-popup-content {
        overflow-wrap: anywhere;
    }

    /* 8. Formulaires et champs */
    input,
    select,
    textarea {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    /* 9. Abonnements : cartes compactes */
    .subscription-card,
    .plan-card,
    .pricing-card {
        min-width: 0;
        max-width: 100%;
        padding: 14px;
    }

    /* 10. Profil : éviter les débordements */
    .profile-chooser-screen {
        box-sizing: border-box;
        padding:
            max(16px, env(safe-area-inset-top))
            12px
            max(16px, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-chooser-screen * {
        min-width: 0;
    }

    /* 11. Administration : rester dans la largeur du téléphone */
    #adminPage {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    #adminPage input,
    #adminPage select,
    #adminPage textarea,
    #adminPage button {
        max-width: 100%;
    }

    #adminPage table {
        max-width: 100%;
    }

    /* 12. Petits téléphones */
    @media (max-width: 380px) {
        .movie-card {
            flex-basis: 185px;
            max-width: 185px;
        }

        .films-grid,
        .series-grid,
        #seriesPageGrid {
            gap: 10px 7px;
        }

        .content-section,
        .genre-section,
        .genre-sections {
            margin-top: 14px;
            margin-bottom: 14px;
        }
    }
}

/* Icône Commentaires à côté du titre */
.player-comment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 38px;
    height: 38px;
    padding: 0;

    color: #ffffff;
    background: #151515;
    border: 1px solid #383838;
    border-radius: 50%;

    cursor: pointer;

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

.player-comment-icon svg {
    display: block;
    width: 23px;
    height: 23px;
}

.player-comment-icon:hover {
    background: rgba(255, 118, 0, 0.15);
    border-color: #ff7600;
    transform: scale(1.08);
}

.player-comment-icon:focus-visible {
    outline: 2px solid #ff7600;
    outline-offset: 3px;
}

/* Adaptation mobile */
@media (max-width: 600px) {
    .player-comment-icon {
        width: 32px;
        height: 32px;
    }

    .player-comment-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Même couleur que le bouton Télécharger */
.player-action-bar .player-play-pause-button,
.player-action-bar #playerAddToListButton {
    background: linear-gradient(
        135deg,
        rgba(255, 118, 0, 0.19),
        rgba(255, 118, 0, 0.08)
    );

    border-color: rgba(255, 118, 0, 0.28);
    color: #f0f0f0;
    box-shadow: none;
}

/* Icônes orange comme Télécharger */
.player-action-bar .player-play-pause-button .player-action-icon,
.player-action-bar #playerAddToListButton .player-action-icon {
    color: var(--orange);
}

/* Même effet au survol */
.player-action-bar .player-play-pause-button:hover,
.player-action-bar #playerAddToListButton:hover:not(:disabled) {
    background: rgba(255, 118, 0, 0.12);
    border-color: rgba(255, 118, 0, 0.4);
}

/* Croix discrète dans le lecteur */
/* Croix discrète pour fermer le lecteur */
/* Petite croix discrète dans le lecteur */
#playerView .player-close-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;

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

    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;

    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: none;
    border-radius: 50%;

    font-size: 18px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    opacity: 0.8;
    visibility: visible;

    appearance: none;
    -webkit-appearance: none;
}

#playerView .player-close-button:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Angles arrondis du lecteur vidéo */
/* Conteneur servant de repère au lecteur et à sa croix */
#playerView .video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Vidéo avec angles arrondis */
#playerView .video-container video {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* Petite croix placée dans le coin de la vidéo */
#playerView .player-close-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;

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

    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;

    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: none;
    border-radius: 50%;

    font-size: 18px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    opacity: 0.8;

    appearance: none;
    -webkit-appearance: none;
}

#playerView .player-close-button:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8) !important;
}


.video-container video {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* CORRECTION : réafficher la croix dans le lecteur vidéo */
#playerView .video-container {
    position: relative !important;
}

#playerView .video-container .player-close-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 99999 !important;

    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;

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

    padding: 0 !important;
    margin: 0 !important;

    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: none !important;
    border-radius: 50% !important;

    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Bouton Lecture discret et transparent pour les séries */
#playerView .player-title-rating #playerPlayPauseButton {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;

    color: #ffffff !important;

    box-shadow: none !important;
    transform: none !important;
}

/* Icône blanche */
#playerView .player-title-rating #playerPlayPauseButton
.player-action-icon {
    color: #ffffff !important;
}

/* Survol : reste transparent, sans orange */
#playerView .player-title-rating #playerPlayPauseButton:hover,
#playerView .player-title-rating #playerPlayPauseButton:focus,
#playerView .player-title-rating #playerPlayPauseButton:active {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;

    color: #ffffff !important;

    box-shadow: none !important;
    transform: none !important;
}

/* Conserver l'icône blanche dans tous les états */
#playerView .player-title-rating #playerPlayPauseButton:hover
.player-action-icon,
#playerView .player-title-rating #playerPlayPauseButton:focus
.player-action-icon,
#playerView .player-title-rating #playerPlayPauseButton:active
.player-action-icon {
    color: #ffffff !important;
}

/* =====================================================
   IVOIRE PLAY — LIVE IPTV
   Design premium : verre poli, noir et orange
   Styles strictement limités à #livePage
   ===================================================== */

#livePage.live-page {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 28px;
    color: #ffffff;
    background:
        radial-gradient(
            ellipse at 95% 0%,
            rgba(255, 118, 0, 0.10),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(255, 118, 0, 0.045),
            transparent 35%
        );
}

#livePage .live-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

#livePage .live-page-header h1 {
    margin: 12px 0 8px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -1.8px;
}

#livePage .live-page-header h1 span {
    color: #ff7600;
}

#livePage .live-eyebrow,
#livePage .live-section-kicker {
    margin: 0;
    color: #ff9b49;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

#livePage .live-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

#livePage .live-status-dot,
#livePage .live-footer-indicator,
#livePage .live-info-footer-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ff7600;
    box-shadow: 0 0 10px rgba(255, 118, 0, 0.5);
}

#livePage .live-eyebrow-divider {
    color: rgba(255, 255, 255, 0.3);
}

#livePage .live-page-description {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.7;
}

#livePage .live-header-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.075),
        rgba(255, 255, 255, 0.025)
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#livePage .live-header-badge-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(255, 118, 0, 0.3);
    border-radius: 12px;
    color: #ff963c;
    background: rgba(255, 118, 0, 0.1);
    font-size: 23px;
}

#livePage .live-header-badge strong,
#livePage .live-header-badge small {
    display: block;
}

#livePage .live-header-badge strong {
    font-size: 11px;
    letter-spacing: 1px;
}

#livePage .live-header-badge small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

/* ESPACE PRINCIPAL */

#livePage .live-layout {
    display: grid;
    grid-template-columns: minmax(235px, 285px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    min-width: 0;
}

#livePage .live-glass-panel {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.065),
        rgba(255, 255, 255, 0.022) 65%,
        rgba(255, 118, 0, 0.025)
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 35px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* LISTE DES CHAÎNES */

#livePage .live-channels-panel {
    overflow: hidden;
    padding: 18px 14px 12px;
}

#livePage .live-panel-heading,
#livePage .live-info-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#livePage .live-panel-heading {
    margin-bottom: 17px;
}

#livePage .live-panel-heading h2,
#livePage .live-info-heading h2 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

#livePage .live-channel-count {
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
    white-space: nowrap;
}

#livePage .live-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 43px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.16);
    transition: border-color 0.2s ease;
}

#livePage .live-search-box:focus-within {
    border-color: rgba(255, 118, 0, 0.6);
}

#livePage .live-search-box input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font-size: 12px;
}

#livePage .live-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

#livePage .live-category-list {
    display: flex;
    gap: 7px;
    margin: 14px 0;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

#livePage .live-category-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-size: 11px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

#livePage .live-category-button.active {
    border-color: rgba(255, 118, 0, 0.4);
    color: #ffb477;
    background: rgba(255, 118, 0, 0.12);
}

#livePage .live-channel-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 190px;
    max-height: 590px;
    padding-right: 3px;
    overflow-y: auto;
    scrollbar-color: rgba(255, 118, 0, 0.35) transparent;
    scrollbar-width: thin;
}

#livePage .live-channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    text-align: left;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

#livePage .live-channel-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
}

#livePage .live-channel-item.active {
    border-color: rgba(255, 118, 0, 0.4);
    background: linear-gradient(
        100deg,
        rgba(255, 118, 0, 0.15),
        rgba(255, 118, 0, 0.035)
    );
}

#livePage .live-channel-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    color: #ff963c;
    background: rgba(255, 255, 255, 0.045);
    font-size: 14px;
    font-weight: 800;
}

#livePage .live-channel-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

#livePage .live-channel-item.active .live-channel-logo {
    border-color: rgba(255, 118, 0, 0.35);
    background: rgba(255, 118, 0, 0.1);
}

#livePage .live-channel-text {
    flex: 1;
    min-width: 0;
}

#livePage .live-channel-name {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#livePage .live-channel-meta {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#livePage .live-channel-selected {
    color: #ff8a26;
    font-size: 15px;
}

#livePage .live-empty-state {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 22px 12px;
    text-align: center;
}

#livePage .live-empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px solid rgba(255, 118, 0, 0.2);
    border-radius: 16px;
    color: #ff963c;
    background: rgba(255, 118, 0, 0.07);
}

#livePage .live-empty-state h3 {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

#livePage .live-empty-state p {
    max-width: 215px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    line-height: 1.7;
}

#livePage .live-channels-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
}

#livePage .live-footer-indicator {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

/* LECTEUR TV */

#livePage .live-viewer-column {
    display: flex;
    flex-direction: column;
    gap: 17px;
    min-width: 0;
}

#livePage .live-player-panel {
    min-width: 0;
    padding: 14px;
}

#livePage .live-player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1px 2px 13px;
}

#livePage .live-player-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#livePage .live-player-brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 118, 0, 0.3);
    border-radius: 11px;
    color: #ff963c;
    background: rgba(255, 118, 0, 0.1);
    font-size: 12px;
    font-weight: 900;
}

#livePage .live-player-brand strong,
#livePage .live-player-brand small {
    display: block;
}

#livePage .live-player-brand strong {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 1px;
}

#livePage .live-player-brand small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    letter-spacing: 1.5px;
}

#livePage .live-on-air {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 118, 0, 0.2);
    border-radius: 9px;
    color: #ff9b49;
    background: rgba(255, 118, 0, 0.07);
    font-size: 9px;
    letter-spacing: 1px;
}

#livePage .live-on-air > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7600;
    box-shadow: 0 0 8px rgba(255, 118, 0, 0.7);
}

#livePage .live-player-frame {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #030303;
}

#livePage #liveVideoPlayer {
    display: block;
    width: 100%;
    height: 100%;
    background: #030303;
    object-fit: contain;
}

#livePage .live-player-placeholder {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 45%,
            rgba(255, 118, 0, 0.13),
            transparent 45%
        ),
        linear-gradient(140deg, #15110d, #080808 55%, #100b07);
}

#livePage .live-player-placeholder::before,
#livePage .live-player-placeholder::after {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 118, 0, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

#livePage .live-player-placeholder::after {
    width: 320px;
    height: 320px;
    border-color: rgba(255, 255, 255, 0.035);
}

#livePage .live-placeholder-orb {
    z-index: 1;
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    place-items: center;
    border: 1px solid rgba(255, 118, 0, 0.34);
    border-radius: 19px;
    color: #ff963c;
    background: rgba(255, 118, 0, 0.09);
}

#livePage .live-placeholder-kicker {
    z-index: 1;
    margin: 0 0 9px;
    color: #ff9b49;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

#livePage .live-player-placeholder h2 {
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: clamp(17px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: -0.6px;
}

#livePage .live-player-placeholder > p:not(.live-placeholder-kicker) {
    z-index: 1;
    max-width: 360px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.53);
    font-size: 11px;
    line-height: 1.7;
}

#livePage .live-placeholder-decoration {
    z-index: 1;
    margin-top: 19px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 8px;
    letter-spacing: 2px;
}

#livePage .live-player-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 2px 2px;
}

#livePage .live-now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#livePage .live-current-channel-logo {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    color: #ff963c;
    background: rgba(255, 255, 255, 0.045);
    font-size: 15px;
    font-weight: 900;
}

#livePage .live-current-channel-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

#livePage .live-current-channel-info {
    min-width: 0;
}

#livePage .live-current-channel-info .live-section-kicker {
    font-size: 9px;
    letter-spacing: 1.3px;
}

#livePage .live-current-channel-info h2 {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

#livePage .live-current-channel-info > p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
}

#livePage .live-player-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#livePage .live-action-button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

#livePage .live-action-button:hover {
    border-color: rgba(255, 118, 0, 0.45);
    color: #ff963c;
    background: rgba(255, 118, 0, 0.09);
}

/* INFORMATIONS DE LA CHAÎNE */

#livePage .live-channel-info-panel {
    padding: 21px;
}

#livePage .live-info-heading {
    margin-bottom: 18px;
}

#livePage .live-info-heading h2 {
    font-size: 19px;
}

#livePage .live-channel-status {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
    white-space: nowrap;
}

#livePage .live-info-content {
    display: flex;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.12);
}

#livePage .live-info-accent {
    width: 3px;
    flex: 0 0 3px;
    border-radius: 5px;
    background: #ff7600;
}

#livePage .live-info-text {
    min-width: 0;
}

#livePage .live-info-text h3 {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

#livePage .live-info-text p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.53);
    font-size: 11px;
    line-height: 1.75;
}

#livePage .live-program-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 15px;
    border: 1px solid rgba(255, 118, 0, 0.12);
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        rgba(255, 118, 0, 0.065),
        rgba(255, 255, 255, 0.018)
    );
}

#livePage .live-program-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(255, 118, 0, 0.2);
    border-radius: 10px;
    color: #ff963c;
    background: rgba(255, 118, 0, 0.08);
    font-size: 18px;
}

#livePage .live-program-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

#livePage .live-program-content > span {
    color: #ff9b49;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

#livePage .live-program-content strong {
    color: #ffffff;
    font-size: 12px;
}

#livePage .live-program-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    line-height: 1.65;
}

#livePage .live-info-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
}

#livePage .live-info-footer > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* TABLETTES */

@media (max-width: 980px) {
    #livePage.live-page {
        padding: 20px;
    }

    #livePage .live-layout {
        grid-template-columns: minmax(215px, 250px) minmax(0, 1fr);
        gap: 13px;
    }

    #livePage .live-channels-panel {
        padding-right: 10px;
        padding-left: 10px;
    }

    #livePage .live-player-panel {
        padding: 10px;
    }

    #livePage .live-channel-info-panel {
        padding: 16px;
    }
}

/* MOBILES */

@media (max-width: 720px) {
    #livePage.live-page {
        padding: 15px 12px 24px;
    }

    #livePage .live-page-header {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    #livePage .live-page-header h1 {
        font-size: 35px;
        letter-spacing: -1.4px;
    }

    #livePage .live-page-description {
        max-width: 290px;
        font-size: 12px;
    }

    #livePage .live-header-badge {
        display: none;
    }

    #livePage .live-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    #livePage .live-viewer-column {
        grid-row: 1;
        gap: 13px;
    }

    #livePage .live-channels-panel {
        grid-row: 2;
        padding: 14px 11px 11px;
    }

    #livePage .live-player-panel {
        padding: 9px;
        border-radius: 16px;
    }

    #livePage .live-player-topbar {
        padding-bottom: 10px;
    }

    #livePage .live-player-brand-icon {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }

    #livePage .live-player-frame {
        border-radius: 11px;
    }

    #livePage .live-placeholder-orb {
        width: 46px;
        height: 46px;
        margin-bottom: 9px;
        border-radius: 14px;
    }

    #livePage .live-placeholder-orb svg {
        width: 24px;
        height: 24px;
    }

    #livePage .live-placeholder-kicker {
        margin-bottom: 6px;
        font-size: 8px;
    }

    #livePage .live-player-placeholder h2 {
        font-size: 16px;
    }

    #livePage .live-player-placeholder > p:not(.live-placeholder-kicker) {
        max-width: 260px;
        margin-top: 6px;
        font-size: 9px;
    }

    #livePage .live-placeholder-decoration {
        margin-top: 10px;
        font-size: 7px;
    }

    #livePage .live-player-bottom {
        padding-top: 11px;
    }

    #livePage .live-current-channel-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    #livePage .live-current-channel-info h2 {
        font-size: 13px;
    }

    #livePage .live-current-channel-info > p {
        font-size: 10px;
    }

    #livePage .live-action-button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    #livePage .live-channel-info-panel {
        padding: 15px 12px;
        border-radius: 16px;
    }

    #livePage .live-info-heading h2 {
        font-size: 16px;
    }

    #livePage .live-info-content,
    #livePage .live-program-section {
        padding: 12px;
    }

    #livePage .live-channel-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        min-height: 100px;
        max-height: 390px;
    }

    #livePage .live-channel-item {
        gap: 7px;
        padding: 8px;
        border-radius: 10px;
    }

    #livePage .live-channel-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
        font-size: 11px;
    }

    #livePage .live-channel-name {
        font-size: 10px;
    }

    #livePage .live-channel-meta {
        margin-top: 4px;
        font-size: 9px;
    }

    #livePage .live-channel-selected {
        display: none;
    }

    #livePage .live-empty-state {
        grid-column: 1 / -1;
        min-height: 160px;
    }
}

@media (max-width: 380px) {
    #livePage .live-channel-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    #livePage .live-category-button,
    #livePage .live-channel-item,
    #livePage .live-action-button {
        transition: none;
    }
}

/* ==================================================
   IVOIRE PLAY — NOS UNIVERS
================================================== */

.univers-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 12px var(--content-padding, 4%) 22px;
    background: #080808;
}

.univers-heading {
    margin-bottom: 13px;
}

.univers-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

/* Défilement horizontal sur PC et mobile */
.univers-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 0 9px;
    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
    -webkit-overflow-scrolling: touch;
}

/* Chaque univers reste compact */
.univers-item {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 118px;
    height: 46px;
    padding: 0 12px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;

    white-space: nowrap;
}

/* Logos de taille modérée, sans effets */
.univers-item img {
    display: block;
    flex: 0 0 auto;

    width: 23px;
    height: 23px;

    object-fit: contain;
}

.univers-item span {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35px;
}

/* Format téléphone */
@media (max-width: 700px) {
    .univers-section {
        padding-top: 8px;
        padding-bottom: 17px;
    }

    .univers-heading {
        margin-bottom: 10px;
    }

    .univers-heading h2 {
        font-size: 14px;
    }

    .univers-track {
        gap: 9px;
    }

    .univers-item {
        min-width: 108px;
        height: 42px;
        gap: 7px;
        padding: 0 9px;
        border-radius: 8px;
    }

    .univers-item img {
        width: 20px;
        height: 20px;
    }

    .univers-item span {
        font-size: 10px;
    }
}

/* Logos personnalisés des univers Ivoire Play */

.univers-item .univers-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    box-sizing: border-box;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.univers-item .univers-mark-africa {
    color: #fff;
    background: #24583f;
    border: 1px solid rgba(255, 255, 255, .18);
}

.univers-item .univers-mark-ivoire {
    color: #fff;
    background: #ff7600;
    border: 1px solid rgba(255, 255, 255, .2);
}

@media (max-width: 700px) {
    .univers-item .univers-mark {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

/* Logos horizontaux des univers de streaming */

.univers-item img.univers-logo-wide {
    width: 48px;
    height: 30px;
    max-width: 48px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .univers-item img.univers-logo-wide {
        width: 42px;
        height: 26px;
        max-width: 42px;
    }
}

/* Univers cliquables : conserver le design existant */

.univers-item {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    cursor: pointer;
}

.univers-item:focus-visible {
    outline: 2px solid #ff7600;
    outline-offset: 3px;
}

/* ==================================================
   IVOIRE PLAY — CHAT COMMUNAUTAIRE
================================================== */

.ipl-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10050;

    font-family: inherit;
    color: #fff;
}

/* Bouton flottant */

/* Bulle de chat discrète */

.ipl-chat-toggle {
    position: relative;

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

    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;

    color: #fff;
    background: rgba(10, 10, 10, 0.72);

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

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ipl-chat-toggle:hover {
    color: #fff;
    background: rgba(255, 118, 0, 0.16);

    border-color: rgba(255, 118, 0, 0.65);

    box-shadow: 0 4px 18px rgba(255, 118, 0, 0.12);

    transform: translateY(-2px);
}

.ipl-chat-toggle:active {
    transform: scale(0.94);
}

.ipl-chat-toggle:focus-visible,
.ipl-chat-close:focus-visible,
.ipl-chat-send:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.ipl-chat-toggle-label {
    display: none !important;
}

.ipl-chat-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Badge des nouveaux messages */

.ipl-chat-unread {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 5;

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

    min-width: 19px;
    height: 19px;
    padding: 0 4px;

    color: #fff;
    background: #ff7600;

    border: 2px solid #080808;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.ipl-chat-unread[hidden] {
    display: none !important;
}

/* Fenêtre */

.ipl-chat-panel {
    position: absolute;
    right: 0;
    bottom: 67px;

    display: flex;
    flex-direction: column;

    width: min(360px, calc(100vw - 28px));
    height: 470px;
    max-height: calc(100vh - 130px);

    overflow: hidden;

    background: #101010;
    border: 1px solid rgba(255, 118, 0, .4);
    border-radius: 17px;

    box-shadow: 0 12px 45px rgba(0, 0, 0, .55);
}

.ipl-chat-panel[hidden] {
    display: none !important;
}

/* En-tête */

.ipl-chat-header {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
    padding: 15px;

    background: linear-gradient(
        120deg,
        rgba(255, 118, 0, .17),
        rgba(255, 118, 0, .035)
    );

    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ipl-chat-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 41px;
    height: 41px;
    flex: 0 0 41px;

    color: #ff7600;
    background: rgba(255, 118, 0, .12);

    border: 1px solid rgba(255, 118, 0, .27);
    border-radius: 12px;
}

.ipl-chat-header-text {
    min-width: 0;
    flex: 1;
}

.ipl-chat-header-text h2 {
    margin: 0 0 5px;

    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.ipl-chat-header-text p {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0;

    color: #aaa;
    font-size: 11px;
}

.ipl-chat-status-dot {
    width: 7px;
    height: 7px;

    background: #ff7600;
    border-radius: 50%;
}

.ipl-chat-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;
    flex: 0 0 35px;

    color: #ddd;
    background: rgba(255, 255, 255, .06);

    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

/* Message de bienvenue */

.ipl-chat-welcome {
    flex-shrink: 0;
    padding: 13px 15px;

    background: rgba(255, 255, 255, .025);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.ipl-chat-welcome strong {
    display: block;
    margin-bottom: 5px;

    color: #ff9b45;
    font-size: 12px;
}

.ipl-chat-welcome p {
    margin: 0;

    color: #bbb;
    font-size: 11px;
    line-height: 1.6;
}

/* Liste des messages */

.ipl-chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 11px;

    min-height: 0;
    padding: 15px 12px;

    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.ipl-chat-loading {
    margin: auto;
    padding: 15px;

    color: #999;
    font-size: 12px;
    text-align: center;
}

/* Statut et envoi */

.ipl-chat-status {
    flex-shrink: 0;
    padding: 0 13px;

    color: #ffad66;
    font-size: 11px;
    line-height: 1.5;
}

.ipl-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;

    flex-shrink: 0;
    padding: 11px 12px;

    background: #151515;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.ipl-chat-form textarea {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 42px;
    max-height: 100px;
    padding: 11px 12px;

    resize: none;

    color: #fff;
    background: #222;

    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;

    font: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.ipl-chat-form textarea::placeholder {
    color: #888;
}

.ipl-chat-form textarea:focus {
    outline: none;
    border-color: rgba(255, 118, 0, .65);
}

.ipl-chat-send {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    color: #fff;
    background: linear-gradient(135deg, #ff922e, #ff7600);

    border: 0;
    border-radius: 12px;

    cursor: pointer;
}

.ipl-chat-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ipl-chat-footer {
    flex-shrink: 0;
    padding: 8px 12px;

    color: #777;
    background: #111;

    font-size: 10px;
    text-align: center;
}

.ipl-chat-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile */

@media (max-width: 700px) {
    .ipl-chat-widget {
        right: 12px;
        bottom: 86px;
    }

    .ipl-chat-toggle {
        min-height: 48px;
        padding: 0 14px;
        gap: 7px;
    }

    .ipl-chat-panel {
        right: 0;
        bottom: 60px;

        width: min(360px, calc(100vw - 24px));
        height: 440px;
        max-height: calc(100vh - 160px);

        border-radius: 15px;
    }

    .ipl-chat-header {
        padding: 12px;
    }

    .ipl-chat-welcome {
        padding: 11px 12px;
    }
}

/* ==================================================
   IVOIRE PLAY — BULLES DES MESSAGES
================================================== */

.ipl-chat-message-row {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 5px;

    width: fit-content;
    max-width: 90%;
    min-width: 0;
}

.ipl-chat-message-row--own {
    align-self: flex-end;
}

.ipl-chat-message-top {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 4px;
}

.ipl-chat-message-author {
    color: #ff9b45;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.ipl-chat-message-row--own .ipl-chat-message-author {
    color: #fff;
}

.ipl-chat-message-time {
    color: #777;
    font-size: 9px;
    white-space: nowrap;
}

.ipl-chat-message-bubble {
    padding: 10px 12px;

    color: #eee;
    background: #242424;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 4px 13px 13px 13px;
}

.ipl-chat-message-row--own .ipl-chat-message-bubble {
    color: #fff;
    background: linear-gradient(135deg, #8c400b, #542605);

    border-color: rgba(255, 118, 0, .3);
    border-radius: 13px 4px 13px 13px;
}

.ipl-chat-message-row--admin .ipl-chat-message-bubble {
    border-color: rgba(255, 118, 0, .22);
}

.ipl-chat-message-text {
    color: inherit;
    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ipl-chat-empty {
    margin: auto;
    max-width: 240px;
    padding: 16px;

    color: #999;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.ipl-chat-form textarea:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* IVOIRE PLAY — ESPACEMENT DES GENRES SUR MOBILE */
@media (max-width: 700px) {

    /* Réduire l'espace entre les sections de genres */
    .genre-sections {
        gap: 0 !important;
        row-gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Rapprocher les genres */
    .genre-section {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    /* Garder les titres à leur place */
    .genre-section .section-heading {
        margin-top: 0 !important;
        margin-bottom: 3px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .genre-section .section-heading h2 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Réduire l'espace sous les affiches */
    .genre-row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 2px !important;
    }

    /* Conserver la taille des affiches */
    .genre-row .movie-card {
        flex: 0 0 190px !important;
        aspect-ratio: 16 / 9 !important;
    }
}

/* =====================================================
   IVOIRE PLAY — HERO MOBILE UNIQUEMENT
   Affiche entière + informations superposées façon Netflix
   ===================================================== */

@media screen and (max-width: 700px) {

    /* Conteneur principal du Hero */
    #heroSection.hero {
        position: relative;
        isolation: isolate;

        display: block;

        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;

        margin: 0;
        padding: 0;

        overflow: hidden;
        background: #080808;
    }

    /* Zone de l'affiche : elle détermine la hauteur du Hero */
    #heroSection .hero-background {
        position: relative;
        z-index: 0;

        inset: auto;

        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;

        overflow: hidden;

        background-color: #080808;
        background-position: center top;
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* Affiche entière */
    #heroSection .hero-poster-image {
        position: absolute;
        z-index: 0;
        inset: 0;

        display: block;

        width: 100%;
        height: 100%;
        max-width: 100%;

        object-fit: contain;
        object-position: center top;

        pointer-events: none;

        opacity: 1;
        visibility: visible;
    }

    /* Bande-annonce */
    #heroSection .hero-trailer-video {
        position: absolute;
        z-index: 1;
        inset: 0;

        width: 100%;
        height: 100%;
        max-width: 100%;

        object-fit: contain;
        object-position: center top;

        background: #080808;

        pointer-events: none;
    }

    /* Dégradé sombre sur l'affiche */
    #heroSection .hero-gradient {
        position: absolute;
        z-index: 1;
        inset: 0;

        pointer-events: none;

        background: linear-gradient(
            to bottom,
            rgba(8, 8, 8, 0) 0%,
            rgba(8, 8, 8, 0.02) 35%,
            rgba(8, 8, 8, 0.18) 55%,
            rgba(8, 8, 8, 0.65) 76%,
            #080808 100%
        );
    }

    /* Informations superposées au bas du Hero */
    #heroSection .hero-content {
        position: absolute;
        z-index: 3;

        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        margin: 0;
        padding: 100px 17px 22px;

        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(8, 8, 8, 0.08) 18%,
            rgba(8, 8, 8, 0.62) 48%,
            #080808 100%
        );

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

        animation: heroEnter 0.85s ease both;
    }

    /* Petit label */
    #heroSection .hero-label {
        display: flex;
        align-items: center;
        gap: 8px;

        margin-bottom: 10px;

        font-size: 9px;
        letter-spacing: 2px;
    }

    #heroSection .hero-label-line {
        width: 21px;
        height: 2px;
        flex-shrink: 0;
    }

    /* Titre */
    #heroSection h1 {
        max-width: 100%;
        margin: 0 0 10px;

        font-size: clamp(25px, 7vw, 36px);
        font-weight: 900;
        letter-spacing: -0.8px;
        line-height: 1.08;

        text-wrap: balance;
    }

    /* Description */
    #heroSection .hero-description {
        max-width: 100%;
        margin: 0 0 14px;

        color: #e0e0e0;

        font-size: 12px;
        line-height: 1.5;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    /* Boutons */
    #heroSection .hero-buttons {
        display: flex;
        align-items: center;
        gap: 9px;
        flex-wrap: wrap;
    }

    #heroSection .hero-buttons .button {
        min-height: 41px;
        padding: 0 14px;

        border-radius: 8px;
        font-size: 11px;
    }

    /* Fondu inférieur */
    #heroSection .hero-bottom-fade {
        position: absolute;
        z-index: 2;
        left: 0;
        right: 0;
        bottom: 0;
        height: 145px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(8, 8, 8, 0.18) 30%,
            rgba(8, 8, 8, 0.65) 65%,
            #080808 100%
        );
        pointer-events: none;

    }
}

/* MOBILE : REMONTER L'AFFICHE DE 3 CM SUPPLÉMENTAIRES */
@media screen and (max-width: 700px) {

    #heroSection.hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #heroSection .hero-background {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin: 0 !important;
        transform: translateY(-113px) !important;
        aspect-ratio: 4 / 5 !important;
    }

    #heroSection .hero-poster-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    #heroSection .hero-trailer-video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    #heroSection .hero-gradient {
        top: 0 !important;
        bottom: 0 !important;
    }

    #heroSection .hero-content {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* MOBILE : REMONTER LE TEXTE ET LES BOUTONS DE 3 CM */
@media screen and (max-width: 700px) {

    #heroSection .hero-content {
        bottom: calc(50px + 3cm) !important;
    }

}

/* MOBILE : SUPPRIMER LE FLOU DU HERO */
@media screen and (max-width: 700px) {

    #heroSection .hero-content {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

}

/* CORRECTION DE L'ESPACE SOUS LE HERO ET REMONTÉE DE L'ACCUEIL */
@media (max-width: 768px) {

    .hero,
    .hero-section,
    .banner,
    .banner-section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero + section,
    .hero-section + section,
    .banner + section,
    .banner-section + section {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    section {
        scroll-margin-top: 0;
    }
}

/* IVOIRE PLAY : FOND NOIR TRANSPARENT */
:root {
    --ip-background: rgba(8, 8, 8, 0.88);
}

body {
    background-color: #080808 !important;
}

header,
.navbar,
nav,
.site-header {
    background-color: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* =====================================================
   IVOIRE PLAY — APPAREILS CONNECTÉS
   ===================================================== */

.ip-connected-devices-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ip-devices-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ip-devices-heading h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 20px;
}

.ip-devices-heading p {
    margin: 0;
}

.ip-devices-refresh,
.ip-device-disconnect,
.ip-devices-disconnect-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 15px;
    color: #fff;
    background: #242424;
    border: 1px solid #414141;
    border-radius: 9px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.ip-devices-refresh:hover {
    background: #333;
    border-color: #666;
}

#ipConnectedDevicesList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ipConnectedDevicesList > p {
    margin: 0;
    padding: 15px;
    color: #aaa;
    background: #101010;
    border-radius: 9px;
}

.ip-device-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 17px;
    background: #101010;
    border: 1px solid #303030;
    border-radius: 11px;
}

.ip-device-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ip-device-info strong {
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.ip-device-info > span:not(.ip-device-current) {
    color: #bbb;
    font-size: 13px;
}

.ip-device-info small {
    color: #888;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ip-device-current {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 9px;
    color: #ffb16b;
    background: rgba(255, 118, 0, .12);
    border: 1px solid rgba(255, 118, 0, .3);
    border-radius: 20px;
    font-size: 12px;
}

.ip-device-disconnect {
    flex-shrink: 0;
    color: #ff7777;
    background: rgba(255, 60, 60, .08);
    border-color: rgba(255, 90, 90, .3);
}

.ip-device-disconnect:hover,
.ip-devices-disconnect-all:hover {
    background: rgba(255, 60, 60, .16);
    border-color: #ff7777;
}

.ip-devices-security {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 5px;
    padding: 18px;
    background: rgba(255, 118, 0, .055);
    border: 1px solid rgba(255, 118, 0, .2);
    border-radius: 11px;
}

.ip-devices-security strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
}

.ip-devices-security p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
}

.ip-devices-disconnect-all {
    flex-shrink: 0;
    color: #ff8585;
    border-color: rgba(255, 90, 90, .35);
}

#ipConnectedDevicesMessage:not(:empty) {
    padding: 10px 12px;
    color: #ffaaaa;
    background: rgba(255, 60, 60, .08);
    border-radius: 8px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .ip-device-card {
        align-items: flex-start;
        padding: 14px;
    }

    .ip-device-disconnect {
        width: 100%;
    }

    .ip-devices-security {
        align-items: stretch;
        padding: 15px;
    }

    .ip-devices-disconnect-all,
    .ip-devices-refresh {
        width: 100%;
    }
}

/* ==========================================
   IVOIRE PLAY — PROFIL SUR CHAQUE APPAREIL
========================================== */

.ip-device-profile-button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 12px;

    background: rgba(255, 118, 0, 0.08) !important;
    color: #ffffff !important;

    border: 1px solid rgba(255, 118, 0, 0.35) !important;
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    text-align: left;

    cursor: pointer;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.ip-device-profile-button:hover {
    background: rgba(255, 118, 0, 0.16) !important;
    border-color: #ff7600 !important;
}

.ip-device-profile-button:focus-visible {
    outline: 2px solid #ff7600;
    outline-offset: 3px;
}

.ip-device-profile-button strong {
    color: #ff7600;
    font-weight: 600;
}

.ip-device-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    width: 30px;
    height: 30px;

    overflow: hidden;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 20px;
}

.ip-device-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-device-info {
    min-width: 0;
}

.ip-device-info > * {
    max-width: 100%;
}

@media (max-width: 600px) {
    .ip-device-profile-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================
   IVOIRE PLAY — BOUTON HISTORIQUE DE VISIONNAGE
========================================== */

.ip-device-profile-history {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    width: 100%;
    margin-top: 12px;
}

.ip-device-profile-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    max-width: 100%;
    color: #ffffff;
    font-size: 13px;
}

.ip-device-profile-info strong {
    color: #ff7600;
    font-weight: 600;
}

/* Bouton Voir l'historique */

.ip-device-history-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    max-width: 100%;
    padding: 10px 16px;

    background: linear-gradient(
        135deg,
        rgba(255, 118, 0, 0.18),
        rgba(255, 118, 0, 0.06)
    ) !important;

    color: #ffffff !important;

    border: 1px solid rgba(255, 118, 0, 0.55) !important;
    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    box-shadow: none !important;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.ip-device-history-button:hover {
    background: linear-gradient(
        135deg,
        #ff7600,
        #d85a00
    ) !important;

    color: #ffffff !important;
    border-color: #ff7600 !important;
}

.ip-device-history-button:active {
    transform: scale(0.98);
}

.ip-device-history-button:focus-visible {
    outline: 2px solid #ff7600;
    outline-offset: 3px;
}

.ip-device-history-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Présentation adaptée aux téléphones */

@media (max-width: 600px) {
    .ip-device-profile-history {
        align-items: stretch;
    }

    .ip-device-history-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== BOUTON ADMINISTRATION — IVOIRE PLAY ===== */
#adminAccessButton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 10px 18px !important;
    margin: 6px !important;

    background: linear-gradient(135deg, #ff8a00, #ff5a00) !important;
    color: #ffffff !important;

    border: 1px solid rgba(255, 138, 0, 0.8) !important;
    border-radius: 12px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;

    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2) !important;

    transition: background 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.25s ease !important;
}

#adminAccessButton:hover {
    background: linear-gradient(135deg, #ffa52b, #ff7600) !important;
    box-shadow: 0 6px 20px rgba(255, 118, 0, 0.4) !important;
    transform: translateY(-2px);
}

#adminAccessButton:active {
    transform: scale(0.97);
}

#adminAccessButton:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* ==================================================
   IVOIRE PLAY LIVE — NOUVELLE INTERFACE MOBILE
   Chaînes à gauche • Lecteur à droite • Infos dessous
================================================== */

@media (max-width: 720px) {

    /* Page LIVE : présentation plus compacte */
    #livePage.live-page {
        padding: 12px 10px 22px;
    }

    /* En-tête */
    #livePage .live-page-header {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 13px;
    }

    #livePage .live-page-header h1 {
        margin: 5px 0;
        font-size: 29px;
        letter-spacing: -1px;
    }

    #livePage .live-page-description {
        max-width: 300px;
        font-size: 11px;
        line-height: 1.5;
    }

    #livePage .live-header-badge {
        display: none;
    }

    /* LAYOUT PRINCIPAL : DEUX COLONNES */
    #livePage .live-layout {
        display: grid;
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        align-items: start;
        gap: 8px;
        min-width: 0;
    }

    /* LISTE DES CHAÎNES À GAUCHE */
    #livePage .live-channels-panel {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding: 9px 7px;
        border-radius: 12px;
    }

    #livePage .live-panel-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 10px;
    }

    #livePage .live-panel-heading h2 {
        font-size: 14px;
        letter-spacing: -0.3px;
    }

    #livePage .live-panel-heading .live-section-kicker {
        font-size: 8px;
        letter-spacing: 1px;
    }

    #livePage .live-channel-count {
        padding: 4px 5px;
        font-size: 9px;
    }

    /* Recherche compacte */
    #livePage .live-search-box {
        height: 34px;
        gap: 5px;
        padding: 0 7px;
        border-radius: 8px;
    }

    #livePage .live-search-box input {
        font-size: 10px;
    }

    /* Catégories défilantes horizontalement */
    #livePage .live-category-list {
        gap: 5px;
        margin: 9px 0;
        padding-bottom: 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    #livePage .live-category-button {
        min-height: 28px;
        padding: 5px 7px;
        border-radius: 7px;
        font-size: 9px;
    }

    /* Liste compacte avec son propre défilement */
    #livePage .live-channel-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-height: 90px;
        max-height: 55vh;
        padding-right: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 118, 0, 0.4) transparent;
        -webkit-overflow-scrolling: touch;
    }

    #livePage .live-channel-item {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 100%;
        min-width: 0;
        padding: 6px 4px;
        border-radius: 8px;
    }

    #livePage .live-channel-logo {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        border-radius: 6px;
        font-size: 9px;
    }

    #livePage .live-channel-logo img {
        padding: 2px;
    }

    #livePage .live-channel-text {
        flex: 1;
        min-width: 0;
    }

    #livePage .live-channel-name {
        font-size: 9px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    #livePage .live-channel-meta {
        margin-top: 3px;
        font-size: 8px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    #livePage .live-channel-selected {
        display: none;
    }

    #livePage .live-channels-footer {
        gap: 5px;
        margin-top: 8px;
        padding-top: 8px;
        font-size: 8px;
    }

    #livePage .live-empty-state {
        min-height: 120px;
        padding: 12px 4px;
    }

    #livePage .live-empty-state h3 {
        font-size: 10px;
    }

    #livePage .live-empty-state p {
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    /* COLONNE DU LECTEUR À DROITE */
    #livePage .live-viewer-column {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    #livePage .live-player-panel {
        width: 100%;
        min-width: 0;
        padding: 7px;
        border-radius: 12px;
    }

    #livePage .live-player-topbar {
        gap: 5px;
        padding: 1px 0 8px;
    }

    #livePage .live-player-brand {
        gap: 5px;
        min-width: 0;
    }

    #livePage .live-player-brand-icon {
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
        border-radius: 7px;
        font-size: 10px;
    }

    #livePage .live-player-brand strong {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    #livePage .live-player-brand small {
        margin-top: 3px;
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    #livePage .live-on-air {
        gap: 4px;
        padding: 5px;
        border-radius: 6px;
        font-size: 7px;
        letter-spacing: 0;
    }

    #livePage .live-on-air > span {
        width: 5px;
        height: 5px;
        flex: 0 0 5px;
    }

    /* Ratio vidéo conservé pour YouTube et les chaînes TV */
    #livePage .live-player-frame {
        position: relative;
        width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 8px;
    }

    #livePage #liveVideoPlayer {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #livePage #liveYouTubeFrame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* Placeholder du lecteur */
    #livePage .live-placeholder-orb {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
        border-radius: 10px;
    }

    #livePage .live-placeholder-orb svg {
        width: 19px;
        height: 19px;
    }

    #livePage .live-placeholder-kicker {
        margin-bottom: 4px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    #livePage .live-player-placeholder h2 {
        font-size: 12px;
        letter-spacing: 0;
    }

    #livePage .live-player-placeholder > p:not(.live-placeholder-kicker) {
        margin-top: 4px;
        font-size: 8px;
        line-height: 1.4;
    }

    #livePage .live-placeholder-decoration {
        margin-top: 6px;
        font-size: 6px;
        letter-spacing: 1px;
    }

    /* Nom de chaîne et actions sous le lecteur */
    #livePage .live-player-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 9px 1px 2px;
    }

    #livePage .live-now-playing {
        gap: 6px;
        width: 100%;
    }

    #livePage .live-current-channel-logo {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 7px;
        font-size: 10px;
    }

    #livePage .live-current-channel-info {
        flex: 1;
        min-width: 0;
    }

    #livePage .live-current-channel-info .live-section-kicker {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    #livePage .live-current-channel-info h2 {
        margin-top: 3px;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    #livePage .live-current-channel-info > p {
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.4;
    }

    #livePage .live-player-actions {
        gap: 5px;
    }

    #livePage .live-action-button {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 8px;
    }

    /* INFORMATIONS SOUS LE LECTEUR, À DROITE */
    #livePage .live-channel-info-panel {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        border-radius: 12px;
    }

    #livePage .live-info-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 9px;
    }

    #livePage .live-info-heading h2 {
        font-size: 13px;
        letter-spacing: -0.3px;
    }

    #livePage .live-channel-status {
        padding: 4px 5px;
        font-size: 8px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #livePage .live-info-content {
        gap: 7px;
        padding: 8px 6px;
        border-radius: 8px;
    }

    #livePage .live-info-accent {
        flex-basis: 2px;
        width: 2px;
    }

    #livePage .live-info-text h3 {
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    #livePage .live-info-text p {
        margin-top: 5px;
        font-size: 9px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    #livePage .live-program-section {
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
        padding: 8px 6px;
        border-radius: 8px;
    }

    #livePage .live-program-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        border-radius: 7px;
        font-size: 13px;
    }

    #livePage .live-program-content {
        gap: 4px;
    }

    #livePage .live-program-content > span {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    #livePage .live-program-content strong {
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    #livePage .live-program-content p {
        font-size: 9px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    #livePage .live-info-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-top: 9px;
        padding-top: 8px;
        font-size: 8px;
    }
}

/* TÉLÉPHONES TRÈS ÉTROITS */
@media (max-width: 360px) {

    #livePage.live-page {
        padding-right: 7px;
        padding-left: 7px;
    }

    #livePage .live-layout {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        gap: 6px;
    }

    #livePage .live-channels-panel {
        padding-right: 5px;
        padding-left: 5px;
    }

    #livePage .live-channel-item {
        gap: 4px;
        padding: 5px 3px;
    }

    #livePage .live-channel-logo {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    #livePage .live-channel-name {
        font-size: 8px;
    }

    #livePage .live-channel-meta {
        font-size: 7px;
    }

    #livePage .live-player-panel {
        padding: 5px;
    }

    #livePage .live-player-brand strong {
        font-size: 8px;
    }

    #livePage .live-on-air {
        padding: 4px;
        font-size: 6px;
    }
}

/* ==========================================
   IVOIRE PLAY — BOUTON SUPPRIMER UN MEMBRE
========================================== */

.ip-registered-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px;
    margin-bottom: 10px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.ip-registered-user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ip-registered-user-info strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.ip-registered-user-info small {
    color: #999;
}

.ip-registered-user-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ip-registered-user-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 15px;

    color: #fff;
    background: rgba(220, 45, 45, 0.12);

    border: 1px solid rgba(255, 65, 65, 0.4);
    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-registered-user-delete:hover {
    background: #d83232;
    border-color: #d83232;
    transform: translateY(-1px);
}

.ip-registered-user-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .ip-registered-user {
        align-items: flex-start;
        gap: 10px;
    }

    .ip-registered-user-delete {
        padding: 9px 11px;
        font-size: 12px;
    }
}

/* =====================================================
   IVOIRE PLAY — MOBILE PREMIUM NAVIGATION
   Design Glassmorphism noir et orange
===================================================== */

@media (max-width: 700px) {

    /* BARRE PRINCIPALE */

    #mobileBottomNav.mobile-bottom-nav {
        position: fixed !important;

        left: 50% !important;
        bottom: max(9px, env(safe-area-inset-bottom)) !important;

        transform: translateX(-50%);

        width: calc(100% - 20px);
        max-width: 560px;

        min-height: 68px;
        height: auto;

        display: flex !important;
        align-items: center;
        justify-content: space-between;

        gap: 2px;

        padding: 7px 6px;

        background: rgba(12, 12, 14, 0.91);

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

        border-radius: 21px;

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

        box-shadow:
            0 10px 35px rgba(0, 0, 0, 0.55),
            0 0 20px rgba(255, 118, 0, 0.055),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);

        z-index: 99999;

        box-sizing: border-box;
    }


    /* BOUTONS */

    #mobileBottomNav .mobile-nav-item {
        position: relative;

        flex: 1 1 0;
        min-width: 0;

        height: 55px;

        display: flex;
        flex-direction: column;

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

        gap: 4px;

        padding: 3px 1px;

        border: 0;
        border-radius: 14px;

        background: transparent;

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

        font-family: inherit;

        cursor: pointer;

        -webkit-tap-highlight-color: transparent;

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


    /* ZONE DES ICÔNES */

    #mobileBottomNav .mobile-nav-icon {
        position: relative;

        width: 31px;
        height: 29px;

        display: flex;

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

        border-radius: 11px;

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

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


    /* ICÔNES SVG */

    #mobileBottomNav .mobile-nav-icon svg {
        display: block;

        width: 21px;
        height: 21px;

        fill: none;

        stroke: currentColor;

        stroke-width: 1.75;
        stroke-linecap: round;
        stroke-linejoin: round;

        transition:
            transform 0.25s ease,
            stroke-width 0.25s ease;
    }


    /* TEXTES */

    #mobileBottomNav .mobile-nav-label {
        display: block;

        width: 100%;

        font-size: 9px;
        font-weight: 600;

        line-height: 1.1;

        letter-spacing: -0.15px;

        text-align: center;

        white-space: nowrap;

        overflow: hidden;
        text-overflow: ellipsis;

        color: inherit;

        transition: color 0.25s ease;
    }


    /* ONGLET ACTIF */

    #mobileBottomNav .mobile-nav-item.active {
        color: #ffffff;

        background: linear-gradient(
            180deg,
            rgba(255, 118, 0, 0.13),
            rgba(255, 118, 0, 0.025)
        );
    }


    #mobileBottomNav .mobile-nav-item.active .mobile-nav-icon {
        color: #ff861f;

        background: rgba(255, 118, 0, 0.13);

        box-shadow:
            0 0 14px rgba(255, 118, 0, 0.13),
            inset 0 0 0 1px rgba(255, 118, 0, 0.12);

        filter: drop-shadow(0 0 5px rgba(255, 118, 0, 0.35));
    }


    #mobileBottomNav .mobile-nav-item.active .mobile-nav-icon svg {
        stroke-width: 2.1;

        transform: scale(1.06);
    }


    #mobileBottomNav .mobile-nav-item.active .mobile-nav-label {
        color: #ffffff;

        font-weight: 750;
    }


    /* INDICATEUR ORANGE DE L'ONGLET ACTIF */

    #mobileBottomNav .mobile-nav-item.active::after {
        content: "";

        position: absolute;

        bottom: 1px;
        left: 50%;

        width: 13px;
        height: 3px;

        border-radius: 10px;

        background: #ff7600;

        transform: translateX(-50%);

        box-shadow:
            0 0 7px rgba(255, 118, 0, 0.85),
            0 0 14px rgba(255, 118, 0, 0.35);
    }


    /* EFFET AU TOUCHER */

    #mobileBottomNav .mobile-nav-item:active {
        transform: scale(0.92);
    }


    /* INDICATEUR LIVE */

    #mobileBottomNav .mobile-live-icon {
        overflow: visible;
    }


    #mobileBottomNav .mobile-live-dot {
        position: absolute;

        top: 1px;
        right: 2px;

        width: 7px;
        height: 7px;

        border: 1.5px solid #0c0c0e;

        border-radius: 50%;

        background: #ff3939;

        box-shadow: 0 0 8px rgba(255, 57, 57, 0.7);
    }


    #mobileBottomNav #mobileLiveButton.active .mobile-live-dot {
        border-color: #21160f;
    }


    /* ACCESSIBILITÉ */

    #mobileBottomNav .mobile-nav-item:focus-visible {
        outline: 2px solid #ff7600;
        outline-offset: -2px;
    }

}


/* PETITS ÉCRANS */

@media (max-width: 360px) {

    #mobileBottomNav.mobile-bottom-nav {
        width: calc(100% - 12px);
        padding-left: 3px;
        padding-right: 3px;
        gap: 0;
    }

    #mobileBottomNav .mobile-nav-item {
        height: 53px;
        gap: 3px;
        padding-left: 0;
        padding-right: 0;
    }

    #mobileBottomNav .mobile-nav-icon {
        width: 27px;
        height: 27px;
    }

    #mobileBottomNav .mobile-nav-icon svg {
        width: 19px;
        height: 19px;
    }

    #mobileBottomNav .mobile-nav-label {
        font-size: 8px;
        letter-spacing: -0.25px;
    }

}

/* =====================================================
   IVOIRE PLAY — IDENTITÉ DU COMPTE RESPONSIVE
===================================================== */

.ip-account-profile-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.ip-account-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.ip-account-identity-main {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 0;
}

.ip-account-identity-avatar {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 50%;
}

.ip-account-identity-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ip-account-identity-text h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ip-account-identity-text .ip-account-email {
    max-width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ip-account-membership {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ip-account-current-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.6;
}

.ip-account-current-profile span {
    color: #aaa;
}

.ip-account-current-profile strong {
    color: #ff9a40;
    overflow-wrap: anywhere;
}

.ip-account-logout-button {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

/* TÉLÉPHONES */

@media (max-width: 600px) {

    .ip-account-identity {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ip-account-identity-main {
        align-items: flex-start;
        gap: 12px;
    }

    .ip-account-identity-avatar {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 23px;
    }

    .ip-account-identity-text h3 {
        font-size: 16px;
    }

    .ip-account-logout-button {
        width: 100%;
        min-height: 44px;
    }

}

/* PETITS TÉLÉPHONES */

@media (max-width: 360px) {

    .ip-account-identity-main {
        gap: 9px;
    }

    .ip-account-identity-avatar {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .ip-account-identity-text h3 {
        font-size: 14px;
    }

    .ip-account-identity-text .ip-account-email {
        font-size: 12px;
    }

    .ip-account-current-profile {
        font-size: 12px;
    }

}

/* CORRECTION FORCEE — MON COMPTE MOBILE */

@media (max-width: 600px) {

    #ipMyAccountOverlay .ip-account-identity {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
    }

    #ipMyAccountOverlay .ip-account-identity > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    #ipMyAccountOverlay .ip-account-main-avatar {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        flex-shrink: 0 !important;
    }

    #ipMyAccountOverlay .ip-account-identity-text,
    #ipMyAccountOverlay .ip-account-email {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    #ipMyAccountOverlay .ip-account-logout-button {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
        white-space: normal !important;
    }
}

/* ==================================================
   IVOIRE PLAY — CARTES PROFILS COMPACTES PREMIUM
================================================== */

#ipProfileManagerModal .ip-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    align-items: stretch;
    gap: 11px;
    width: 100%;
    margin: 20px 0;
}

#ipProfileManagerModal .ip-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    padding: 12px 9px;

    text-align: center;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.018)
    );

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

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

#ipProfileManagerModal .ip-profile-card.selected {
    background: linear-gradient(
        145deg,
        rgba(255,118,0,0.13),
        rgba(255,118,0,0.035)
    );

    border: 1px solid #ff7600;

    box-shadow: 0 0 16px rgba(255,118,0,0.10);
}

#ipProfileManagerModal .ip-profile-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    margin: 0 auto 9px;

    border-radius: 13px;

    background: #252525;
    border: 1px solid rgba(255,255,255,0.13);

    font-size: 30px;
}

#ipProfileManagerModal .ip-profile-name {
    width: 100%;
    min-height: 34px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    overflow-wrap: anywhere;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

#ipProfileManagerModal .ip-profile-child,
#ipProfileManagerModal .ip-profile-lock-status {
    display: block;
    width: 100%;

    margin-top: 5px;

    font-size: 10px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

#ipProfileManagerModal .ip-profile-lock-status {
    color: #999;
}

#ipProfileManagerModal .ip-profile-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
    margin-top: 11px;
}

#ipProfileManagerModal .ip-profile-card-actions > button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 30px;

    padding: 5px 2px;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;

    border-radius: 7px;
}

#ipProfileManagerModal .ip-profile-card button.ip-profile-select {
    background: linear-gradient(125deg, #ff850a, #ff5900);
    border-color: #ff7600;
}

#ipProfileManagerModal .ip-profile-card button.ip-profile-edit {
    background: #303030;
    border-color: #505050;
    color: #fff;
}

#ipProfileManagerModal .ip-profile-card button.ip-profile-delete {
    background: #351b1b;
    border: 1px solid #713333;
    color: #ff7777;
}

#ipProfileManagerModal .ip-profile-card > button.ip-profile-lock {
    display: block;
    width: 100%;
    min-height: 26px;
    margin-top: 7px;
    padding: 4px;

    background: transparent;
    border: 1px solid #444;
    border-radius: 6px;

    color: #aaa;
    font-size: 10px;
}

#ipProfileManagerModal .ip-profile-secondary-actions {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 5px;
    width: 100%;
}

#ipProfileManagerModal .ip-profile-secondary-actions button {
    min-width: 0;
    min-height: 29px;

    padding: 5px 3px;

    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* TABLETTES ET GRANDS ÉCRANS */

@media (min-width: 651px) {

    #ipProfileManagerModal .ip-profile-card {
        padding: 14px 10px;
    }

}

/* TÉLÉPHONES */

@media (max-width: 650px) {

    #ipProfileManagerModal {
        align-items: center;
        padding: 10px;
    }

    #ipProfileManagerDialog {
        padding: 13px;
    }

    #ipProfileManagerModal .ip-profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        gap: 9px;
    }

    #ipProfileManagerModal .ip-profile-card {
        padding: 10px 7px;
    }

    #ipProfileManagerModal .ip-profile-avatar {
        width: 51px;
        height: 51px;
        flex-basis: 51px;
        font-size: 27px;
    }

}

/* PETITS TÉLÉPHONES */

@media (max-width: 360px) {

    #ipProfileManagerModal .ip-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #ipProfileManagerModal .ip-profile-card {
        padding: 9px 6px;
    }

    #ipProfileManagerModal .ip-profile-card-actions > button {
        font-size: 10px;
    }

}

/* =====================================================
   IVOIRE PLAY — POPUP CODE PERSONNEL PREMIUM
   DESIGN MOBILE ET DESKTOP
===================================================== */

#ipProfileCodeModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100010 !important;

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

    width: 100% !important;
    min-height: 100dvh !important;

    padding: 16px !important;

    background: rgba(0, 0, 0, 0.84) !important;

    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
}

#ipProfileCodeModal,
#ipProfileCodeModal * {
    box-sizing: border-box !important;
}

#ipProfileCodeModal .ip-code-dialog {
    position: relative !important;

    width: 100% !important;
    max-width: 390px !important;
    max-height: calc(100dvh - 32px) !important;

    padding: 30px 23px 24px !important;

    overflow-y: auto !important;

    color: #fff !important;
    text-align: center !important;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 118, 0, 0.19),
            transparent 48%
        ),
        #111 !important;

    border: 1px solid rgba(255, 118, 0, 0.42) !important;
    border-radius: 23px !important;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.75),
        0 0 35px rgba(255, 118, 0, 0.12) !important;
}

/* LOGO */

#ipProfileCodeModal .ip-code-brand {
    width: 48px !important;
    height: 48px !important;

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

    margin: 0 auto 13px !important;

    color: white !important;

    background: linear-gradient(
        135deg,
        #ff9500,
        #ff5900
    ) !important;

    border-radius: 14px !important;

    font-size: 17px !important;
    font-weight: 900 !important;

    box-shadow: 0 5px 25px rgba(255, 118, 0, 0.28) !important;
}

/* TITRES */

#ipProfileCodeModal .ip-code-eyebrow {
    margin: 0 0 8px !important;

    color: #ff923c !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}

#ipProfileCodeModal .ip-code-title {
    margin: 0 0 9px !important;

    color: #fff !important;

    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

#ipProfileCodeModal .ip-code-description {
    max-width: 280px !important;

    margin: 0 auto 20px !important;

    color: #aaa !important;

    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* AVATAR */

#ipProfileCodeModal .ip-code-avatar {
    width: 76px !important;
    height: 76px !important;

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

    margin: 0 auto 11px !important;

    overflow: hidden !important;

    color: white !important;
    background: #292929 !important;

    border: 2px solid #ff7600 !important;
    border-radius: 20px !important;

    font-size: 38px !important;

    box-shadow: 0 0 22px rgba(255, 118, 0, 0.17) !important;
}

#ipProfileCodeModal .ip-code-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#ipProfileCodeModal .ip-code-profile-name {
    display: block !important;

    margin-bottom: 23px !important;

    color: #fff !important;

    font-size: 16px !important;
    font-weight: 750 !important;
}

/* QUATRE CASES DU CODE */

#ipProfileCodeModal .ip-code-inputs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 12px !important;

    margin: 0 auto 18px !important;
}

#ipProfileCodeModal .ip-code-digit {
    width: 53px !important;
    height: 59px !important;

    flex: 0 1 53px !important;

    padding: 0 !important;

    color: white !important;
    background: #242424 !important;

    border: 1px solid #444 !important;
    border-radius: 13px !important;

    outline: none !important;

    text-align: center !important;

    font-family: inherit !important;
    font-size: 25px !important;
    font-weight: 800 !important;
}

#ipProfileCodeModal .ip-code-digit:focus {
    background: #302116 !important;

    border-color: #ff7600 !important;

    box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.14) !important;
}

/* ERREUR */

#ipProfileCodeModal .ip-code-error {
    min-height: 20px !important;

    margin: 0 0 12px !important;

    color: #ff8178 !important;

    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* BOUTONS */

#ipProfileCodeModal .ip-code-actions {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;

    gap: 10px !important;
}

#ipProfileCodeModal .ip-code-button {
    min-width: 0 !important;
    min-height: 46px !important;

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

    padding: 10px !important;

    border-radius: 10px !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 750 !important;

    cursor: pointer !important;
}

#ipProfileCodeModal .ip-code-cancel {
    color: #ddd !important;

    background: #292929 !important;
    border: 1px solid #444 !important;
}

#ipProfileCodeModal .ip-code-submit {
    color: white !important;

    background: linear-gradient(
        120deg,
        #ff9500,
        #ff5900
    ) !important;

    border: 1px solid #ff7600 !important;

    box-shadow: 0 5px 20px rgba(255, 118, 0, 0.20) !important;
}

#ipProfileCodeModal .ip-code-submit:disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
}

#ipProfileCodeModal .ip-code-security {
    margin: 19px 0 0 !important;

    color: #858585 !important;

    font-size: 11px !important;
    line-height: 1.6 !important;
}

/* FERMETURE */

#ipProfileCodeModal .ip-code-close {
    position: absolute !important;

    top: 13px !important;
    right: 13px !important;

    width: 35px !important;
    height: 35px !important;

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

    color: white !important;
    background: #292929 !important;

    border: 1px solid #444 !important;
    border-radius: 50% !important;

    font-size: 22px !important;
    cursor: pointer !important;
}

/* PETITS TÉLÉPHONES */

@media (max-width: 380px) {

    #ipProfileCodeModal {
        padding: 10px !important;
    }

    #ipProfileCodeModal .ip-code-dialog {
        max-width: 100% !important;
        padding: 26px 14px 20px !important;
        border-radius: 19px !important;
    }

    #ipProfileCodeModal .ip-code-inputs {
        gap: 8px !important;
    }

    #ipProfileCodeModal .ip-code-digit {
        width: 48px !important;
        height: 54px !important;
        flex-basis: 48px !important;
        font-size: 22px !important;
    }

    #ipProfileCodeModal .ip-code-title {
        font-size: 21px !important;
    }

}

/* ANIMATIONS */

@media (prefers-reduced-motion: no-preference) {

    #ipProfileCodeModal .ip-code-dialog {
        animation: ipCodeExternalIn 0.3s ease both;
    }

    @keyframes ipCodeExternalIn {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

}

/* IVOIRE PLAY — VALIDATION AUTOMATIQUE DU CODE */

#ipProfileCodeModal .ip-code-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-template-columns: none !important;
}

#ipProfileCodeModal .ip-code-cancel {
    width: 100% !important;
    max-width: 170px !important;
    min-height: 42px !important;
}

#ipProfileCodeModal .ip-code-submit {
    display: none !important;
}

/* =====================================================
   IVOIRE PLAY — TRANSITION D'OUVERTURE DU PROFIL
===================================================== */

#ipProfileOpeningTransition {
    position: fixed;
    inset: 0;
    z-index: 100020;

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

    padding: 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 118, 0, 0.10),
            transparent 42%
        ),
        #080808;

    animation: ipTransitionAppear .35s ease both;
}

.ip-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 360px;

    text-align: center;
}

.ip-transition-avatar-ring {
    position: relative;

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

    width: 122px;
    height: 122px;

    margin-bottom: 30px;
}

.ip-transition-spinner {
    position: absolute;
    inset: 0;

    border: 3px solid rgba(255, 255, 255, 0.09);
    border-top-color: #ff7600;
    border-right-color: #ffad52;

    border-radius: 50%;

    animation: ipTransitionSpin .9s linear infinite;

    box-shadow: 0 0 18px rgba(255, 118, 0, 0.16);
}

.ip-transition-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 86px;
    height: 86px;

    overflow: hidden;

    color: white;

    background: #242424;

    border: 2px solid rgba(255, 118, 0, 0.65);
    border-radius: 23px;

    font-size: 42px;

    box-shadow:
        0 0 25px rgba(255, 118, 0, 0.17),
        0 10px 30px rgba(0, 0, 0, 0.5);

    animation: ipAvatarReveal .5s ease both;
}

.ip-transition-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-transition-brand {
    margin: 0 0 13px;

    color: #ff8420;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 4px;
}

.ip-transition-welcome {
    margin: 0 0 9px;

    color: #fff;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.35;

    overflow-wrap: anywhere;
}

.ip-transition-description {
    margin: 0;

    color: #a5a5a5;

    font-size: 13px;
    line-height: 1.7;
}

/* BARRE DE CHARGEMENT */

.ip-transition-progress {
    width: 145px;
    height: 3px;

    margin-top: 30px;

    overflow: hidden;

    background: #292929;

    border-radius: 10px;
}

.ip-transition-progress span {
    display: block;

    width: 42%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #ff5900,
        #ffb15c
    );

    border-radius: inherit;

    animation: ipTransitionProgress 1.3s ease-in-out infinite;
}

/* ANIMATIONS */

@keyframes ipTransitionSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ipAvatarReveal {
    from {
        opacity: 0;
        transform: scale(.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ipTransitionAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ipTransitionProgress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(250%);
    }
}

/* DISPARITION */

#ipProfileOpeningTransition.ip-transition-leaving {
    animation: ipTransitionDisappear .4s ease forwards;
    pointer-events: none;
}

@keyframes ipTransitionDisappear {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* PETITS TÉLÉPHONES */

@media (max-width: 380px) {

    .ip-transition-avatar-ring {
        width: 108px;
        height: 108px;
    }

    .ip-transition-avatar {
        width: 76px;
        height: 76px;
        font-size: 36px;
    }

    .ip-transition-welcome {
        font-size: 22px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .ip-transition-spinner,
    .ip-transition-avatar,
    .ip-transition-progress span {
        animation: none !important;
    }

}
/* =====================================================
   IVOIRE PLAY - HERO CINEMA PREMIUM
   Finition ordinateur et mobile
   ===================================================== */

/* ORDINATEUR */
@media (min-width: 701px) {

    #heroSection.hero {
        width: calc(100% - 48px);
        margin: 22px 24px 0;
        box-sizing: border-box;
        border: 1px solid rgba(255, 118, 0, 0.22);
        border-radius: 26px;
        box-shadow:
            0 18px 55px rgba(0, 0, 0, 0.42),
            0 0 35px rgba(255, 118, 0, 0.07);
    }

    #heroSection .hero-background,
    #heroSection .hero-gradient,
    #heroSection .hero-bottom-fade {
        position: absolute;
        z-index: 2;
        left: 0;
        right: 0;
        bottom: 0;
        height: 145px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(8, 8, 8, 0.18) 30%,
            rgba(8, 8, 8, 0.65) 65%,
            #080808 100%
        );
        pointer-events: none;

    }

    #heroSection .hero-content {
        box-sizing: border-box;
        width: min(620px, 58%);
        padding: 26px 28px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 20px;
        background: rgba(8, 8, 8, 0.38);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }
}

/* MOBILE */
@media (max-width: 700px) {

    #heroSection.hero {
        width: calc(100% - 20px) !important;
        margin: 12px 10px 0 !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(255, 118, 0, 0.25) !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    #heroSection .hero-background,
    #heroSection .hero-gradient,
    #heroSection .hero-bottom-fade,
    #heroSection .hero-trailer-video,
    #heroSection .hero-poster-image {
        border-radius: inherit;
    }

    #heroSection .hero-content {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        box-sizing: border-box !important;
        background: linear-gradient(
            180deg,
            rgba(15, 15, 15, 0.12),
            rgba(8, 8, 8, 0.78)
        );
    }
}

/* FINITION DES BOUTONS DU HERO */
#heroSection .hero-buttons .button {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

#heroSection .button-primary {
    box-shadow:
        0 5px 22px rgba(255, 118, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#heroSection .button-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.13);
}


/* =====================================================
   IVOIRE PLAY - CORRECTION FINALE HERO
   Espace navigation + dégradé cinéma horizontal
   ===================================================== */

/* ORDINATEUR */
@media (min-width: 701px) {

    #heroSection.hero {
        margin-top: calc(var(--navbar-height) + 22px) !important;
    }

    #heroSection .hero-content {
        width: min(620px, 58%) !important;
        box-sizing: border-box !important;

        border: none !important;
        border-radius: 0 !important;

        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.88) 42%,
            rgba(0, 0, 0, 0.58) 70%,
            rgba(0, 0, 0, 0) 100%
        ) !important;

        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
}

/* MOBILE */
@media (max-width: 700px) {

    #heroSection.hero {
        margin-top: calc(var(--navbar-height) + 12px) !important;
    }

    #heroSection .hero-content {
        left: 10px !important;
        right: auto !important;
        width: calc(100% - 20px) !important;
        max-width: 440px !important;

        border: none !important;
        border-radius: 0 !important;

        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.88) 45%,
            rgba(0, 0, 0, 0.55) 75%,
            rgba(0, 0, 0, 0) 100%
        ) !important;

        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
}
/* =====================================================
   IVOIRE PLAY - DEGRADE CINEMA AUTOUR DU TEXTE
   ===================================================== */

@media (min-width: 701px) {

    #heroSection .hero-content {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.90) 32%,
            rgba(0, 0, 0, 0.72) 55%,
            rgba(0, 0, 0, 0.38) 78%,
            rgba(0, 0, 0, 0) 100%
        ) !important;
    }
}

@media (max-width: 700px) {

    #heroSection .hero-content {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.88) 35%,
            rgba(0, 0, 0, 0.68) 60%,
            rgba(0, 0, 0, 0.30) 82%,
            rgba(0, 0, 0, 0) 100%
        ) !important;
    }
}

/* =====================================================
   IVOIRE PLAY - ETENDRE LE DEGRADE SUR LE HERO
   Conserver exactement le dégradé actuel
   ===================================================== */

#heroSection {
    position: relative !important;
    isolation: isolate !important;
}

#heroSection::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(70%, calc(var(--content-padding) + 620px));

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.90) 32%,
        rgba(0, 0, 0, 0.72) 55%,
        rgba(0, 0, 0, 0.38) 78%,
        rgba(0, 0, 0, 0) 100%
    );

    pointer-events: none;
}

#heroSection .hero-content {
    position: relative !important;
    z-index: 3 !important;
    background: transparent !important;
}

@media (max-width: 700px) {

    #heroSection::before {
        width: min(460px, 100%);
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.88) 35%,
            rgba(0, 0, 0, 0.68) 60%,
            rgba(0, 0, 0, 0.30) 82%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    #heroSection .hero-content {
        position: absolute !important;
        z-index: 3 !important;
        background: transparent !important;
    }
}

/* =====================================================
   IVOIRE PLAY - AJUSTEMENT FINAL HERO MOBILE
   ===================================================== */
@media (max-width: 700px) {

    #heroSection.hero {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
    }

    #heroSection .hero-background {
        aspect-ratio: 5 / 4 !important;
    }

    #heroSection .hero-content {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 45px 12px 14px !important;
        box-sizing: border-box !important;
    }

    #heroSection .hero-label {
        font-size: 8px !important;
        margin-bottom: 6px !important;
        letter-spacing: 1.5px !important;
    }

    #heroSection h1 {
        font-size: 22px !important;
        line-height: 1.12 !important;
        margin-bottom: 6px !important;
    }

    #heroSection .hero-description {
        font-size: 10px !important;
        line-height: 1.35 !important;
        margin-bottom: 9px !important;
        -webkit-line-clamp: 2 !important;
    }

    #heroSection .hero-buttons {
        gap: 7px !important;
    }

    #heroSection .hero-buttons .button {
        min-height: 34px !important;
        padding: 0 10px !important;
        font-size: 10px !important;
        border-radius: 7px !important;
    }

    .hero + section {
        margin-top: 0 !important;
    }
}



/* =====================================================
   IVOIRE PLAY - CORRECTION DEFINITIVE HERO MOBILE
   VIDEO PLEIN CADRE + DEGRADE VERTICAL INFERIEUR
   ===================================================== */

@media (max-width: 700px) {

    #heroSection.hero {
        position: relative !important;
        overflow: hidden !important;
    }

    #heroSection .hero-background {
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 5 / 4 !important;
        overflow: hidden !important;
    }

    #heroSection .hero-poster-image,
    #heroSection .hero-trailer-video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    #heroSection .hero-bottom-fade {
        position: absolute !important;
        z-index: 2 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 68% !important;
        background: linear-gradient(
            to bottom,
            rgba(8, 8, 8, 0) 0%,
            rgba(8, 8, 8, 0.12) 20%,
            rgba(8, 8, 8, 0.55) 48%,
            rgba(8, 8, 8, 0.88) 75%,
            #080808 100%
        ) !important;
        pointer-events: none !important;
    }

    #heroSection .hero-content {
        position: absolute !important;
        z-index: 3 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}


/* =====================================================
   IVOIRE PLAY - RESTAURATION DU HERO PC UNIQUEMENT
   NE PAS MODIFIER LE MOBILE
   ===================================================== */

@media (min-width: 701px) {

    #heroSection.hero {
        position: relative !important;
        min-height: 590px !important;
        height: min(76vh, 790px) !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
        isolation: isolate !important;
    }

    #heroSection .hero-background {
        position: absolute !important;
        z-index: -3 !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        aspect-ratio: auto !important;
    }

    #heroSection .hero-poster-image {
        object-fit: cover !important;
        object-position: center center !important;
    }

    #heroSection .hero-trailer-video {
        object-fit: cover !important;
        object-position: center center !important;
    }

    #heroSection .hero-content {
        position: relative !important;
        z-index: 3 !important;
        width: min(680px, 62%) !important;
        max-width: none !important;
        margin-top: 45px !important;
        margin-left: var(--content-padding) !important;
        margin-right: 0 !important;
        padding: 0 0 60px !important;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    #heroSection::before {
        z-index: 2 !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 80% !important;

        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.92) 35%,
            rgba(0, 0, 0, 0.78) 55%,
            rgba(0, 0, 0, 0.45) 75%,
            rgba(0, 0, 0, 0.12) 92%,
            rgba(0, 0, 0, 0) 100%
        ) !important;
    }
}

/* HERO PC : supprimer le dégradé vertical */
@media (min-width: 701px) {
    #heroSection .hero-gradient {
        display: none !important;
    }
}

/* PAGINATION HERO MOBILE — ALIGNEMENT À DROITE */
@media (max-width: 700px) {
    #heroSection .hero-pagination {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin-top: 10px;
        min-height: 10px;
    }

    #heroSection .hero-pagination[hidden] {
        display: none !important;
    }

    #heroSection .hero-pagination button {
        width: 6px;
        height: 6px;
        min-width: 6px;
        padding: 0;
        border: 0;
        border-radius: 20px;
        background: rgba(255,255,255,.45);
        cursor: pointer;
        transition: width .2s ease, background .2s ease;
    }

    #heroSection .hero-pagination button[aria-current="true"] {
        width: 18px;
        background: #ff7600;
        box-shadow: 0 0 8px rgba(255,118,0,.4);
    }
}
/* IVOIRE PLAY - AJUSTEMENTS MOBILES HERO ET WAVE */
@media (max-width: 700px) {

    /* Boutons Hero et pagination alignés à droite */
    #heroSection .hero-buttons {
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    #heroSection .hero-pagination {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        margin-top: 8px;
        gap: 6px;
    }

    #heroSection .hero-pagination[hidden] {
        display: none !important;
    }

    /* Liste des formules */
    #subscriptionRequestPage .subscription-request-field select {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 8px 32px 8px 10px;
        border: 1px solid #383838;
        border-radius: 7px;
        outline: none;
        background-color: #101010;
        color: #fff;
        color-scheme: dark;
        font-family: inherit;
        font-size: 12px;
    }

    #subscriptionRequestPage .subscription-request-field select:focus {
        border-color: #ff7600;
        box-shadow: 0 0 0 2px rgba(255, 118, 0, .12);
    }

    /* Importation de la preuve Wave */
    #subscriptionRequestPage .subscription-request-field input[type="file"] {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 7px;
        border: 1px solid #383838;
        border-radius: 7px;
        background: #101010;
        color: #bdbdbd;
        font-family: inherit;
        font-size: 12px;
    }

    #subscriptionRequestPage .subscription-request-field input[type="file"]::file-selector-button {
        margin-right: 9px;
        padding: 7px 10px;
        border: none;
        border-radius: 6px;
        background: #ff7600;
        color: #fff;
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
    }

}
/* IVOIRE PLAY - EXACTEMENT DEUX AFFICHES MOBILE */
@media (max-width: 700px) {

    #homePage .content-row,
    #homePage .genre-row,
    #homePage .movies-row,
    #homePage .movie-row,
    #homePage .films-row {
        gap: 10px !important;
    }

    #homePage .content-row .movie-card,
    #homePage .genre-row .movie-card,
    #homePage .movies-row .movie-card,
    #homePage .movie-row .movie-card,
    #homePage .films-row .movie-card,
    #homePage .content-row-portrait .movie-card,
    #homePage .content-row-landscape .movie-card {
        flex: 0 0 calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
        min-width: 0 !important;
        max-width: calc((100% - 10px) / 2) !important;
        box-sizing: border-box !important;
    }
}
/* IVOIRE PLAY - 3 AFFICHES RECOMMANDATIONS MOBILE */
@media (max-width: 700px) {

    #personalizedSection #personalizedRow {
        gap: 8px !important;
    }

    #personalizedSection #personalizedRow .movie-card {
        flex: 0 0 calc((100% - 16px) / 3) !important;
        width: calc((100% - 16px) / 3) !important;
        min-width: 0 !important;
        max-width: calc((100% - 16px) / 3) !important;
        aspect-ratio: 2 / 3 !important;
        box-sizing: border-box !important;
    }
}
/* ================================
   ASSISTANT CINEMA IVOIRE PLAY
================================ */

.ipl-assistant-message {
    width: fit-content;
    max-width: 90%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 12px;
    background: #242424;
    color: #fff;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ipl-assistant-utilisateur {
    margin-left: auto;
    background: #ff7600;
    color: #fff;
}

.ipl-assistant-resultat {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid #383838;
    border-radius: 12px;
    background: #202020;
    color: #fff;
}

.ipl-assistant-resultat-info strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
}

.ipl-assistant-resultat-info span {
    color: #ff7600;
    font-size: 13px;
}

.ipl-assistant-resultat-info p {
    margin: 8px 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
}

.ipl-assistant-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ipl-assistant-actions button {
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    background: #ff7600;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.ipl-assistant-actions button:hover {
    filter: brightness(1.12);
}

.ipl-assistant-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
    padding: 14px;
    border-radius: 12px;
    background: #202020;
}

.ipl-assistant-contacts a {
    color: #ff7600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ipl-assistant-contacts a:hover {
    text-decoration: underline;
}



/* Etat actif du bouton Ma liste - Ivoire Play */
.movie-card-actions button.dans-ma-liste {
    color: #ffffff;
    background: #ff7600;
    border-color: #ff7600;
}

.movie-card-actions button.dans-ma-liste:hover {
    background: #e56800;
    border-color: #e56800;
}
/* Episodes compacts sur mobile - Ivoire Play */
@media (max-width: 600px) {
    .episodes-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .episode-card {
        gap: 9px;
        padding: 8px;
        border-radius: 9px;
        min-height: 0;
    }

    .episode-card > *:first-child {
        flex: 0 0 92px;
        width: 92px;
        min-width: 92px;
    }

    .episode-card img {
        width: 92px !important;
        height: 62px !important;
        object-fit: cover;
        border-radius: 6px;
    }

    .episode-card-content {
        flex: 1;
        min-width: 0;
    }

    .episode-card h3 {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .episode-card p {
        font-size: 10px;
        line-height: 1.35;
    }

    .episode-card [data-episode-download] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 6px;
    }
}
/* Format horizontal rectangulaire des épisodes sur mobile */
@media (max-width: 600px) {
    .episodes-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 5px;
    }

    .episode-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        min-height: 76px;
        padding: 6px;
        gap: 10px;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    .episode-card > *:first-child {
        flex: 0 0 105px;
        width: 105px;
        min-width: 105px;
        height: 66px;
        overflow: hidden;
        border-radius: 0 !important;
    }

    .episode-card img {
        width: 100% !important;
        height: 66px !important;
        object-fit: cover;
        border-radius: 0 !important;
    }

    .episode-card-content {
        flex: 1;
        min-width: 0;
    }

    .episode-card h3 {
        font-size: 12px;
        line-height: 1.3;
        margin: 0 0 4px;
    }

    .episode-card p {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* ==================================================
   NOTIFICATIONS — IVOIRE PLAY
================================================== */

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: #ff3030;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border: 2px solid #080808;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 350px;
    max-width: calc(100vw - 24px);
    max-height: 430px;
    overflow: hidden;
    background: #171717;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,.55);
    z-index: 10000;
}

.notification-panel[hidden],
.notification-wrapper[hidden],
.notification-badge[hidden] {
    display: none !important;
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #333;
    color: #fff;
}

.notification-panel-header button {
    border: 0;
    background: transparent;
    color: #ff7600;
    cursor: pointer;
    font-size: 12px;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid #292929;
    color: #eee;
}

.notification-item.unread {
    background: rgba(255,118,0,.08);
    border-left: 3px solid #ff7600;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.notification-content p {
    margin: 0;
    color: #bbb;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.notification-item button {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 17px;
}

.notification-empty {
    padding: 25px 15px;
    color: #aaa;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 480px) {
    .notification-panel {
        position: fixed;
        top: 68px;
        right: 10px;
        width: 350px;
    }
}
/* ADMIN — FORMULAIRE NOTIFICATIONS */
#adminNotificationsSection .admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 850px;
    margin-top: 24px;
}

#adminNotificationsSection .admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#adminNotificationsSection .admin-field-full {
    grid-column: 1 / -1;
}

#adminNotificationsSection input,
#adminNotificationsSection textarea,
#adminNotificationsSection select {
    width: 100%;
    padding: 13px;
    border: 1px solid #383838;
    border-radius: 8px;
    background: #151515;
    color: #fff;
    font: inherit;
}

#adminNotificationsSection textarea {
    resize: vertical;
}

#adminNotificationsSection .admin-form-actions {
    grid-column: 1 / -1;
}

#adminNotificationsSection #adminNotificationStatus {
    grid-column: 1 / -1;
    min-height: 22px;
}

#adminNotificationsSection button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 600px) {
    #adminNotificationsSection .admin-form {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   IVOIRE PLAY — PORTAIL IPTV
   ============================================================ */

#livePage .iptv-portal-home {
    margin: 10px 0 35px;
}

#livePage .iptv-portal-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

#livePage .iptv-portal-intro h2 {
    margin: 9px 0;
    color: #fff;
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 850;
    letter-spacing: -0.8px;
}

#livePage .iptv-portal-intro p:last-child,
#livePage .iptv-subview-heading > p:last-child {
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    line-height: 1.7;
}

#livePage .iptv-portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#livePage .iptv-portal-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-width: 0;
    min-height: 205px;
    padding: 25px 21px;
    overflow: hidden;
    text-align: left;
    color: #fff;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255,118,0,.19), transparent 55%),
        linear-gradient(145deg, #191919, #0d0d0d 75%);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#livePage .iptv-portal-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -65px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,118,0,.07);
    filter: blur(4px);
    pointer-events: none;
}

#livePage .iptv-portal-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,118,0,.55);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

#livePage .iptv-portal-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255,118,0,.3);
    border-radius: 16px;
    background: rgba(255,118,0,.12);
    font-size: 26px;
}

#livePage .iptv-portal-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-top: 4px;
}

#livePage .iptv-portal-card-content strong {
    font-size: 19px;
    font-weight: 850;
}

#livePage .iptv-portal-card-content small {
    margin-top: 10px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.7;
}

#livePage .iptv-card-action {
    margin-top: 21px;
    color: #ff9947;
    font-size: 11px;
    font-weight: 800;
}

#livePage .iptv-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 8px;
    border: 1px solid rgba(255,118,0,.35);
    border-radius: 7px;
    color: #ff9745;
    background: rgba(255,118,0,.1);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

#livePage .iptv-import-button {
    padding: 12px 16px;
    border: 1px solid rgba(255,118,0,.4);
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #ff850f, #e65c00);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

#livePage .iptv-import-button:disabled {
    opacity: .55;
    cursor: wait;
}

/* SOUS-PAGES IPTV */

#livePage .iptv-subview {
    min-width: 0;
    margin: 10px 0 35px;
}

#livePage .iptv-subview-heading {
    margin-bottom: 23px;
}

#livePage .iptv-subview-heading h2 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 900;
    letter-spacing: -1.4px;
}

#livePage .iptv-subview-heading h2 span {
    color: #ff7600;
}

#livePage .iptv-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.045);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: .2s ease;
}

#livePage .iptv-back-button:hover {
    border-color: rgba(255,118,0,.45);
    color: #ff9845;
    background: rgba(255,118,0,.08);
}

#livePage .iptv-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 23px;
}

#livePage .iptv-catalog-toolbar input {
    width: min(100%, 390px);
    min-height: 43px;
    padding: 0 15px;
    outline: none;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.045);
    font-size: 12px;
}

#livePage .iptv-catalog-toolbar input:focus {
    border-color: #ff7600;
}

#livePage .iptv-catalog-toolbar input::placeholder {
    color: rgba(255,255,255,.4);
}

#livePage .iptv-catalog-toolbar > span {
    color: rgba(255,255,255,.48);
    font-size: 11px;
}

/* GRILLE DES AFFICHES */

#livePage .iptv-content-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 15px;
}

#livePage .iptv-content-card {
    min-width: 0;
    overflow: hidden;
}

#livePage .iptv-poster-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: #171717;
    cursor: pointer;
}

#livePage .iptv-poster {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255,118,0,.23), transparent 60%),
        linear-gradient(145deg, #292929, #101010);
}

#livePage .iptv-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

#livePage .iptv-poster-button:hover img {
    transform: scale(1.06);
}

#livePage .iptv-poster-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0,0,0,.43);
    font-size: 36px;
    opacity: 0;
    transition: opacity .2s ease;
}

#livePage .iptv-poster-button:hover .iptv-poster-overlay {
    opacity: 1;
}

#livePage .iptv-card-informations {
    padding: 10px 2px;
}

#livePage .iptv-card-informations h3 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#livePage .iptv-card-informations p,
#livePage .iptv-card-informations small {
    display: block;
    margin: 5px 0 0;
    overflow: hidden;
    color: rgba(255,255,255,.48);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#livePage .iptv-load-more {
    display: block;
    margin: 30px auto;
    padding: 12px 23px;
    border: 1px solid rgba(255,118,0,.4);
    border-radius: 10px;
    color: #ff9845;
    background: rgba(255,118,0,.08);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

#livePage .iptv-load-more:disabled {
    opacity: .5;
    cursor: wait;
}

/* ÉTATS VIDES */

#livePage .iptv-empty-state {
    padding: 55px 20px;
    text-align: center;
    border: 1px dashed rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.018);
}

#livePage .iptv-empty-state > span {
    font-size: 38px;
}

#livePage .iptv-empty-state h3 {
    margin: 15px 0 7px;
    color: #fff;
    font-size: 19px;
}

#livePage .iptv-empty-state p,
#livePage .iptv-loading-message {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    line-height: 1.7;
}

/* SAISONS ET ÉPISODES */

#livePage .iptv-episodes-panel {
    margin-top: 35px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}

#livePage .iptv-episodes-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

#livePage .iptv-episodes-heading h3 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 22px;
}

#livePage .iptv-season-block {
    margin-top: 20px;
}

#livePage .iptv-season-block h4 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #ff9745;
    font-size: 14px;
}

#livePage .iptv-episode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

#livePage .iptv-episode-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    color: #fff;
    text-align: left;
    background: rgba(255,255,255,.035);
    cursor: pointer;
    transition: .2s ease;
}

#livePage .iptv-episode-card:hover {
    border-color: rgba(255,118,0,.45);
    background: rgba(255,118,0,.07);
}

#livePage .iptv-episode-description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

#livePage .iptv-episode-number {
    color: #ff9745;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

#livePage .iptv-episode-description strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#livePage .iptv-episode-description small {
    color: rgba(255,255,255,.45);
    font-size: 10px;
}

#livePage .iptv-episode-play {
    color: #ff8b31;
    font-size: 18px;
}

/* LECTEUR VOD IPTV */

#livePage .iptv-vod-player-panel {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: #101010;
}

#livePage .iptv-vod-player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

#livePage .iptv-vod-player-heading h2 {
    margin: 6px 0;
    color: #fff;
    font-size: 20px;
}

#livePage .iptv-vod-player-heading p:last-child {
    color: rgba(255,255,255,.48);
    font-size: 11px;
}

#livePage #iptvVodVideo {
    display: block;
    width: 100%;
    max-height: 75vh;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #000;
    object-fit: contain;
}

#livePage .iptv-live-view-label {
    display: inline-block;
    margin-left: 12px;
    color: #ff9845;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

/* ACCESSIBILITÉ */

#livePage .iptv-portal-card:focus-visible,
#livePage .iptv-back-button:focus-visible,
#livePage .iptv-episode-card:focus-visible,
#livePage .iptv-load-more:focus-visible,
#livePage .iptv-import-button:focus-visible {
    outline: 2px solid #ff7600;
    outline-offset: 4px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    #livePage .iptv-content-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 19px 13px;
    }

    #livePage .iptv-portal-grid {
        gap: 12px;
    }

    #livePage .iptv-portal-card {
        padding: 20px 15px;
    }
}

@media (max-width: 760px) {
    #livePage .iptv-portal-grid {
        grid-template-columns: 1fr;
    }

    #livePage .iptv-portal-card {
        min-height: 145px;
        padding: 20px;
    }

    #livePage .iptv-content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 17px 11px;
    }

    #livePage .iptv-episode-list {
        grid-template-columns: 1fr;
    }

    #livePage .iptv-portal-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    #livePage .iptv-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    #livePage .iptv-catalog-toolbar input {
        width: 100%;
    }
}

@media (max-width: 420px) {
    #livePage .iptv-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    #livePage .iptv-episodes-panel {
        padding: 14px;
    }

    #livePage .iptv-vod-player-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* FIN DU PORTAIL IPTV */


/* FILTRES DE LANGUE DES CATALOGUES IPTV */

#livePage .iptv-catalog-toolbar select {
    width: min(100%, 230px);
    min-height: 43px;
    padding: 0 34px 0 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    outline: none;
    color: #fff;
    background-color: #171717;
    font-size: 12px;
    cursor: pointer;
}

#livePage .iptv-catalog-toolbar select:focus {
    border-color: #ff7600;
}

#livePage .iptv-catalog-toolbar select option {
    color: #fff;
    background: #171717;
}

@media (max-width: 760px) {
    #livePage .iptv-catalog-toolbar select {
        width: 100%;
    }
}

/* FIN FILTRES DE LANGUE IPTV */


/* CATALOGUES IPTV DANS LES PAGES FILMS ET SERIES */
#filmsIptvCatalog,
#seriesIptvCatalog {
    margin-top: 30px;
    padding: 26px 0 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    width: 100%;
}

#filmsIptvCatalog h2,
#seriesIptvCatalog h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    margin: 0 0 18px;
}

#filmsIptvCatalog .iptv-page-catalog-controls,
#seriesIptvCatalog .iptv-page-catalog-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

#filmsIptvSearch,
#seriesIptvSearch,
#filmsIptvLanguage,
#seriesIptvLanguage {
    min-height: 42px;
    color: #fff;
    background: #171717;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    padding: 0 13px;
    outline: none;
}

#filmsIptvSearch,
#seriesIptvSearch {
    flex: 1 1 240px;
    min-width: 160px;
}

#filmsIptvLanguage,
#seriesIptvLanguage {
    flex: 0 1 190px;
    min-width: 145px;
}

#filmsIptvSearch:focus,
#seriesIptvSearch:focus,
#filmsIptvLanguage:focus,
#seriesIptvLanguage:focus {
    border-color: #ff7600;
}

#filmsIptvCount,
#seriesIptvCount {
    color: #aaa;
    font-size: 13px;
    margin: 0 0 14px;
}

#filmsIptvGrid,
#seriesIptvGrid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 13px;
    width: 100%;
}

#filmsIptvGrid .iptv-content-card,
#seriesIptvGrid .iptv-content-card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    text-align: left;
    background: #151515;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}

#filmsIptvGrid .iptv-content-card:hover,
#seriesIptvGrid .iptv-content-card:hover {
    transform: translateY(-4px);
    border-color: #ff7600;
}

#filmsIptvGrid .iptv-content-card img,
#seriesIptvGrid .iptv-content-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #222;
}

#filmsIptvGrid .iptv-content-card .iptv-content-title,
#seriesIptvGrid .iptv-content-card .iptv-content-title {
    display: block;
    padding: 9px 9px 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#filmsIptvEmpty,
#seriesIptvEmpty {
    padding: 25px 12px;
    color: #aaa;
    text-align: center;
}

#filmsIptvMore,
#seriesIptvMore {
    display: block;
    min-height: 42px;
    margin: 24px auto 8px;
    padding: 0 24px;
    color: #fff;
    background: #ff7600;
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

#filmsIptvMore:disabled,
#seriesIptvMore:disabled {
    opacity: .55;
    cursor: wait;
}

#seriesIptvEpisodesPanel,
#filmsIptvPlayerPanel,
#seriesIptvPlayerPanel {
    margin-top: 24px;
    padding: 18px;
    background: #111;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
}

#seriesIptvEpisodesPanel h3,
#filmsIptvPlayerPanel h3,
#seriesIptvPlayerPanel h3 {
    color: #fff;
    margin: 0 0 14px;
}

#seriesIptvEpisodesList {
    display: grid;
    gap: 9px;
}

#seriesIptvEpisodesList button {
    width: 100%;
    padding: 12px 14px;
    color: #fff;
    text-align: left;
    background: #202020;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    cursor: pointer;
}

#seriesIptvEpisodesList button:hover {
    border-color: #ff7600;
}

#filmsIptvVideo,
#seriesIptvVideo {
    display: block;
    width: 100%;
    max-height: 72vh;
    background: #000;
    border-radius: 9px;
}

@media (max-width: 1100px) {
    #filmsIptvGrid,
    #seriesIptvGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    #filmsIptvGrid,
    #seriesIptvGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 9px;
    }

    #filmsIptvCatalog,
    #seriesIptvCatalog {
        margin-top: 22px;
        padding-top: 20px;
    }

    #filmsIptvCatalog h2,
    #seriesIptvCatalog h2 {
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    #filmsIptvGrid,
    #seriesIptvGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* FIN CATALOGUES IPTV DANS LES PAGES FILMS ET SERIES */


/* DESIGN NATIF IVOIRE PLAY POUR LES CATALOGUES XTREAM */

#filmsIptvGrid,
#seriesIptvGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    width: 100%;
}

#filmsIptvGrid .iptv-content-card,
#seriesIptvGrid .iptv-content-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    background: #151515;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    isolation: isolate;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

#filmsIptvGrid .iptv-content-card:hover,
#seriesIptvGrid .iptv-content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,118,0,.45);
    box-shadow: 0 15px 35px rgba(0,0,0,.45),
                0 0 18px rgba(255,118,0,.07);
    z-index: 3;
}

#filmsIptvGrid .iptv-poster-button,
#seriesIptvGrid .iptv-poster-button {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: #151515;
    cursor: pointer;
}

#filmsIptvGrid .iptv-poster,
#seriesIptvGrid .iptv-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(255,118,0,.18), transparent 55%),
        linear-gradient(145deg,#262626,#111);
}

#filmsIptvGrid .iptv-poster img,
#seriesIptvGrid .iptv-poster img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease, filter .4s ease;
}

#filmsIptvGrid .iptv-content-card:hover .iptv-poster img,
#seriesIptvGrid .iptv-content-card:hover .iptv-poster img {
    transform: scale(1.035);
}

#filmsIptvGrid .iptv-poster::after,
#seriesIptvGrid .iptv-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.18) 0%,
        transparent 28%,
        transparent 48%,
        rgba(0,0,0,.28) 66%,
        rgba(0,0,0,.90) 100%
    );
    pointer-events: none;
}

#filmsIptvGrid .iptv-poster-overlay,
#seriesIptvGrid .iptv-poster-overlay {
    display: none !important;
}

#filmsIptvGrid .iptv-card-informations,
#seriesIptvGrid .iptv-card-informations {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    padding: 43px 11px 9px;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

#filmsIptvGrid .iptv-card-informations h3,
#seriesIptvGrid .iptv-card-informations h3 {
    margin: 0 0 4px;
    padding-right: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 10px rgba(0,0,0,.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

#filmsIptvGrid .iptv-card-informations p,
#seriesIptvGrid .iptv-card-informations p {
    margin: 0;
    color: var(--orange-light);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,.9);
}

#filmsIptvGrid .iptv-card-informations small,
#seriesIptvGrid .iptv-card-informations small {
    position: absolute;
    right: 11px;
    bottom: 10px;
    color: #e1e1e1;
    font-size: 10px;
    text-shadow: 0 1px 5px rgba(0,0,0,.9);
}

@media (max-width: 700px) {
    #filmsIptvGrid,
    #seriesIptvGrid {
        gap: 12px 9px;
    }
}

@media (max-width: 420px) {
    #filmsIptvGrid,
    #seriesIptvGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FIN DESIGN NATIF XTREAM */


/* AFFICHES IPTV EN FORMAT PORTRAIT 2:3 */
#filmsIptvGrid .iptv-content-card,
#seriesIptvGrid .iptv-content-card {
    position: relative;
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

#filmsIptvGrid .iptv-poster,
#seriesIptvGrid .iptv-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#filmsIptvGrid .iptv-poster img,
#seriesIptvGrid .iptv-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* AFFICHES IPTV EN PORTRAIT SUR L'ACCUEIL */
#homePage #selectionSpecialeSection .movie-card,
#homePage #seriesFrancaisesSection .movie-card {
    flex: 0 0 145px !important;
    width: 145px !important;
    aspect-ratio: 2 / 3 !important;
}

#homePage #selectionSpecialeSection .movie-card-poster,
#homePage #seriesFrancaisesSection .movie-card-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#homePage #selectionSpecialeSection .movie-card-poster img,
#homePage #seriesFrancaisesSection .movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* STYLE ET ESPACEMENT DES SELECTIONS IPTV ACCUEIL */
#homePage #selectionSpecialeSection,
#homePage #seriesFrancaisesSection {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

#homePage #selectionSpecialeSection .section-heading,
#homePage #seriesFrancaisesSection .section-heading {
    margin-bottom: 8px !important;
}

#homePage #selectionSpecialeSection .content-row,
#homePage #seriesFrancaisesSection .content-row {
    margin-bottom: 0 !important;
}

#homePage #selectionSpecialeMore,
#homePage #seriesFrancaisesMore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 40px;
    margin: 8px 0 4px !important;
    padding: 9px 20px !important;
    border: 1px solid rgba(255, 118, 0, .7) !important;
    border-radius: 24px !important;
    background: rgba(255, 118, 0, .12) !important;
    color: #ff7600 !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

#homePage #selectionSpecialeMore:hover,
#homePage #seriesFrancaisesMore:hover {
    background: #ff7600 !important;
    color: #080808 !important;
}

#homePage #selectionSpecialeMore:disabled,
#homePage #seriesFrancaisesMore:disabled {
    opacity: .6;
    cursor: wait;
}
/* RAPPROCHEMENT FINAL DES SECTIONS IPTV DE L'ACCUEIL */
#homePage #selectionSpecialeSection {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#homePage #selectionSpecialeSection + #seriesFrancaisesSection {
    margin-top: -22px !important;
}

#homePage #seriesFrancaisesSection {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

#homePage #selectionSpecialeSection .content-row,
#homePage #seriesFrancaisesSection .content-row {
    margin-bottom: 0 !important;
}

#homePage #selectionSpecialeMore,
#homePage #seriesFrancaisesMore {
    margin-bottom: 0 !important;
}
/* CORRECTION DU CHEVAUCHEMENT DES SECTIONS IPTV */
#homePage #selectionSpecialeSection + #seriesFrancaisesSection {
    margin-top: 8px !important;
    position: relative;
    clear: both;
}