:root {
    --black: #000000;
    --purple: #6a0dad;
    --light-purple: #c3a1e9;
    --gradient-start: #4a007c; 
    --gradient-end: #6a0dad;   
    --text-color-dark: #f0f0f0; 
    --text-color-light: #ffffff;
    --status-online: #28a745; /* Green */
    --status-offline: #dc3545; /* Red */
    --sidebar-bg: #1a1a1a;
    --sidebar-border: #333333;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--black);
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    text-align: center;
}

/* --- Header and Banner --- */
header {
    background-color: var(--black);
    /* Removed padding as the large banner image is no longer here */
    padding: 0; 
}

.header-banner {
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-bottom: 20px; /* Space above schedule */


}

.logo {
    /* Adjusted size to fit the typical width of the sidebar (max 450px) */
    width: 100%; 
    max-width: 450px;
    height: auto; /* Maintain aspect ratio */
    max-height: 150px; /* Keep the banner from getting too tall */
    object-fit: contain;
    display: block; 
}

/* --- New Navigation Menu Styles --- */
.main-nav {
    /* Full-width sticky bar */
    background-color: var(--sidebar-bg); /* #1a1a1a */
    padding: 10px 20px;
    border-bottom: 2px solid var(--purple);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* Make the nav a flex container to hold the button and the menu */
    display: flex;
    justify-content: flex-end; /* Push the burger to the right */
}
.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color-light);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.burger-menu-toggle {
    display: flex; /* Show by default, then manage in media queries */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above the links list */
}

/* Container for the actual links */
.nav-links-list {
    position: absolute;
    top: 100%; /* Drop down right below the navigation bar */
    right: 0;
    background-color: var(--sidebar-bg);
    width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 8px;
    
    /* Initially hide the menu off-screen */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden; /* Hide from screen readers when off-screen */
    opacity: 0;
}

/* Class to show the menu */
.nav-links-list[data-visible="true"] {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

/* Styling for the links inside the new menu */
.nav-link {
    display: block; /* Make links full width in the menu */
    color: var(--text-color-light);
    text-decoration: none;
    padding: 15px 20px;
    border-bottom: 1px solid var(--sidebar-border);
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: right;
}

.nav-link:hover {
    background-color: var(--purple);
}

.nav-link.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color-light);
    box-shadow: none; /* Removed glow to match sidebar style */
}

/* Burger Menu X Transformation */
.burger-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.burger-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.burger-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.nav-link {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
}

.nav-link:hover {
    background-color: var(--purple); 
    box-shadow: 0 0 10px var(--light-purple); 
}

.nav-link.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color-light);
    box-shadow: 0 0 15px var(--light-purple);
}

/* Spacer for non-sticky content */
.nav-spacer {
    height: 1px;
    background-color: transparent;
}


/* --- Main Content Layout --- */
main {
    padding: 10px; 
    max-width: 1200px; 
    margin: 0 auto;
    text-align: left; 
	padding-top: 10px; /* Add a little space below the sticky nav */
}

.content-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
	flex-wrap: nowrap; /* ADD or CONFIRM this line */
    align-items: flex-start; /* Ensures columns align to the top */
}

/* --- Player Container (Left Column) --- */
.player-container {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center; 

    /* FIX: Define specific flex basis and prevent shrinking */
    flex-basis: 65%; 
    max-width: 700px; 
    min-width: 350px;
    flex-shrink: 0; /* Important: Prevents column from being forced to shrink */
}

/* --- Canvas Visualizer Style --- */
#visualizer-canvas {
    width: 95%; 
    max-width: 500px;
    height: 300px; 
    background-color: #0d1a1a; /* Dark Cyan/Black Background */
    border-radius: 5px;
    margin-bottom: 10px;
    
    /* Retain original animation settings... */
}
    
    /* ANIMATION */
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
    /* This is now the 5th animated element in player-container */
    animation-delay: 0.8s;
}


/* --- Sidebar Container (Right Column) --- */
.sidebar-container {
    flex-basis: 35%; 
    max-width: 450px; 
    min-width: 300px;
    flex-shrink: 0; /* Important: Prevents column from being forced to shrink */
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 5px;
}

/* --- New Content Box Styles (Show Schedule and Top Songs) --- */
.schedule-container, .top-songs-container {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--sidebar-border);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    
    /* ANIMATION RE-APPLIED */
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
}

/* Specific Sidebar Animation Delays */
.schedule-container {
    /* Now the 6th animated element */
    animation-delay: 0.4s; 
}

.top-songs-container {
    /* Now the 7th animated element */
    animation-delay: 0.6s;
}

