/* Modern HTML5 Shoutcast Player Styles */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.player-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.player {
    background: linear-gradient(145deg, #1e1e30 0%, #252540 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.eq-bar {
    width: 8px;
    min-height: 4px;
    height: 4px;
    background: linear-gradient(to top, #00d4ff, #7b2cbf);
    border-radius: 4px;
    transition: height 0.1s ease;
}

.eq-bar.active {
    animation: eq-bounce 0.5s ease infinite;
}

@keyframes eq-bounce {
    0%, 100% { height: 4px; }
    50% { height: var(--eq-height, 40px); }
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 25px;
    min-height: 60px;
}

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

.track-artist {
    font-size: 0.9rem;
    color: #8b8b9e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.play-btn {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #00d4ff, #7b2cbf);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

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

.play-btn svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

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

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 150px;
}

.volume-icon {
    width: 24px;
    height: 24px;
    fill: #8b8b9e;
    stroke: #8b8b9e;
    stroke-width: 1;
    flex-shrink: 0;
    cursor: pointer;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.volume-icon:hover {
    fill: #00d4ff;
    stroke: #00d4ff;
}

.volume-icon .volume-wave,
.volume-icon .volume-wave-2 {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.volume-icon.muted .volume-wave,
.volume-icon.muted .volume-wave-2 {
    display: none;
}

.volume-icon.low .volume-wave-2 {
    display: none;
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #00d4ff, #7b2cbf);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
    transition: transform 0.2s ease;
}

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

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #00d4ff, #7b2cbf);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

/* Loading State */
.player.loading .track-title::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

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

    .player {
        padding: 20px;
    }

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

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

    .track-title {
        font-size: 1rem;
    }

    .volume-control {
        max-width: 120px;
    }
}

/* Embed Mode - minimal styling when embedded */
.player-container.embed {
    padding: 0;
}

.player-container.embed .player {
    border-radius: 12px;
}
