.listen-layout {
    align-items: flex-start;
}

.listen-sidebar {
    position: sticky;
    top: 118px;
    align-self: flex-start;
}

.listen-feed-column {
    max-width: 820px;
    margin: 0 auto;
}

.listen-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.listen-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.listen-media-wrap {
    background: #10131a;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.listen-media-link {
    display: block;
    cursor: pointer;
}

.listen-media-wrap video,
.listen-media-wrap audio {
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
    object-fit: cover;
}

.listen-audio-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.listen-audio-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.listen-audio-stack audio {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    height: auto;
}

.listen-card-body {
    padding: 14px;
}

.listen-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.listen-meta {
    color: #6c757d;
    margin-bottom: 10px;
}

.listen-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.listen-chip {
    font-size: 0.8rem;
    border-radius: 999px;
    background: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
}

.listen-actions {
    display: flex;
    gap: 10px;
}

.listen-sidecard {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    max-height: calc(100vh - 130px);
    overflow: auto;
}

.listen-side-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.listen-now {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
}

.listen-now-thumb {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    background: #111;
}

.listen-now-title {
    font-weight: 700;
    line-height: 1.2;
}

.listen-now-artist {
    color: #6c757d;
    font-size: 0.92rem;
}

.listen-side-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
}

.listen-filter-details {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.02);
}

.listen-filter-summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    user-select: none;
}

.listen-filter-summary::-webkit-details-marker {
    display: none;
}

.listen-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.listen-filter-chip {
    border: 1px solid #d0d7de;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
}

.listen-filter-chip.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.listen-sentinel {
    height: 1px;
}

body.dark-mode .listen-card {
    background: #1d2738;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .listen-meta {
    color: #a9b3c4;
}

body.dark-mode .listen-chip {
    background: #2b3a52;
    color: #e6edf6;
}

body.dark-mode .listen-sidecard {
    background: #1d2738;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .listen-now-artist {
    color: #a9b3c4;
}

body.dark-mode .listen-filter-chip {
    background: #243149;
    border-color: #334867;
    color: #d7e1f0;
}

body.dark-mode .listen-filter-chip.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

body.dark-mode .listen-filter-details {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 991.98px) {
    .listen-sidebar {
        position: static;
        top: auto;
    }

    .listen-feed-column {
        max-width: 100%;
    }

    .listen-sidecard {
        max-height: none;
    }

    .listen-header h1 {
        font-size: 1.65rem;
    }

    .listen-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .listen-sidebar {
        position: static;
    }

    .listen-sidecard {
        max-height: none;
        overflow: visible;
    }

    .listen-layout {
        row-gap: 1rem;
    }

    .listen-now {
        grid-template-columns: 72px 1fr;
        gap: 10px;
    }

    .listen-now-thumb {
        width: 72px;
        height: 72px;
    }

    .listen-side-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .listen-side-actions .btn {
        width: 100%;
    }

    .listen-actions .btn {
        flex: 1 1 auto;
    }

    .listen-filter-chip {
        font-size: 0.74rem;
        padding: 4px 9px;
    }
}

@media (max-width: 575.98px) {
    .listen-card-body {
        padding: 11px;
    }

    .listen-title {
        font-size: 0.98rem;
    }

    .listen-meta {
        font-size: 0.88rem;
    }
}

@media (max-width: 420px) {
    .listen-header h1 {
        font-size: 1.4rem;
    }

    .listen-sidecard {
        padding: 11px;
    }

    .listen-now {
        grid-template-columns: 64px 1fr;
    }

    .listen-now-thumb {
        width: 64px;
        height: 64px;
    }

    .listen-side-actions .btn {
        font-size: 0.78rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .listen-title {
        font-size: 0.93rem;
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .listen-layout {
        row-gap: 1.2rem;
    }

    .listen-sidebar {
        margin-bottom: 0.2rem;
    }

    .listen-side-actions .btn {
        font-size: 0.84rem;
    }

    .listen-card-body {
        padding: 12px;
    }
}
