/* Responsivité progressive du lecteur */

/* Étape 1: Réduire la taille de l'image d'album */
@media (max-width: 500px) {
    .album-art {
        width: 60%; /* Réduit de 70% à 60% */
        max-width: 150px; /* Réduit de 180px à 150px */
        flex-shrink: 0;
    }
    
    .player-content {
        padding: 20px 20px clamp(35px, 7vh, 50px); /* Padding-bottom proportionnel */
        gap: clamp(10px, 1.8vh, 12px); /* Gap réduit */
        overflow: hidden; /* Pas de barre de scroll dans le lecteur */
    }
}

/* Étape 2: Réduire encore plus l'image d'album */
@media (max-width: 400px) {
    .album-art {
        width: 50%; /* Réduit de 60% à 50% */
        max-width: 120px; /* Réduit de 150px à 120px */
        flex-shrink: 0;
    }
    
    .player-content {
        padding: 15px 15px clamp(30px, 6vh, 45px); /* Padding-bottom proportionnel */
        gap: clamp(8px, 1.5vh, 10px); /* Gap réduit */
        overflow: hidden; /* Pas de barre de scroll dans le lecteur */
    }
    
    .player-controls {
        gap: clamp(15px, 3vw, 30px); /* Gap proportionnel réduit */
        padding: clamp(5px, 1vw, 10px) clamp(5px, 1vw, 10px) clamp(8px, 1.5vw, 15px); /* Padding proportionnel */
    }
    
    .control-button {
        width: clamp(30px, 5vw, 45px); /* Taille réduite proportionnellement */
        height: clamp(30px, 5vw, 45px);
    }
    
    .play-button {
        width: clamp(45px, 7.5vw, 65px); /* Taille réduite proportionnellement */
        height: clamp(45px, 7.5vw, 65px);
    }
    
    .play-button svg {
        width: clamp(20px, 3.5vw, 28px);
        height: clamp(20px, 3.5vw, 28px);
    }
}

