/* ================================================================
   EOB LIVE — MAIN STYLESHEET  ·  Premium rebuild v2
   Royal blue & gold identity · glass surfaces · cinematic motion
   ================================================================ */

/* ---------------- TOKENS ---------------- */
:root {
  --navy-950: #050B1A;
  --navy-900: #081226;
  --navy-800: #0A1B3D;

  --royal: #0D3B8C;
  --blue: #1A56DB;
  --sky: #3B82F6;
  --gold: #F5C842;
  --gold-deep: #D9A521;
  --red: #E23B4E;
  --green: #16A34A;

  --bg: #F3F6FC;
  --surface: #FFFFFF;
  --ice: #EAF1FC;
  --ice-2: #DFEAFB;
  --off: #F7FAFE;

  --text: #17233B;
  --muted: #5B6B87;
  --border: rgba(13, 32, 68, .10);
  --border-strong: rgba(13, 32, 68, .18);

  --grad-brand: linear-gradient(135deg, var(--royal), var(--blue) 55%, var(--sky));
  --grad-gold: linear-gradient(120deg, #FFE29A, var(--gold) 45%, #E8B62C);
  --grad-hero: linear-gradient(180deg, rgba(5,11,26,0) 30%, rgba(5,11,26,.55) 62%, rgba(5,11,26,.92));

  --glass: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .55);

  --shadow-xs: 0 1px 2px rgba(8, 18, 38, .05), 0 2px 8px rgba(8, 18, 38, .04);
  --shadow-sm: 0 4px 14px rgba(8, 18, 38, .07);
  --shadow-md: 0 10px 30px rgba(8, 18, 38, .12);
  --shadow-lg: 0 24px 60px -12px rgba(8, 18, 38, .22);
  --shadow-blue: 0 10px 28px rgba(26, 86, 219, .28);
  --shadow-gold: 0 8px 22px rgba(217, 165, 33, .35);

  --r-full: 999px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --nav-h: 66px;
}

/* ---------------- RESET / BASE ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 500px at 85% -140px, rgba(59, 130, 246, .09), transparent 65%),
    radial-gradient(900px 420px at -10% 240px, rgba(245, 200, 66, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(245, 200, 66, .45); color: var(--navy-950); }

/* Clean focus system: no ring on mouse/touch clicks, ring kept for Tab key */
* { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(26, 86, 219, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Refined scrollbar (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #B9C8E4, #93A9CE);
  border-radius: 8px; border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #7E97C2; }

.skip-link {  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--navy-900); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================================================
   READING PROGRESS (article pages)
   ============================================================ */
#read-progress {
  position: fixed; top: 0; left: 0; z-index: 220;
  height: 3px; width: 0%;
  background: var(--grad-gold);
  box-shadow: 0 0 12px rgba(245, 200, 66, .55);
  transition: width .12s linear;
  opacity: 0; pointer-events: none;
}
body.reading #read-progress { opacity: 1; }

/* ============================================================
   NAVIGATION — floating glass bar
   ============================================================ */
#main-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 clamp(14px, 3vw, 34px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  transition: box-shadow .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
#main-nav.scrolled {
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 8px 30px rgba(8, 18, 38, .10);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.nav-brand img {
  width: 40px; height: 40px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(8, 18, 38, .25), inset 0 0 0 1px rgba(255,255,255,.15);
  transition: transform .4s var(--ease-spring);
}
.nav-brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.22rem;
  letter-spacing: -.02em; color: var(--navy-900); white-space: nowrap;
}
.nav-brand-name span {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 9px 13px; border-radius: var(--r-full);
  font-size: .86rem; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a i { font-size: .78rem; margin-right: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2.5px; border-radius: 2px;
  background: var(--grad-gold);
  transform: translateX(-50%);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--royal); background: rgba(26, 86, 219, .06); }
.nav-links a:hover::after, .nav-links a.nav-active::after { width: 55%; }
.nav-links a.nav-active { color: var(--royal); font-weight: 800; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-search-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, .7);
  color: var(--muted); font-size: .8rem; font-weight: 600; min-width: 190px;
  transition: all .25s var(--ease);
}
.nav-search-trigger:hover { border-color: var(--blue); color: var(--royal); box-shadow: var(--shadow-sm); }
.nav-search-trigger kbd {
  margin-left: auto;
  font-family: inherit; font-size: .64rem; font-weight: 800;
  background: var(--ice); color: var(--royal);
  border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 7px;
}

