/**
 * Electrue Player Styles
 * Minimalistischer Webplayer für Shoutcast/Icecast Streams
 */

.electrue-player {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Play/Pause Button */
.electrue-player-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.electrue-player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

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

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

/* Player Info */
.electrue-player-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.electrue-player-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.electrue-player-artist {
    font-size: 12px;
    color: #a0a0a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Volume Control */
.electrue-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.electrue-icon-volume {
    width: 20px;
    height: 20px;
    color: #a0a0a0;
}

.electrue-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
}

.electrue-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #e94560;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

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

.electrue-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #e94560;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Icon States */
.electrue-icon-pause {
    display: none;
}

/* Playing State */
.electrue-player.is-playing .electrue-icon-play {
    display: none;
}

.electrue-player.is-playing .electrue-icon-pause {
    display: block;
}

/* Loading State */
.electrue-player.is-loading .electrue-player-btn {
    animation: pulse 1s infinite;
}

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

/* Error State */
.electrue-player.has-error .electrue-player-btn {
    background: #666;
}

.electrue-player-error {
    padding: 10px 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 6px;
    font-size: 14px;
}

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

    /* Größerer Button für bessere Touch-Bedienung */
    .electrue-player-btn {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .electrue-player-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Volume Slider größer für Touch */
    .electrue-volume-slider {
        width: 70px;
        height: 8px;
    }

    .electrue-volume-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .electrue-volume-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

    .electrue-player-title {
        font-size: 14px;
    }

    .electrue-player-artist {
        font-size: 12px;
    }
}
