/* =====================================================================
   Azmoon Radio — public stylesheet
   Mobile-first; uses CSS logical properties so RTL (ps, fa) and LTR (en)
   layouts flip automatically from the <html dir> attribute.
   ===================================================================== */

:root {
    --primary: #b3121f;
    --primary-dark: #8f0e1c;
    --primary-soft: #fdecee;
    --navy: #0f1e33;
    --navy-2: #172a45;
    --accent: #ffd166;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --text: #18212d;
    --text-2: #3a4556;
    --muted: #5f6b7c;
    --border: #e2e6ec;
    --success: #13795b;
    --warning: #9a6700;
    --danger: #b42318;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 30, 51, .06), 0 4px 16px rgba(15, 30, 51, .06);
    --shadow-lg: 0 10px 30px rgba(15, 30, 51, .16);
    --font-rtl: "Noto Sans Arabic", "Segoe UI", Tahoma, "Arial Unicode MS", sans-serif;
    --font-ltr: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --dock-h: 64px;
    --header-z: 50;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-ltr);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    text-rendering: optimizeLegibility;
}
[dir="rtl"] body, body.rtl { font-family: var(--font-rtl); font-size: 17px; line-height: 1.85; }

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.6; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 44px; padding: .55em 1.2em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s;
    text-align: center; line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent); color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 36px; padding: .3em .9em; font-size: .9em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
    cursor: pointer; font-size: 1.1rem; color: inherit; transition: background .2s;
}
.icon-btn:hover { background: rgba(15, 30, 51, .08); }
.icon-btn--light { color: #fff; }
.icon-btn--light:hover { background: rgba(255, 255, 255, .15); }

.badge {
    display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 999px;
    background: var(--border); color: var(--text-2); font-size: .78rem; font-weight: 600;
}
.badge-breaking { background: var(--primary); color: #fff; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header { position: relative; z-index: var(--header-z); background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.topbar { background: var(--navy); color: #cfd8e6; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topbar-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.social-mini { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.social-mini a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; }
.social-mini a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 768px) { .social-mini { display: flex; } }

.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-weight: 600; line-height: 1.5; }
.lang-switch a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lang-switch a.active { background: var(--primary); color: #fff; }

.header-main-inner { display: flex; align-items: center; gap: 8px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand:hover { color: inherit; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); line-height: 1.3; white-space: nowrap; }
.brand-tagline { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
@media (min-width: 576px) { .brand-tagline { display: block; } .brand-logo { width: 52px; height: 52px; } .brand-name { font-size: 1.35rem; } }
.header-main .ad-slot { display: none; }
@media (min-width: 1100px) { .header-main .ad-slot { display: block; margin-inline-start: auto; max-width: 560px; } }
.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.header-main .ad-slot + .header-actions { margin-inline-start: 12px; }

.btn-live {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
    background: var(--primary); color: #fff; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.btn-live:hover { background: var(--primary-dark); color: #fff; }
.btn-live-text { display: none; }
@media (min-width: 420px) { .btn-live-text { display: inline; } }
body.radio-playing .btn-live { background: var(--success); }

.live-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); }
    70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.live-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
    background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.7;
}
.live-badge--lg { font-size: .9rem; padding: 4px 14px; }
.live-badge--sm { font-size: .68rem; padding: 0 8px; }

.search-panel { border-top: 1px solid var(--border); background: var(--surface); padding: 12px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; }
.search-form .btn span { display: none; }
@media (min-width: 576px) { .search-form .btn span { display: inline; } }

.menu-toggle { margin-inline-end: 2px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Main navigation — off-canvas drawer on mobile, bar on desktop */
.main-nav { background: var(--navy); }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; font-weight: 600; }
.nav-drawer-head { display: none; }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu-toggle { background: none; border: 0; color: inherit; cursor: pointer; }

