/* Lista utworów */
.playlist {
    margin: 2rem 0;
}

.track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(255, 255, 255, .2);
    border-left-color: rgba(255, 255, 255, .2);
    border-radius: 1rem;
    color: inherit;
    background: rgba(255, 255, 255, .02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .6),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    font-size: 1.2rem;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.track:hover {
    border-color: rgba(255, 102, 0, .1);
    background: rgba(255, 255, 255, .1);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .8),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.track:focus-visible {
    outline: 2px solid #ff9d47;
    outline-offset: 3px;
}

.track.active {
    border-color: rgba(255, 122, 26, .38);
    color: #ff8111;
    background: linear-gradient(90deg, rgba(255, 102, 0, .18), rgba(255, 102, 0, .06));
    box-shadow:
        0 8px 22px rgba(255, 102, 0, .14),
        inset 0 1px 0 rgba(255, 255, 255, .04);
}

.track.active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9d47, #ff6600);
    box-shadow: 0 0 12px rgba(255, 102, 0, .5);
}

.track-info {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 1rem;
    overflow: hidden;
    color: #f2f2f2;
    white-space: nowrap;
}

.track-info > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info strong {
    min-width: 2rem;
    color: #ff9d47;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    opacity: .95;
}

.track.active .track-info {
    color: #fff;
    font-weight: 600;
}

/* Mini equalizer aktywnego utworu */
.track-eq {
    display: none;
    flex: 0 0 auto;
    align-items: flex-end;
    height: 1rem;
    gap: 3px;
}

.track-eq span {
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb066, #ff6600);
    animation: eqMini 1s infinite alternate ease-in-out;
}

.track-eq span:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.track-eq span:nth-child(2) {
    height: 14px;
    animation-delay: .2s;
}

.track-eq span:nth-child(3) {
    height: 9px;
    animation-delay: .4s;
}

.track.active .track-eq {
    display: flex;
}

.playlist-empty {
    padding: 1rem;
    color: #aaa;
    text-align: center;
}

@keyframes eqMini {
    from {
        opacity: .7;
        transform: scaleY(.6);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .track,
    .track-eq span {
        transition: none;
        animation: none;
    }
}
