/* =============================================================================
   Pastor Huruma Nkone — site layout + components
   Color tokens (palette, gradients, fonts, color-tinted shadows) come from one
   of the theme files in assets/css/themes/. The active theme is loaded
   BEFORE this file so its :root values are inherited everywhere below.
   ============================================================================= */

/* ---------- layout tokens (theme-independent) ---------- */
:root {
    --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem;
    --s-5:1.5rem; --s-6:2rem; --s-7:3rem; --s-8:4rem; --s-9:6rem; --s-10:8rem;

    --r-sm:10px; --r-md:16px; --r-lg:22px; --r-xl:28px; --r-2xl:36px;

    --container: 1200px;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-ink-2);
    background: var(--c-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent-700); }
button { font: inherit; cursor: pointer; }

h1,h2,h3,h4 {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 0 0 var(--s-4);
    color: var(--c-primary-700);
}
h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.3vw + 1rem, 1.6rem); }
p  { margin: 0 0 var(--s-4); }

::selection { background: var(--c-accent); color: var(--c-primary-700); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding: var(--s-8) 0; }
@media (min-width: 768px) { .section { padding: var(--s-10) 0; } }

.eyebrow {
    font-family: var(--f-sans);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    color: var(--c-accent-700);
    font-weight: 700;
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(45,108,208,.10);
}
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--c-muted); max-width: 60ch; font-weight: 400; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245,239,227,.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(224,215,196,.6);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
    display: inline-flex; align-items: center; gap: var(--s-3);
    font-family: var(--f-display); font-weight: 700;
    color: var(--c-primary-700); font-size: 1.05rem;
}
.brand-mark {
    width: 40px; height: 40px;
    background: var(--g-hero);
    color: var(--c-surface-2);
    display: grid; place-items: center;
    border-radius: var(--r-md);
    font-family: var(--f-display); font-weight: 700;
    font-size: .85rem;
    box-shadow: var(--sh-2);
    letter-spacing: 0;
}
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: var(--s-5); }
@media (min-width: 900px) { .nav-links { display: flex; align-items: center; } }
.nav-links a { color: var(--c-ink); font-weight: 500; font-size: .94rem; padding: var(--s-2) 0; position: relative; }
.nav-links a.is-active { color: var(--c-primary); }
.nav-links a.is-active::after {
    content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent);
}

.lang-switch { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--c-surface-2); border: 1px solid var(--c-line);
    color: var(--c-ink);
    padding: .5rem .85rem; border-radius: 999px;
    font-size: .85rem; font-weight: 600; transition: all .15s;
}
.lang-toggle:hover { border-color: var(--c-primary-300); box-shadow: var(--sh-1); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 200px;
    background: var(--c-surface-2); border: 1px solid var(--c-line);
    border-radius: var(--r-lg); box-shadow: var(--sh-3);
    list-style: none; margin: 0; padding: var(--s-2);
    display: none; z-index: 60;
}
.lang-menu.is-open { display: block; animation: pop-in .18s ease-out; }
.lang-menu li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .65rem .8rem; color: var(--c-ink); border-radius: var(--r-sm);
    font-size: .92rem; font-weight: 500;
}
.lang-menu li a:hover, .lang-menu li a.is-current { background: var(--c-surface-alt); color: var(--c-primary-700); }
.lang-menu li a small { color: var(--c-muted); font-weight: 600; }

