@charset "UTF-8";

.audio-player {
    max-width: 640px;
    border: 0;
    border-radius: 1rem;
}

.audio-scene {
    aspect-ratio: 3104 / 1974;
    min-height: clamp(30rem, 55vw, 42rem);
    overflow: hidden;
}

.audio-scene-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-scene::before {
    position: absolute;
    z-index: 1;
    background: rgb(0 0 0 / 20%);
    content: "";
    inset: 0;
    pointer-events: none;
}

.audio-player-overlay {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(76%, 640px);
    max-width: none;
    transform: translate(-50%, -50%);
}

.controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.controls .btn {
    min-width: 120px;
}

.volume-control {
    flex: 1;
    max-width: 280px;
}

.progress {
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--bs-primary);
    transition: width 150ms linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-variant-numeric: tabular-nums;
}

#playlist-status:empty {
    display: none;
}

@media (max-width: 1199.98px) {
    .audio-player-overlay {
        width: min(80%, 600px);
    }
}

@media (max-width: 991.98px) {
    .audio-scene {
        min-height: 30rem;
    }

    .audio-player-overlay {
        width: min(82%, 560px);
    }
}

@media (max-width: 767.98px) {
    .hear-section {
        width: calc(100% - 2rem);
        padding-inline: 0;
    }

    .audio-scene {
        aspect-ratio: 4 / 3;
        min-height: 32rem;
    }

    .audio-player-overlay {
        width: calc(100% - 2rem);
    }

    .audio-player-overlay .card-body {
        padding: 1.75rem !important;
    }

    .controls {
        align-items: stretch;
        flex-direction: column;
    }

    .controls .btn,
    .volume-control {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hear-section {
        width: calc(100% - 1.5rem);
    }

    .audio-scene {
        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .audio-player-overlay {
        width: calc(100% - 1rem);
        border-radius: 0.75rem;
    }

    .audio-player-overlay .card-body {
        padding: 1.25rem !important;
    }

    .audio-player-overlay .card-title {
        margin-bottom: 1rem !important;
    }

    .audio-player-overlay .mb-4 {
        margin-bottom: 1rem !important;
    }

    .controls {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 399.98px) {
    .hear-section {
        width: calc(100% - 1rem);
    }

    .audio-scene {
        aspect-ratio: 1 / 1;
    }

    .audio-player-overlay .card-body {
        padding: 1rem !important;
    }

    .audio-player-overlay .card-title {
        font-size: 1.25rem;
    }

    .audio-player-overlay .form-label {
        font-size: 0.9rem;
    }

    .audio-player-overlay .form-select {
        font-size: 1rem;
    }

    .controls .btn,
    .progress,
    .time-display {
        display: none;
    }
}