/* ================================================================
   FWG Hörbuch Player Styles
   Minimalistisch, dunkler Hintergrund, weiße Elemente
   ================================================================ */

/* Hauptcontainer */
.c-hoerbuch-player {
    padding: 4rem 0 6rem;
    background-color: var(--color-bg-dark, #1C3B6C);
    color: var(--color-text-light, #ffffff);
    min-height: 95vh;
}

.c-hoerbuch-player_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .c-hoerbuch-player_wrapper {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

/* ================================================================
   Hauptplayer
   ================================================================ */

.c-hoerbuch-player_main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cover */
.c-hoerbuch-player_cover {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.c-hoerbuch-cover_wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Ratio */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.c-hoerbuch-cover_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

/* Kapitel Info */
.c-hoerbuch-player_info {
    text-align: center;
    padding: 0 1rem;
}

.c-hoerbuch-titel {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #ffffff;
}

.c-hoerbuch-beschreibung {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Timeline / Progress Bar */
.c-hoerbuch-player_timeline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.c-hoerbuch-time {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    min-width: 45px;
    text-align: center;
}

.c-hoerbuch-timeline_bar {
    flex: 1;
    height: 40px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.c-hoerbuch-timeline_background {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.c-hoerbuch-timeline_progress {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Play/Pause Button */
.c-hoerbuch-player_controls {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.c-hoerbuch-play_button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1C3B6C;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    position: relative;
}

.c-hoerbuch-play_button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.5);
}

.c-hoerbuch-play_button:active {
    transform: scale(0.95);
}

.c-hoerbuch-play_icon,
.c-hoerbuch-pause_icon {
    position: absolute;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.c-hoerbuch-play_icon {
    opacity: 1;
    transform: scale(1);
}

.c-hoerbuch-pause_icon {
    opacity: 0;
    transform: scale(0.8);
}

.c-hoerbuch-play_button.is-playing .c-hoerbuch-play_icon {
    opacity: 0;
    transform: scale(0.8);
}

.c-hoerbuch-play_button.is-playing .c-hoerbuch-pause_icon {
    opacity: 1;
    transform: scale(1);
}

/* ================================================================
   Playlist
   ================================================================ */

.c-hoerbuch-playlist {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.c-hoerbuch-playlist_title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c-hoerbuch-playlist_list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 780px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar Styling */
.c-hoerbuch-playlist_list::-webkit-scrollbar {
    width: 6px;
}

.c-hoerbuch-playlist_list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.c-hoerbuch-playlist_list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.c-hoerbuch-playlist_list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Playlist Item */
.c-hoerbuch-playlist_item {
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.c-hoerbuch-playlist_item_inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.c-hoerbuch-playlist_item:hover .c-hoerbuch-playlist_item_inner {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.c-hoerbuch-playlist_item.is-active .c-hoerbuch-playlist_item_inner {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.c-hoerbuch-playlist_number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    min-width: 40px;
    text-align: center;
}

.c-hoerbuch-playlist_item.is-active .c-hoerbuch-playlist_number {
    color: #ffffff;
}

.c-hoerbuch-playlist_content {
    flex: 1;
}

.c-hoerbuch-playlist_item_titel {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #ffffff;
}

.c-hoerbuch-playlist_item_dauer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   Responsive Anpassungen
   ================================================================ */

@media (max-width: 991px) {
    .c-hoerbuch-player_wrapper {
        gap: 2rem;
    }

    .c-hoerbuch-titel {
        font-size: 1.5rem;
    }

    .c-hoerbuch-play_button {
        width: 70px;
        height: 70px;
    }

    .c-hoerbuch-play_icon,
    .c-hoerbuch-pause_icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 767px) {
    .c-hoerbuch-player {
        padding: 2rem 0 4rem;
    }

    .c-hoerbuch-titel {
        font-size: 1.25rem;
    }

    .c-hoerbuch-beschreibung {
        font-size: 0.875rem;
    }

    .c-hoerbuch-playlist_list {
        max-height: 300px;
    }
}
