/* --- Structure de la page de réglages --- */
.sr42-main-page {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* --- Container de l'aperçu --- */
#radio-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f1;
    border-top: 2px solid #0073aa;
}

#radio-preview h2 {
    text-align: center;
    color: #1d2327;
    margin-bottom: 20px;
}

/* --- LE FIX POUR LA PREVIEW --- */
/* On s'assure que le container de preview dans l'admin 
   se comporte EXACTEMENT comme le shortcode */

#preview-container {
    /* Ces propriétés assurent que l'aperçu hérite du look du player réel */
    margin: 0 auto !important; 
    pointer-events: none; /* Évite de cliquer sur play dans l'admin */
}

/* On annule tes anciens styles qui rendaient le round petit */
#preview-round {
    inset: 0 !important; /* PREND TOUTE LA PLACE */
    background-size: 100% 100% !important; 
    opacity: 1 !important;
}

#preview-play-button {
    inset: 0 !important;
    background-size: 40% !important; /* CENTRE ET PETIT */
    opacity: 0.9 !important;
}

/* --- Gestion du Repeater (Stations) --- */
.station-row {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease-out;
}

.station-row.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

.shortcode-container {
    background: #e7f5fe;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #b8e1f9;
    margin: 20px 0;
}

#shortcode {
    font-family: monospace;
    font-size: 1.2em;
    color: #0073aa;
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px;
}

/* --- Interactivité spécifique à la Preview Admin --- */

/* 1. Faire tourner le disque au survol de la zone */
#preview-englobe:hover #preview-round {
    animation-play-state: running !important;
}

/* 2. Afficher la Pause au survol du Play */
/* On cache la pause par défaut en preview */
#preview-pause-button {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 15 !important;
}

/* Quand on survole le container ou le bouton play, on montre la pause */
#preview-englobe:hover #preview-pause-button {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px #FFD700);
}

/* On estompe le play quand la pause apparaît */
#preview-englobe:hover #preview-play-button {
    opacity: 0.3;
}

/* --- Nettoyage de la structure Admin --- */
.sr42-main-page {
    max-width: 900px;
    margin: 20px auto;
}

#radio-preview {
    background: #f0f0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #ccd0d4;
}