@media (max-width: 1023.98px) {
    .main-nav {
        position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); z-index: 120;
        transform: translateX(-105%); transition: transform .28s ease; overflow-y: auto;
        box-shadow: var(--shadow-lg); padding-bottom: 24px; visibility: hidden;
    }
    [dir="rtl"] .main-nav { transform: translateX(105%); }
    .main-nav.open { transform: translateX(0) !important; visibility: visible; }
    .main-nav .container { padding: 0; }
    .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; }
    .nav-drawer-head .brand-name { color: #fff; }
    .nav-drawer-head .icon-btn { color: #fff; }
    .nav-list li { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .nav-list a { color: #e6ecf5; padding: 13px 20px; }
    .nav-list a.active, .nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
    .nav-list a.active { box-shadow: inset 4px 0 0 var(--primary); }
    [dir="rtl"] .nav-list a.active { box-shadow: inset -4px 0 0 var(--primary); }
    .submenu-toggle { position: absolute; top: 4px; inset-inline-end: 8px; width: 40px; height: 40px; color: #fff; }
    .submenu { display: none; background: rgba(0, 0, 0, .15); }
    .has-children.open > .submenu { display: block; }
    .submenu a { padding-inline-start: 36px; }
    .drawer-lang { padding: 16px 20px; color: #fff; }
    .drawer-lang a { border: 1px solid rgba(255, 255, 255, .25); }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 26, .55); z-index: 110; }
}
@media (min-width: 1024px) {
    .main-nav .container { display: flex; }
    .nav-list { display: flex; flex-wrap: wrap; }
    .nav-list > li { position: relative; }
    .nav-list > li > a { color: #e6ecf5; padding: 11px 12px; font-size: .92rem; border-bottom: 3px solid transparent; }
    .nav-list > li > a:hover, .nav-list > li > a.active { color: #fff; border-bottom-color: var(--primary); background: rgba(255, 255, 255, .04); }
    .submenu-toggle { display: none; }
    .submenu {
        position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; background: var(--surface);
        box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius-sm) var(--radius-sm); display: none; z-index: 60;
    }
    .has-children:hover > .submenu, .has-children:focus-within > .submenu { display: block; }
    .submenu a { padding: 10px 16px; color: var(--text); }
    .drawer-lang, .nav-backdrop { display: none !important; }
}
body.nav-open { overflow: hidden; }

/* Breaking news ticker */
.breaking-bar { background: var(--primary); color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.breaking-label {
    flex-shrink: 0; background: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: .82rem; white-space: nowrap;
}
.breaking-label i { color: var(--accent); }
.ticker { flex: 1; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; gap: 48px; animation: ticker var(--ticker-dur, 40s) linear infinite; }
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-track li { white-space: nowrap; position: relative; font-weight: 500; }
.ticker-track li::before { content: "•"; position: absolute; inset-inline-start: -28px; color: var(--accent); }
.ticker-track a:hover { color: var(--accent); }
.ticker-pause { color: #fff; width: 36px; height: 36px; flex-shrink: 0; }
.ticker-pause:hover { background: rgba(255, 255, 255, .15); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker { overflow-x: auto; mask-image: none; }
    .ticker-track { animation: none; }
    .live-dot { animation: none; }
}

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */
.site-main { min-height: 50vh; outline: none; }
.section { padding-block: 24px; }
@media (min-width: 768px) { .section { padding-block: 32px; } }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .grid { gap: 20px; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .layout-main .grid-4, .layout-main .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .layout-main .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.layout-with-sidebar { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } }
.layout-main { min-width: 0; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--border); position: relative; }
.section-head::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 72px; height: 2px; background: var(--cat, var(--primary)); }
.section-title { font-size: 1.25rem; margin: 0; padding-bottom: 8px; color: var(--navy); }
.section-title i { color: var(--cat, var(--primary)); }
.section-more { font-size: .88rem; font-weight: 600; color: var(--primary); white-space: nowrap; padding-bottom: 8px; }
.section-dark { background: var(--navy); color: #e6ecf5; }
.section-dark .section-title { color: #fff; }
.section-dark .section-head { border-color: rgba(255, 255, 255, .12); }
.section-dark .media-card { background: var(--navy-2); }
.section-dark .media-card-title a { color: #fff; }
.section-dark .news-card-meta { color: #9fb0c8; }

.page-title { font-size: 1.6rem; color: var(--navy); margin: 8px 0 12px; }
@media (min-width: 768px) { .page-title { font-size: 2rem; } }
.page-title--cat { border-inline-start: 6px solid var(--cat, var(--primary)); padding-inline-start: 12px; }
.page-lead { font-size: 1.08rem; color: var(--text-2); }
.page-header { margin-bottom: 20px; }
.page-narrow { max-width: 860px; }
.page-narrow-wide { max-width: 1000px; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border); }
.empty-state i { font-size: 2.4rem; margin-bottom: 12px; color: #c3cad6; display: block; }
.notice-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 40px 20px; }
.notice-box > i { font-size: 2.6rem; color: var(--primary); margin-bottom: 12px; }
.lang-options { list-style: none; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.breadcrumbs li:not(:last-child)::after { content: "/"; opacity: .5; }
.breadcrumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; color: var(--text-2); }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.img-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px;
    background: linear-gradient(135deg, #e8ebf0, #d6dce5); color: #9aa6b8; font-size: 2rem;
}
.news-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8ebf0; }
.news-card-media img, .news-card-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.news-card-title { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { color: var(--text-2); font-size: .93rem; margin: 0; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .8rem; margin-top: auto; }
.cat-label {
    align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--cat, var(--primary));
    background: color-mix(in srgb, var(--cat, var(--primary)) 10%, #fff); padding: 1px 10px; border-radius: 999px;
}
.cat-label:hover { background: var(--cat, var(--primary)); color: #fff; }
.media-badge {
    position: absolute; inset-inline-start: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(179, 18, 31, .92); color: #fff; font-size: .9rem;
}

.news-card--horizontal { flex-direction: row; align-items: stretch; }
.news-card--horizontal .news-card-media { flex: 0 0 38%; max-width: 180px; aspect-ratio: auto; min-height: 100px; }
.news-card--horizontal .news-card-body { padding: 10px 14px; }
.news-card--horizontal .news-card-title { font-size: .98rem; }
.news-card--horizontal .media-badge { width: 30px; height: 30px; font-size: .75rem; }

.news-card--compact { box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--border); background: transparent; }
.news-card--compact .news-card-body { padding: 10px 0; }
.news-card--compact .news-card-title { font-size: .95rem; font-weight: 600; }
.news-card--compact:last-child { border-bottom: 0; }
.news-card--compact:hover { box-shadow: none; }

.news-card--hero { position: relative; height: 100%; }
.news-card--hero .news-card-media { aspect-ratio: 16 / 10; }
.news-card--hero .news-card-title { font-size: 1.35rem; }
@media (min-width: 768px) {
    .news-card--hero { min-height: 420px; }
    .news-card--hero .news-card-media { position: absolute; inset: 0; aspect-ratio: auto; }
    .news-card--hero .news-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 15, 26, 0) 30%, rgba(8, 15, 26, .92) 100%); }
    .news-card--hero .news-card-body { position: relative; margin-top: auto; z-index: 1; padding: 28px; color: #fff; pointer-events: none; }
    .news-card--hero .news-card-body a { pointer-events: auto; }
    .news-card--hero .news-card-title { font-size: 1.9rem; }
    .news-card--hero .news-card-title a:hover { color: var(--accent); }
    .news-card--hero .news-card-excerpt { color: #e6ecf5; }
    .news-card--hero .news-card-meta { color: #cfd8e6; }
    .news-card--hero .cat-label { background: var(--cat, var(--primary)); color: #fff; }
}

.media-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.media-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1627; overflow: hidden; }
.media-card-thumb img, .media-card-thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.media-card:hover .media-card-thumb img { transform: scale(1.05); }
.media-card--podcast .media-card-thumb { aspect-ratio: 1 / 1; }
.media-duration { position: absolute; inset-inline-end: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .75rem; padding: 1px 8px; border-radius: 6px; }
.media-card-body { padding: 12px 14px 14px; }
.media-card-title { font-size: 1rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.media-card-title a:hover { color: var(--primary); }

/* ---------------------------------------------------------------------
   Homepage
   --------------------------------------------------------------------- */
.home-top { padding-top: 20px; }
.home-top-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
    .home-top-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
    .home-radio { order: 2; }
    .home-hero { order: 1; }
}
.featured-strip { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .featured-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .featured-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .featured-strip .news-card--horizontal .news-card-media { max-width: 120px; } }

.cat-block { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
    .cat-block { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .cat-block--alt .cat-lead { order: 2; }
}
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.province-news-item { display: flex; flex-direction: column; gap: 8px; }
.province-chip {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .8rem; font-weight: 600;
    color: #7a4b00; background: #fff4d6; padding: 2px 10px; border-radius: 999px;
}
.province-chip:hover { background: var(--accent); color: var(--navy); }
.home-bottom-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .home-bottom-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------------------------------------------------------------------
   Radio card (home + radio page)
   --------------------------------------------------------------------- */
.radio-card {
    position: relative; overflow: hidden; border-radius: 16px; color: #fff; height: 100%;
    background: linear-gradient(145deg, var(--navy) 0%, #1c2f52 45%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
}
.radio-card-bg {
    position: absolute; inset: 0; opacity: .18; pointer-events: none;
    background: radial-gradient(circle at 85% 15%, #fff 0, transparent 30%), repeating-radial-gradient(circle at 15% 110%, transparent 0 22px, rgba(255, 255, 255, .5) 23px 24px);
}
.radio-card-inner { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 16px; height: 100%; }
@media (min-width: 768px) { .radio-card-inner { padding: 24px; } }
.radio-card-top { display: flex; align-items: center; justify-content: space-between; }
.radio-card-main { display: flex; align-items: center; gap: 14px; }
.radio-card-logo { width: 72px; height: 72px; border-radius: 18px; background: #fff; padding: 4px; flex-shrink: 0; }
.radio-card-name { font-size: 1.5rem; margin: 0; color: #fff; }
.radio-card-alt { margin: 0; color: #cfd8e6; font-size: .95rem; }
.radio-card-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.radio-card-play {
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 8px; border-radius: 999px;
    border: 0; background: #fff; color: var(--primary); font-weight: 800; font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s, background .2s;
}
[dir="rtl"] .radio-card-play { padding: 0 8px 0 22px; }
.radio-card-play i {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.radio-card-play:hover { transform: scale(1.03); }
.radio-card-play[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.radio-card-volume { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 150px; }
.radio-card-volume .volume-range { flex: 1; }
.radio-card-state { font-size: .92rem; color: #dbe3ef; min-height: 1.6em; }
.radio-card-error { background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-sm); padding: 12px; }
.radio-card-error p { margin: 0 0 8px; }
.radio-card-error-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-card-programs { margin: auto 0 0; display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; }
.radio-card-programs > div { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.radio-card-programs dt { color: var(--accent); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.radio-card-programs dd { margin: 0; font-weight: 600; }
.radio-card.is-offline .live-badge { background: #5f6b7c; }
.radio-card.is-offline .live-dot { animation: none; opacity: .5; }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq span { width: 4px; height: 4px; background: var(--accent); border-radius: 2px; transition: height .2s; }
.is-playing .eq span { animation: eq 1s ease-in-out infinite; }
.is-playing .eq span:nth-child(2) { animation-delay: -.4s; }
.is-playing .eq span:nth-child(3) { animation-delay: -.2s; }
.is-playing .eq span:nth-child(4) { animation-delay: -.7s; }
.is-playing .eq span:nth-child(5) { animation-delay: -.5s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 22px; } }

.volume-range { accent-color: var(--primary); height: 28px; cursor: pointer; min-width: 60px; }
.radio-card .volume-range { accent-color: #fff; }

.radio-page-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .radio-page-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.radio-desc { margin-top: 16px; color: var(--text-2); }

.schedule-widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list li.is-now { background: var(--primary-soft); border-radius: var(--radius-sm); }
.schedule-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary); min-width: 110px; }
.schedule-name { flex: 1; min-width: 0; font-weight: 600; }
.schedule-name small { color: var(--muted); font-weight: 400; }

.week-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.week-tabs button { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; }
.week-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.program-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.program-card .program-img, .program-card .img-placeholder { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.program-card-body { padding: 14px; }

/* ---------------------------------------------------------------------
   Floating radio dock (persistent mini player)
   --------------------------------------------------------------------- */
.radio-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 90; background: rgba(15, 30, 51, .97); color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2); padding-bottom: env(safe-area-inset-bottom, 0px);
    backdrop-filter: blur(6px); transition: transform .25s;
}
.radio-dock-inner { display: flex; align-items: center; gap: 10px; min-height: var(--dock-h); }
.radio-btn-play {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--primary); color: #fff; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center;
}
.radio-btn-play:hover { background: #d0182a; }
.radio-btn-play[disabled] { background: #5f6b7c; cursor: not-allowed; }
.radio-dock-logo { width: 40px; height: 40px; border-radius: 10px; display: none; background: #fff; }
@media (min-width: 576px) { .radio-dock-logo { display: block; } }
.radio-dock-info { flex: 1; min-width: 0; }
.radio-dock-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.radio-dock-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.radio-dock-status { font-size: .8rem; color: #b8c4d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-dock-controls { display: flex; align-items: center; gap: 4px; }
.radio-dock-controls .icon-btn { color: #fff; }
.radio-dock-controls .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.radio-dock .volume-range { display: none; width: 100px; accent-color: var(--primary); }
@media (min-width: 768px) { .radio-dock .volume-range { display: block; } }
.radio-dock.is-offline .live-badge { background: #5f6b7c; }
.radio-dock.is-offline .live-dot { animation: none; opacity: .5; }
.radio-dock.is-minimized { transform: translateY(calc(100% - 6px)); }
.radio-dock.is-minimized .radio-dock-min { position: absolute; top: -38px; inset-inline-end: 16px; background: var(--navy); border-radius: 8px 8px 0 0; width: 44px; height: 38px; }
.radio-dock.is-minimized .radio-dock-min i { transform: rotate(180deg); }
.radio-dock[data-state="loading"] .radio-btn-play i, .radio-card[data-state="loading"] .radio-card-play i::before { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.radio-retry { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Sidebar & widgets
   --------------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.widget-title { font-size: 1.05rem; color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 8px; }
.widget-title i { color: var(--primary); }
.rank-list { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.rank-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.rank-list li:last-child { border-bottom: 0; }
.rank { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rank-list a { font-weight: 600; font-size: .95rem; }
.widget-radio { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: #fff; }
.widget-radio-link { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.widget-radio-link:hover { color: var(--accent); }
.widget-radio-link strong { font-size: 1.2rem; }

/* Ads */
.ad-slot { text-align: center; margin: 12px auto; position: relative; max-width: 100%; }
.ad-label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ad-slot img { margin-inline: auto; border-radius: var(--radius-sm); max-height: 280px; object-fit: contain; }
.ad-frame { width: 100%; border: 0; display: block; }
.ad-sponsored { display: block; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: start; padding-bottom: 12px; }
.ad-sponsored strong, .ad-sponsored-label { display: block; padding-inline: 14px; }
.ad-sponsored-label { font-size: .72rem; color: var(--warning); font-weight: 700; margin-top: 8px; }

/* ---------------------------------------------------------------------
   Article
   --------------------------------------------------------------------- */
.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
@media (min-width: 768px) { .article { padding: 32px; } }
.article-header { margin-bottom: 18px; }
.article-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.article-title { font-size: 1.6rem; color: var(--navy); margin: 0 0 12px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .article-title { font-size: 2.2rem; } }
.article-lead { font-size: 1.12rem; color: var(--text-2); font-weight: 500; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.article-figure { margin: 0 0 20px; }
.article-figure img { width: 100%; border-radius: var(--radius-sm); }
.article-figure figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; }
.article-langs { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.article-langs a { color: var(--primary); font-weight: 700; margin-inline-start: 8px; }

.prose { font-size: 1.06rem; color: var(--text); overflow-wrap: anywhere; }
[dir="rtl"] .prose { font-size: 1.12rem; line-height: 2; }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; color: var(--navy); }
.prose h3 { font-size: 1.2rem; margin-top: 1.2em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1em auto; }
.prose blockquote {
    margin: 1.5em 0; padding: 12px 20px; border-inline-start: 4px solid var(--primary);
    background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--text-2);
}
[dir="rtl"] .prose blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: start; }
.prose th { background: var(--bg); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose figure { margin: 1em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.prose pre { background: var(--navy); color: #e6ecf5; padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; direction: ltr; }

.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .empty-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.share-label { font-weight: 600; color: var(--muted); font-size: .9rem; margin-inline-end: 4px; }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; border: 0; cursor: pointer; transition: transform .15s, opacity .2s;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); opacity: .9; }
.share-facebook { background: #1877f2; } .share-x { background: #111; } .share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; } .share-copy { background: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0; color: var(--muted); }
.tags a { background: var(--bg); padding: 3px 12px; border-radius: 999px; font-size: .88rem; color: var(--text-2); }
.tags a:hover { background: var(--primary); color: #fff; }

/* Gallery + lightbox */
.gallery-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gallery-grid--large { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1280px) { .gallery-grid--large { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-grid a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: #e8ebf0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: .8rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 10, 18, .94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox-caption { color: #e6ecf5; margin-top: 12px; text-align: center; max-width: 800px; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 16px; inset-inline-end: 16px; }
.lightbox-prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; top: 24px; inset-inline-start: 20px; color: #cfd8e6; font-size: .9rem; }

/* Podcasts */
.podcast-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.podcast-item { display: flex; gap: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; align-items: flex-start; }
.podcast-cover { flex: 0 0 88px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.podcast-cover img, .podcast-cover .img-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
@media (min-width: 576px) { .podcast-cover { flex-basis: 120px; } }
.podcast-body { flex: 1; min-width: 0; }
.podcast-title { font-size: 1.05rem; margin: 0 0 4px; }
.podcast-audio { width: 100%; margin-top: 10px; height: 44px; }
.podcast-hero { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 20px; }
@media (min-width: 768px) { .podcast-hero { grid-template-columns: 220px minmax(0, 1fr); align-items: center; } }
.podcast-hero-cover img, .podcast-hero-cover .img-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); max-width: 280px; }

/* Provinces */
.province-grid { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .province-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .province-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.province-grid a { display: flex; flex-direction: column; background: var(--surface); padding: 12px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); border-inline-start: 4px solid var(--accent); }
.province-grid a:hover { border-inline-start-color: var(--primary); }
.province-grid span { font-weight: 700; }
.province-grid small { color: var(--muted); }

/* Search */
.search-page-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.search-page-form input { flex: 1 1 240px; min-width: 0; }
.search-page-form select { flex: 0 1 180px; }
.result-count { font-weight: 600; color: var(--text-2); }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.search-result { display: flex; gap: 14px; background: var(--surface); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.search-result-thumb { flex: 0 0 96px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; }
.search-result-thumb img, .search-result-thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; font-size: 1.2rem; }
@media (min-width: 576px) { .search-result-thumb { flex-basis: 150px; } }
.search-result h2 { font-size: 1.08rem; margin: 6px 0; }
.search-result p { margin: 0 0 4px; color: var(--text-2); font-size: .93rem; }

/* Pagination */
.pagination ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; height: 42px; padding: 0 10px; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination span[aria-current] { background: var(--primary); color: #fff; }
.pagination .gap { align-self: center; color: var(--muted); }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], input[type="password"], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(179, 18, 31, .15); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .93rem; }
.form-row { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.req { color: var(--danger); }
.form-message:empty { display: none; }
.form-message, .alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; }
.form-message.success, .alert-success { background: #e7f6ef; color: var(--success); }
.form-message.error, .alert-danger { background: #fdecec; color: var(--danger); }
.alert-warning { background: #fff6e0; color: var(--warning); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.contact-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.map-embed { margin-top: 16px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.about-contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Comments */
.comments { margin-top: 32px; }
.comments .section-title { margin-bottom: 14px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .comment-list { margin: 12px 0 0; padding-inline-start: 16px; border-inline-start: 2px solid var(--border); }
.comment { display: flex; gap: 12px; padding: 12px 0; }
.comment-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 4px 0; overflow-wrap: anywhere; }
.comment-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.comment-head time { color: var(--muted); font-size: .8rem; }
.comment-reply-btn { background: none; border: 0; color: var(--primary); font-size: .85rem; cursor: pointer; padding: 0; }
.comment-form { background: var(--bg); padding: 18px; border-radius: var(--radius); margin-top: 16px; }
.comment-form h3 { font-size: 1.1rem; }
.reply-indicator { font-size: .9rem; color: var(--text-2); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.schedule-table th, .schedule-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); }
.schedule-table th { background: var(--navy); color: #fff; font-size: .9rem; }

/* Social */
.social-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.social-list a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); }
.contact-info .social-list a { background: var(--bg); }
.social-list a:hover { background: var(--primary); color: #fff; }
.social-big { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .social-big { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .social-big { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.social-big a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--radius); color: #fff; font-weight: 700; }
.social-big a:hover { color: #fff; opacity: .9; }
.social-facebook { background: #1877f2; } .social-youtube { background: #ff0000; } .social-telegram { background: #229ed9; }
.social-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .social-x { background: #111; }
.social-tiktok { background: #010101; } .social-whatsapp { background: #25d366; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b8c4d6; margin-top: 40px; padding-top: 36px; font-size: .93rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.brand-footer .brand-name { color: #fff; }
.footer-about p { margin-top: 12px; }
.footer-title { color: #fff; font-size: 1.02rem; margin-bottom: 12px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact i { margin-top: .35em; color: var(--accent); }
.site-footer .btn-outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.footer-lang { margin-top: 16px; }
.footer-lang a { border: 1px solid rgba(255, 255, 255, .2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-block: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   Error page
   --------------------------------------------------------------------- */
.error-body { padding-bottom: 0; background: linear-gradient(160deg, var(--navy), #22345a); min-height: 100vh; }
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.error-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px 24px; max-width: 560px; width: 100%; text-align: center; }
.error-card img { margin: 0 auto 12px; }
.error-code { font-size: 3.4rem; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.2; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.error-langs { display: flex; gap: 14px; justify-content: center; font-weight: 600; color: var(--muted); }
.error-langs a:hover { color: var(--primary); }
.debug { text-align: start; white-space: pre-wrap; font-size: .75rem; background: #111; color: #eee; padding: 12px; border-radius: 8px; overflow: auto; max-height: 320px; }

/* Toast */
.toast { position: fixed; bottom: calc(var(--dock-h) + 16px); inset-inline-start: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 250; box-shadow: var(--shadow-lg); }
[dir="rtl"] .toast { transform: translateX(50%); }

/* Soft navigation progress bar */
.nav-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; background: var(--accent); z-index: 400; width: 0; transition: width .3s; }

@media print {
    .site-header, .site-footer, .radio-dock, .sidebar, .share, .comments, .ad-slot { display: none !important; }
    body { padding: 0; background: #fff; }
    .article { box-shadow: none; }
}
