/* ============================================================================
   Lynden Radio v3 — design system
   Green + gold heritage, modernized into a dark immersive shell.
   ============================================================================ */
:root {
    --green:        #2d582d;
    --green-mid:    #234420;
    --green-dark:   #16301a;
    --green-deep:   #0d1a0d;
    --gold:         #d9a521;
    --gold-soft:    #f0cf7a;
    --gold-deep:    #a97c14;
    --cream:        #f5efe0;
    --paper:        #fbf7ec;
    --ink:          #17210f;
    --live:         #e0483c;
    --border:       rgba(217,165,33,0.22);
    --muted:        rgba(245,239,224,0.62);
    --shadow:       0 18px 50px rgba(0,0,0,0.45);
    --radius:       16px;
    --container:    1180px;
    --header-h:     72px;
    --player-h:     78px;
    --font:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --display:      'Anton', 'Oswald', 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--cream);
    background: var(--green-deep);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    padding-bottom: var(--player-h);
    -webkit-font-smoothing: antialiased;
}
img, iframe, canvas, video { max-width: 100%; }
.container { width: 100%; }
a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.reduced { } @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }

/* ---------- HEADER ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(22,48,26,0.96), rgba(13,26,13,0.9));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.brand .txt strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--gold-soft); line-height: 1; }
.brand .txt span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
    color: var(--cream); font-weight: 600; font-size: .92rem;
    padding: 8px 14px; border-radius: 10px; position: relative;
}
.nav a:hover { background: rgba(217,165,33,0.12); color: var(--gold-soft); }
.nav a.active { color: var(--gold-soft); }
.nav a.active::after { content:''; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background:var(--gold); border-radius:2px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nowbadge {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.28); border: 1px solid var(--border);
    border-radius: 12px; padding: 7px 12px; max-width: 320px;
}
.nowbadge .ico { color: var(--live); font-size: 1rem; }
.nowbadge.off .ico { color: var(--muted); }
.nowbadge .info { min-width: 0; }
.nowbadge .st { font-size: .78rem; font-weight: 700; color: var(--gold-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbadge .tr { font-size: .72rem; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbadge .stats { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.nowbadge .stats i { color: var(--gold); }
.clock { text-align: center; font-family: 'Courier New', monospace; color: var(--cream); }
.clock .t { font-size: .9rem; font-weight: 700; }
.clock .d { font-size: .62rem; color: var(--muted); }
.header-logo-right { height: 48px; width: auto; flex: 0 0 auto; border-radius: 8px; }
@media (max-width: 1050px) { .header-logo-right { display: none; } }
.burger { display: none; background: none; border: none; color: var(--gold-soft); font-size: 1.5rem; cursor: pointer; }

/* ---------- HERO (WebGL canvas backdrop) ---------- */
.hero { position: relative; overflow: hidden; min-height: 62vh; display: grid; place-items: center; text-align: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content:''; position:absolute; inset:0; z-index:1;
    background: radial-gradient(120% 90% at 50% 0%, rgba(45,88,45,0.25), rgba(13,26,13,0.86) 70%); }
.hero .inner { position: relative; z-index: 2; padding: 60px 22px; max-width: 820px; }
.hero .crest { width: 132px; height: 132px; margin: 0 auto 18px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.5)); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--cream); text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hero h1 .gold { color: var(--gold-soft); }
.hero p.lede { font-size: clamp(1rem, 2.2vw, 1.28rem); color: var(--cream); opacity: .92; margin: 14px auto 26px; max-width: 640px; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: none;
    font-weight: 700; font-size: .95rem; padding: 13px 24px; border-radius: 999px; transition: transform .08s ease, filter .2s ease; }
.btn-gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--green-deep); box-shadow: 0 8px 22px rgba(217,165,33,.32); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--cream); border: 1px solid var(--border); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------- SECTIONS ---------- */
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, var(--green-dark), var(--green-deep)); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker { color: var(--gold); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--cream); margin-top: 6px; }

/* ---------- CARDS / CHANNELS ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(217,165,33,0.5); }
.channel { position: relative; overflow: hidden; }
.channel .herald { width: 64px; height: 64px; margin-bottom: 12px; }
.channel h3 { font-size: 1.7rem; color: var(--gold-soft); }
.channel .genre { color: var(--muted); font-size: .84rem; margin: 2px 0 10px; }
.channel .live-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--live); color:#fff; }
.channel .live-chip.off { background: rgba(255,255,255,0.14); color: var(--muted); }
.channel .live-chip .dot { width:7px; height:7px; border-radius:50%; background:#fff; animation: pulse 1.4s infinite; }
.channel .live-chip.off .dot { animation: none; background: var(--muted); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ---------- MINI PLAYER (persistent) ---------- */
.mini-player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: var(--player-h);
    background: linear-gradient(180deg, rgba(22,48,26,0.98), rgba(13,26,13,0.98));
    border-top: 1px solid var(--border); backdrop-filter: blur(12px);
    display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.mini-player .mp-play { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; flex: 0 0 auto;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--green-deep); font-size: 1.15rem; }
.mini-player .mp-play:disabled { opacity: .4; cursor: default; }
.mini-player .mp-info { min-width: 0; }
.mini-player .mp-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player .mp-artist { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player .mp-viz { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-left: 4px; }
.mini-player .mp-viz .bar { width: 4px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.mini-player .mp-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mini-player .mp-listeners { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.mini-player .mp-listeners i { color: var(--gold); }
.mini-player .mp-vol { width: 110px; accent-color: var(--gold); }

/* ---------- AI DJ ---------- */
.aidj { background: linear-gradient(180deg, rgba(217,165,33,0.10), rgba(0,0,0,0.18)); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px; }
.aidj .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.aidj .mic { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--green-deep); display: grid; place-items: center; }
.aidj .who { font-family: var(--display); color: var(--gold-soft); letter-spacing: .04em; }
.aidj .refresh { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; }
.aidj .refresh:hover { color: var(--gold-soft); }
.aidj .blurb { line-height: 1.55; }
.aidj .blurb.thinking { color: var(--muted); font-style: italic; }

/* ---------- NEWS ---------- */
.news-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.news-item:last-child { border-bottom: none; }
.news-item .src { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.news-item h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin: 3px 0; }
.news-item .date { font-size: .74rem; color: var(--muted); }

/* ---------- WEATHER ---------- */
.wx { display: flex; align-items: center; gap: 16px; }
.wx .temp { font-family: var(--display); font-size: 2.6rem; color: var(--gold-soft); }
.wx .cond { color: var(--muted); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--green-deep); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h5 { color: var(--gold-soft); font-family: var(--display); font-size: 1rem; margin-bottom: 12px; letter-spacing: .04em; }
.site-footer a { display: block; color: var(--cream); opacity: .82; padding: 4px 0; font-size: .9rem; }
.site-footer a:hover { opacity: 1; color: var(--gold-soft); }
.site-footer .tag { color: var(--muted); font-size: .86rem; margin-top: 10px; max-width: 260px; }
.site-footer .sponsor { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 30px; }
.site-footer .copy { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 18px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--green-dark); border-bottom: 1px solid var(--border); padding: 10px; gap: 2px;
        transform: translateY(-120%); transition: transform .25s ease; margin: 0; }
    .nav.open { transform: translateY(0); }
    .nav a { padding: 12px 16px; }
    .burger { display: block; }
    .header-right .clock, .header-right .nowbadge { display: none; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
    .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
    .mini-player .mp-vol { display: none; }
}
@media (max-width: 560px) {
    .site-footer .cols { grid-template-columns: 1fr; }
    .brand .txt span { display: none; }
}
