/* ==========================================================
    BASE
========================================================== */

.rna-player-page {
    margin: 0;
    min-height: 100vh;
    background: #f7f4f4;
    color: #292323;
}

.rna-player-page *,
.rna-player-page *::before,
.rna-player-page *::after {
    box-sizing: border-box;
}

.rna-player-page button,
.rna-player-page input {
    font: inherit;
}

.rna-player-page button {
    cursor: pointer;
}

.rna-player-page [hidden] {
    display: none !important;
}

.rna-player-page a:focus-visible,
.rna-player-page button:focus-visible,
.rna-player-page input:focus-visible {
    outline: 3px solid #a0090f;
    outline-offset: 6px;
}

.rna-player-direct a:focus-visible,
.rna-player-direct button:focus-visible,
.rna-player-direct input:focus-visible {
    outline-color: #fff;
}

/* ==========================================================
    PARTIE SUPÉRIEURE
========================================================== */

.rna-player-direct {
    position: relative;
    isolation: isolate;
    padding: 0 30px 90px;
    overflow: hidden;
    color: #fff;
}

.rna-player-direct::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(120deg, #65060A 0%, #A0090F 65%, #BA1118 100%);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    content: "";
}

.rna-player-direct::after {
    position: absolute;
    z-index: -1;
    top: 70px;
    right: -100px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.035), 0 0 0 130px rgba(255, 255, 255, 0.02);
    pointer-events: none;
    content: "";
}

/* ==========================================================
    ENTÊTE
========================================================== */

.rna-player-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    min-height: 90px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rna-player-retour {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.rna-player-retour-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 27px;
    line-height: 1;
    transition: background 0.2s;
}

.rna-player-retour:hover .rna-player-retour-icone {
    background: rgba(255, 255, 255, 0.18);
}

.rna-player-partager {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    background: transparent;
    color: #fff;
    transition: background 0.2s;
}

.rna-player-partager:hover {
    background: rgba(255, 255, 255, 0.14);
}

.rna-player-partager svg {
    width: 18px;
    height: 18px;
}

.rna-player-partager span {
    font-size: 13px;
}

/* ==========================================================
    PRÉSENTATION DU DIRECT
========================================================== */

.rna-player-conteneur {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 60px;
    row-gap: 25px;
    width: 100%;
    max-width: 900px;
    margin: 55px auto 0;
}

.rna-player-en-cours {
    display: contents;
}

/* ==========================================================
    POCHETTE
========================================================== */

.rna-player-pochette {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 280px;
    height: 280px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 45px rgba(45, 0, 3, 0.3);
    transform: rotate(-3deg);
}

.rna-player-pochette img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: contain;
}

/* ==========================================================
    INFORMATIONS DU TITRE EN COURS
========================================================== */

.rna-player-label {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rna-player-label::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    content: "";
}

.rna-player-titre {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 58px 0 0;
    color: #fff;
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rna-player-artiste {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 160px 0 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ==========================================================
    COMMANDES
========================================================== */

.rna-player-commandes {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 28px;
}

.rna-player-lecture {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: #fff;
    color: #a0090f;
    box-shadow: 0 8px 25px rgba(45, 0, 3, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.rna-player-lecture:hover {
    background: #fce9ea;
    transform: translateY(-2px);
}

.rna-player-lecture svg {
    width: 38px;
    height: 38px;
}

.rna-player-lecture:disabled {
    cursor: wait;
    opacity: 0.6;
}

/* ==========================================================
    VOLUME ET MUTE
========================================================== */

.rna-player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
}

.rna-player-son {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.rna-player-son svg {
    display: block;
    stroke: #fff;
}

.rna-player-son-coupe {
    opacity: 0.4;
}

.rna-player-volume-reglage {
    width: 120px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #fff;
}

.rna-player-message {
    min-height: 22px;
    width: 100%;
    max-width: 900px;
    margin: 25px auto 0;
    padding-left: 340px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================
    HISTORIQUE DES SIX DERNIERS TITRES
========================================================== */

.rna-player-historique {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 30px 65px;
}

.rna-player-historique h2 {
    margin: 0 0 28px;
    color: #a0090f;
    font-size: 25px;
    line-height: 1.3;
}

.rna-player-historique h2::before {
    display: block;
    width: 40px;
    height: 4px;
    margin-bottom: 14px;
    border-radius: 4px;
    background: #A0090F;
    content: "";
}

.rna-player-titres {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rna-player-carte {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 18px;
    row-gap: 5px;
    min-width: 0;
    min-height: 108px;
    padding: 16px;
    border: 1px solid #eadfe0;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(80, 9, 15, 0.04);
	background: #a30a10;
}

.rna-player-carte-image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    background: #000000;
    object-fit: cover;
}

.rna-player-carte h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.rna-player-carte p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.rna-player-historique-vide {
    margin: 0;
    padding: 25px;
    border: 1px solid #eadfe0;
    border-radius: 16px;
    background: #fff;
    color: #706367;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================
    TABLETTES
========================================================== */

@media (max-width: 800px) {
    .rna-player-conteneur {
        grid-template-columns: 220px minmax(0, 1fr);
        column-gap: 35px;
    }

    .rna-player-pochette {
        width: 220px;
        height: 220px;
    }

    .rna-player-titre {
        font-size: 28px;
    }

    .rna-player-artiste {
        margin-top: 145px;
    }

    .rna-player-commandes {
        gap: 18px;
    }

    .rna-player-volume {
        gap: 8px;
        padding: 12px;
    }

    .rna-player-volume-reglage {
        width: 80px;
    }

    .rna-player-message {
        padding-left: 255px;
    }
}

/* ==========================================================
    TÉLÉPHONES
========================================================== */

@media (max-width: 600px) {
    .rna-player-direct {
        padding: 0 20px 75px;
    }

    .rna-player-direct::before {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .rna-player-entete {
        min-height: 78px;
        gap: 12px;
    }

    .rna-player-retour {
        gap: 9px;
        font-size: 14px;
    }

    .rna-player-partager {
        padding: 10px;
    }

    .rna-player-partager span {
        display: none;
    }

    .rna-player-conteneur {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 35px;
        text-align: center;
    }

    .rna-player-pochette {
        order: 1;
        width: 210px;
        height: 210px;
        margin-bottom: 28px;
    }

    .rna-player-label {
        order: 2;
        align-self: center;
        margin: 0 0 16px;
    }

    .rna-player-titre {
        order: 3;
        align-self: auto;
        width: 100%;
        margin: 0 0 10px;
        font-size: 28px;
    }

    .rna-player-artiste {
        order: 4;
        align-self: auto;
        margin: 0;
        font-size: 16px;
    }

    .rna-player-commandes {
        order: 5;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 26px;
        gap: 20px;
    }

    .rna-player-volume-reglage {
        width: 100px;
    }

    .rna-player-message {
        margin-top: 20px;
        padding-left: 0;
        text-align: center;
    }

    .rna-player-historique {
        padding: 25px 20px 45px;
    }

    .rna-player-historique h2 {
        font-size: 22px;
    }

    .rna-player-titres {
        grid-template-columns: minmax(0, 1fr);
    }

    .rna-player-carte {
        column-gap: 15px;
    }
}