/* Music CSS */

.music-container {
    padding-top: 6rem; /* Space for navbar */
}

/* Glassmorphism Cards */
.track-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.track-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.track-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.track-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.track-card:hover .track-image {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-card {
    width: 48px;
    height: 48px;
    background: #1DB954; /* Spotify Green like */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.track-card:hover .play-icon-card {
    transform: translateY(0);
}

.track-title {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.85rem;
    color: #a7a7a7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filter Buttons */
.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: #fff;
    color: #000;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -4px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

/* Show thumb on hover of parent container usually, but here we show it. Or stick to hidden until hover */
input[type=range]:hover::-webkit-slider-thumb {
    opacity: 1;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #4b5563;
    border-radius: 2px;
}

/* Animations */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(29, 185, 84, 0.2); }
    50% { box-shadow: 0 0 20px rgba(29, 185, 84, 0.6); }
    100% { box-shadow: 0 0 5px rgba(29, 185, 84, 0.2); }
}

.playing-glow {
    animation: pulse-glow 2s infinite;
    border-color: #1DB954;
}
