/* --- PAGE LAYOUT FIXES --- */
header {
    padding-top: 140px; 
    padding-bottom: 80px;
    align-items: flex-start !important; 
}

/* --- BACKGROUND --- */
.music-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: 0;
}

/* --- NOW PLAYING CARD --- */
.music-card {
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.music-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- ALBUM ART --- */
.album-art {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: spinRecord 10s linear infinite;
    animation-play-state: paused;
    transition: border-color 0.3s;
}

.album-art.playing {
    animation-play-state: running;
    border-color: #ad5947;
}

@keyframes spinRecord {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- TYPOGRAPHY --- */
.track-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.artist-name {
    font-size: 1.25rem;
    color: #ad5947;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-badge.live {
    background: rgba(173, 89, 71, 0.2);
    color: #ad5947;
    border-color: #ad5947;
    box-shadow: 0 0 15px rgba(173, 89, 71, 0.2);
}

/* --- HISTORY LIST --- */
.history-section {
    margin-top: 3rem;
}

.list-group-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0; 
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px !important;
    text-align: left !important;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.list-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 1.25rem;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- FIX FOR DARK TEXT --- */
.list-group-item .text-muted {
    color: #b0b0b0 !important; /* Light Gray (instead of Bootstrap's Dark Gray) */
}

.list-group-item:hover .text-muted {
    color: #ffffff !important; /* Pure white on hover for max contrast */
}

/* --- ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .music-card {
        padding: 2rem;
    }
    .track-name {
        font-size: 1.75rem;
    }
    .album-art {
        width: 140px;
        height: 140px;
    }
}

/* --- BACKGROUND CLOUD LAYER --- */
#bg-cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Above the gradient, below the content */
    pointer-events: none; /* Crucial: Allows clicking through the text */
}

.bg-artist-tag {
    position: absolute;
    color: rgba(255, 255, 255, 0.05); /* Very subtle ghost text */
    font-family: 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    user-select: none;
    will-change: transform;
    animation: floatBackground 20s ease-in-out infinite alternate;
}

/* Float animation */
@keyframes floatBackground {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-20px) translateX(10px); }
}

/* Background Sizing */
.bg-size-1 { font-size: 1rem; opacity: 0.05; }
.bg-size-2 { font-size: 1.5rem; opacity: 0.05; }
.bg-size-3 { font-size: 2rem; opacity: 0.08; }
.bg-size-4 { font-size: 2.5rem; opacity: 0.08; }
.bg-size-5 { font-size: 3rem; opacity: 0.1; font-weight: 600; }
.bg-size-6 { font-size: 4rem; opacity: 0.1; font-weight: 600; }
.bg-size-7 { font-size: 5rem; opacity: 0.12; font-weight: 700; }
.bg-size-8 { font-size: 6rem; opacity: 0.12; font-weight: 700; }
.bg-size-9 { font-size: 8rem; opacity: 0.15; font-weight: 800; color: rgba(255,255,255,0.15); }
.bg-size-10 { font-size: 10rem; opacity: 0.15; font-weight: 900; color: rgba(173, 89, 71, 0.15); }