:root {
    /* Base Color tokens - Overridden by locked-config.js */
    --primary-h: 220;
    --primary-s: 90%;
    --primary-l: 60%;
    
    --accent-h: 280;
    --accent-s: 85%;
    --accent-l: 70%;
    
    /* System Colors derived from tokens */
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --bg-dark: #000; /* Overridden by generator */
    --bg-card: rgba(20, 20, 20, 0.4);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.65);
    
    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(25px);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    
    /* Animation Tokens */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Dynamic Theme Variations (Selected via JS) */
    --card-radius: 24px;
    --hero-gradient: linear-gradient(135deg, #fff 50%, var(--primary));
}

/* --- Style Modes --- */

/* Minimal Mode */
[data-style="minimal"] {
    --glass-blur: blur(0px);
    --glass-bg: rgba(255, 255, 255, 0.01);
    --bg-card: #0a0a0a;
    --card-radius: 12px;
    --hero-gradient: #fff;
}

[data-style="minimal"] .station-card {
    border-radius: var(--card-radius);
    border-color: rgba(255,255,255,0.03);
}

/* Neon Mode */
[data-style="neon"] {
    --primary-l: 65%;
    --accent-l: 75%;
    --glass-shadow: 0 0 50px hsla(var(--primary-h), 100%, 50%, 0.2);
}

[data-style="neon"] .station-card:hover {
    box-shadow: 0 0 30px hsla(var(--primary-h), 100%, 60%, 0.3);
}

/* Deep Mode */
[data-style="deep"] {
    --bg-dark: #020205;
    --bg-card: rgba(0,0,0,0.8);
    --glass-blur: blur(40px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main, 'Outfit'), -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* --- Premium Background Engine --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 15% 15%, hsla(var(--primary-h), 90%, 55%, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, hsla(var(--accent-h), 90%, 55%, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, hsla(var(--primary-h), 60%, 40%, 0.08) 0%, transparent 60%);
    z-index: -1;
    animation: meshMove 40s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes meshMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(5deg); }
}

/* --- Layout Containers --- */
.nav-container, .hero-content, .content-area, .footer-grid, .player-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Professional Glass Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.logo-area {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 40px hsla(var(--accent-h), 100%, 70%, 0.5);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin: 0 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.search-bar {
    flex-grow: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.7rem 1.4rem;
    color: white;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 40px hsla(var(--primary-h), 100%, 60%, 0.15);
}

.btn-mini {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-mini:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px hsla(var(--primary-h), 100%, 65%, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Station Grid & Cards --- */
.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 60px 0;
}

.station-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.station-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(30, 30, 30, 0.6);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}

.card-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #ffd700;
    background: rgba(0,0,0,0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    width: fit-content;
    font-weight: bold;
}

.station-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.card-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.hidden {
    display: none !important;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: hsla(var(--primary-h), 100%, 50%, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

/* --- Fixed Player Bar --- */
.player-bar {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    height: 100px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 2000;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.author-byline {
    font-weight: 700;
    color: var(--primary);
}

.short-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: auto;
}

/* --- Station Detail View --- */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    align-items: center;
}

.source-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.source-link:hover {
    text-decoration: underline;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 3rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.back-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
}

.detail-header img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.detail-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.detail-location-time {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.location {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 600;
}

.detail-time {
    font-family: monospace;
    color: #ffd700;
    font-weight: 900;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.4);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.station-article {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text-dim);
}

.station-article h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.ad-placeholder {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 2rem 0;
}


.player-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.current-station {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 30%;
}

.current-station img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #000;
}

.station-info #player-station-name {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
}

.station-info #player-station-tags {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.control-btn {
    background: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px hsla(var(--primary-h), 100%, 65%, 0.4);
}

.control-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 20px 50px hsla(var(--primary-h), 100%, 65%, 0.6);
}

.control-btn svg {
    width: 28px;
    fill: #000;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-control input {
    accent-color: var(--primary);
    width: 100px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 900;
    color: #ff4444;
    font-size: 0.9rem;
    width: 30%;
    justify-content: flex-end;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Footer --- */
.main-footer {
    padding: 100px 0 180px;
    background: rgba(0,0,0,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
}

.footer-info h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--primary);
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

.footer-links-minimal {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-links-minimal a {
    color: var(--text-dim);
    transition: var(--transition-fast);
}

.footer-links-minimal a:hover {
    color: var(--primary);
}

/* --- Hidden Utility --- */
.hidden { display: none !important; }

/* --- Category Bar --- */
.category-bar {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cat-btn:hover, .cat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 25px hsla(var(--primary-h), 100%, 60%, 0.3);
}

/* --- Visualizer --- */
.visualizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    margin-right: 1.5rem;
}

.bar {
    width: 3px;
    background: var(--primary);
    height: 3px;
    border-radius: 10px;
}

.playing .bar {
    animation: barBounce 1.2s infinite ease-in-out alternate;
}

@keyframes barBounce {
    0% { height: 3px; }
    100% { height: 20px; }
}

/* --- Staggered Entrance Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Legal & Auxiliary Pages --- */
.legal-page {
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.legal-container {
    padding: 140px 2rem 100px;
    max-width: 900px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.legal-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 60%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.legal-content section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.legal-content p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* --- Contact Form UI --- */
.contact-form {
    display: grid;
    gap: 1.2rem;
    max-width: 600px;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 20px hsla(var(--primary-h), 100%, 60%, 0.1);
}

/* --- Contact Page Specific Layout --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-info-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition-fast);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-card-icon {
    font-size: 2.5rem; /* Scaled up for better visibility */
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px hsla(var(--primary-h), 100%, 65%, 0.3));
}

.trust-signal {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Clear Placeholder on Focus UX */
input:focus::placeholder, textarea:focus::placeholder {
    color: transparent;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    word-break: break-all;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.1rem; }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.hidden {
    transform: translateY(100%);
    display: none; /* fallback */
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-actions a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.cookie-actions button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
.breadcrumbs a:hover {
    color: white;
}
.breadcrumbs span {
    font-weight: 600;
    color: white;
}
