/* Platinum/Pearl player palette */
:root {
    --card: 248, 249, 251;
    --accent: 238, 241, 244;
    --orange: 185, 145, 47;
    --blue-light: 154, 163, 173;
    --foreground: 27, 36, 48;
    --muted-foreground: 95, 107, 123;
    --border: 27, 36, 48, 0.12;
    --primary: 154, 163, 173;
}

.track-item,
.snd-item {
    background: linear-gradient(180deg, rgba(var(--card), 1), rgba(var(--accent), 1));
    backdrop-filter: blur(6px);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--border));
    box-shadow: 0 8px 16px rgba(20, 24, 32, 0.12);
}

.track-item:hover,
.snd-item:hover {
    background: linear-gradient(180deg, rgba(var(--card), 1), rgba(255, 255, 255, 1));
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(20, 24, 32, 0.16);
    border-color: rgba(var(--orange), 0.35);
}

.track-item__artwork,
.snd-img {
    width: 45px;
    height: 45px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.track-item__play,
.snd-play {
    cursor: pointer;
    font-size: 18px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    margin-right: 12px;
    color: rgb(var(--orange));
    border: 2px solid rgba(var(--orange), 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(var(--orange), 0.06);
}

.track-item__play:hover,
.snd-play:hover {
    background: rgb(var(--orange));
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(var(--orange), 0.35);
}

.js-item-played .la-play:before {
    content: "\f04c";
}

.track-item.js-item-current.js-item-played .track-item__play,
.snd-item.js-item-current.js-item-played .snd-play {
    background: linear-gradient(135deg, rgb(var(--orange)), rgb(var(--blue-light)));
    border-color: rgb(var(--orange));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(var(--orange), 0.35);
}

.track-item__info,
.snd-desc {
    display: block;
    flex: 1;
    min-width: 0;
}

.track-item__title,
.snd-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: rgb(var(--foreground));
    text-decoration: none;
    transition: all 0.3s ease;
}

.track-item__title:hover,
.snd-title:hover {
    color: rgb(var(--blue-light));
    transform: translateX(4px);
}

.track-item__artist,
.snd-subtitle {
    font-size: 0.8rem;
    color: rgb(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.track-item__artist:hover,
.snd-subtitle:hover {
    color: rgb(var(--blue-light));
    transform: translateX(4px);
}

.track-item__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.track-item__action {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--foreground), 0.05), rgba(var(--foreground), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--border));
    cursor: pointer;
    color: rgb(var(--muted-foreground));
    transition: all 0.3s ease;
    text-decoration: none;
}

.track-item__action:hover {
    color: rgb(var(--blue-light));
    background: linear-gradient(135deg, rgba(var(--orange), 0.1), rgba(var(--blue-light), 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--orange), 0.2);
    border-color: rgba(var(--orange), 0.3);
}

.nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-fit {
    position: relative;
    overflow: hidden;
}

.img-fit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.js-item-played .track-item__play-icon,
.js-item-current.js-item-played .track-item__play-icon {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(var(--orange), 0.6);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(var(--orange), 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(var(--orange), 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(var(--orange), 0.6);
    }
}

.js-item-current {
    background: linear-gradient(135deg, rgba(var(--primary), 0.15), rgba(var(--primary), 0.25));
    border-left: 4px solid rgb(var(--primary));
    padding-left: calc(20px - 4px);
    box-shadow: 0 4px 20px rgba(var(--primary), 0.2);
}

.dark .audioplayer-volume-adjust {
    background: linear-gradient(135deg, rgba(var(--card), 0.8), rgba(var(--card), 0.9));
    border-color: rgba(var(--border));
    backdrop-filter: blur(10px);
}

.dark .track-item,
.dark .snd-item {
    background: linear-gradient(135deg, rgba(var(--card), 0.6), rgba(var(--card), 0.8));
}

.dark .track-item:hover,
.dark .snd-item:hover {
    background: linear-gradient(135deg, rgba(var(--accent), 0.7), rgba(var(--accent), 0.9));
}

/* Platinum/Pearl player UI */
.wplayer {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(27, 36, 48, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(20, 24, 32, 0.12);
}

.audioplayer {
    background: transparent;
    color: rgb(var(--foreground));
}

.ap-desc {
    background: transparent;
}

.ap-img img {
    border-radius: 10px;
    border: 1px solid rgba(27, 36, 48, 0.12);
}

.ap-title {
    color: rgb(var(--foreground));
    font-weight: 700;
}

.ap-artist {
    color: rgb(var(--muted-foreground));
}

.audioplayer-time,
.audioplayer-time-current,
.audioplayer-time-duration {
    color: rgb(var(--muted-foreground));
}

.audioplayer-bar {
    background: rgba(27, 36, 48, 0.08);
}

.audioplayer-bar-loaded {
    background: rgba(27, 36, 48, 0.14);
}

.audioplayer-bar-played {
    background: rgb(var(--orange));
}

.audioplayer-volume-adjust > div {
    background: rgba(27, 36, 48, 0.08);
}

.audioplayer-volume-adjust > div > div {
    background: rgb(var(--orange));
}

.ap-btns,
.ap-next,
.ap-prev,
.ap-dl {
    color: rgb(var(--foreground));
}

.ap-dl {
    background: rgba(27, 36, 48, 0.05);
    border: 1px solid rgba(27, 36, 48, 0.12);
    border-radius: 10px;
    padding: 6px;
}

.ap-dl:hover,
.ap-next:hover,
.ap-prev:hover {
    background: rgba(27, 36, 48, 0.10);
    color: rgb(var(--foreground));
}

/* Match song page action buttons */