@keyframes pop-in {
    from { opacity: 0; transform: translateY(-6px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: var(--c-surface-2); border: 1px solid var(--c-line);
    border-radius: var(--r-md); color: var(--c-primary); transition: all .15s;
}
.menu-toggle:hover { box-shadow: var(--sh-1); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

.mobile-panel {
    position: fixed; inset: 68px 0 0 0;
    background: var(--c-surface); padding: var(--s-6) var(--s-5);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 40; overflow-y: auto;
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel ul { list-style: none; padding: 0; margin: 0 0 var(--s-6); }
.mobile-panel li { border-bottom: 1px solid var(--c-line-soft); }
.mobile-panel a {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s-4) 0;
    color: var(--c-ink); font-size: 1.15rem; font-family: var(--f-display); font-weight: 600;
}
.mobile-panel a::after { content: '→'; color: var(--c-accent); font-family: var(--f-sans); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: .9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600; font-size: .92rem;
    border: 1px solid transparent;
    transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .2s, background .15s, color .15s;
    white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--g-hero); color: var(--c-surface-2);
    box-shadow: 0 8px 20px -8px rgba(15,46,91,.45);
}
.btn-primary:hover { color: var(--c-surface-2); box-shadow: 0 14px 30px -8px rgba(15,46,91,.55); }

.btn-accent {
    background: var(--g-accent); color: var(--c-primary-700);
    box-shadow: 0 8px 20px -6px var(--c-accent-glow);
}
.btn-accent:hover { color: var(--c-primary-700); box-shadow: 0 14px 30px -6px var(--c-accent-glow); }

.btn-ghost { background: var(--c-surface-2); color: var(--c-primary-700); border-color: var(--c-line); }
.btn-ghost:hover { box-shadow: var(--sh-2); color: var(--c-primary); }

.btn-amazon {
    background: linear-gradient(135deg, #FFB200 0%, #FF8A00 100%);
    color: #131A22;
    box-shadow: 0 6px 16px -6px rgba(255,138,0,.5);
}
.btn-amazon:hover { color: #131A22; box-shadow: 0 12px 26px -6px rgba(255,138,0,.6); }

.btn-sm  { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-lg  { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: var(--s-7) 0 var(--s-9);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: ''; position: absolute; inset: -20% -20% 30% -20%;
    background:
        radial-gradient(45% 60% at 75% 30%, var(--c-accent-glow), transparent 65%),
        radial-gradient(50% 70% at 20% 80%, rgba(45,108,208,.18), transparent 65%);
    z-index: -1; filter: blur(20px);
}
@media (min-width: 768px) { .hero { padding: var(--s-9) 0 var(--s-10); } }

.hero-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-9); } }
.hero h1 { margin-top: var(--s-3); }
.hero .lead { font-size: 1.22rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero-portrait {
    aspect-ratio: 4 / 5;
    background: var(--c-primary);
    border-radius: var(--r-2xl);
    overflow: hidden; position: relative;
    box-shadow: var(--sh-3);
    transform: rotate(-1.5deg);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.hero-portrait:hover { transform: rotate(0deg); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6,24,56,.5) 100%);
    z-index: 2; pointer-events: none;
}
.hero-portrait::after {
    content: ''; position: absolute; right: -20px; top: -20px;
    width: 80px; height: 80px;
    background: var(--g-accent);
    border-radius: 50%;
    box-shadow: var(--sh-glow); z-index: -1;
}

.gold-rule {
    width: 64px; height: 4px;
    background: var(--g-accent);
    margin: var(--s-4) 0;
    border-radius: 2px;
}

/* ---------- cards ---------- */
.card {
    background: var(--c-surface-2);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    display: flex; flex-direction: column;
    box-shadow: var(--sh-1);
    border: 1px solid rgba(224,215,196,.4);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card-title { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--c-primary-700); margin: 0; line-height: 1.25; }
.card-text { color: var(--c-muted); font-size: .92rem; margin: 0; flex: 1; line-height: 1.55; }

/* book card — premium mobile-app feel */
.book-card {
    border-radius: 20px;
    box-shadow: 0 4px 14px -6px rgba(22,62,77,.10), 0 2px 4px rgba(22,62,77,.04);
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
}
.book-card:hover, .book-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -12px rgba(22,62,77,.22), 0 8px 20px -6px rgba(245,130,32,.18);
}
.book-card .book-cover {
    display: block;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(245,130,32,.10), transparent 70%),
        linear-gradient(160deg, var(--c-surface-alt) 0%, var(--c-line-soft) 100%);
    overflow: hidden; position: relative;
    padding: 14px 14px 0;
}
.book-card .book-cover img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 8px 18px rgba(22,62,77,.25));
}
.book-card:hover .book-cover img { transform: scale(1.04) translateY(-2px); }