/* Étape 3: Mettre les infos sur une seule ligne avec défilement */
@media (max-width: 360px) {
    .player-content {
        padding: 12px 12px clamp(25px, 5vh, 35px); /* Padding-bottom proportionnel */
        gap: clamp(6px, 1.2vh, 8px); /* Gap réduit */
        overflow: hidden; /* Pas de barre de scroll dans le lecteur */
    }
    
    .album-art {
        width: 45%; /* Réduit de 55% à 45% */
        max-width: 110px; /* Réduit de 130px à 110px */
    }
    
    .track-info {
        padding: 0 8px;
        overflow: hidden;
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        white-space: nowrap;
    }
    
    /* Conteneur avec défilement pour le texte */
    .track-title,
    .track-artist,
    .track-album {
        display: inline;
        white-space: nowrap;
        margin: 0;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .track-title {
        font-weight: 600;
        color: #ffffff;
    }
    
    .track-artist {
        color: #a0a0a0;
    }
    
    .track-artist::before {
        content: " \2022 "; /* Bullet point */
        color: #666;
        margin: 0 6px;
    }
    
    .track-album {
        color: #888;
    }
    
    .track-album::before {
        content: " \2022 "; /* Bullet point */
        color: #666;
        margin: 0 6px;
    }
    
    /* Animation de défilement si le texte est trop long */
    .track-info.scrolling {
        animation: scroll-text-horizontal 20s linear infinite;
    }
    
    .progress-container {
        margin-bottom: 15px;
    }
    
    .player-controls {
        gap: clamp(12px, 2.5vw, 25px); /* Gap proportionnel réduit */
        margin-top: auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(4px, 0.8vw, 8px) clamp(4px, 0.8vw, 8px) clamp(6px, 1.2vw, 12px); /* Padding proportionnel */
        box-sizing: border-box;
    }
    
    .control-button {
        width: clamp(28px, 4.5vw, 40px); /* Taille réduite proportionnellement */
        height: clamp(28px, 4.5vw, 40px);
        flex-shrink: 0;
    }
    
    .play-button {
        width: clamp(42px, 7vw, 60px); /* Taille réduite proportionnellement */
        height: clamp(42px, 7vw, 60px);
        flex-shrink: 0;
    }
    
    .play-button svg {
        width: clamp(18px, 3vw, 26px); /* Icône proportionnelle */
        height: clamp(18px, 3vw, 26px);
    }
}

/* Étape 4: Taille minimale absolue */
@media (max-width: 320px) {
    .site-header {
        margin-bottom: clamp(10px, 1.8vh, 20px); /* Espacement très réduit */
    }
    
    #audio-player {
        width: calc(100vw - 40px); /* Marges latérales de 20px de chaque côté */
        margin: 0 20px; /* Marges latérales garanties */
        max-height: calc(100vh - 160px); /* Ajustement pour très petits écrans */
    }
    
    .player-content {
        padding: 10px 10px clamp(20px, 4vh, 30px); /* Padding-bottom proportionnel */
        gap: clamp(5px, 1vh, 6px); /* Gap réduit */
        overflow: hidden; /* Pas de barre de scroll dans le lecteur */
    }
    
    .album-art {
        width: 40%; /* Réduit de 50% à 40% */
        max-width: 100px; /* Réduit de 120px à 100px */
    }
    
    .track-info {
        padding: 0 4px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .player-controls {
        gap: clamp(10px, 2vw, 20px); /* Gap proportionnel très réduit */
        margin-top: auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(3px, 0.6vw, 6px) clamp(3px, 0.6vw, 6px) clamp(5px, 1vw, 10px); /* Padding proportionnel */
        box-sizing: border-box;
    }
    
    .control-button {
        width: clamp(25px, 4vw, 35px); /* Taille très réduite proportionnellement */
        height: clamp(25px, 4vw, 35px);
        flex-shrink: 0;
    }
    
    .play-button {
        width: clamp(38px, 6.5vw, 55px); /* Taille très réduite proportionnellement */
        height: clamp(38px, 6.5vw, 55px);
        flex-shrink: 0;
    }
    
    .play-button svg {
        width: clamp(16px, 2.5vw, 22px); /* Icône proportionnelle */
        height: clamp(16px, 2.5vw, 22px);
    }
}

/* Gestion de la hauteur réduite */
@media (max-height: 640px) {
    body {
        padding: 20px 0;
        min-height: 720px;
    }
    
    .site-header {
        margin-bottom: clamp(15px, 2.5vh, 30px); /* Espacement pour hauteur réduite */
    }
    
    #audio-player {
        max-height: calc(100vh - 200px); /* Laisser de l'espace pour le header */
        min-height: 450px; /* Hauteur minimale pour hauteur réduite */
    }
    
    .player-content {
        gap: clamp(10px, 1.8vh, 12px); /* Gap réduit */
        padding: 20px 20px clamp(35px, 7vh, 50px); /* Padding-bottom proportionnel */
        overflow: hidden; /* Pas de barre de scroll dans le lecteur */
    }
    
    .album-art {
        width: clamp(100px, 30vh, 170px); /* Réduit pour laisser plus d'espace */
        flex-shrink: 0;
    }
    
    .progress-container {
        margin: 0;
    }
}

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

html {
    min-width: 320px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow-y: auto; /* Permettre le scroll si nécessaire */
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vh, 30px) 0; /* Padding vertical réduit, surtout sur mobile */
}

/* Réduire encore plus l'espace sur mobile */
@media (max-width: 768px) {
    body {
        padding: clamp(5px, 1vh, 15px) 0; /* Padding très réduit sur mobile */
    }
}

/* Background blanc statique sur mobile, dynamique sur desktop */
#dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Derrière tout le contenu */
    pointer-events: none; /* Ne pas bloquer les interactions */
}

/* Sur desktop uniquement, permettre les images de fond */
@media (min-width: 769px) {
    #dynamic-background {
        background-color: transparent;
    }
}

/* ===================== */
/* LOGO GRRRADIO.FR ET SLOGAN */
/* ===================== */
.site-header {
    position: relative; /* Changé de fixed à relative pour le centrage vertical */
    z-index: 100;
    display: block; /* Visible partout */
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: clamp(15px, 2.5vh, 35px); /* Espacement avec le lecteur */
}

