:root {
    --primary: #e67e22;
    --dark: #2c3e50;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #1a1a1a url('/assets/img/background.jpg') no-repeat center center / cover fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
}

.player-container {
    position: relative;
    z-index: 1;
    padding: 20px 15px 100px;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    border-radius: 12px;
}

.station-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    margin: 0;
    color: #fff;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.badge-live {
    background: #c0392b;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.badge-live .dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Sound Waves */
.waves {
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.waves span {
    width: 4px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.waves span:nth-child(1) { animation-delay: 0s; height: 15px; }
.waves span:nth-child(2) { animation-delay: 0.1s; height: 25px; }
.waves span:nth-child(3) { animation-delay: 0.2s; height: 35px; }
.waves span:nth-child(4) { animation-delay: 0.3s; height: 20px; }
.waves span:nth-child(5) { animation-delay: 0.4s; height: 30px; }
.waves span:nth-child(6) { animation-delay: 0.5s; height: 18px; }
.waves span:nth-child(7) { animation-delay: 0.6s; height: 28px; }
.waves span:nth-child(8) { animation-delay: 0.7s; height: 22px; }
.waves span:nth-child(9) { animation-delay: 0.8s; height: 32px; }
.waves span:nth-child(10) { animation-delay: 0.9s; height: 16px; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.waves.playing span {
    animation-play-state: running;
}

.waves:not(.playing) span {
    animation-play-state: paused;
    transform: scaleY(0.3);
}

/* Play Button */
.play-btn {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #f39c12, #e67e22);
    color: white;
    font-size: 2.8rem;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5), 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.play-btn.playing {
    background: linear-gradient(145deg, #e67e22, #d35400);
}

.status {
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Volume */
.volume-control {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
}

.volume-slider {
    flex: 1;
    accent-color: var(--primary);
    height: 6px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Install Button */
.install-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
}

/* Connection Status */
.connection-status {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: none;
    z-index: 1001;
}

.connection-status.show {
    display: block;
}

.connection-status.error {
    background: #c0392b;
}

@media (max-width: 480px) {
    .station-name {
        font-size: 1.8rem;
    }
    .logo {
        width: 150px;
    }
    .play-btn {
        width: 95px;
        height: 95px;
        font-size: 2.4rem;
    }
}