.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 36px; padding: 0 11px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, .7);
  color: var(--royal); font-weight: 800; font-size: .72rem; letter-spacing: 1.5px;
  transition: all .22s var(--ease);
}
.lang-toggle:hover {
  background: var(--navy-900); color: var(--gold);
  border-color: var(--navy-900); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--navy-900); font-size: 1rem;
  background: rgba(255, 255, 255, .7); border: 1.5px solid var(--border);
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 190;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 18px 22px;
  display: none;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu.open { display: block; animation: menuIn .32s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mm-label {
  font-size: .62rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); padding: 12px 6px 8px;
}
.mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: var(--r-md);
  font-weight: 700; font-size: .95rem; color: var(--text); text-decoration: none;
}
.mobile-menu a i { width: 20px; text-align: center; color: var(--royal); }
.mobile-menu a:hover, .mobile-menu a.nav-active { background: var(--ice); color: var(--royal); }

/* ============================================================
   BREAKING ALERT BANNER
   ============================================================ */
#alert-banner {
  display: none; align-items: center; gap: 14px;
  padding: 11px clamp(14px, 3vw, 34px);
  background: linear-gradient(90deg, #8E1B26, #C22736 40%, #E23B4E 75%, #B4232F);
  color: #fff; position: relative; overflow: hidden;
}
#alert-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.ab-label {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: .62rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
  background: rgba(255, 255, 255, .17); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: var(--r-full);
}
.ab-dot { width: 8px; height: 8px; border-radius: 50%; background: #FFD9DD; animation: blink 1s infinite; }
.ab-text { font-size: .88rem; font-weight: 700; color: #fff; text-decoration: none; flex: 1; min-width: 0; }
a.ab-text:hover { text-decoration: underline; }
.ab-close {
  margin-left: auto; width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: .85rem;
  transition: background .2s, transform .2s;
}
.ab-close:hover { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }

/* ============================================================
   TICKER
   ============================================================ */
#ticker-bar {
  display: flex; align-items: stretch;
  background: var(--navy-900);
  color: #E8EEFB; overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ticker-label {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px;
  background: linear-gradient(120deg, rgba(245,200,66,.16), transparent);
  border-right: 1px solid rgba(255, 255, 255, .1);
  font-size: .64rem; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold);
}
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.1s infinite; }
.ticker-wrap { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
  display: inline-flex; gap: 54px; white-space: nowrap;
  padding-left: 30px;
  animation: tick 46s linear infinite;
}
#ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: .8rem; font-weight: 600; opacity: .92; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============================================================
   HERO — cinematic carousel
   ============================================================ */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 340px; gap: 18px;
  padding: 18px clamp(14px, 3vw, 34px) 8px;
  max-width: 1440px; margin: 0 auto; width: 100%;
}
.hero-main {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: clamp(380px, 52vh, 560px);
  cursor: pointer; isolation: isolate;
  box-shadow: var(--shadow-lg);
  outline-offset: 4px;
}
.hero-main-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform 7s var(--ease), opacity .5s var(--ease), filter .5s var(--ease);
}
.hero-main:hover .hero-main-bg { transform: scale(1.09); }
.hero-main.fading .hero-main-bg { opacity: 0; filter: blur(6px); transform: scale(1.14); }
.hero-main-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: var(--grad-hero);
}
.hero-main::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 260px at 88% -10%, rgba(245,200,66,.16), transparent 60%),
    radial-gradient(500px 300px at -5% 110%, rgba(26,86,219,.28), transparent 55%);
}
.hero-main-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(20px, 4vw, 44px);
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .62rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  background: var(--grad-gold); color: var(--navy-950);
  padding: 6px 15px; border-radius: var(--r-full);
  margin-bottom: 16px; box-shadow: var(--shadow-gold);
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.015em; max-width: 21ch;
  text-wrap: balance;
  text-shadow: 0 3px 26px rgba(5, 11, 26, .55);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero-main.fading .hero-title { opacity: 0; transform: translateY(12px); }
