/* Updated CSS custom properties for modern color scheme */
:root {
    --card: 51, 65, 85;
    --accent: 71, 85, 105;
    --orange: 6, 182, 212;
    --blue-light: 14, 165, 233;
    --foreground: 226, 232, 240;
    --muted-foreground: 148, 163, 184;
    --border: 148, 163, 184, 0.2;
    --primary: 6, 182, 212;
}

.track-item,
.snd-item {
    background: linear-gradient(135deg, rgba(var(--card), 0.6), rgba(var(--card), 0.8));
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 8px;
    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 2px 8px rgba(0, 0, 0, 0.1);
}

.track-item:hover,
.snd-item:hover {
    background: linear-gradient(135deg, rgba(var(--accent), 0.7), rgba(var(--accent), 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
    border-color: rgba(var(--orange), 0.3);
}

.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.1);
}

.track-item__play:hover,
.snd-play:hover {
    background: rgb(var(--orange));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--orange), 0.4);
}

.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: white;
    box-shadow: 0 6px 20px rgba(var(--orange), 0.4);
}

.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));
}