.schedule-container h2, .top-songs-container h2 {
    color: var(--light-purple);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 5px;
    margin-top: 0;
    font-size: 1.2em;
}

/* Schedule list styling using DIV and P */
.schedule-container .schedule-list {
    margin: 10px 0 0;
}

.schedule-container .schedule-list p {
    font-size: 0.95em;
    margin: 0; 
    padding-bottom: 8px; 
    line-height: 1.4;
}

.schedule-container .schedule-list p:last-child {
    padding-bottom: 0;
}

.top-songs-container ol {
    list-style-position: outside;
    padding-left: 20px;
    margin: 10px 0 0;
    line-height: 1.6;
}

.day-time {
    font-weight: bold;
}

.top-songs-container ol li {
    font-size: 0.9em;
    padding-bottom: 3px;
}

/* --- Animations --- */

/* Keyframe Animation for Slide-Up Effect */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px); 
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for the player elements */
.stream-selection {
    margin-bottom: 15px;
    width: 100%;
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
    /* ANIMATION 1 */
    animation-delay: 0.2s;
}

.now-playing-container {
    margin-top: 20px; 
    margin-bottom: 10px; 
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
	background: linear-gradient(90deg, #0d3b40 0%, #008080 100%);
    color: var(--text-color-light); 
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    width: 95%;
    max-width: 550px;
    margin: 10px auto; 
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.7); /* Neon Green Glow */
    /* ANIMATION 2 */
    animation-delay: 0.4s;
}

.current-show-container {
    margin-top: 10px; 
    margin-bottom: 10px;
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
	background: linear-gradient(90deg, #0d3b40 0%, #008080 100%);
    color: var(--text-color-light); 
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    width: 95%;
    max-width: 550px;
    margin: 10px auto; 
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.7); /* Neon Green Glow */
    /* ANIMATION 3 */
    animation-delay: 0.6s;
}

.server-status-container {
    margin-top: 10px;
    margin-bottom: 20px; 
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
	background: linear-gradient(90deg, #0d3b40 0%, #008080 100%);
    color: var(--text-color-light); 
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    width: 95%;
    max-width: 550px;
    margin: 10px auto; 
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.7); /* Neon Green Glow */
    /* ANIMATION 4 */
    animation-delay: 0.7s;
}


/* Player Controls and Note (Delayed to account for canvas) */
.player-container > audio, 
.player-container > .note {
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
    /* ANIMATION 6 & 7 */
    animation-delay: 1.0s; 
}

.player-container > .note {
    animation-delay: 1.1s; 
}

/* Social Links (Delayed to account for canvas) */
.social-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 95%;
    max-width: 550px;
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
    /* ANIMATION 8 */
    animation-delay: 1.2s; 
}
.mobile-banner-wrapper {
    /* CRITICAL: Ensure this is the default state */
    display: none; 
    width: 100%;
}

.desktop-banner-wrapper {
    /* CRITICAL: Ensure this is the default state */
    display: block; 
}

/* --- Status Specific Colors for Text --- */
.status-online {
    color: var(--status-online); /* Green */
    font-weight: bold;
}

.status-offline {
    color: var(--status-offline); /* Red */
    font-weight: bold;
}

/* --- Information Box Styles (now-playing, current-show, server-status) --- */
.now-playing-container, .current-show-container, .server-status-container {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-color-light); 
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    width: 95%;
    max-width: 550px;
    margin: 10px auto; 
    text-align: left;
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.7); 
}

/* --- Input/Audio/Text Element Styles --- */
#stream-select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--purple);
    background-color: #2c2c2c;
    color: var(--text-color-dark);
    width: 95%;
    max-width: 400px;
    cursor: pointer;
}

#audio-player {
    width: 95%;
    max-width: 500px;
    margin-top: 15px;
    /* Invert hue to shift purple towards blue/cyan, then shift color towards green */
    filter: invert(1) hue-rotate(180deg) saturate(3) brightness(1.2); 
}

.now-playing-container h3, .current-show-container h3, .server-status-container h3 {
    margin: 0;
    padding-right: 10px;
    font-size: 1em;
    font-weight: bold;
    flex-shrink: 0;
}

#now-playing-info, #current-show-info, #server-status-info {
    font-weight: normal;
    font-style: italic;
    word-break: break-word;
    flex-grow: 1;
}

#now-playing-info {
    max-height: 2.5em;
    overflow-y: auto;
    padding-right: 5px;
}

/* --- Social Link Styles --- */
.social-link {
    text-decoration: none;
    color: var(--text-color-light);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.1s;
    flex-grow: 1;
    min-width: 120px;
    max-width: 150px;
}

