* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --secondary: #dc3545;
    --background: #1a1a2e;
    --surface: #16213e;
    --surface-light: #1f3460;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --success: #28a745;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #0f0f1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text);
}

.radio-container {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.radio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.radio-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-badge {
    background: var(--text-muted);
    color: var(--background);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.live-badge.live {
    background: var(--secondary);
    color: white;
    animation: pulse 2s infinite;
}

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

.player-section {
    text-align: center;
}

.cover-art {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    color: var(--text-muted);
}

.cover-placeholder svg {
    width: 80px;
    height: 80px;
}

.now-playing {
    margin-bottom: 30px;
}

.track-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: var(--text-muted);
    font-size: 1rem;
}

.player-controls {
    margin-bottom: 30px;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.5);
}

.play-button:active {
    transform: scale(0.98);
}

.play-button svg {
    width: 36px;
    height: 36px;
}

.play-button .icon-play {
    margin-left: 4px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.volume-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-light);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.stats-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--surface-light);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading animation */
.loading .play-button {
    animation: loading-pulse 1s infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Error state */
.error .track-artist {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .radio-container {
        padding: 24px;
        border-radius: 16px;
    }

    .cover-art {
        width: 160px;
        height: 160px;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }

    .play-button svg {
        width: 30px;
        height: 30px;
    }
}