/* Featured badge — overlay star pill on covers */
.book-card .book-cover .featured-badge {
    position: absolute;
    top: 10px; right: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: .3rem .55rem;
    background: var(--c-accent, #F58220);
    color: #fff;
    border-radius: 999px;
    font-size: .65rem; font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px -2px rgba(245,130,32,.5);
    z-index: 2;
}

/* Book card body — bigger, bolder mobile typography */
.book-card .card-body { padding: var(--s-5) var(--s-5) var(--s-5); gap: var(--s-3); }
.book-card .card-title {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
}
.book-card .card-text { font-size: .88rem; line-height: 1.5; }
.book-card .btn-amazon {
    align-self: stretch;
    justify-content: center;
    padding: .8rem 1.1rem;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px -6px rgba(255,138,0,.5);
}

/* On phones < 480px give books more breathing room */
@media (max-width: 479px) {
    .book-card .card-title { font-size: 1.05rem; }
    .book-card .card-body { padding: var(--s-4); }
}

.video-card .video-thumb {
    aspect-ratio: 16 / 9;
    background: var(--c-primary-700);
    overflow: hidden; position: relative;
}
.video-card .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play-icon {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(15,46,91,0) 50%, rgba(6,24,56,.5));
    color: var(--c-surface-2); transition: background .2s;
}
.video-card:hover .play-icon { background: rgba(15,46,91,.4); }
.play-icon svg { width: 64px; height: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); transition: transform .3s; }
.video-card:hover .play-icon svg { transform: scale(1.1); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* podcast platforms — app tile style */
.platform-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .platform-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 900px) { .platform-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.platform-card {
    display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
    padding: var(--s-6) var(--s-3);
    background: var(--c-surface-2);
    border-radius: var(--r-xl);
    transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    color: var(--c-ink); text-align: center;
    border: 1px solid rgba(224,215,196,.4);
    box-shadow: var(--sh-1);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: var(--c-primary-700); }
.platform-icon {
    width: 56px; height: 56px; display: grid; place-items: center;
    background: var(--c-surface-alt); color: var(--c-primary);
    border-radius: var(--r-md); font-size: 1.4rem; font-weight: 700;
}
.platform-icon svg { width: 32px; height: 32px; display: block; }
.platform-name { font-weight: 600; font-size: .9rem; }

/* ---------- Sauti ya Muruma podcast brand ---------- */
.podcast-brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--s-5);
    padding: var(--s-4) var(--s-5);
    background: var(--c-surface-2);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-line-soft);
    box-shadow: var(--sh-1);
}
.podcast-wordmark {
    max-width: 360px; width: 100%; height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* JPG white bg blends into the card */
}
@media (min-width: 768px) {
    .podcast-brand { padding: var(--s-5) var(--s-7); }
    .podcast-wordmark { max-width: 440px; }
}

/* podcast mark used as a centered hero on the home podcast section */
.podcast-mark {
    width: 84px; height: 84px;
    border-radius: 22px;
    background: var(--c-surface-2);
    padding: 10px;
    box-shadow: var(--sh-2);
    object-fit: contain;
    margin: 0 0 var(--s-4);
}

.iframe-16x9 {
    position: relative; width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--c-primary-700);
    border-radius: var(--r-xl); overflow: hidden;
    box-shadow: var(--sh-2);
}
.iframe-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .form-row-2 { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: var(--s-2); color: var(--c-ink); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=number], input[type=date], input[type=file], textarea, select {
    width: 100%; padding: .9rem 1.1rem; font: inherit;
    background: var(--c-surface-2); border: 1.5px solid var(--c-line);
    border-radius: var(--r-md); color: var(--c-ink);
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; font-family: inherit; }
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(15,46,91,.10);
}
input[type=file] { padding: .65rem 1rem; }

.honeypot { position: absolute; left: -10000px; top: -10000px; }

