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

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

/* Radio Branding */
.radio-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.radio-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radio-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Full Player */
.player-container {
    width: 100%;
    max-width: 450px;
}

.player-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    pointer-events: auto !important;
}

.album-art-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-art:hover {
    transform: scale(1.05);
}

/* Visualizer */
.visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visualizer.active {
    opacity: 1;
}

.bar {
    width: 6px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 40px; }
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 24px;
}

.track-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.3;
}

.track-artist {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
}

.radio-name {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    pointer-events: auto !important;
    z-index: 10;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

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

.btn-play svg {
    width: 32px;
    height: 32px;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.btn-mute {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.btn-mute:hover {
    color: #667eea;
}

.btn-mute svg {
    width: 24px;
    height: 24px;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto !important;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.volume-value {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Toggle Button */
.btn-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Minimal Player */
.minimal-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    z-index: 1000;
}

.minimal-album-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.minimal-info {
    flex: 1;
    min-width: 0;
}

.minimal-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.minimal-artist {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.minimal-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.minimal-play-btn:hover {
    transform: scale(1.1);
}

.minimal-play-btn svg {
    width: 20px;
    height: 20px;
}

.btn-toggle-full {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.btn-toggle-full:hover {
    color: #667eea;
}

.btn-toggle-full svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .player-card {
        padding: 24px;
    }

    .track-title {
        font-size: 20px;
    }

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

    .minimal-player {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Error State */
.error {
    color: #e74c3c;
}

/* Stream Status Indicator */
.stream-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-status.online {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stream-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse 2s ease-in-out infinite;
}

.stream-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.stream-status.offline::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}
