/* Album Slider Styles */
.album-slider {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.album-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.album-slider-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.album-slider-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #1a1a2e;
}

.album-slider-container::-webkit-scrollbar {
    height: 8px;
}

.album-slider-container::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}

.album-slider-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.album-slider-track {
    display: flex;
    gap: 20px;
    padding: 10px;
}

.album-card {
    flex: 0 0 160px;
    width: 160px;
    background: #0f0f23;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.album-card.active {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: scale(1.02);
}

.album-card-image {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.album-card:hover .album-card-image img {
    transform: scale(1.05);
}

.album-card-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-artist {
    color: #a0a0a0;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-count {
    color: #667eea;
    font-size: 0.7rem;
    margin-top: 6px;
    font-weight: 500;
}

/* Album info section */
.album-slider-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    display: none;
}

.album-slider-info.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.album-slider-info h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.album-slider-info p {
    color: #a0a0a0;
    margin: 0;
    font-size: 0.85rem;
}

/* Track list styling */
.album-tracks {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.album-track-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-track-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.album-track-item.playing,
.track-item.active {
    background: rgba(102, 126, 234, 0.3);
    border-left: 3px solid #667eea;
}

.album-track-number {
    color: #667eea;
    font-size: 0.85rem;
    width: 30px;
    flex-shrink: 0;
}

.album-track-title {
    color: #fff;
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-duration {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Current album indicator */
.current-album-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.current-album-indicator i {
    font-size: 0.9rem;
}

.current-album-indicator .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.current-album-indicator .close-btn:hover {
    opacity: 1;
}

/* Hidden class for track list */
.hidden {
    display: none !important;
}

/* Track list visible state */
.track-list.visible {
    display: block;
}