.hero-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; font-size: .8rem; font-weight: 600;
  color: rgba(255, 255, 255, .85);
}
.hero-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero-view-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: var(--r-full); font-size: .72rem; font-weight: 700;
}

/* Carousel dots + autoplay ring */
.hero-dots {
  position: absolute; right: clamp(20px, 4vw, 44px); bottom: clamp(20px, 4vw, 44px); z-index: 3;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .38);
  transition: all .3s var(--ease-out); position: relative; overflow: hidden;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.active { width: 30px; background: rgba(255,255,255,.95); }
.hero-dot.active::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: left;
  animation: dotFill 6s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side-card {
  position: relative; flex: 1; min-height: 170px;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.hero-side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-side-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease-out);
}
.hero-side-card:hover .hero-side-bg { transform: scale(1.08); }
.hero-side-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(185deg, rgba(5,11,26,.05) 25%, rgba(5,11,26,.88));
}
.hero-side-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; }
.h-cat {
  display: inline-block;
  font-size: .58rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.hero-side-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   TRENDING STRIP
   ============================================================ */
.trending-strip { max-width: 1440px; margin: 30px auto 8px; padding: 0 clamp(14px, 3vw, 34px); }
.trending-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.trending-title {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  font-size: .72rem; font-weight: 800; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--navy-900);
}
.trending-title i { color: var(--red); animation: blink 1.4s infinite; }
.trending-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.trending-nav { display: flex; gap: 7px; }
.trend-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--royal); font-size: .74rem;
  transition: all .22s var(--ease);
}
.trend-arrow:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.trending-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 2px 12px; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.trending-track::-webkit-scrollbar { display: none; }
.trend-item {
  scroll-snap-align: start;
  flex: 0 0 250px;
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .28s var(--ease-out), box-shadow .28s, border-color .28s;
}
.trend-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-gold); opacity: 0; transition: opacity .25s;
}
.trend-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.trend-item:hover::before { opacity: 1; }
.trend-rank {
  font-family: var(--font-display); font-weight: 900; font-size: 1.7rem;
  line-height: 1; flex: none; width: 40px;
  background: linear-gradient(160deg, #C6D4EF, #8CA3CC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trend-item:nth-child(1) .trend-rank,
.trend-item:nth-child(2) .trend-rank,
.trend-item:nth-child(3) .trend-rank {
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
}
.trend-info { min-width: 0; }
.trend-title {
  font-size: .82rem; font-weight: 700; line-height: 1.38; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 3px;
  transition: color .2s;
}
.trend-item:hover .trend-title { color: var(--royal); }
.trend-meta { font-size: .68rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 26px clamp(14px, 3vw, 34px) 70px; }
.content-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px;
  align-items: start;
}

.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sec-label {
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  letter-spacing: -.01em; color: var(--navy-900); white-space: nowrap;
}
.sec-rule { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(245,200,66,.65), var(--border) 45%, transparent); }

.cats-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
  position: sticky; top: calc(var(--nav-h) + 10px); z-index: 90;
  padding: 8px; border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.cat-btn {
  padding: 8px 17px; border-radius: var(--r-full);
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: all .22s var(--ease);
  border: 1.5px solid transparent;
}
.cat-btn:hover { color: var(--royal); background: rgba(26, 86, 219, .07); }
.cat-btn.active {
  background: var(--navy-900); color: #fff;
  box-shadow: 0 6px 18px rgba(8, 18, 38, .28);
  border-color: var(--navy-900);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.cards-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card:hover::after { transform: scaleX(1); }

.card-thumb { position: relative; overflow: hidden; }
.card-thumb-img {
  width: 100%; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ice-2), var(--ice));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #A9BEDF;
  transition: transform .8s var(--ease-out);
}
.card:hover .card-thumb-img { transform: scale(1.07); }
.card-badge {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  font-size: .56rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  background: rgba(8, 18, 38, .74);
  color: #fff;
  padding: 4px 12px; border-radius: var(--r-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
}
.card-badge::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
  margin-right: 6px; vertical-align: 1px;
}
.badge-politics { background: rgba(124, 58, 237, .85); }
.badge-sports   { background: rgba(5, 150, 105, .85); }
.badge-entertainment { background: rgba(219, 39, 119, .85); }
.badge-health   { background: rgba(8, 145, 178, .85); }
.badge-world    { background: rgba(217, 119, 6, .85); }
.badge-gospel   { background: rgba(146, 64, 14, .85); }
.badge-news     { background: rgba(26, 86, 219, .85); }

