/* play25 Compiled CSS */
:root { --primary-color: #09993b; }
/* PLAY25 CORE CSS - Ottimizzato per WebApp Mobile */
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: transparent; /* Utile per integrazioni Iframe */
    display: flex; justify-content: center; align-items: center;
}

/* Sfondo sfocato dietro il player */
.blur-background {
    position: absolute; 
    top: -10%; 
    left: -10%; 
    width: 120%; 
    height: 120%;
    
    /* Impostazioni immagine */
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    
    /* L'effetto sfocatura */
    filter: blur(15px) brightness(0.8); /* Brightness 0.5 scurisce per far leggere i testi */
    z-index: 0;
    
    /* Transizione morbida quando cambia la canzone */
    transition: background-image 1s ease-in-out;
}

/* --- STRUTTURA VERTICALE BASE (300px) --- */
.player-container {
    position: relative; z-index: 10;
    width: 100%; /* Occupa tutto lo spazio dell'iframe... */
    max-width: 500px; /* ...MA BLOCCA L'ALLARGAMENTO A 320PX! */
    height: 300px; /* ALTEZZA FISSA RICHIESTA */
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center; /* Centra tutto il blocco */
    border-radius: 15px; 
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px; /* Margine di respiro interno */
}

/* Copertina (150px) */
.artwork-box {
    width: 150px; 
    height: 150px;
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 15px; /* Distanza dai testi */
    flex-shrink: 0; /* Impedisce che si rimpicciolisca */
}
.artwork-box img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Titoli (40px esatti per 2 linee) */
.track-info {
    width: 100%; 
    height: 40px; 
    text-align: center; 
    margin-bottom: 15px; /* Distanza dal tasto play */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#player-title, #player-artist {
    height: 20px; 
    line-height: 20px; /* Centra il testo nella sua riga */
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Aggiunge i puntini se è troppo lungo */
}
#player-title {
    font-size: 16px; font-weight: bold; color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* Aggiunta per leggibilità su sfondi chiari */
}
#player-artist {
    font-size: 14px; color: #bbb;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* Aggiunta per leggibilità su sfondi chiari */
}

/* Controlli e Tasto Play (50px) */
.controls {
    height: 50px;
    display: flex; justify-content: center; align-items: center; width: 100%;
}
.btn-play {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary-color, #3498db); 
    color: #fff;
    border: none; cursor: pointer; font-size: 20px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.btn-play:hover { transform: scale(1.05); }
.btn-play:active { transform: scale(0.95); }
/**
 * SKIN: MOBILE APP PRO
 * Layout Full-Screen con focus sulla Cover
 */

.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #000;
}

.top-bar {
    padding: 15px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cover-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-box {
    width: 85%;
    max-width: 350px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animazione quando la musica è in onda */
.cover-box.music-playing {
    transform: scale(1.05);
}

.bottom-player {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 30px 30px 0 0;
}

#player-artwork {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}