/* Spotify-ähnlicher Player */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #181818;
    border-top: 1px solid #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    height: 90px;
}

.player-track-info {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 180px;
}

.player-album-art {
    background-color: #333;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 24px;
    color: #ff5500;
}

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

.player-track-details {
    overflow: hidden;
}

.player-track-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f1f1f1;
    margin-bottom: 4px;
}

.player-track-artist {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.player-control-btn {
    background-color: transparent;
    border: none;
    color: #f1f1f1;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
    border-radius: 50%;
}

.player-control-btn:hover:not(:disabled) {
    color: #ff5500;
    transform: scale(1.1);
}

.player-control-btn:disabled {
    color: #555;
    cursor: not-allowed;
}

.player-play-btn {
    font-size: 1.2rem;
    background-color: #f1f1f1;
    color: #121212;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-play-btn:hover {
    background-color: #ff5500;
    color: #121212;
}

.player-play-btn:hover i.fa-play,
.player-play-btn:hover i.fa-pause {
    color: #ffffff;
}

.player-time-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    max-width: 40%;
}

.player-time {
    font-size: 0.8rem;
    color: #888;
    min-width: 40px;
}

.player-progress-container {
    position: relative;
    height: 4px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    cursor: pointer;
    --progress: 0%; /* CSS custom property for thumb position */
}

.player-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    background-color: #ff5500;
    border-radius: 2px;
    width: 0%; /* wird durch JS aktualisiert */
    pointer-events: none;
}

.progress-slider {
    position: absolute;
    top: -10px; /* Bigger invisible hitbox */
    left: 0;
    width: 100%;
    height: 24px; /* Bigger invisible hitbox */
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Progress thumb/dot */

.player-progress-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--progress);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-progress-container:hover::after,
.player-progress-container.show-thumb::after,
.player-progress-container.dragging::after {
    opacity: 1;
}

.player-volume-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 15%;
    min-width: 120px;
    justify-content: flex-end;
}

.player-volume-slider-container {
    width: 80px;
}

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

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5500;
    cursor: pointer;
}

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

.volume-slider::-ms-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5500;
    cursor: pointer;
    border: none;
}

.volume-slider:focus {
    outline: none;
}

.volume-slider::-webkit-slider-runnable-track {
    background: #333;
    height: 4px;
    border-radius: 2px;
}

.volume-slider::-moz-range-track {
    background: #333;
    height: 4px;
    border-radius: 2px;
}

.volume-slider::-ms-track {
    background: #333;
    height: 4px;
    border-radius: 2px;
    border-color: transparent;
    color: transparent;
}

/* Genug Platz für Player am unteren Rand lassen */
.main-content {
    padding-bottom: 120px;
}

/* Responsive Design für Player */
@media screen and (max-width: 768px) {
    .bottom-player {
        padding: 10px 15px;
        height: 80px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .player-track-info {
        width: 100%;
        min-width: auto;
        order: 1;
    }
    
    .player-controls {
        order: 2;
        gap: 15px;
    }
    
    .player-time-controls {
        width: 100%;
        order: 3;
        max-width: 100%;
        margin-top: 5px;
    }
    
    .player-volume-controls {
        width: auto;
        min-width: auto;
        order: 4;
    }
    
    .main-content {
        padding-bottom: 140px;
    }
}

@media screen and (max-width: 480px) {
    .bottom-player {
        height: 100px;
        padding: 8px 10px;
    }
    
    .player-album-art {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 20px;
    }
    
    .player-track-title {
        font-size: 0.9rem;
    }
    
    .player-track-artist {
        font-size: 0.75rem;
    }
    
    .player-control-btn {
        padding: 6px;
        font-size: 0.9rem;
    }
    
    .player-play-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .player-time {
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .player-volume-controls {
        display: none; /* Hide volume on very small screens */
    }
    
    .main-content {
        padding-bottom: 120px;
    }
} 