.card-body { display: flex; flex-direction: column; padding: 19px 21px 21px; flex: 1; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; color: var(--text);
  line-height: 1.38; letter-spacing: -.005em;
  margin-bottom: 12px; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .22s;
}
.card:hover .card-title { color: var(--royal); }
.card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .73rem; font-weight: 600; color: var(--muted);
}
.card-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.card-reads {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 11px; font-size: .7rem; font-weight: 700; color: var(--royal);
  background: var(--ice); padding: 3px 11px; border-radius: var(--r-full);
  width: fit-content;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .3s;
}
.widget:hover { box-shadow: var(--shadow-sm); }
.widget-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.02rem; color: var(--navy-900);
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.widget-head::after {
  content: ''; position: absolute; left: 20px; bottom: -1px;
  width: 44px; height: 2.5px; border-radius: 2px;
  background: var(--grad-gold);
}
.widget-head i { color: var(--royal); font-size: .9rem; }
.widget-body { padding: 14px 20px 18px; }

/* Ibadan Now widget */
.ib-now { display: flex; flex-direction: column; gap: 4px; }
.ib-clock {
  font-family: var(--font-display); font-weight: 900; font-size: 2.15rem; line-height: 1.1;
  color: var(--navy-900); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.ib-date { font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ib-weather {
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(120deg, var(--ice), rgba(245,200,66,.12));
  border: 1px solid var(--border);
  padding: 10px 14px; border-radius: var(--r-md);
}
.ib-wicon { font-size: 1.5rem; color: var(--blue); }
.ib-temp { font-weight: 800; font-size: 1.06rem; color: var(--navy-900); line-height: 1.2; }
.ib-cond { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ib-loading { font-size: .74rem; color: var(--muted); }

/* Schedule */
.sch-row {
  display: flex; gap: 12px;
  padding: 11px 8px;
  border-bottom: 1px dashed var(--border);
  transition: background .2s;
}
.sch-row:last-child { border-bottom: none; }
.sch-row:hover { background: rgba(26, 86, 219, .035); }
.sch-row.live-now {
  background: linear-gradient(90deg, rgba(226, 59, 78, .09), transparent 75%);
  border-left: 3px solid var(--red);
  padding-left: 10px; border-radius: var(--r-sm); margin: 0 -4px;
}
.sch-time {
  font-size: .68rem; font-weight: 700; color: var(--blue);
  min-width: 92px; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.sch-show { font-size: .84rem; font-weight: 700; color: var(--text); }
.sch-host { font-size: .72rem; color: var(--muted); }
.on-air-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .56rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  background: rgba(226, 59, 78, .13); color: var(--red);
  padding: 2px 9px; border-radius: var(--r-full);
  margin-left: 6px;
}
.on-air-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* Most read list */
.widget-item {
  display: flex; gap: 12px; align-items: baseline;
  padding: 11px 8px; cursor: pointer;
  border-bottom: 1px dashed var(--border);
  border-radius: var(--r-sm);
  transition: background .2s;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: rgba(26, 86, 219, .045); }
.widget-item-title {
  font-size: .84rem; font-weight: 700; line-height: 1.45; color: var(--text);
  transition: color .2s;
}
.widget-item-title span { color: var(--gold-deep); font-family: var(--font-display); }
.widget-item:hover .widget-item-title { color: var(--royal); }
.widget-item-meta { font-size: .7rem; color: var(--muted); white-space: nowrap; }

.about-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.about-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700;
  color: var(--royal);
  background: var(--ice);
  padding: 7px 15px; border-radius: var(--r-full);
  text-decoration: none;
  transition: all .22s var(--ease);
}
.about-link:hover { background: var(--navy-900); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Newsletter */
.nl-input {
  width: 100%; padding: 12px 14px; margin-bottom: 10px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .88rem; color: var(--text); background: var(--off, #F7FAFE);
  transition: border-color .2s, box-shadow .2s;
}
.nl-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 86, 219, .13); background: #fff; }
.nl-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: .88rem; letter-spacing: .2px;
  padding: 12px 18px; border-radius: var(--r-full);
  box-shadow: var(--shadow-blue);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 86, 219, .38); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
#article-page, #page-page { display: none; }
.art-wrap { max-width: 820px; margin: 0 auto; padding: 30px clamp(14px, 3vw, 34px) 80px; }
.art-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  padding: 8px 16px 8px 12px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: pointer; margin-bottom: 0;
  transition: all .22s var(--ease);
}
.art-back:hover { color: var(--royal); border-color: var(--blue); transform: translateX(-3px); }

.art-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 26px;
}
.art-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tts-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 17px; border-radius: var(--r-full);
  background: var(--navy-900); color: var(--gold);
  font-size: .76rem; font-weight: 800; letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(8, 18, 38, .25);
  transition: all .22s var(--ease);
}
.tts-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(8, 18, 38, .35); }
.tts-btn.playing { background: var(--grad-gold); color: var(--navy-950); }
.tts-btn.playing i { animation: pulse 1.1s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.fs-controls {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 3px;
  box-shadow: var(--shadow-xs);
}
.fs-btn {
  width: 32px; height: 30px; border-radius: var(--r-full);
  font-weight: 800; color: var(--muted); font-size: .8rem;
  transition: all .18s;
}
.fs-btn:hover { background: var(--ice); color: var(--royal); }
.fs-btn span:nth-child(1) { font-size: .68rem; }

.art-cat {
  display: inline-block;
  font-size: .62rem; font-weight: 800; letter-spacing: 2.8px; text-transform: uppercase;
  color: #fff;
  padding: 5px 15px; border-radius: var(--r-full);
  margin-bottom: 16px;
}
.art-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 900;
  color: var(--navy-900); line-height: 1.13; letter-spacing: -.018em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.art-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.art-cover {
  width: 100%;
  border-radius: var(--r-lg);
  max-height: 500px; object-fit: cover;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform .4s var(--ease-out);
}
.art-video {
  width: 100%; border-radius: var(--r-lg);
  margin-bottom: 28px; max-height: 480px;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.art-body { font-size: var(--art-fs, 1.07rem); line-height: 1.92; color: var(--text); }
.art-body p { margin-bottom: 19px; }
.art-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 900; font-size: 3.3em; line-height: .8;
  color: var(--royal);
  float: left; padding-right: 12px; padding-top: 6px;
}

.art-stats {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.art-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 15px; border-radius: var(--r-full);
  box-shadow: var(--shadow-xs);
}

/* Topic chips (own row so many tags can wrap freely on small screens) */
.art-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 14px;
}
.art-tag {
  background: var(--ice); color: var(--royal);
  padding: 5px 13px; border-radius: var(--r-full);
  font-size: .74rem; font-weight: 800;
}

