/* ==========================================================================
   TRACK LISTS, PLAYLISTS & HOVER ACTIONS
   ========================================================================== */

.section-heading {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--dim);
}

/* Playlist Chips */
.playlist-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 8px;
}
.playlist-strip::-webkit-scrollbar { display: none; }

.pl-chip {
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--txt-sec);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.pl-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.pl-chip.active {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.35), rgba(0, 176, 255, 0.35));
    border-color: var(--c1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.25);
}

/* Song Item Cards with Tactile Hover Effects */
.song-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: background 0.2s var(--ease-out), transform 0.18s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.song-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.song-card:active {
    transform: scale(0.99);
}

.song-card.now-playing {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.35);
}

.song-card.now-playing .song-title {
    color: var(--c1);
}

.song-art-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.song-art-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}

.song-card:hover .song-art-wrap img {
    transform: scale(1.1);
}

/* Hover Mini Play Overlay on Song Art */
.song-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease-out);
}

.song-card:hover .song-hover-play {
    opacity: 1;
}

.song-hover-play svg {
    width: 18px;
    height: 18px;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.2s var(--ease-spring);
}

.song-card:hover .song-hover-play svg {
    transform: scale(1);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title, .song-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.2s;
}

.song-sub {
    font-size: 0.76rem;
    color: var(--dim);
    margin-top: 2px;
}

.song-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.song-card:hover .song-actions {
    opacity: 1;
}

.card-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s var(--ease-out);
}

.card-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.card-btn:active {
    transform: scale(0.94);
}

.card-btn.danger {
    color: #ff8fb1;
    border-color: rgba(255, 143, 177, 0.25);
}

.card-btn.danger:hover {
    background: rgba(255, 143, 177, 0.2);
    border-color: #ff8fb1;
}

/* EQ Mini Bars for Now Playing Song */
.now-playing-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    margin-left: 6px;
    vertical-align: middle;
}

.now-playing-bars i {
    width: 2.5px;
    height: 100%;
    background: var(--c1);
    border-radius: 99px;
    animation: barBounce 0.8s infinite ease-in-out alternate;
}

.now-playing-bars i:nth-child(2) { animation-delay: 0.25s; }
.now-playing-bars i:nth-child(3) { animation-delay: 0.5s; }

@keyframes barBounce {
    0% { height: 3px; }
    100% { height: 14px; }
}