.alert { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid; margin-bottom: var(--s-5); font-weight: 500; }
.alert-ok    { background: #E8F4EE; border-color: #B6DCC6; color: #1F5A3E; }
.alert-err   { background: #FBECEC; border-color: #E9C3C1; color: #7E2E2B; }

/* ---------- footer ---------- */
.site-footer {
    background: var(--g-hero); color: #C7D5D6;
    padding: var(--s-8) 0 var(--s-5);
    margin-top: var(--s-9);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.site-footer a { color: var(--c-accent-300); }
.site-footer a:hover { color: var(--c-surface-2); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: var(--c-surface-2); font-size: 1rem; font-family: var(--f-sans); font-weight: 700; margin-bottom: var(--s-3); }
.socials { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.socials a {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%; transition: all .2s;
}
.socials a:hover { background: var(--c-accent); color: var(--c-primary-700); border-color: var(--c-accent); transform: translateY(-2px); }
.footer-bottom {
    margin-top: var(--s-7); padding-top: var(--s-4);
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .85rem; color: #A5BABA;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
}

/* ---------- live radio widget ---------- */
.radio-section { padding: var(--s-7) 0; }
.radio-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--s-6);
    background: var(--g-hero);
    color: var(--c-surface-2);
    border-radius: var(--r-2xl);
    padding: var(--s-7) var(--s-6);
    box-shadow: var(--sh-3);
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .radio-card { grid-template-columns: 1.4fr 1fr; padding: var(--s-8); }
}
.radio-card .eyebrow {
    background: rgba(255,255,255,.12);
    color: #C8DCFF;
}
.radio-card h2 { color: var(--c-surface-2); }
.radio-card .lead { color: #C8DCFF; }
.radio-card audio {
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}
.radio-card audio::-webkit-media-controls-panel {
    background-color: rgba(255,255,255,.04);
}
.radio-card .btn-ghost { background: rgba(255,255,255,.1); color: var(--c-surface-2); border-color: rgba(255,255,255,.2); }
.radio-card .btn-ghost:hover { background: rgba(255,255,255,.18); color: var(--c-surface-2); }

.radio-live-dot {
    display: inline-block; width: 10px; height: 10px;
    background: var(--c-accent);
    border-radius: 50%;
    margin-right: .5rem;
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: .55; }
}

.radio-art {
    display: none;
    justify-content: center;
    align-items: end;
    height: 100%;
    min-height: 180px;
}
@media (min-width: 768px) { .radio-art { display: flex; } }

.radio-waves {
    display: flex; gap: 10px; align-items: end;
    height: 130px;
}
.radio-waves span {
    display: block;
    width: 14px;
    background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-primary-400) 100%);
    border-radius: 8px;
    animation: wave 1.2s ease-in-out infinite;
    opacity: .9;
}
.radio-waves span:nth-child(1) { animation-delay: -1.2s; height: 60%; }
.radio-waves span:nth-child(2) { animation-delay: -1.0s; height: 90%; }
.radio-waves span:nth-child(3) { animation-delay: -0.8s; height: 45%; }
.radio-waves span:nth-child(4) { animation-delay: -0.6s; height: 80%; }
.radio-waves span:nth-child(5) { animation-delay: -0.4s; height: 55%; }
@keyframes wave {
    0%, 100% { transform: scaleY(.55); }
    50%      { transform: scaleY(1); }
}

/* ---------- floating live-radio mini-player ---------- */
.radio-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    font-family: var(--f-sans);
    /* On mobile we sit above the bottom tab bar */
    --rf-bottom: 16px;
}
@media (max-width: 899px) {
    .radio-float {
        right: 12px;
        left: auto;
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

/* ---- collapsed pill ---- */
.radio-float-pill {
    display: inline-flex; align-items: center; gap: .7rem;
    padding: .6rem .8rem .6rem 1rem;
    background: var(--g-hero);
    color: var(--c-surface-2);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 32px -10px rgba(15,46,91,.5), 0 4px 10px -4px rgba(15,46,91,.25);
    transition: transform .15s, box-shadow .25s;
    font: inherit;
}
.radio-float-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(15,46,91,.6), 0 6px 14px -4px rgba(15,46,91,.3);
}
.radio-float-pill .radio-float-text {
    display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
    gap: 2px;
}
.radio-float-pill .radio-float-text small {
    font-size: .58rem; font-weight: 700;
    letter-spacing: .15em;
    color: var(--c-accent-300);
    text-transform: uppercase;
}
.radio-float-pill .radio-float-text strong {
    font-size: .82rem; font-weight: 600; color: var(--c-surface-2);
}
.radio-float-pill .radio-float-icon {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
}

/* ---- live-pulse dot ---- */
.radio-float-dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: #FF4D4F;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(255,77,79,.6);
    animation: radio-float-pulse 1.7s ease-out infinite;
    flex-shrink: 0;
}
@keyframes radio-float-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,77,79,.6); }
    70%  { box-shadow: 0 0 0 10px rgba(255,77,79,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,77,79,0); }
}

