:root {
    --primary-color: #00ffcc;
    --secondary-color: #ffcc00;
    --background-color: #0d0d0d;
    --text-color: #ffffff;
    --surface-color: #1a1a1a; /* For form inputs */
    --border-color: #444;
}

body.light-mode {
    --primary-color: #008066; /* Darker teal for contrast */
    --secondary-color: #b38f00; /* Darker yellow */
    --background-color: #f0f0f0;
    --text-color: #1a1a1a;
    --surface-color: #ffffff;
    --border-color: #ccc;
}
/* --- Global Transitions --- */
a, button {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* --- Global & Accessibility --- */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

.skip-link {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    text-align: left;
    overflow: hidden;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--background-color);
    z-index: 9999;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.6s ease-out; /* Add this line */
}
/* --- Header & Navigation --- */
.site-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-header .logo {
    width: 80px;
    margin: 0;
}
.site-header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin: 0 20px;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav li {
    display: inline-block;
    margin: 0 15px;
}
.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.main-nav a[aria-current="page"] {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
}
#theme-toggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.9em;
    margin-right: 20px;
}
#theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}
/* --- Page-Specific Sections --- */
.welcome-section h2, .error-section h2, .placeholder-section h2, .about-section h2, .contact-section h2, .request-section h2 {
    font-size: 3em;
    color: var(--secondary-color);
}
.welcome-section p, .error-section p, .placeholder-section p {
    font-size: 1.2em;
    max-width: 600px;
}
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: 1.5em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s;
}
.cta-button:hover {
    transform: scale(1.05);
}

.about-section {
    max-width: 800px;
    text-align: left;
}
.about-section p {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 1.5em;
}
.about-section strong {
    color: var(--primary-color);
    font-weight: 500;
}
/* --- Legal & Text Page Styles --- */
.legal-content {
    max-width: 800px;
    text-align: left;
    line-height: 1.7;
}
.legal-content h2 {
    text-align: center;
}
.legal-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
}
.legal-content a {
    color: var(--primary-color);
}
.contact-section {
    max-width: 600px;
    width: 100%;
}
.contact-form { display: flex; flex-direction: column; text-align: left; }
.contact-form label { margin-bottom: 8px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { background-color: #1a1a1a; border: 1px solid #444; border-radius: 5px; padding: 12px; font-size: 1em; color: var(--text-color); margin-bottom: 20px; }
.contact-form button { padding: 15px 30px; background-color: var(--primary-color); color: var(--background-color); font-size: 1.2em; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s, background-color 0.2s; }
.contact-form button:hover { transform: scale(1.05); }
.contact-form button:disabled { background-color: #888; cursor: not-allowed; }

.request-section {
    max-width: 800px;
    width: 100%;
}
.request-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.request-widget {
    width: 100%;
    height: 400px;
    border: 1px solid #333;
    border-radius: 10px;
}

/* --- Listen Page --- */
.player-container { width: 100%; max-width: 600px; }
.player-container h2 { font-size: 3em; color: var(--secondary-color); }
audio { width: 100%; border-radius: 5px; margin-top: 20px; }
audio:focus { outline: 2px solid var(--primary-color); outline-offset: 4px; }
.now-playing { margin-top: 20px; }
.now-playing h3 { font-size: 1.2em; color: #ccc; margin: 0 0 10px 0; font-weight: 300; text-transform: uppercase; }
#song-title { display: block; font-size: 1.5em; color: var(--secondary-color); font-weight: 500; }
#song-artist { display: block; color: #cccccc; font-size: 1.1em; }
#song-artist:not(:empty)::before { content: 'by '; }
.popout-button { background-color: var(--secondary-color); color: var(--background-color); border: none; border-radius: 50px; padding: 10px 20px; font-size: 1em; font-weight: 500; cursor: pointer; margin-bottom: 20px; transition: transform 0.2s; }
.popout-button:hover { transform: scale(1.05); }
.ways-to-listen { margin-top: 40px; width: 100%; max-width: 600px; padding-top: 30px; border-top: 1px solid #333; }
.ways-to-listen h3 { font-size: 1.2em; color: #ccc; margin: 0 0 10px 0; font-weight: 300; text-transform: uppercase; }
.ways-to-listen p { color: #ccc; margin-top: 0; }
.listen-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.listen-link { display: inline-block; padding: 12px 25px; border: 2px solid var(--primary-color); border-radius: 50px; color: var(--primary-color); text-decoration: none; font-size: 1.1em; transition: background-color 0.2s, color 0.2s; }
.listen-link:hover { background-color: var(--primary-color); color: var(--background-color); }
.alexa-instruction { margin-top: 20px; color: #ccc; font-size: 1.1em; }
/* --- Recently Played Styles --- */
        .recently-played {
            margin-top: 20px;
            width: 100%;
        }
        .recently-played h4 {
            font-size: 1em;
            color: #ccc;
            margin: 0 0 10px 0;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .recently-played ol {
            list-style: none;
            padding: 0;
            margin: 0;
            color: #888;
        }
        .recently-played li {
            margin-bottom: 5px;
            font-size: 0.9em;
        }
/* --- Footer --- */
.site-footer { background-color: #000; color: #ccc; padding: 40px 20px 10px 20px; text-align: left; margin-top: 40px; border-top: 2px solid var(--primary-color); }
.footer-main { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; max-width: 1200px; margin: 0 auto 30px auto; }
.footer-column { flex: 1; min-width: 200px; }
.footer-column h3, .footer-column h4 { color: var(--text-color); margin-top: 0; text-transform: uppercase; font-size: 1.1em; }
.footer-column.footer-brand h3 { font-size: 1.5em; margin: 10px 0 5px 0; color: var(--primary-color); }
.footer-column.footer-brand p { font-size: 1em; color: #ccc; margin: 0; }
.footer-logo { width: 60px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.footer-column ul a:hover { color: var(--primary-color); }
.footer-bottom-bar { border-top: 1px solid #333; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.footer-bottom-bar p { margin: 5px 10px; }
.footer-bottom-bar ul { list-style: none; padding: 0; margin: 5px 10px; }
.footer-bottom-bar ul li { display: inline-block; margin-left: 20px; }
.footer-bottom-bar ul a { color: #ccc; text-decoration: none; }
.footer-bottom-bar ul a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
    }
    .site-header h1 {
        margin: 15px 0;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- 404 Page Specific Styles --- */
.secondary-links {
    margin-top: 30px;
}
.secondary-links a {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 1.1em;
    margin: 0 15px;
}
.secondary-links span {
    color: #555;
}
/* --- Branded Cookie Consent Banner Styles --- */
:root {
    /* ... your existing variables ... */

    /* Cookie Banner Variables */
    --cc-bg: var(--background-color);
    --cc-text: var(--text-color);
    --cc-btn-primary-bg: var(--primary-color);
    --cc-btn-primary-text: var(--background-color);
    --cc-btn-secondary-bg: #2a2a2a;
    --cc-btn-secondary-text: var(--text-color);
    --cc-btn-secondary-border: #444;
}

body.light-mode {
    /* Cookie Banner Light Mode Variables */
    --cc-bg: var(--background-color);
    --cc-text: var(--text-color);
    --cc-btn-primary-bg: var(--primary-color);
    --cc-btn-primary-text: var(--background-color);
    --cc-btn-secondary-bg: #e0e0e0;
    --cc-btn-secondary-text: var(--text-color);
    --cc-btn-secondary-border: #ccc;
}
/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}