/* Background */
.background {
    background-image: url('../images/music-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Music specific styles */
.music-card {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.music-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.now-playing {
    border-left: 4px solid #1db954 !important;
    background: rgba(29, 185, 84, 0.15) !important;
}

.music-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* Compact styling for recent tracks */
.compact-card .card-body {
    padding: 0.5rem !important;
}

.compact-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.text-spotify {
    color: #1db954;
}

/* Force text truncation */
.min-w-0 {
    min-width: 0 !important;
}

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

.d-block.text-truncate {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .music-image {
        width: 48px;
        height: 48px;
    }
    
    .compact-image {
        width: 40px;
        height: 40px;
    }
    
    .card-body {
        padding: 0.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    /* Stack tracks vertically on mobile */
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}