/* Audio Player Container */
.audio-player {
    margin: 0.5rem 0;
    padding: 1.0rem;
    background-color: rgba(255, 255, 255, 0.7); /* Weißer, transparenter Hintergrund wie feed-item */
    border-radius: 10px; /* Abgerundete Ecken wie feed-item */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Schatten wie feed-item */
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; /* Wie dein Haupt-CSS */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover-Effekt wie feed-item */
}

.audio-player:hover {
    transform: translateY(-5px); /* Hebt den Player leicht an wie feed-item */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Verstärkter Schatten wie feed-item */
}

/* Song-Info */
.song-info {
    margin-bottom: 0.8rem;
    text-align: left;
}

.song-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: #333; /* Dunkelgrau wie feed-title */
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 2px solid #e9932b; /* Orangefarbene Unterstreichung wie feed-title */
    padding-bottom: 10px; /* Abstand wie feed-title */
}

/* Steuerlemente */
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.control-btn {
    border: none;
    background: #e9932b; /* Orange Hauptfarbe aus deinem CSS */
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; /* Übergänge wie social-icon */
    flex-shrink: 0;
}

.control-btn:hover {
    background: #cc7a1f; /* Dunkleres Orange für Hover */
    transform: translateY(-2px); /* Leichtes Anheben wie social-icon */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* Schatten wie social-icon */
}

/* Fortschrittsbalken Container */
.progress-container {
    flex-grow: 1;
    margin: 0 0.8rem;
}

/* Slider Styling */
.progress-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd; /* Hellgrauer Hintergrund */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.progress-slider:hover {
    background: #ccc; /* Etwas dunkleres Grau bei Hover */
}

/* Webkit (Chrome, Safari, Edge) */
.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e9932b; /* Orange Hauptfarbe */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #fff; /* Weißer Rand für bessere Sichtbarkeit */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -5px; /* Für die vertikale Zentrierung des Slider-Thumbs */
}

.progress-slider::-webkit-slider-thumb:hover {
    background: #cc7a1f; /* Dunkleres Orange bei Hover */
    transform: scale(1.1);
}

.progress-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: #ddd;
}

/* Firefox */
.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e9932b; /* Orange Hauptfarbe */
    cursor: pointer;
    border: 2px solid #fff; /* Weißer Rand */
    transition: all 0.2s ease;
    margin-top: -5px; /* Für die vertikale Zentrierung des Slider-Thumbs */
}

.progress-slider::-moz-range-thumb:hover {
    background: #cc7a1f; /* Dunkleres Orange bei Hover */
    transform: scale(1.1);
}

.progress-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    border: none;
}

/* Zeit-Anzeige */
.time-display {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: #555; /* Mittleres Grau wie feed-text */
    margin-left: 0.2rem;
    flex-shrink: 0;
    min-width: 90px;
    text-align: right;
}

/* Responsive Design für Mobile */
@media (max-width: 1050px) {
    .audio-player {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .player-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .progress-container {
        order: 3; /* Slider kommt nach den Buttons */
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .time-display {
        order: 4; /* Zeit-Anzeige kommt ganz nach unten */
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .song-title {
        font-size: 1.1rem;
    }
}