/* ==================== View Switcher ==================== */
.view-switcher {
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    padding: 4px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-btn:hover {
    background: var(--hover-bg);
}

.view-btn.active {
    background: var(--primary-color);
    color:var(--bg-color);
    font-weight: 500;
}

/* ==================== Song Card ==================== */
.song-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.song-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.song-info {
    padding: 15px;
}

.song-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.song-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.song-album {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 15px;
    display: flex;
    gap: 8px;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.song-card:hover .song-overlay {
    opacity: 1;
    transform: translateY(0);
}

.song-overlay.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Song List View ==================== */
.song-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.song-list-item:hover {
    background: var(--hover-bg);
    transform: translateX(3px);
}

.song-list-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-list-cover-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.song-list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-list-meta {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-list-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-list-rating {
    display: flex;
    margin-top: 0;
}

/* ==================== Rating Component ==================== */
.song-list-rating .star,
.rating-stars .star {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
    transition: all 0.2s ease;
}

.song-list-rating .star.active,
.rating-stars .star.active {
    color: #ffc107;
}

.song-list-rating:hover .star,
.rating-stars:hover .star {
    color: #ddd;
}

.song-list-rating .star:hover,
.rating-stars .star:hover,
.song-list-rating .star:hover ~ .star,
.rating-stars .star:hover ~ .star {
    transform: scale(1.1);
}

.song-list-rating .star.hover-active,
.rating-stars .star.hover-active {
    color: #ffc107;
}