/* Réduire l'espacement sur mobile */
@media (max-width: 768px) {
    .site-header {
        margin-bottom: clamp(10px, 1.5vh, 20px); /* Espacement réduit sur mobile */
    }
}

.site-logo {
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 24px;
    background-color: #000000;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo-lowercase {
    text-transform: lowercase;
    font-weight: 700;
}

.site-slogan {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 0.9rem;
    color: #000000;
    font-weight: 400;
    text-align: center;
    margin-top: 8px;
    padding: 0 20px;
}

/* Ajustements pour desktop */
@media (min-width: 901px) {
    .site-header {
        margin-bottom: clamp(25px, 3.5vh, 45px); /* Espacement ajusté pour desktop */
    }
    
    .site-slogan {
        font-size: 1rem;
    }
    
    #audio-player {
        max-height: calc(100vh - 280px); /* Ajustement pour desktop */
        width: 400px; /* Réduit pour laisser plus de marge */
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 400px) {
    body {
        padding: clamp(3px, 0.8vh, 10px) 0; /* Padding encore plus réduit */
    }
    
    .site-header {
        margin-bottom: clamp(8px, 1.2vh, 18px); /* Espacement très réduit pour petits écrans */
    }
    
    .site-logo {
        padding: 10px 20px;
        margin-bottom: 10px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .site-slogan {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    #audio-player {
        max-height: calc(100vh - 200px); /* Laisser de l'espace pour le header */
        min-height: 400px; /* Hauteur minimale pour petits écrans */
    }
}

/* Ajustements pour petits écrans */
@media (max-width: 360px) {
    body {
        padding: clamp(2px, 0.5vh, 8px) 0; /* Padding minimal */
    }
    
    .site-header {
        margin-bottom: clamp(6px, 1vh, 15px); /* Espacement minimal pour très petits écrans */
    }
    
    .site-logo {
        padding: 8px 16px;
        margin-bottom: 8px;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
    
    .site-slogan {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    #audio-player {
        max-height: calc(100vh - 180px); /* Laisser de l'espace pour le header */
        min-height: 380px; /* Hauteur minimale pour très petits écrans */
    }
}

/* ===================== */
/* LECTEUR AUDIO */
/* ===================== */
.player-container {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

/* Lecteur unifié pour tous les appareils */
#audio-player {
    position: relative; /* Changé de fixed à relative pour le centrage vertical */
    width: clamp(280px, calc(100vw - 80px), 400px); /* Marges latérales garanties (40px de chaque côté minimum) */
    max-height: calc(100vh - 250px); /* Laisser de l'espace pour le header et le slogan */
    min-height: 500px; /* Hauteur minimale pour contenir tout le contenu */
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden; /* Empêcher le contenu de dépasser */
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    margin: 0 clamp(20px, 4vw, 40px); /* Marges latérales garanties */
}

#audio-player::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
}

/* Sur desktop : centré */
@media (min-width: 900px) {
    #audio-player {
        width: 400px; /* Réduit pour laisser plus de marge */
        max-height: calc(100vh - 280px); /* Laisser de l'espace pour le header */
        min-height: 520px; /* Hauteur minimale pour desktop */
        overflow: hidden; /* S'assurer que le contenu reste à l'intérieur */
        margin: 0 clamp(20px, 4vw, 40px); /* Marges latérales garanties */
    }
    
    .player-content {
        padding: 25px 24px 35px; /* Padding-bottom pour les boutons */
        gap: 14px;
        overflow: hidden; /* Pas de barre de scroll dans le lecteur */
        max-width: 100%;
    }
    
    .album-art {
        width: 70%; /* Réduit de 80% à 70% */
        max-width: 200px; /* Réduit de 250px à 200px */
        flex-shrink: 0;
    }
    
    .track-info {
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .progress-container {
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .player-controls {
        gap: clamp(20px, 3.5vw, 30px); /* Gap proportionnel */
        margin-top: auto;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        padding: clamp(8px, 1.5vw, 15px) clamp(8px, 1.5vw, 15px) clamp(10px, 2vw, 20px); /* Padding proportionnel */
        box-sizing: border-box;
    }
    
    .play-button {
        width: clamp(48px, 8vw, 65px); /* Taille proportionnelle */
        height: clamp(48px, 8vw, 65px);
        flex-shrink: 0;
    }
    
    .play-button svg {
        width: clamp(22px, 4vw, 30px); /* Icône proportionnelle */
        height: clamp(22px, 4vw, 30px);
    }
    
    .control-button {
        width: clamp(35px, 6vw, 45px); /* Taille proportionnelle */
        height: clamp(35px, 6vw, 45px);
        flex-shrink: 0;
    }
}

.player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100%;
    padding: 30px 24px clamp(50px, 8vh, 80px); /* Padding-bottom proportionnel à la hauteur du viewport */
    position: relative;
    z-index: 1;
    overflow: hidden; /* Pas de barre de scroll dans le lecteur */
    box-sizing: border-box;
    gap: clamp(12px, 2vh, 16px); /* Espacement proportionnel réduit */
}

/* Pochette d'album */
.album-art {
    width: 75%; /* Réduit de 90% à 75% */
    max-width: 220px; /* Réduit de 280px à 220px */
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    flex-shrink: 0; /* Empêcher la réduction */
    box-sizing: border-box;
    margin-top: 0;
}

#album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informations du morceau */
.track-info {
    width: 100%;
    color: white;
    text-align: center;
    padding: 0 clamp(16px, 3vw, 24px); /* Padding proportionnel */
    margin: 0;
    flex-shrink: 0;
}

.track-title {
    font-size: clamp(1rem, 3.5vw, 1.3rem); /* Légèrement réduit */
    font-weight: 600;
    margin-bottom: clamp(6px, 1vh, 8px); /* Margin proportionnelle */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
}

.track-artist {
    font-size: clamp(0.95rem, 3.2vw, 1rem);
    color: #a0a0a0;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-album {
    font-size: clamp(0.8rem, 2.8vw, 0.85rem); /* Légèrement réduit */
    color: #888;
    margin-top: clamp(2px, 0.5vh, 4px); /* Margin proportionnelle */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Barre de progression */
.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    flex-shrink: 0;
}

.time-current,
.time-total {
    font-size: 0.85rem;
    color: #b3b3b3;
    font-weight: 500;
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #000000;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Contrôles principaux */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px); /* Gap proportionnel */
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-top: auto; /* Pousser vers le bas */
    flex-shrink: 0; /* Empêcher la réduction */
    box-sizing: border-box;
    padding: clamp(8px, 1.5vw, 15px) clamp(8px, 1.5vw, 15px) clamp(10px, 2vw, 20px); /* Padding proportionnel */
}

.control-button {
    width: clamp(35px, 6vw, 50px); /* Taille proportionnelle */
    height: clamp(35px, 6vw, 50px);
    border: none;
    background: transparent;
    color: #b3b3b3;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.control-button:hover {
    color: white;
}

.control-button:active {
    transform: scale(0.95);
    color: white;
}

.control-button svg {
    width: 100%;
    height: 100%;
}

/* Bouton play/pause central */
.play-button {
    width: clamp(50px, 8.5vw, 70px); /* Taille proportionnelle */
    height: clamp(50px, 8.5vw, 70px);
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-button:hover {
    transform: scale(1.05);
}

.play-button:active {
    transform: scale(0.95);
}

.play-button svg {
    width: clamp(24px, 4.5vw, 32px); /* Icône proportionnelle */
    height: clamp(24px, 4.5vw, 32px);
}

.play-button.playing .play-icon {
    display: none;
}

.play-button.playing .pause-icon {
    display: block !important;
}

/* ======================== */
/* VOLET HISTORIQUE - MOBILE */
/* ======================== */
.history-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 60vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    transition: bottom 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    display: none;
    pointer-events: none;
    opacity: 0;
}

@media (max-width: 768px) {
    .history-panel {
        display: block;
    }
}

.history-panel.open {
    bottom: 0;
    pointer-events: auto;
    opacity: 1;
}
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.history-list {
    overflow-y: auto;
    max-height: calc(60vh - 80px);
    padding: 10px 0;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-artist {
    font-size: 0.85rem;
    color: #b3b3b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ======================== */
/* MODAL DEMANDE DE TITRE */
/* ======================== */
.request-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    padding: 20px;
}

.request-modal.open {
    display: flex;
}

.modal-content {
    background: #121212;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.request-info {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Styles pour les plateformes de streaming */
.streaming-platforms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.platform-open-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-open-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.platform-open-btn:active {
    transform: scale(0.95);
}

.modal-footer {
    padding: 0 20px 20px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.close-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ======================== */
/* ANIMATIONS */
/* ======================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-text-horizontal {
    0%, 10% {
        transform: translateX(0%);
    }
    90%, 100% {
        transform: translateX(calc(-50%));
    }
}

/* ======================== */
/* MODE PAYSAGE MOBILE - MINI LECTEUR */
/* ======================== */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        overflow: hidden;
        min-height: auto;
        padding: 0;
    }
    
    .site-header {
        margin-bottom: clamp(10px, 2vh, 20px); /* Espacement réduit pour mode paysage */
    }
    
    #audio-player {
        width: clamp(400px, calc(85vw - 40px), 600px); /* Marges latérales garanties */
        max-height: calc(100vh - 120px); /* Laisser de l'espace pour le header */
        min-height: 120px; /* Hauteur minimale pour mode paysage (layout horizontal) */
        height: auto;
        margin: 0 clamp(20px, 4vw, 40px); /* Marges latérales garanties */
    }
    
    .player-content {
        display: grid;
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "cover info"
            "cover progress"
            "cover controls";
        align-items: center;
        padding: 16px 16px 20px; /* Padding-bottom pour les boutons */
        gap: 8px 16px;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Pochette d'album - petite à gauche */
    .album-art {
        display: block !important;
        grid-area: cover;
        width: 75px; /* Réduit de 90px à 75px */
        max-width: 75px;
        min-width: 75px;
        height: 75px;
        aspect-ratio: 1;
        border-radius: 12px;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    
    #album-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    
    /* Infos du morceau - à droite de la pochette, centrées */
    .track-info {
        grid-area: info;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        text-align: center;
        padding: 0;
        margin: 0;
        gap: 2px;
    }
    
    .track-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }
    
    /* Artiste et album sur une ligne avec séparateur */
    .track-artist {
        font-size: 0.85rem;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: inline;
    }
    
    .track-artist::before {
        content: none;
    }
    
    .track-album {
        display: inline;
        font-size: 0.85rem;
        color: #888;
    }
    
    .track-album::before {
        content: " • ";
        color: #666;
    }
    
    /* Barre de progression */
    .progress-container {
        grid-area: progress;
        width: 100%;
        margin: 0;
        gap: 8px;
    }
    
    .time-current,
    .time-total {
        font-size: 0.7rem;
        min-width: 32px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    /* Contrôles */
    .player-controls {
        grid-area: controls;
        width: 100%;
        max-width: 100%;
        gap: clamp(12px, 2vw, 24px); /* Gap proportionnel */
        margin-top: 0;
        justify-content: center;
        padding: 0 clamp(3px, 0.6vw, 6px) clamp(5px, 1vw, 10px); /* Padding proportionnel */
        box-sizing: border-box;
    }
    
    .control-button {
        width: clamp(26px, 4.5vw, 36px); /* Taille proportionnelle */
        height: clamp(26px, 4.5vw, 36px);
    }
    
    .play-button {
        width: clamp(38px, 6.5vw, 48px); /* Taille proportionnelle */
        height: clamp(38px, 6.5vw, 48px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .play-button svg {
        width: clamp(18px, 3vw, 24px); /* Icône proportionnelle */
        height: clamp(18px, 3vw, 24px);
    }
    
    /* Masquer le volet historique en paysage */
    .history-panel {
        display: none !important;
    }
    
    /* Modal adapté */
    .request-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
    }
}
