/* ==========================================================================
   TEMA PERSONALIZABLE (Variables CSS)
   ========================================================================== */
:root {
    /* Colores Principales (Adaptables por el cliente) */
    --color-primary: #00A3DA; /* Cyan del logo */
    --color-primary-hover: #0087B5;
    --color-accent: #6CB33F; /* Verde del logo */
    
    /* Colores de Fondo / Tarjeta */
    --bg-base: #0f172a; /* Slate 900 */
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Textos */
    --text-main: #FFFFFF;
    --text-muted: #94a3b8; /* Slate 400 */

    /* Fuentes */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Efectos Blobs (Fondos animados) */
    --blob-1: var(--color-primary);
    --blob-2: #37474F;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ==========================================================================
   LAYOUT & BACKGROUND
   ========================================================================== */
.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: var(--bg-base);
}

.aurora-1, .aurora-2, .aurora-3 {
    position: absolute;
    filter: blur(100px);
    opacity: 0.35; /* Elegante y profundo */
    border-radius: 50%;
    animation: orbit 20s linear infinite;
    pointer-events: none;
}

.aurora-1 {
    width: 60vw;
    height: 60vw;
    background: var(--color-primary);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.aurora-2 {
    width: 50vw;
    height: 50vw;
    background: var(--color-accent);
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.aurora-3 {
    width: 45vw;
    height: 45vw;
    background: rgba(255, 255, 255, 0.1); /* Brillo tenue */
    top: 30%;
    left: 20%;
    animation-duration: 40s;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

/* Copyright Fuera de la Caja */
.copyright-outside {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    z-index: 10;
}
.copyright-outside a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.copyright-outside a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   GLASSMORPHISM CARD
   ========================================================================== */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ==========================================================================
   HEADER & TYPOGRAPHY
   ========================================================================== */
.radio-header {
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-placeholder {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: white;
}

.radio-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.radio-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   NOW PLAYING SECTION
   ========================================================================== */
.now-playing {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.current-song {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-artist {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   PLAYER CONTROLS
   ========================================================================== */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.btn-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

.btn-play:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
}

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

.btn-play i {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.hidden {
    display: none !important;
}

/* Volume Slider */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
}

.volume-control i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass);
    transform: translateY(-3px);
    color: var(--color-primary);
}

.social-btn i,
.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Media Queries para móviles pequeños */
@media (max-width: 400px) {
    .glass-panel {
        padding: 30px 20px;
    }
    
    .blob {
        display: none; /* Mejorar rendimiento en pantallas muy pequeñas */
    }
}
