/* =========================================================
   À DONF LES WATTS
   PAGE CHANSONS / PLAYLISTS
   VERSION AÉRÉE ET COMPACTE
   ========================================================= */


/* =========================================================
   PAGE PRINCIPALE
   ========================================================= */

.playlists-page {
    width: 92%;
    max-width: 1450px;

    margin: 0 auto;

    padding: 30px 0 65px;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.playlists-heading {
    margin-bottom: 24px;

    text-align: center;
}


/* Petit À DONF LES WATTS jaune */

.playlists-kicker {
    display: inline-block;

    margin: 0 0 8px;

    padding: 3px 11px;

    border-radius: 20px;

    background: rgba(5, 5, 15, 0.78);

    color: #ffd400;

    font-size: 20px;
    font-weight: 900;

    letter-spacing: 3px;
}


/* LES CHANSONS */

.playlists-heading h1 {
    margin: 0 0 10px;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    font-size: clamp(42px, 4vw, 60px);

    line-height: 1;

    letter-spacing: 2px;

    color: #ffffff;

    text-shadow:
        3px 3px 0 #c61f36,
        0 0 12px #000000;
}


/* Petit texte sous le titre */

.playlists-intro {
    display: inline-block;

    margin: 0;

    padding: 5px 13px;

    border-radius: 20px;

    background: rgba(5, 5, 15, 0.80);

    color: #ffffff;

    font-size: 13px;
}


/* =========================================================
   GRILLE DES PLAYLISTS
   ========================================================= */

.playlists-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 18px;
    row-gap: 28px;

    align-items: start;
}


/* =========================================================
   CARTE PLAYLIST
   ========================================================= */

.playlist-card {
    overflow: hidden;

    border: 2px solid #ff7300;
    border-radius: 13px;

    background: rgba(5, 5, 15, 0.95);

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.07),
        0 8px 20px rgba(0, 0, 0, 0.38);

    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}


.playlist-card:hover {
    transform: translateY(-3px);

    border-color: #ffd400;

    box-shadow:
        0 0 15px rgba(255, 115, 0, 0.30),
        0 10px 22px rgba(0, 0, 0, 0.42);
}


/* =========================================================
   MINIATURE
   IMAGE ENTIÈRE 16/9
   ========================================================= */

.playlist-image {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    background: #05050f;

    text-decoration: none;
}


.playlist-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: contain;

    background: #000000;

    transition:
        transform 0.22s,
        filter 0.22s;
}


.playlist-card:hover .playlist-image img {
    transform: scale(1.01);

    filter:
        saturate(1.05)
        brightness(1.02);
}


/* =========================================================
   PAS DE MINIATURE
   ========================================================= */

.playlist-no-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffd400;

    font-size: 60px;

    background:
        linear-gradient(
            135deg,
            #9e1936,
            #29115d
        );
}


/* =========================================================
   COMPTEUR DE CHANSONS
   ========================================================= */

