/* radio-styles.css - Stili per PSC Assieme Radio */

body {
    background-color: white;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
    padding: 0;
    background: none;
}

.header-background {
    width: 100%;
    position: relative;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.header img.logo {
    max-height: 80px;
}

.header h1, .header h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.radio-logo {
    max-width: 350px;
    margin: 20px 0;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

audio {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
}

.status-indicator {
    margin-top: 10px;
    font-size: 14px;
    color: #000;
    text-align: center;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stili per iOS */
.disabled-player {
    opacity: 0.6;
    pointer-events: none;
}

#iosMessage {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    z-index: 100;
}

#tempAuthFrame {
    display: none;
    width: 1px;
    height: 1px;
    opacity: 0.01;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: -1;
    border: none;
}

/* Stili inline che erano nell'HTML */
.auth-frame-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
}

/* Nasconde elementi durante il caricamento */
.loading .player {
    display: none;
}