/* Defensive text wrapping — long words/tokens must never blow out layout */
.card-title, .trend-title, .so-item-title, .comment-body, .comment-head strong,
.ab-text, .page-body, .footer-desc, .art-body, .widget-item-title,
.rp-track, .art-h1, .hero-title, .hero-side-title, .academy-sub,
.sch-show, .nl-input, .cf-input, #so-input {
  overflow-wrap: break-word;
}

/* Share rail */
.art-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 28px 0 6px; padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.art-share-label {
  font-size: .68rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  transition: transform .22s var(--ease-spring), box-shadow .22s, filter .2s;
}
.share-btn:hover { transform: translateY(-4px) scale(1.08); filter: brightness(1.1); box-shadow: var(--shadow-md); }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-x { background: #111; }
.share-tg { background: #229ED9; }
.share-copy { background: var(--navy-800); }

.art-source { margin: 26px 0 6px; }

/* Reactions */
.reactions-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 26px 0 4px; padding: 15px 17px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.react-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-full);
  background: var(--off, #F7FAFE); border: 1.5px solid transparent;
  font-size: .84rem; font-weight: 700; color: var(--muted);
  transition: all .2s var(--ease-out);
}
.react-btn:hover { transform: translateY(-3px) scale(1.05); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.rb-emoji { font-size: 1.1rem; line-height: 1; transition: transform .3s var(--ease-spring); }
.react-btn:hover .rb-emoji { transform: scale(1.25) rotate(-8deg); }
.rb-count { min-width: 14px; text-align: left; font-variant-numeric: tabular-nums; }
.react-btn.mine {
  background: var(--ice); border-color: var(--blue); color: var(--royal);
  box-shadow: inset 0 0 0 1px rgba(26, 86, 219, .25);
}
.react-btn.mine .rb-emoji { animation: pop .45s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Comments */
.comments-section { margin-top: 44px; }
.comment-form { margin-bottom: 22px; }
.comments-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item {
  display: flex; gap: 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 15px 17px;
  box-shadow: var(--shadow-xs);
  animation: rise .4s var(--ease-out) backwards;
}
.comment-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: .98rem;
  box-shadow: var(--shadow-blue);
}
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.comment-head strong { font-size: .87rem; color: var(--navy-900); }
.comment-time { font-size: .7rem; color: var(--muted); }
.comment-body { font-size: .91rem; line-height: 1.68; word-wrap: break-word; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Contact form */
.contact-form {
  margin-top: 30px; padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 700; color: var(--navy-900);
  margin-bottom: 16px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-input {
  width: 100%; padding: 12px 15px; margin-bottom: 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .92rem; color: var(--text);
  background: var(--off, #F7FAFE);
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.cf-input:focus {
  outline: none; border-color: var(--blue);
  background: #fff; box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
}
.cf-send {
  display: inline-flex; align-items: center;
  background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: .92rem;
  padding: 13px 28px; border-radius: var(--r-full);
  box-shadow: var(--shadow-blue);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.cf-send:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(26, 86, 219, .38); }
.cf-note { font-size: .74rem; color: var(--muted); margin-top: 12px; }

/* Related stories */
.related-block { margin-top: 46px; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-grid .card-thumb-img { aspect-ratio: auto; height: 132px; }

/* Custom pages */
.page-head {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy-900);
  letter-spacing: -.015em; margin-bottom: 22px;
}
.page-body { font-size: 1.03rem; line-height: 1.85; color: var(--text); max-width: 720px; }
.page-body p { margin-bottom: 16px; }

/* ============================================================
   ACADEMY CTA BAND
   ============================================================ */
.academy-cta {
  position: relative; overflow: hidden;
  margin: 30px auto 0; max-width: 1440px;
  padding: clamp(30px, 5vw, 52px) clamp(14px, 3vw, 34px);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(245, 200, 66, .25), transparent 55%),
    linear-gradient(115deg, var(--navy-950), var(--royal) 70%, #123F94);
  color: #fff;
}
.academy-cta-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.academy-kicker {
  font-size: .64rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.academy-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.2; max-width: 22ch;
}
.academy-sub { font-size: .9rem; color: rgba(255,255,255,.78); margin-top: 8px; max-width: 52ch; }
.academy-phone {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  background: var(--grad-gold); color: var(--navy-950);
  font-weight: 800; font-size: 1.02rem;
  padding: 15px 30px; border-radius: var(--r-full);
  text-decoration: none; box-shadow: var(--shadow-gold);
  transition: transform .22s var(--ease-spring), box-shadow .22s;
}
.academy-phone:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(217, 165, 33, .45); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  margin-top: 60px;
  padding-bottom: 92px; /* clearance so the fixed radio player never covers footer links */
  background:
    radial-gradient(800px 320px at 100% 0%, rgba(26, 86, 219, .16), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, .82);
  position: relative;
}
#site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 30%, transparent 70%, var(--gold));
  opacity: .85;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 56px clamp(14px, 3vw, 34px) 40px;
}
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-row img { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.footer-brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: #fff;
}
.footer-brand-name span {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-desc { font-size: .85rem; line-height: 1.75; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.footer-socials { display: flex; gap: 9px; flex-wrap: wrap; }
.soc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 9px 16px; border-radius: var(--r-full);
  text-decoration: none;
  transition: all .22s var(--ease);
}
.soc-btn:hover {
  background: var(--grad-gold); color: var(--navy-950);
  border-color: transparent; transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 900; color: #fff;
  margin-bottom: 16px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 30px; height: 2.5px; border-radius: 2px;
  background: var(--grad-gold);
}
.footer-col ul li {
  padding: 6px 0; font-size: .84rem; cursor: pointer;
  color: rgba(255,255,255,.62);
  transition: color .2s, transform .2s, padding-left .2s;
}
.footer-col ul li:hover { color: var(--gold); padding-left: 6px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 7px 0; font-size: .83rem;
}
.footer-contact-icon {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; color: var(--gold); font-size: .76rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px clamp(14px, 3vw, 34px);
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .74rem; color: rgba(255,255,255,.45);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   RADIO PLAYER — floating glass deck
   ============================================================ */
#radio-player {
  position: fixed; left: 50%; bottom: 16px; z-index: 210;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: rgba(10, 20, 43, .88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  box-shadow: 0 22px 60px rgba(3, 8, 20, .5), inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
}
.rp-logo img {
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
#radio-player.playing .rp-logo img { animation: spinSlow 9s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.rp-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: .58rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: #FF97A3;
  background: rgba(226, 59, 78, .14);
  border: 1px solid rgba(226, 59, 78, .35);
  padding: 4px 11px; border-radius: var(--r-full);
}
.rp-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.1s infinite; }
.rp-info { min-width: 0; flex: 1; }
.rp-station { font-size: .72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.rp-track {
  font-size: .88rem; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rp-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex: none; }
.wv {
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  height: 30%; opacity: .35;
  transition: height .2s;
}
#radio-player.playing .wv { animation: wave 1.15s ease-in-out infinite; opacity: 1; }
#radio-player.playing .wv:nth-child(1) { animation-delay: 0s; }
#radio-player.playing .wv:nth-child(2) { animation-delay: .12s; }
#radio-player.playing .wv:nth-child(3) { animation-delay: .24s; }
#radio-player.playing .wv:nth-child(4) { animation-delay: .36s; }
#radio-player.playing .wv:nth-child(5) { animation-delay: .48s; }
#radio-player.playing .wv:nth-child(6) { animation-delay: .6s; }
#radio-player.playing .wv:nth-child(7) { animation-delay: .1s; }
#radio-player.playing .wv:nth-child(8) { animation-delay: .22s; }
#radio-player.playing .wv:nth-child(9) { animation-delay: .34s; }
#radio-player.playing .wv:nth-child(10) { animation-delay: .46s; }
@keyframes wave { 0%, 100% { height: 26%; } 50% { height: 95%; } }

.rp-controls { display: flex; align-items: center; gap: 9px; flex: none; }
.rp-ctrl {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); font-size: .84rem;
  background: rgba(255,255,255,.07);
  transition: all .2s;
}
.rp-ctrl:hover { background: rgba(255,255,255,.16); color: #fff; transform: scale(1.06); }
.rp-play {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.02rem; color: var(--navy-950);
  background: var(--grad-gold);
  box-shadow: 0 8px 24px rgba(217, 165, 33, .45);
  transition: transform .22s var(--ease-spring), box-shadow .22s;
}
.rp-play:hover { transform: scale(1.09); }
.rp-play.is-live { box-shadow: 0 0 0 5px rgba(245, 200, 66, .22), 0 8px 24px rgba(217, 165, 33, .5); }

.rp-vol { display: flex; align-items: center; gap: 8px; flex: none; color: rgba(255,255,255,.55); }
.rp-vol-icon { font-size: .74rem; }
.rp-vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 96px; height: 5px; border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  outline: none; cursor: pointer;
}
.rp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid #0A142B;
  box-shadow: 0 0 10px rgba(245, 200, 66, .6);
  transition: transform .18s;
}
.rp-vol-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.rp-vol-slider::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid #0A142B;
}
.rp-fallback { display: none; }
#radio-player.is-loading .rp-wave .wv { animation: wave .5s ease-in-out infinite; opacity: .8; }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5, 11, 26, .55);
  backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding: min(11vh, 110px) 18px 18px;
}
.search-overlay.open { display: flex; animation: fadeIn .22s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.so-panel {
  width: min(660px, 100%);
  background: rgba(255, 255, 255, .98);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px rgba(3, 8, 20, .45);
  overflow: hidden;
  animation: panelIn .3s var(--ease-out);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-18px) scale(.98); } }
.so-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.so-input-row i { color: var(--royal); font-size: 1rem; }
#so-input {
  flex: 1; border: none; outline: none;
  font-size: 1.08rem; font-weight: 600; color: var(--text);
  background: transparent;
}
#so-input::placeholder { color: var(--muted); font-weight: 500; }
.so-esc {
  font-size: .62rem; font-weight: 800; letter-spacing: 1px;
  color: var(--muted); background: var(--ice);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 3px 8px;
}
.so-results { max-height: min(52vh, 430px); overflow-y: auto; padding: 10px; }
.so-hint { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ============================================================
   LOADING SKELETONS (shown until data renders)
   ============================================================ */
.skeleton-wrap {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.sk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.sk {
  background: linear-gradient(100deg, #E9EFFA 40%, #F6F9FF 50%, #E9EFFA 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.sk-thumb { aspect-ratio: 16 / 10; min-height: 120px; }
.sk-body { padding: 19px 21px 23px; display: flex; flex-direction: column; gap: 12px; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.w90 { width: 90%; }
.sk-line.w65 { width: 65%; }
.sk-line.w40 { width: 40%; height: 9px; margin-top: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.comments-loading {
  color: var(--muted); font-size: .84rem; padding: 20px 4px;
}
.so-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: var(--r-md);
  cursor: pointer; transition: background .16s;
}
.so-item:hover, .so-item.sel { background: var(--ice); }
.so-thumb {
  width: 62px; height: 46px; flex: none; border-radius: 9px;
  background-size: cover; background-position: center;
  background-color: var(--ice-2);
  box-shadow: inset 0 0 0 1px rgba(13, 32, 68, .08);
}
.so-item-txt { min-width: 0; }
.so-item-title {
  font-size: .89rem; font-weight: 700; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.so-item-title mark { background: rgba(245, 200, 66, .5); color: inherit; border-radius: 3px; padding: 0 1px; }
.so-item-meta { font-size: .69rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 420;
  background: rgba(5, 11, 26, .88);
  backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 30px; cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn .25s var(--ease); }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  animation: panelIn .35s var(--ease-out);
}
.lb-close {
  position: absolute; top: 22px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lb-close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: 22px; bottom: 96px; z-index: 180;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-900); color: var(--gold);
  box-shadow: 0 12px 32px rgba(8, 18, 38, .4);
  opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none;
  transition: all .3s var(--ease-out);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--royal); color: #fff; transform: translateY(-4px); }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 500;
  transform: translateX(-50%) translateY(24px);
  background: var(--navy-900); color: #fff;
  font-size: .84rem; font-weight: 700;
  padding: 13px 26px; border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: all .35s var(--ease-spring);
  border: 1px solid rgba(255,255,255,.12);
  max-width: calc(100vw - 40px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { animation: revealIn .8s var(--ease-out) forwards; }
.reveal[data-delay="1"].in { animation-delay: .1s; }
.reveal[data-delay="2"].in { animation-delay: .2s; }
.reveal[data-delay="3"].in { animation-delay: .3s; }
.reveal[data-delay="4"].in { animation-delay: .4s; }
.reveal[data-delay="5"].in { animation-delay: .5s; }
@keyframes revealIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .hero-side-card { min-height: 150px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-wrap { grid-template-columns: repeat(2, 1fr); }
  .rp-vol, .rp-fallback { display: none; }
}
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .trend-item { flex-basis: 225px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav-search-trigger { min-width: 0; padding: 9px 12px; }
  .nav-search-trigger .nst-text, .nav-search-trigger kbd { display: none; }
  .lang-toggle { min-width: 38px; padding: 0 9px; }
  .hero { padding-top: 12px; }
  .hero-main { min-height: 340px; }
  .hero-side { flex-direction: column; }
  .hero-dots { right: 18px; bottom: 18px; }
  .cards-grid { grid-template-columns: 1fr; }
  .skeleton-wrap { grid-template-columns: 1fr; }
  .cats-bar { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 7px; }
  .cats-bar::-webkit-scrollbar { display: none; }
  .cat-btn { white-space: nowrap; }
  .cf-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #radio-player { gap: 11px; padding: 9px 13px; bottom: 10px; }
  .rp-logo img { width: 38px; height: 38px; }
  .rp-wave { display: none; }
  .rp-station { display: none; }
  .to-top { right: 14px; bottom: 84px; }
  .hero-main-body { padding-right: 78px; }
  .art-toolbar { width: 100%; justify-content: flex-start; }
}