.playlist-count {
    position: absolute;

    right: 8px;
    bottom: 7px;

    padding: 4px 9px;

    border-radius: 15px;

    background: rgba(5, 5, 15, 0.90);

    color: #ffd400;

    font-size: 11px;
    font-weight: 900;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   PARTIE NOIRE SOUS L'IMAGE
   COMPACTE
   ========================================================= */

.playlist-card-info {
    padding: 7px 10px 9px;

    background: rgba(5, 5, 15, 0.96);
}


/* Nom de la playlist */

.playlist-card-info h2 {
    margin: 0 0 4px;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    color: #ffffff;

    font-size: 25px;

    line-height: 1;

    letter-spacing: 0.5px;

    text-shadow:
        2px 2px 0 #9e182a;
}


/* Description */

.playlist-card-info p {
    min-height: 0;

    margin: 0 0 8px;

    color: #eeeeee;

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   BOUTON PLAYLIST
   ========================================================= */

.playlist-button {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #ed2734,
            #ff7100
        );

    color: #ffffff;

    text-decoration: none;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    font-size: 15px;

    line-height: 1;

    letter-spacing: 0.4px;

    box-shadow:
        2px 2px 0 #ffd400;

    transition: 0.2s;
}


.playlist-button:hover {
    transform: translateY(-1px);

    box-shadow:
        3px 3px 0 #ffd400;
}


/* =========================================================
   PAGE D'UNE PLAYLIST
   ========================================================= */

.playlist-detail-page {
    width: 92%;
    max-width: 1450px;

    margin: 0 auto;

    padding: 32px 0 65px;
}


/* =========================================================
   ENTÊTE D'UNE PLAYLIST
   ========================================================= */

.playlist-detail-heading {
    margin-bottom: 26px;

    text-align: center;
}


.playlist-detail-heading h1 {
    margin: 12px 0 9px;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    font-size: clamp(42px, 5vw, 65px);

    line-height: 1;

    letter-spacing: 2px;

    color: #ffffff;

    text-shadow:
        3px 3px 0 #c61f36,
        0 0 12px #000000;
}


.playlist-detail-description {
    max-width: 800px;

    margin: 0 auto 10px;

    padding: 7px 14px;

    border-radius: 10px;

    background: rgba(5, 5, 15, 0.80);

    color: #ffffff;

    font-size: 14px;

    line-height: 1.4;
}


.playlist-total {
    display: inline-block;

    margin: 4px 0 0;

    padding: 4px 11px;

    border-radius: 18px;

    background: #ffd400;

    color: #541018;

    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   RETOUR
   ========================================================= */

.playlist-back {
    display: inline-block;

    padding: 6px 11px;

    border-radius: 18px;

    background: rgba(5, 5, 15, 0.84);

    color: #ffd400;

    text-decoration: none;

    font-size: 13px;
    font-weight: 900;

    transition: 0.2s;
}


.playlist-back:hover {
    color: #ffffff;

    background: rgba(190, 20, 40, 0.92);
}


/* =========================================================
   GRILLE DES CHANSONS D'UNE PLAYLIST
   ========================================================= */

.playlist-songs-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    column-gap: 18px;
    row-gap: 24px;
}


/* =========================================================
   CARTE CHANSON
   ========================================================= */

.playlist-song-card {
    overflow: hidden;

    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 11px;

    background: rgba(5, 5, 15, 0.95);

    box-shadow:
        0 0 0 2px rgba(255, 115, 0, 0.40),
        0 8px 18px rgba(0, 0, 0, 0.38);

    transition: 0.2s;
}


.playlist-song-card:hover {
    transform: translateY(-3px);

    border-color: #ffd400;
}


/* =========================================================
   IMAGE CHANSON
   ========================================================= */

.playlist-song-image {
    position: relative;

    display: block;

    overflow: hidden;

    background: #000000;
}


.playlist-song-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: contain;

    background: #000000;

    transition: 0.22s;
}


.playlist-song-card:hover
.playlist-song-image img {
    transform: scale(1.01);

    filter: saturate(1.05);
}


/* =========================================================
   BOUTON PLAY
   ========================================================= */

.playlist-play {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 52px;
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding-left: 3px;

    border-radius: 9px;

    background: rgba(235, 30, 45, 0.94);

    color: #ffffff;

    font-size: 18px;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.65);
}


/* =========================================================
   INFOS CHANSON
   ========================================================= */

.playlist-song-info {
    padding: 8px 10px 10px;
}


.playlist-song-date {
    margin: 0 0 3px;

    color: #ffd400;

    font-size: 10px;
    font-weight: 900;
}


.playlist-song-info h2 {
    min-height: 0;

    margin: 0 0 8px;

    color: #ffffff;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    font-size: 20px;

    line-height: 1.05;
}


/* =========================================================
   BOUTON YOUTUBE
   ========================================================= */

.playlist-youtube-button {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #ed2734,
            #ff7100
        );

    color: #ffffff;

    text-decoration: none;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    font-size: 15px;
}


/* =========================================================
   PLAYLIST VIDE
   ========================================================= */

.playlist-empty {
    max-width: 600px;

    margin: 35px auto;

    padding: 35px 20px;

    border: 2px solid #ff7300;
    border-radius: 14px;

    background: rgba(5, 5, 15, 0.92);

    text-align: center;
}


.playlist-empty h2 {
    margin: 0 0 7px;

    font-family:
        "Staatliches",
        Impact,
        sans-serif;

    color: #ffffff;

    font-size: 30px;
}


.playlist-empty p {
    margin: 0;

    color: #ffd400;
}


/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 1050px) {

    .playlists-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .playlist-songs-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILES
   ========================================================= */

@media (max-width: 650px) {

    .playlists-page,
    .playlist-detail-page {
        width: 90%;

        padding-top: 25px;
    }


    .playlists-grid,
    .playlist-songs-grid {
        grid-template-columns: 1fr;

        row-gap: 22px;
    }


    .playlist-card-info p,
    .playlist-song-info h2 {
        min-height: 0;
    }


    .playlists-kicker {
        font-size: 17px;
    }


    .playlists-heading h1 {
        font-size: 42px;
    }

}