.social-link.facebook {
    background-color: #3b5998;
    border: 1px solid #3b5998;
}
.social-link.tiktok {
    background-color: #000000;
    border: 1px solid #c3a1e9;
    box-shadow: 0 0 5px #c3a1e9;
}
.social-link.youtube {
    background-color: #ff0000;
    border: 1px solid #ff0000;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--purple);
    color: var(--light-purple);
    text-align: center;
}

/* --- Styles for Secondary Pages (About, Contact, Request) --- */

.page-title {
    color: var(--light-purple);
    font-size: 2.5em;
    padding: 20px 0;
    margin: 0;
    text-shadow: 0 0 5px var(--purple);
}

.page-content-wrapper {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.info-section {
    background-color: var(--sidebar-bg); /* Dark gray background */
    border: 1px solid var(--sidebar-border);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.info-section h2 {
    color: var(--light-purple);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 8px;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* --- Timeline History Specific Styles --- */
.history-section {
    padding-left: 50px; /* Space for the timeline line */
    position: relative;
}

.timeline-event {
    margin-bottom: 20px;
    padding-left: 30px;
    border-left: 2px solid var(--purple);
    position: relative;
}

.timeline-date {
    display: block;
    font-weight: bold;
    color: #00ffff; /* Arctic Ice Blue for dates */
    margin-bottom: 5px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -7px; /* Position circle on the line */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--purple);
    border: 2px solid var(--light-purple);
}

.timeline-event.final-event {
    border-left: none; /* End the line */
}


/* --- Contact Page Specific Styles --- */
.contact-details {
    text-align: center;
}

.email-link-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.email-entry h3 {
    color: #00ffff; /* Arctic Ice Blue */
    margin-bottom: 5px;
}

.email-link {
    color: var(--text-color-dark);
    text-decoration: none;
    font-size: 1.1em;
    background-color: #003366;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.email-link:hover {
    background-color: #0066cc;
}

/* --- Request Form Specific Styles --- */
.cc_request_form {
    padding: 20px;
    background-color: #2c2c2c; /* Slightly lighter background for the form */
    border-radius: 5px;
    margin-top: 20px;
}

.cc_request_form label {
    display: inline-block;
    width: 100px; /* Aligning labels */
    margin-bottom: 10px;
}

.cc_request_form input[type="text"] {
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #00ffff;
    background-color: #1a1a1a;
    color: var(--text-color-light);
    width: calc(100% - 120px);
    max-width: 300px;
    margin-bottom: 10px;
}

.cc_request_form input[type="button"] {
    background-color: #00ffff; /* Arctic Blue Submit button */
    color: var(--black);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

/* --- Animation Base for Secondary Page Sections --- */
.info-section, .request-form-section, .email-entry {
    /* Apply base animation properties */
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
}

.cc_request_form input[type="button"]:hover {
    background-color: #00bfff;
}

/* --- Mobile-Specific Adjustments (Single Column Below 1000px) --- */
@media (max-width: 1000px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0; 
    }
    
    .player-container, .sidebar-container {
        max-width: 600px; 
        width: 95%;
        margin-bottom: 20px;
		min-width: unset; /* Remove min-width restriction on mobile */
    }
    
    .sidebar-container {
        margin-top: 0;
    }
	
	.desktop-banner-wrapper {
        display: none; /* Hide the banner from the sidebar on mobile */
    }
	
	/* NEW: Flip banner visibility on mobile */
    .mobile-banner-wrapper {
        display: block; /* Show at the top on mobile */
        margin-top: 10px; /* Space below the sticky nav */
    }
    
    .header-banner {
        margin-top: 20px; /* Add space above the banner when stacking */
    }
}

@media (max-width: 600px) {
    main {
        padding: 5px;
    }

    .player-container {
        padding: 10px;
		max-width: 600px; 
        width: 95%;
        margin-bottom: 20px;
        min-width: unset;
    }
	
    
    .now-playing-container, .current-show-container, .server-status-container {
        width: 85%; 
        max-width: none;
        margin: 10px auto; 
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-links {
        flex-direction: column;
        gap: 8px;
    }

    .social-link {
        width: 90%;
        max-width: none;
    }
	
	.content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0; 
    }
	
	.sidebar-container {
        max-width: 600px; 
        width: 95%;
        margin-bottom: 20px;
        min-width: unset;
    }
    
    .sidebar-container {
        margin-top: 0;
    }
    

    
    

    .now-playing-container h3, .current-show-container h3, .server-status-container h3 {
        padding-bottom: 5px;
    }

    #stream-select, #audio-player {
        width: 100%;
    }
}