/* ---- expanded card ---- */
.radio-float-card {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 320px;
    max-width: calc(100vw - 24px);
    background: var(--c-surface-2);
    border-radius: 20px;
    box-shadow: 0 30px 70px -16px rgba(15,46,91,.4), 0 12px 24px -8px rgba(15,46,91,.18);
    overflow: hidden;
    border: 1px solid var(--c-line);
    animation: radio-card-in .22s cubic-bezier(.4,0,.2,1);
}
@keyframes radio-card-in {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
.radio-float-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1rem;
    background: var(--g-hero);
    color: var(--c-surface-2);
}
.radio-float-title { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.radio-float-title small {
    display: block; font-size: .6rem; font-weight: 700;
    letter-spacing: .15em; color: var(--c-accent-300);
    text-transform: uppercase;
}
.radio-float-title strong {
    display: block; font-size: 1rem; line-height: 1.2;
    color: var(--c-surface-2);
    font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.radio-float-close {
    display: grid; place-items: center;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.14);
    border: 0;
    border-radius: 50%;
    color: var(--c-surface-2);
    cursor: pointer;
    transition: background .15s;
}
.radio-float-close:hover { background: rgba(255,255,255,.22); }

.radio-float-player {
    padding: 1rem;
    background: var(--c-surface-2);
    min-height: 80px;
}
.radio-float-player audio { width: 100%; }
/* Centova widget fits within the card */
.radio-float-player .cc_player {
    width: 100% !important;
    max-width: 100%;
}

.radio-float-tunein {
    display: block;
    padding: .7rem 1rem;
    text-align: center;
    background: var(--c-surface-alt);
    color: var(--c-primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--c-line);
}
.radio-float-tunein:hover { background: var(--c-line-soft); color: var(--c-primary-700); }

/* On collapse: hide the card, show the pill */
.radio-float[data-state="expanded"] .radio-float-pill { display: none; }
.radio-float[data-state="collapsed"] .radio-float-card { display: none; }

/* mobile bottom tab bar — full-width, flush bottom (iOS tab bar pattern) */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
    z-index: 45;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -6px 20px -8px rgba(15,46,91,.10);
}
@media (max-width: 899px) {
    .bottom-nav { display: flex; justify-content: space-around; align-items: stretch; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .site-footer { margin-bottom: 0; }
}
.bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .45rem .25rem .25rem;
    color: var(--c-muted);
    font-size: .62rem; font-weight: 600;
    letter-spacing: .02em;
    gap: .25rem;
    text-decoration: none;
    transition: color .15s;
    position: relative;
}
.bottom-nav a svg { width: 22px; height: 22px; stroke-width: 1.8; }
.bottom-nav a:hover { color: var(--c-primary); }
.bottom-nav a.is-active { color: var(--c-primary); }
.bottom-nav a.is-active svg { color: var(--c-primary); stroke-width: 2.2; }
.bottom-nav a.is-active::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px;
    background: var(--c-primary);
    border-radius: 0 0 3px 3px;
}

