.audio-player-card {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(17, 20, 27, 0.96);
    color: #f5f7fa;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

.audio-player-card * {
    box-sizing: border-box;
}

.audio-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 50%, #10141d 0 7%, #d8dde5 7.5% 9%, #252b36 9.5% 30%, transparent 30.5%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 8px),
        linear-gradient(135deg, #222834, #0c0f15 70%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.audio-cover.playing:not(.has-image) {
    animation: audio-cover-spin 9s linear infinite;
}

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

.audio-cover-image[hidden],
.audio-cover.has-image .audio-cover-label {
    display: none;
}

.audio-cover-label {
    position: absolute;
    inset: auto 12px 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.audio-details {
    min-width: 0;
}

.audio-title {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-meta {
    margin-top: 9px;
    color: #8f98a8;
    font-size: 12px;
}

.audio-timeline {
    margin-top: 32px;
}

.audio-progress {
    width: 100%;
    height: 4px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.audio-progress::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.audio-times {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: #778191;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.audio-control {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    background: transparent;
    color: #c5ccd7;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.audio-control:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.audio-play {
    width: 52px;
    height: 52px;
    border: 0;
    background: #f5f7fa;
    color: #101319;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.audio-play:hover {
    background: #fff;
    color: #000;
}

.audio-volume {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #8b94a3;
    font-size: 12px;
}

.audio-volume input {
    width: 82px;
    accent-color: #f5f7fa;
}

.audio-element {
    display: none;
}

@keyframes audio-cover-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 620px) {
    .audio-player-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .audio-cover {
        width: min(220px, 70vw);
        justify-self: center;
    }

    .audio-title,
    .audio-meta {
        text-align: center;
    }

    .audio-timeline {
        margin-top: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .audio-cover.playing:not(.has-image) {
        animation: none;
    }
}
