body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Arial', sans-serif;
    background: #111;
    color: white;
    box-sizing: border-box;
    /* padding-top is now managed by navbar.js */
    padding-top: 0;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    /* Ensure canvas doesn't interfere with clicks */
    pointer-events: none;
}

/* Announcement Banner Styles */
#announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #ff00cc, #3333ff); /* Gradient background */
    color: white;
    text-align: center;
    padding: 8px 20px;
    box-sizing: border-box;
    z-index: 250; /* Higher z-index than navbar */
    font-size: 1rem;
    font-weight: bold;
    text-transform: lowercase;
}

#announcement-banner .banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

#announcement-banner a {
    color: white;
    text-decoration: underline;
}

#announcement-banner a:hover {
    text-decoration: none;
}

#navbar {
    position: fixed;
    /* top is now managed by navbar.js */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 200; /* Below banner, above content */
    padding: 10px 20px;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(to right, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: lowercase;
    margin-right: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-transform: lowercase;
    padding: 5px 0;
}

.nav-links a:hover {
    color: white;
}

h1 {
    font-size: 4rem;
    margin: 20px 0 0 0;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    background: linear-gradient(to right, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
    text-transform: lowercase;
}

@keyframes glow {
    from {
        text-shadow: 0 0 8px rgba(255,255,255,0.6);
    }
    to {
        text-shadow: 0 0 25px rgba(255,255,255,1);
    }
}

/* Home/Back link button style */
#home-link a,
#back-link a,
.social-links a,
.back-link a {
    color: #e0e0e0;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on mobile */
}

#home-link a:hover,
#back-link a:hover,
.social-links a:hover,
.back-link a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
}

/* Specific style for the now playing element */
#now-playing {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: auto;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: auto;
    color: #e0e0e0;
    z-index: 150;
}

#now-playing img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

#track-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    overflow: hidden;
}

#track-info-container h3 {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    text-transform: lowercase;
}

#track-info {
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: left;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#track-info strong {
    display: block;
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#track-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    /* body padding is now managed by navbar.js */
    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    #announcement-banner {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    #navbar {
        padding: 10px;
    }
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    .nav-brand {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .nav-links {
        gap: 10px;
        justify-content: center;
    }
    h1 {
        font-size: 2.5rem;
        margin-top: 10px;
    }

    #home-link a,
    #back-link a,
    .social-links a,
    .back-link a {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 0.9rem 1.2rem;
        color: #e0e0e0 !important; /* Force text color */
        background: rgba(40, 40, 40, 0.8) !important; /* Darker background */
        border-color: rgba(255, 255, 255, 0.2);
    }

    #home-link a:hover,
    #back-link a:hover,
    .social-links a:hover,
    .back-link a:hover {
        background: rgba(60, 60, 60, 0.9) !important;
        color: #ffffff !important;
    }

    #now-playing {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
        bottom: 10px;
        padding: 1rem;
        box-sizing: border-box;
        gap: 1rem;
    }
    #now-playing img {
        height: 50px;
        width: 50px;
    }
    #now-playing h3 {
        font-size: 0.9rem;
    }
    #track-info strong {
        font-size: 1rem;
    }
    #track-info p {
        font-size: 0.8rem;
    }
}