/* chips / filters */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip {
    background: var(--c-surface-2); border: 1px solid var(--c-line); color: var(--c-ink);
    padding: .55rem 1.1rem; border-radius: 999px;
    font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.chip:hover { box-shadow: var(--sh-1); }
.chip.is-active { background: var(--c-primary); color: var(--c-surface-2); border-color: var(--c-primary); }

/* utilities */
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.empty {
    padding: var(--s-7) var(--s-5);
    background: var(--c-surface-2);
    border: 2px dashed var(--c-line);
    border-radius: var(--r-xl);
    text-align: center; color: var(--c-muted);
}
.mt-3 { margin-top: var(--s-3); } .mt-5 { margin-top: var(--s-5); } .mb-5 { margin-bottom: var(--s-5); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ===========================================================================
   ADMIN
   =========================================================================== */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: #F4F5F7; }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 260px 1fr; } }

.admin-side { background: var(--g-hero); color: #BDD0D0; padding: var(--s-5); }
.admin-side .brand { color: var(--c-surface-2); font-size: 1.15rem; }
.admin-side .brand-mark { background: var(--c-surface-2); color: var(--c-primary); }
.admin-nav { list-style: none; padding: 0; margin: var(--s-6) 0 0; }
.admin-nav li { margin-bottom: var(--s-1); }
.admin-nav a {
    display: flex; align-items: center; gap: var(--s-3);
    padding: .7rem .9rem; border-radius: var(--r-sm);
    color: #BDD0D0; font-size: .95rem; font-weight: 500;
}
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255,255,255,.08); color: var(--c-surface-2); }

.admin-main { padding: var(--s-6); }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); flex-wrap: wrap; gap: var(--s-3); }
.admin-head h1 { color: var(--c-ink); margin: 0; font-family: var(--f-sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.admin-card { background: var(--c-surface-2); border: 1px solid #E5E7EB; border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--sh-1); }

.stat-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); margin-bottom: var(--s-6); }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--c-surface-2); border: 1px solid #E5E7EB; border-radius: var(--r-md); padding: var(--s-5); }
.stat .num { font-size: 2rem; font-weight: 700; color: var(--c-primary-700); font-family: var(--f-display); }
.stat .label { color: var(--c-muted); font-size: .9rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .75rem .6rem; text-align: left; border-bottom: 1px solid var(--c-line-soft); vertical-align: middle; }
.admin-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.admin-table tr:hover td { background: #FAFAFA; }
.admin-table td.actions { white-space: nowrap; text-align: right; }
.admin-table .thumb { width: 56px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--c-surface-alt); }
.admin-table .thumb-video { width: 96px; height: 54px; }
.badge { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--c-surface-alt); color: var(--c-primary-700); }
.badge-on  { background: #E1F1E5; color: #1F5A3E; }
.badge-off { background: #F3D7D6; color: #7E2E2B; }

.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--c-line); margin: var(--s-3) 0 var(--s-5); }
.tab-btn {
    background: transparent; border: 0;
    padding: .65rem 1rem; color: var(--c-muted);
    font-weight: 600; font-size: .9rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s; cursor: pointer;
}
.tab-btn:hover { color: var(--c-ink); }
.tab-btn.is-active { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

.form-actions { display: flex; gap: .75rem; align-items: center; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-line-soft); }
.form-actions .danger-zone { margin-left: auto; }

.btn-danger {
    background: linear-gradient(135deg, #C04A47 0%, #9A2F2C 100%);
    color: var(--c-surface-2);
    box-shadow: 0 6px 16px -6px rgba(192,74,71,.4);
}
.btn-danger:hover { color: var(--c-surface-2); box-shadow: 0 10px 22px -6px rgba(192,74,71,.55); }

.check-row { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.check-row label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; cursor: pointer; font-weight: 500; }
.check-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--c-primary); }

.help { font-size: .82rem; color: var(--c-muted); margin: .35rem 0 0; }

.img-preview { display: block; max-width: 220px; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-surface-alt); margin-top: var(--s-3); }

.auth-wrap {
    min-height: 100vh; display: grid; place-items: center;
    background:
        radial-gradient(50% 60% at 80% 20%, var(--c-accent-glow), transparent 60%),
        radial-gradient(60% 60% at 20% 80%, rgba(45,108,208,.15), transparent 60%),
        var(--c-surface);
    padding: var(--s-5);
}
.auth-card { background: var(--c-surface-2); border-radius: var(--r-2xl); box-shadow: var(--sh-3); width: 100%; max-width: 440px; padding: var(--s-7) var(--s-6); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: var(--s-3); }
.auth-card .gold-rule { margin-top: 0; }
