/* ═══════════════════════════════════════════════════════════════════
   Podcast.ma — Design System v2 "Aurora"
   Loads after main.css and overrides with the new design language
   ═══════════════════════════════════════════════════════════════════ */

/* ── Extended tokens ── */
:root {
  --nav-h: 68px;
  --glass-bg: rgba(8,8,22,.82);
  --glass-border: rgba(255,255,255,.07);
  --card-radius: 16px;
  --glow-purple: 0 0 40px rgba(139,92,246,.18);
  --glow-cyan:   0 0 40px rgba(6,182,212,.14);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ══════════════════════════════════════════
   NAVBAR — Glass morphism
   ══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 40px rgba(0,0,0,.35);
}

.navbar-v2 {
  display: flex; align-items: center;
  height: var(--nav-h); gap: 1.5rem;
  max-width: 1360px; margin: 0 auto; padding: 0 1.5rem;
}

.navbar-brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; flex-shrink: 0;
  transition: opacity .2s;
}
.navbar-brand:hover { opacity: .85; }
.navbar-brand .brand-dot { color: var(--accent-2); }

.navbar-center {
  display: flex; align-items: center; gap: .25rem; margin: 0 auto;
}
.nav-link {
  padding: .45rem .9rem; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--text-primary); background: rgba(139,92,246,.15); }

.navbar-end {
  display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
}

.btn-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer;
  transition: all .2s; flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255,255,255,.12); color: var(--text-primary); }
.btn-icon svg { width: 17px; height: 17px; }

.nav-submit-pill {
  padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--gradient); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.nav-submit-pill:hover { opacity: .88; transform: translateY(-1px); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,6,18,.92);
  backdrop-filter: blur(20px);
  display: flex; align-items: flex-start;
  padding-top: 6rem;
  transition: opacity .25s, visibility .25s;
}
.search-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.search-overlay-inner {
  width: 100%; max-width: 680px; margin: 0 auto; padding: 0 1.5rem;
  position: relative;
}
.search-overlay-inner svg {
  position: absolute; left: 2.5rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-muted); pointer-events: none;
}
.search-overlay-input {
  width: 100%; padding: 1rem 3.5rem 1rem 3.5rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; color: var(--text-primary); font-size: 1.1rem;
  font-family: var(--font); outline: none;
  transition: border-color .2s;
}
.search-overlay-input:focus { border-color: var(--accent); }
.search-overlay-close {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; padding: .25rem; line-height: 1;
}
.search-overlay-close:hover { color: var(--text-primary); }
#search-results { position: static; margin-top: .75rem; width: 100%; }

/* Mobile hamburger → 3 lines morphing to X */
.hamburger { display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  border-radius: 10px; cursor: pointer; }
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--text-secondary);
  border-radius: 2px; transition: all .3s var(--ease-spring); transform-origin: center;
}

/* ══════════════════════════════════════════
   HERO — Split layout with Aurora
   ══════════════════════════════════════════ */
.hero-v2 {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding-top: var(--nav-h);
}

/* Aurora background */
.aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(139,92,246,.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 75% 30%, rgba(6,182,212,.12) 0%, transparent 55%),
              radial-gradient(ellipse 50% 80% at 60% 80%, rgba(245,158,11,.07) 0%, transparent 50%);
  animation: aurora-shift 12s ease-in-out infinite alternate;
}
@keyframes aurora-shift {
  0%   { opacity: .8; transform: scale(1); }
  50%  { opacity: 1;  transform: scale(1.04) translateY(-1%); }
  100% { opacity: .75; transform: scale(.98) translateY(1%); }
}
.aurora::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(139,92,246,.08), transparent 70%);
}

/* Noise grain overlay */
.hero-v2::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.hero-split {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  max-width: 1360px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
}

/* Left: text */
.hero-text-col {}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.3);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #a78bfa; margin-bottom: 1.5rem;
}
.hero-h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero-h1 .gradient-text {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub-v2 {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 2rem; max-width: 480px;
}
.hero-search-v2 {
  position: relative; margin-bottom: 2rem;
}
.hero-search-v2 svg {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}
.hero-search-v2 input {
  width: 100%; padding: .9rem 1.25rem .9rem 3rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; color: var(--text-primary); font-size: 1rem;
  font-family: var(--font); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.hero-search-v2 input:focus {
  border-color: var(--accent); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-n { font-size: 1.5rem; font-weight: 800; background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-l { font-size: .78rem; color: var(--text-muted); font-weight: 500; margin-top: .1rem; }

/* Right: visual mosaic */
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: .875rem; height: 440px; position: relative;
}
.hero-visual-card {
  border-radius: 18px; overflow: hidden; position: relative;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .4s var(--ease-spring);
}
.hero-visual-card:hover { transform: scale(1.025) translateY(-4px); }
.hero-visual-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-card:first-child { grid-row: span 2; }
.hero-visual-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(6,182,212,.1));
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

/* Category strip below hero */
.hero-cats-strip {
  position: relative; z-index: 2;
  max-width: 1360px; margin: 0 auto; padding: 0 1.5rem 2.5rem;
}
.hero-cats-v2 {
  display: flex; gap: .625rem;
  overflow-x: auto; padding-bottom: .5rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-cats-v2::-webkit-scrollbar { display: none; }
.cat-pill-v2 {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem 1.1rem; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: all .2s;
}
.cat-pill-v2:hover { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.35);
  color: var(--text-primary); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   SECTIONS — new visual language
   ══════════════════════════════════════════ */
.page-sections-v2 { padding: 1rem 0 4rem; }

.section-v2 { margin-bottom: 3.5rem; }
.section-header-v2 {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.5rem; padding: 0;
}
.section-title-v2 {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: .6rem;
}
.section-title-v2 .section-emoji { font-size: 1.1rem; }
.section-link-v2 {
  font-size: .82rem; font-weight: 600; color: var(--accent);
  text-decoration: none; display: flex; align-items: center; gap: .3rem;
  transition: gap .2s, opacity .2s;
}
.section-link-v2:hover { gap: .55rem; opacity: .8; }

/* ══════════════════════════════════════════
   PODCAST CARDS v2
   ══════════════════════════════════════════ */
.podcast-card-v2 {
  display: flex; flex-direction: column;
  border-radius: var(--card-radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s;
  position: relative;
}
.podcast-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-purple), 0 20px 50px rgba(0,0,0,.5);
  border-color: rgba(139,92,246,.3);
}
.podcast-card-v2 .pc-img {
  aspect-ratio: 1; overflow: hidden; position: relative;
  background: var(--bg-secondary);
}
.podcast-card-v2 .pc-img img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; }
.podcast-card-v2:hover .pc-img img { transform: scale(1.06); }
.pc-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s;
}
.podcast-card-v2:hover .pc-play-overlay { opacity: 1; }
.pc-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  transform: scale(.8); transition: transform .25s var(--ease-spring);
  box-shadow: 0 8px 24px rgba(139,92,246,.4);
}
.podcast-card-v2:hover .pc-play-btn { transform: scale(1); }
.pc-play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }

.pc-body { padding: .875rem; display: flex; flex-direction: column; gap: .3rem; }
.pc-title { font-size: .9rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-author { font-size: .75rem; color: var(--text-muted); }
.pc-count { font-size: .72rem; color: var(--accent-2); font-weight: 600; margin-top: .2rem; }
.pc-cat-badge {
  position: absolute; top: .6rem; left: .6rem;
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  font-size: .65rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.8);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   EPISODE CARDS v2 — full-bleed cinematic
   ══════════════════════════════════════════ */
.episode-card-v2 {
  position: relative; border-radius: var(--card-radius); overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-secondary);
  text-decoration: none; display: block;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  border: 1px solid var(--border);
}
.episode-card-v2:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--glow-purple), 0 20px 50px rgba(0,0,0,.5);
}
.episode-card-v2 .ec-bg {
  position: absolute; inset: 0;
}
.episode-card-v2 .ec-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.episode-card-v2:hover .ec-bg img { transform: scale(1.06); }
.episode-card-v2 .ec-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(6,182,212,.15));
  display: flex; align-items: center; justify-content: center;
}
.episode-card-v2 .ec-placeholder svg { width: 2.5rem; height: 2.5rem; opacity: .3; color: var(--accent); }

.ec-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 50%, transparent 100%);
}
.ec-duration {
  position: absolute; top: .625rem; right: .625rem;
  padding: .2rem .55rem; border-radius: 6px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.85);
}
.ec-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .875rem;
}
.ec-podcast { font-size: .72rem; color: var(--accent-2); font-weight: 600;
  letter-spacing: .02em; margin-bottom: .25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-title { font-size: .88rem; font-weight: 700; line-height: 1.3; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-meta { display: flex; align-items: center; gap: .5rem; margin-top: .4rem;
  font-size: .7rem; color: rgba(255,255,255,.5); }

.ec-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.75);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, transform .25s var(--ease-spring);
}
.episode-card-v2:hover .ec-play-btn {
  opacity: 1; transform: translate(-50%,-50%) scale(1);
}
.ec-play-btn svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }

/* Horizontal scroll row */
.scroll-row {
  display: flex; gap: 1.125rem;
  overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }
.scroll-row .podcast-card-v2 { width: 168px; }
.scroll-row .episode-card-v2 { width: 300px; }

/* ══════════════════════════════════════════
   CATEGORIES — visual tiles
   ══════════════════════════════════════════ */
.categories-grid-v2 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem 1rem; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; gap: .5rem;
  transition: transform .25s var(--ease-spring), border-color .25s, box-shadow .25s;
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(139,92,246,.1);
}
.cat-tile-icon { font-size: 2rem; }
.cat-tile-name { font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.cat-tile:hover .cat-tile-name { color: var(--text-primary); }

/* ══════════════════════════════════════════
   BENTO GRID — trending hero
   ══════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .875rem;
}
.bento-grid .podcast-card-v2:first-child {
  grid-row: span 2;
}
.bento-grid .podcast-card-v2:first-child .pc-img {
  aspect-ratio: unset; min-height: 300px; flex: 1;
}

/* ══════════════════════════════════════════
   PLAYER v2 — elevated
   ══════════════════════════════════════════ */
.player-bar {
  background: rgba(10,10,26,.92);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-top: 1px solid rgba(139,92,246,.2);
  box-shadow: 0 -8px 40px rgba(0,0,0,.4);
}
.player-progress-fill { background: var(--gradient); }
.player-play {
  background: var(--gradient);
  box-shadow: 0 4px 20px rgba(139,92,246,.35);
}

/* ══════════════════════════════════════════
   FOOTER v2
   ══════════════════════════════════════════ */
.footer-v2 {
  background: rgba(6,6,18,.95);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 0;
}
.footer-v2-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; max-width: 1360px; margin: 0 auto; padding: 0 1.5rem 2.5rem;
}
.footer-v2-brand .brand-text { font-size: 1.2rem; font-weight: 800; }
.footer-v2-brand p { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; max-width: 240px; line-height: 1.55; }
.footer-v2-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-v2-col a { display: block; font-size: .875rem; color: var(--text-secondary);
  text-decoration: none; margin-bottom: .6rem; transition: color .2s; }
.footer-v2-col a:hover { color: var(--text-primary); }
.footer-v2-bottom {
  border-top: 1px solid var(--glass-border); padding: 1.25rem 1.5rem;
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-muted);
}

/* ══════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 190;
  background: rgba(8,8,22,.95);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--glass-border);
  padding: .375rem 0 env(safe-area-inset-bottom, .375rem);
}
.bottom-nav-items {
  display: flex; align-items: center; justify-content: space-around;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .375rem .875rem; border-radius: 12px;
  color: var(--text-muted); text-decoration: none;
  font-size: .65rem; font-weight: 600; letter-spacing: .02em;
  transition: color .2s;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .navbar-center { display: none; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid .podcast-card-v2:first-child { grid-row: span 1; }
  .bento-grid .podcast-card-v2:first-child .pc-img { min-height: unset; aspect-ratio: 1; }
  .footer-v2-inner { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 360px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .site-header { background: var(--glass-bg); backdrop-filter: blur(20px); border-bottom-color: var(--glass-border); }
  .nav-submit-pill { display: none; }
  .hamburger { display: flex; }
  .hero-split { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-visual { display: none; }
  .hero-h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-stats { gap: 1.5rem; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body.player-active { padding-bottom: calc(60px + 72px + env(safe-area-inset-bottom, 0px)); }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-v2-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-v2-brand { grid-column: 1 / -1; }
  .footer-v2-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .scroll-row .podcast-card-v2 { width: 148px; }
  .scroll-row .episode-card-v2 { width: 260px; }
  .categories-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1rem; }
  .categories-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .footer-v2-inner { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════ */
.container-xl { max-width: 1360px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }


/* ══════════════════════════════════════════
   HERO EYEBROW — redesigned (clean pulse dot)
   ══════════════════════════════════════════ */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .925rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 1.25rem; letter-spacing: 0;
  text-transform: none; background: none; border: none; padding: 0;
}
.eyebrow-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gradient); flex-shrink: 0;
  animation: eyebrow-pulse 2.4s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139,92,246,.5); }
  50%       { transform: scale(1.3); box-shadow: 0 0 0 7px rgba(139,92,246,0); }
}

/* ══════════════════════════════════════════
   THEME TOGGLE ICON STATES
   ══════════════════════════════════════════ */
#theme-toggle .icon-moon { display: none; }
[data-theme="light"] #theme-toggle .icon-sun  { display: none; }
[data-theme="light"] #theme-toggle .icon-moon { display: block; }

/* ══════════════════════════════════════════
   LIGHT THEME — variable overrides
   ══════════════════════════════════════════ */
[data-theme="light"] {
  --bg-primary:    #f5f4ff;
  --bg-secondary:  #eceaff;
  --bg-card:       #ffffff;
  --text-primary:  #0f0e1a;
  --text-secondary:rgba(15,14,26,.65);
  --text-muted:    rgba(15,14,26,.4);
  --border:        rgba(15,14,26,.08);
  --glass-bg:      rgba(245,244,255,.9);
  --glass-border:  rgba(15,14,26,.08);
}

/* Light: navbar */
[data-theme="light"] .site-header,
[data-theme="light"] .site-header.scrolled {
  background: rgba(245,244,255,.92);
  border-bottom-color: rgba(15,14,26,.08);
}
[data-theme="light"] .nav-link { color: rgba(15,14,26,.65); }
[data-theme="light"] .nav-link:hover { color: rgba(15,14,26,.9); background: rgba(15,14,26,.06); }
[data-theme="light"] .nav-link.active { background: rgba(139,92,246,.12); }
[data-theme="light"] .navbar-brand { color: var(--text-primary); }
[data-theme="light"] .btn-icon {
  background: rgba(15,14,26,.06); border-color: rgba(15,14,26,.1); color: rgba(15,14,26,.6);
}
[data-theme="light"] .btn-icon:hover { background: rgba(15,14,26,.12); color: rgba(15,14,26,.9); }
[data-theme="light"] .hamburger { background: rgba(15,14,26,.06); border-color: rgba(15,14,26,.1); }
[data-theme="light"] .hamburger span { background: rgba(15,14,26,.65); }

/* Light: hero */
[data-theme="light"] .hero-v2 {
  background: linear-gradient(160deg, #f5f4ff 0%, #eceaff 100%);
}
[data-theme="light"] .aurora { opacity: 0.4; }
[data-theme="light"] .hero-v2::before { opacity: 0.01; }
[data-theme="light"] .hero-h1 { color: #0f0e1a; }
[data-theme="light"] .hero-sub-v2 { color: rgba(15,14,26,.6); }
[data-theme="light"] .hero-eyebrow { color: rgba(15,14,26,.55); }
[data-theme="light"] .hero-stat-l { color: rgba(15,14,26,.45); }
[data-theme="light"] .hero-search-v2 input {
  background: rgba(255,255,255,.9); border-color: rgba(15,14,26,.15);
  color: #0f0e1a; box-shadow: 0 2px 16px rgba(15,14,26,.06);
}
[data-theme="light"] .hero-search-v2 input::placeholder { color: rgba(15,14,26,.35); }
[data-theme="light"] .hero-search-v2 input:focus { border-color: var(--accent); background: #fff; }
[data-theme="light"] .hero-search-v2 svg { color: rgba(15,14,26,.35); }
[data-theme="light"] .cat-pill-v2 {
  background: rgba(255,255,255,.8); border-color: rgba(15,14,26,.1); color: rgba(15,14,26,.65);
}
[data-theme="light"] .cat-pill-v2:hover {
  background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.3); color: #0f0e1a;
}
[data-theme="light"] .hero-visual-card {
  box-shadow: 0 16px 50px rgba(15,14,26,.15), 0 0 0 1px rgba(15,14,26,.06);
}

/* Light: content sections */
[data-theme="light"] .page-sections-v2 { background: transparent; }
[data-theme="light"] .section-title-v2 { color: #0f0e1a; }
[data-theme="light"] .section-link-v2 { color: var(--accent); }
[data-theme="light"] .podcast-card-v2 { background: #fff; border-color: rgba(15,14,26,.08); }
[data-theme="light"] .podcast-card-v2:hover { box-shadow: var(--glow-purple), 0 20px 40px rgba(15,14,26,.12); }
[data-theme="light"] .pc-title { color: #0f0e1a; }
[data-theme="light"] .pc-author { color: rgba(15,14,26,.5); }
[data-theme="light"] .pc-placeholder { background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(6,182,212,.08)); }
[data-theme="light"] .episode-card-v2 { border-color: rgba(15,14,26,.06); }
[data-theme="light"] .cat-tile { background: #fff; border-color: rgba(15,14,26,.08); }
[data-theme="light"] .cat-tile:hover { border-color: rgba(139,92,246,.3); box-shadow: 0 12px 30px rgba(15,14,26,.08); }
[data-theme="light"] .cat-tile-name { color: rgba(15,14,26,.65); }
[data-theme="light"] .episode-list-item { color: #0f0e1a; }
[data-theme="light"] .episode-list-item:hover { background: rgba(139,92,246,.05); }
[data-theme="light"] .episode-list-podcast { color: var(--accent); }
[data-theme="light"] .episode-list-title { color: rgba(15,14,26,.8); }
[data-theme="light"] .episode-rank { color: rgba(15,14,26,.25); }
[data-theme="light"] .episode-list-comments { color: rgba(15,14,26,.45); }
[data-theme="light"] .sidebar-widget { background: #fff; border-color: rgba(15,14,26,.08); }
[data-theme="light"] .widget-title { color: rgba(15,14,26,.5); }
[data-theme="light"] .recent-podcast-title { color: #0f0e1a; }
[data-theme="light"] .recent-podcast-count { color: rgba(15,14,26,.45); }
[data-theme="light"] .two-col-section .section-v2 { background: transparent; }

/* Light: search overlay */
[data-theme="light"] .search-overlay { background: rgba(245,244,255,.97); }
[data-theme="light"] .search-overlay-input {
  background: rgba(255,255,255,.9); border-color: rgba(15,14,26,.15); color: #0f0e1a;
}
[data-theme="light"] .search-overlay-input::placeholder { color: rgba(15,14,26,.35); }
[data-theme="light"] .search-overlay-close { color: rgba(15,14,26,.45); }
[data-theme="light"] #search-results .search-result-item { color: #0f0e1a; border-color: rgba(15,14,26,.06); }
[data-theme="light"] #search-results .search-result-item:hover { background: rgba(139,92,246,.06); }

/* Light: footer */
[data-theme="light"] .footer-v2 { background: #eceaff; border-top-color: rgba(15,14,26,.08); }
[data-theme="light"] .footer-v2-brand p { color: rgba(15,14,26,.5); }
[data-theme="light"] .footer-v2-col h4 { color: rgba(15,14,26,.4); }
[data-theme="light"] .footer-v2-col a { color: rgba(15,14,26,.6); }
[data-theme="light"] .footer-v2-col a:hover { color: #0f0e1a; }
[data-theme="light"] .footer-v2-bottom { color: rgba(15,14,26,.4); border-top-color: rgba(15,14,26,.08); }

/* Light: player & bottom nav */
[data-theme="light"] .player-bar { background: rgba(245,244,255,.97); border-top-color: rgba(15,14,26,.1); }
[data-theme="light"] .bottom-nav { background: rgba(245,244,255,.97); border-top-color: rgba(15,14,26,.08); }
[data-theme="light"] .bottom-nav-item { color: rgba(15,14,26,.45); }
[data-theme="light"] .bottom-nav-item.active,
[data-theme="light"] .bottom-nav-item:hover { color: var(--accent); }

/* Light: ads */
[data-theme="light"] .ad-container { border-color: rgba(15,14,26,.06); background: rgba(255,255,255,.7); }


/* ══════════════════════════════════════════
   INNER PAGES — top padding for fixed navbar
   All pages except home (hero-v2 handles its own offset)
   ══════════════════════════════════════════ */
.main-content {
  padding-top: calc(var(--nav-h) + 2rem);
  min-height: 80vh;
}

/* ══════════════════════════════════════════
   HERO MOSAIC — 3-card layout (1 tall + 2 stacked)
   Remove 4th card overflow by limiting to 3
   ══════════════════════════════════════════ */
.hero-visual-card:nth-child(n+4) { display: none; }

.hero-visual-card:nth-child(2),
.hero-visual-card:nth-child(3) {
  /* ensure equal height in 2-row grid */
}

/* ══════════════════════════════════════════
   SECTION SPACING — tighten hero gap on desktop
   ══════════════════════════════════════════ */
.hero-split {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

/* ══════════════════════════════════════════
   PODCAST PAGE — header card inside main-content
   ══════════════════════════════════════════ */
.podcast-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.podcast-header img {
  width: 180px; height: 180px;
  object-fit: cover; border-radius: 12px;
  flex-shrink: 0;
}
.podcast-header-info { flex: 1; }
.podcast-header-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.podcast-header-author { color: var(--accent-2); font-weight: 600; margin-bottom: .75rem; font-size: .9rem; }
.podcast-header-desc { color: var(--text-secondary); line-height: 1.65; font-size: .9rem; }

/* ══════════════════════════════════════════
   CATEGORY / SEARCH / SUBMIT PAGES
   ══════════════════════════════════════════ */
.category-header,
.page-hero,
.submit-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.category-icon-large { font-size: 3rem; }
.category-title { font-size: 1.5rem; font-weight: 800; }
.category-subtitle { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

/* ══════════════════════════════════════════
   EPISODE PAGE — header below navbar
   ══════════════════════════════════════════ */
.episode-header {
  display: flex; gap: 2rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 2rem; margin-bottom: 2.5rem;
}

/* Light mode — inner page adjustments */
[data-theme="light"] .main-content { background: transparent; }
[data-theme="light"] .podcast-header,
[data-theme="light"] .category-header,
[data-theme="light"] .episode-header {
  background: #fff; border-color: rgba(15,14,26,.08);
}


/* ══════════════════════════════════════════
   PODCASTS PAGE — full grid + filters
   ══════════════════════════════════════════ */
.page-hero {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 2rem;
}
.page-hero-icon { font-size: 2.5rem; flex-shrink: 0; }
.page-hero-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .25rem; }
.page-hero-sub { color: var(--text-muted); font-size: .9rem; }

.filter-bar {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-pill {
  padding: .4rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: all .2s;
}
.filter-pill:hover { background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.3); color: var(--text-primary); }
.filter-pill--active { background: var(--gradient); border-color: transparent; color: #fff; }

.podcasts-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 2rem 0; padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.page-btn {
  padding: .5rem 1.25rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text-secondary); text-decoration: none; font-size: .85rem;
  transition: all .2s;
}
.page-btn:hover { background: rgba(139,92,246,.15); color: var(--text-primary); }
.page-info { font-size: .85rem; color: var(--text-muted); }

.empty-state {
  text-align: center; padding: 4rem 1rem;
  color: var(--text-muted); font-size: 1rem;
}

/* Light mode */
[data-theme="light"] .filter-pill { background: rgba(255,255,255,.8); border-color: rgba(15,14,26,.1); color: rgba(15,14,26,.65); }
[data-theme="light"] .filter-pill:hover { background: rgba(139,92,246,.1); }
[data-theme="light"] .page-btn { background: rgba(255,255,255,.8); border-color: rgba(15,14,26,.1); }


/* ══════════════════════════════════════════
   HERO SPACING FIX — align from top, not center
   ══════════════════════════════════════════ */
.hero-v2 {
  justify-content: flex-start !important;
  padding-top: calc(var(--nav-h) + 2.5rem) !important;
}
.hero-split {
  padding-top: 0 !important;
  padding-bottom: 2rem;
}

/* ══════════════════════════════════════════
   SECTION GAPS — more breathing room
   ══════════════════════════════════════════ */
.page-sections-v2 {
  padding-top: 2.5rem !important;
}
.section-v2:first-child {
  margin-top: 1rem;
}


/* ══════════════════════════════════════════
   LANGUAGE SWITCHER
   ══════════════════════════════════════════ */
.lang-switcher {
  display: flex; align-items: center; gap: .2rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: .2rem;
}
.lang-btn {
  padding: .25rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  transition: all .2s; line-height: 1;
}
.lang-btn:hover { color: var(--text-primary); background: rgba(255,255,255,.08); }
.lang-btn--active { background: var(--gradient); color: #fff !important; }

[data-theme="light"] .lang-switcher { background: rgba(15,14,26,.05); border-color: rgba(15,14,26,.1); }
[data-theme="light"] .lang-btn { color: rgba(15,14,26,.5); }
[data-theme="light"] .lang-btn:hover { color: rgba(15,14,26,.85); background: rgba(15,14,26,.06); }

/* ══════════════════════════════════════════
   RADIO — Nav live dot
   ══════════════════════════════════════════ */
.nav-link--radio { display: flex; align-items: center; gap: .375rem; }
.nav-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ef4444; flex-shrink: 0;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100%{ opacity:1; box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50%{ opacity:.8; box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* ══════════════════════════════════════════
   RADIO — En Direct home strip
   ══════════════════════════════════════════ */
.en-direct-strip {
  padding: 2rem 0 0;
  position: relative; z-index: 2;
}
.radio-mini-row {
  display: flex; gap: .75rem;
  overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.radio-mini-row::-webkit-scrollbar { display: none; }
.radio-mini-card {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: .75rem 1rem;
  flex-shrink: 0; scroll-snap-align: start; min-width: 220px;
  cursor: pointer; transition: all .25s; position: relative;
}
.radio-mini-card:hover { border-color: rgba(239,68,68,.4); box-shadow: 0 8px 24px rgba(239,68,68,.12); }
.rmc-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(239,68,68,.3),rgba(245,158,11,.2)); display:flex;align-items:center;justify-content:center; }
.rmc-logo img { width: 100%; height: 100%; object-fit: cover; }
.rmc-initial { font-size: 1.2rem; font-weight: 800; color: #ef4444; }
.rmc-body { flex: 1; min-width: 0; }
.rmc-name { font-size: .82rem; font-weight: 700; white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.rmc-genre { font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.rmc-play {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #ef4444;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s;
}
.rmc-play:hover { background: #ef4444; color: #fff; }
.rmc-live-dot {
  position: absolute; top: .5rem; right: .5rem;
  width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
  animation: live-pulse 1.8s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   RADIO — /radio page grid
   ══════════════════════════════════════════ */
.radio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.radio-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem;
  transition: all .25s; position: relative; overflow: hidden;
}
.radio-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(239,68,68,.06), transparent 60%);
  opacity:0; transition: opacity .25s;
}
.radio-card:hover::before { opacity:1; }
.radio-card:hover { border-color: rgba(239,68,68,.35); box-shadow: 0 12px 32px rgba(239,68,68,.1); }
.radio-card-logo {
  width: 68px; height: 68px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(239,68,68,.25),rgba(245,158,11,.15));
  display:flex;align-items:center;justify-content:center;
}
.radio-card-logo img { width:100%;height:100%;object-fit:cover; }
.radio-card-initial { font-size: 1.8rem; font-weight: 800; color: #ef4444; }
.radio-card-info { flex: 1; min-width: 0; }
.radio-card-name { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.radio-card-genre { font-size: .78rem; color: var(--text-muted); margin-bottom: .35rem; }
.radio-card-desc { font-size: .78rem; color: var(--text-secondary); line-height: 1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.radio-card-actions { display:flex;align-items:center;gap:.75rem;flex-shrink:0; }
.btn-radio-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(239,68,68,.15); border: 1.5px solid rgba(239,68,68,.35); color: #ef4444;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition: all .2s var(--ease-spring);
}
.btn-radio-play:hover { background: #ef4444; color: #fff; transform: scale(1.08); }
.radio-live-badge {
  display:flex;align-items:center;gap:.3rem;
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  border-radius: 999px; padding: .25rem .6rem;
  font-size: .65rem; font-weight: 700; color: #fca5a5; letter-spacing:.04em;
}
.live-dot { width:6px;height:6px;border-radius:50%;background:#ef4444;animation:live-pulse 1.8s ease-in-out infinite;flex-shrink:0; }

/* Light mode radio */
[data-theme="light"] .radio-card { background: #fff; border-color: rgba(15,14,26,.08); }
[data-theme="light"] .radio-mini-card { background: #fff; border-color: rgba(15,14,26,.08); }

/* ══════════════════════════════════════════
   RTL — Arabic Darija layout overrides
   ══════════════════════════════════════════ */
[dir="rtl"] .navbar-v2 { direction: rtl; }
[dir="rtl"] .navbar-center { direction: rtl; }
[dir="rtl"] .navbar-end { direction: rtl; }

[dir="rtl"] .hero-split { direction: rtl; }
[dir="rtl"] .hero-text-col { text-align: right; }
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .hero-search-v2 svg { left: auto; right: 1.1rem; }
[dir="rtl"] .hero-search-v2 input { padding: .9rem 3rem .9rem 1.25rem; }
[dir="rtl"] .hero-stats { justify-content: flex-end; }

[dir="rtl"] .section-header-v2 { flex-direction: row-reverse; }
[dir="rtl"] .section-link-v2 { direction: ltr; }

[dir="rtl"] .ec-podcast, [dir="rtl"] .ec-title, [dir="rtl"] .ec-meta { text-align: right; }
[dir="rtl"] .ec-duration { right: auto; left: .625rem; }

[dir="rtl"] .pc-body { text-align: right; }
[dir="rtl"] .episode-list-item { flex-direction: row-reverse; }
[dir="rtl"] .episode-list-comments { margin-right: auto; margin-left: 0; }

[dir="rtl"] .search-overlay-inner svg { left: auto; right: 2.5rem; }
[dir="rtl"] .search-overlay-input { padding: 1rem 3.5rem 1rem 1rem; }
[dir="rtl"] .search-overlay-close { right: auto; left: 2rem; }

[dir="rtl"] .footer-v2-inner { direction: rtl; }
[dir="rtl"] .footer-v2-bottom { direction: rtl; flex-direction: row-reverse; }

[dir="rtl"] .bottom-nav-items { direction: rtl; }
[dir="rtl"] .radio-mini-card { flex-direction: row-reverse; }
[dir="rtl"] .radio-card { flex-direction: row-reverse; }
[dir="rtl"] .radio-card-info { text-align: right; }
[dir="rtl"] .rmc-live-dot { right: auto; left: .5rem; }

/* RTL: pagination arrow reversal */
[dir="rtl"] .hero-cats-v2 { direction: rtl; }

@media (max-width: 768px) {
  .lang-switcher { display: none; } /* shown in bottom nav instead on mobile */
  .lang-switcher-mobile {
    display: flex; justify-content: center; gap: .5rem; padding: .5rem 0;
  }
}

/* ══════════════════════════════════════════
   NAVBAR — Always-visible background
   (glass is invisible vs light-colored content)
   ══════════════════════════════════════════ */
.site-header {
  background: rgba(10, 9, 20, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(8, 7, 18, 0.97) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35) !important;
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08) !important;
}

/* ══════════════════════════════════════════
   RADIO PAGE — Station Grid
   ══════════════════════════════════════════ */
.radio-page { min-height: 80vh; }
.radio-hero {
  padding: calc(var(--nav-h, 4rem) + 2rem) 0 2rem;
  text-align: center;
}
.radio-hero-title {
  font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: .5rem;
}
.radio-hero-sub { color: var(--text-muted); font-size: 1.05rem; }

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}
.station-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem 1rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  cursor: pointer; text-align: center; position: relative; overflow: hidden;
  transition: all .25s var(--ease-spring,cubic-bezier(.34,1.56,.64,1));
  color: var(--text-primary);
}
.station-card::before {
  content:''; position:absolute; inset:0; opacity:0; transition:opacity .3s;
  background: radial-gradient(circle at 50% 0%, rgba(239,68,68,.15), transparent 70%);
}
.station-card:hover { transform: translateY(-4px); border-color: rgba(239,68,68,.45);
  box-shadow: 0 16px 40px rgba(239,68,68,.15); }
.station-card:hover::before { opacity:1; }
.station-card:active { transform: scale(.97); }

.sc-logo {
  width: 80px; height: 80px; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg,rgba(239,68,68,.25),rgba(245,158,11,.15));
  display:flex;align-items:center;justify-content:center;
  box-shadow: 0 4px 20px rgba(239,68,68,.2);
}
.sc-logo img { width:100%;height:100%;object-fit:cover; }
.sc-initial { font-size:2rem;font-weight:800;color:#ef4444; }
.sc-live-ring {
  position:absolute;inset:-3px;border-radius:23px;
  border:2px solid rgba(239,68,68,.5);
  animation: ring-pulse 2s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%,100%{ opacity:.5;transform:scale(1); }
  50%{ opacity:1;transform:scale(1.03); }
}
.sc-info { width:100%; }
.sc-name { font-size:.95rem;font-weight:700;margin-bottom:.2rem; }
.sc-genre { font-size:.72rem;color:var(--text-muted); }
.sc-badge {
  display:inline-flex;align-items:center;gap:.3rem;
  background:rgba(239,68,68,.15);border:1px solid rgba(239,68,68,.3);
  border-radius:999px;padding:.2rem .55rem;
  font-size:.62rem;font-weight:700;color:#fca5a5;letter-spacing:.05em;
}
.dot-pulse {
  width:6px;height:6px;border-radius:50%;background:#ef4444;
  animation:live-pulse 1.8s ease-in-out infinite;flex-shrink:0;
}

/* ══════════════════════════════════════════
   RADIO ROOM MODAL
   ══════════════════════════════════════════ */
.radio-room {
  position:fixed;inset:0;z-index:900;
  display:flex;align-items:flex-end;justify-content:center;
}
.radio-room[hidden] { display:none; }
.rr-backdrop {
  position:absolute;inset:0;
  background:rgba(0,0,0,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  opacity:0;transition:opacity .3s;
}
.radio-room.open .rr-backdrop { opacity:1; }

.rr-panel {
  position:relative;z-index:1;
  display:flex;width:100%;max-width:1000px;
  height:88vh;max-height:700px;
  background:var(--bg-elevated,#13121f);
  border-radius:28px 28px 0 0;
  overflow:hidden;
  transform:translateY(100%);transition:transform .35s cubic-bezier(.32,0,.67,0);
  box-shadow:0 -8px 60px rgba(0,0,0,.5);
}
@media(min-width:640px){
  .radio-room { align-items:center; }
  .rr-panel { border-radius:28px;height:85vh;transform:translateY(40px) scale(.96);opacity:0;transition:all .35s cubic-bezier(.32,0,.67,0); }
}
.radio-room.open .rr-panel { transform:none;opacity:1; }

/* Station side */
.rr-station {
  width:260px;min-width:260px;
  background:linear-gradient(160deg,rgba(239,68,68,.08),rgba(15,14,26,.95));
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;align-items:center;
  padding:2rem 1.5rem 1.5rem;gap:.75rem;
  overflow-y:auto;
}
@media(max-width:639px){
  .rr-panel { flex-direction:column; }
  .rr-station { width:100%;min-width:unset;border-right:none;border-bottom:1px solid var(--border);padding:1.25rem;flex-direction:row;flex-wrap:wrap;gap:.75rem; }
  .rr-logo-wrap,.rr-controls { flex-shrink:0; }
  .rr-station-name,.rr-station-meta,.rr-station-desc { width:100%; }
}

.rr-close {
  position:absolute;top:1rem;right:1rem;z-index:10;
  width:32px;height:32px;border-radius:50%;border:1px solid var(--border);
  background:rgba(255,255,255,.06);color:var(--text-muted);font-size:.9rem;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:all .2s;
}
.rr-close:hover { background:rgba(255,255,255,.12);color:var(--text-primary); }

.rr-logo-wrap { position:relative;margin-top:.5rem; }
.rr-logo {
  width:110px;height:110px;border-radius:24px;overflow:hidden;
  background:linear-gradient(135deg,rgba(239,68,68,.3),rgba(245,158,11,.2));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 32px rgba(239,68,68,.25);
}
.rr-logo img { width:100%;height:100%;object-fit:cover; }
.rr-live-badge {
  position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap;
  background:rgba(239,68,68,.2);border:1px solid rgba(239,68,68,.4);
  border-radius:999px;padding:.2rem .7rem;
  font-size:.65rem;font-weight:800;color:#fca5a5;letter-spacing:.07em;
}
.rr-station-name { font-size:1.1rem;font-weight:800;text-align:center;margin-top:.75rem; }
.rr-station-meta { font-size:.75rem;color:var(--text-muted);text-align:center; }
.rr-station-desc {
  font-size:.78rem;color:var(--text-secondary);text-align:center;line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

.rr-controls { display:flex;flex-direction:column;align-items:center;gap:.75rem;width:100%;margin-top:auto; }
.rr-play-btn {
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  border:none;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(239,68,68,.4);
  transition:all .2s;
}
.rr-play-btn:hover { transform:scale(1.07);box-shadow:0 8px 28px rgba(239,68,68,.5); }
.rr-play-btn:active { transform:scale(.96); }

.rr-volume-wrap { display:flex;align-items:center;gap:.6rem;width:100%; }
.rr-volume {
  flex:1;-webkit-appearance:none;appearance:none;height:4px;
  background:rgba(255,255,255,.15);border-radius:2px;outline:none;cursor:pointer;
}
.rr-volume::-webkit-slider-thumb {
  -webkit-appearance:none;width:16px;height:16px;border-radius:50%;
  background:#ef4444;border:2px solid #fff;cursor:pointer;
  box-shadow:0 2px 8px rgba(239,68,68,.4);
}

/* Chat side */
.rr-chat { flex:1;display:flex;flex-direction:column;overflow:hidden; }
.rr-chat-header {
  padding:1rem 1.25rem;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;flex-shrink:0;
}
.rr-chat-title { font-weight:700;font-size:.95rem; }
.rr-listeners { font-size:.75rem;color:var(--text-muted); }

.rr-messages {
  flex:1;overflow-y:auto;padding:.75rem 1rem;
  display:flex;flex-direction:column;gap:.5rem;
  scroll-behavior:smooth;
}
.rr-messages::-webkit-scrollbar { width:4px; }
.rr-messages::-webkit-scrollbar-thumb { background:rgba(255,255,255,.1);border-radius:2px; }

.rr-welcome-msg,.rr-system-msg {
  text-align:center;font-size:.75rem;color:var(--text-muted);
  padding:.4rem .75rem;background:rgba(255,255,255,.04);border-radius:8px;
  font-style:italic;
}
.rr-system-msg { color:#fca5a5;background:rgba(239,68,68,.08); }

.rr-msg { display:flex;gap:.6rem;align-items:flex-start; }
.rr-msg-avatar {
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:.7rem;font-weight:800;color:#fff;
}
.rr-msg-body { flex:1;min-width:0; }
.rr-msg-name { font-size:.75rem;font-weight:700;margin-right:.4rem; }
.rr-msg-time { font-size:.65rem;color:var(--text-muted); }
.rr-msg-text { font-size:.85rem;line-height:1.5;word-break:break-word;margin-top:.15rem; }

.rr-input-area {
  border-top:1px solid var(--border);padding:.75rem 1rem;flex-shrink:0;
  display:flex;flex-direction:column;gap:.5rem;
  background:rgba(0,0,0,.15);
}
.rr-name-row { display:flex;gap:.5rem; }
.rr-msg-row { display:flex;gap:.5rem; }
.rr-input {
  flex:1;background:rgba(255,255,255,.06);border:1px solid var(--border);
  border-radius:12px;padding:.6rem 1rem;color:var(--text-primary);
  font-size:.85rem;outline:none;transition:border-color .2s;
}
.rr-input:focus { border-color:rgba(239,68,68,.5); }
.rr-input-error { border-color:#ef4444!important;animation:shake .3s ease; }
@keyframes shake { 0%,100%{transform:none} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.rr-input-name { max-width:140px; }
.rr-send-btn {
  width:40px;height:40px;border-radius:12px;flex-shrink:0;
  background:rgba(239,68,68,.2);border:1px solid rgba(239,68,68,.3);color:#ef4444;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:all .2s;
}
.rr-send-btn:hover { background:#ef4444;color:#fff; }
.rr-send-btn:disabled { opacity:.4;cursor:not-allowed; }
.rr-chat-hint { font-size:.67rem;color:var(--text-muted);text-align:center; }

/* Prevent body scroll when room open */
body.room-open { overflow:hidden; }

/* Light theme */
[data-theme="light"] .rr-panel { background:#f8f7ff; }
[data-theme="light"] .rr-station { background:linear-gradient(160deg,rgba(239,68,68,.05),#f0eefc); }
[data-theme="light"] .rr-input { background:rgba(15,14,26,.04);color:#0f0e1a; }
[data-theme="light"] .rr-input-area { background:rgba(15,14,26,.02); }
[data-theme="light"] .rr-volume { background:rgba(0,0,0,.15); }

/* ══════════════════════════════════════════
   INDIVIDUAL STATION PAGE
   ══════════════════════════════════════════ */
.station-page-wrap { max-width: 1000px; margin: 0 auto; padding: 0 1rem 3rem; }

.breadcrumb-nav {
  display:flex;align-items:center;gap:.5rem;
  font-size:.8rem;color:var(--text-muted);padding:1rem 0;flex-wrap:wrap;
}
.breadcrumb-nav a { color:var(--text-muted);text-decoration:none; }
.breadcrumb-nav a:hover { color:var(--text-primary); }

/* Hero */
.sp-hero {
  display:flex;gap:2rem;align-items:flex-start;
  padding:1.5rem 0 2rem;
}
@media(max-width:640px){ .sp-hero { flex-direction:column;align-items:center;text-align:center; } }

.sp-logo-wrap { position:relative;flex-shrink:0; }
.sp-logo {
  width:130px;height:130px;border-radius:28px;overflow:hidden;
  background:linear-gradient(135deg,rgba(239,68,68,.3),rgba(245,158,11,.2));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 32px rgba(239,68,68,.25);
}
.sp-logo img { width:100%;height:100%;object-fit:cover; }
.sp-initial { font-size:3rem;font-weight:800;color:#ef4444; }
.sp-live-ring {
  position:absolute;inset:-4px;border-radius:32px;
  border:2px solid rgba(239,68,68,.5);
  animation:ring-pulse 2s ease-in-out infinite;
}

.sp-info { flex:1;min-width:0; }
.sp-badges { display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem; }
.sp-badge {
  padding:.25rem .65rem;border-radius:999px;font-size:.72rem;font-weight:600;
  border:1px solid var(--border);
}
.sp-badge-genre { background:rgba(139,92,246,.15);border-color:rgba(139,92,246,.3);color:#c4b5fd; }
.sp-badge-freq  { background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.3);color:#93c5fd; }
.sp-badge-live  { background:rgba(239,68,68,.15);border-color:rgba(239,68,68,.35);color:#fca5a5;
  display:inline-flex;align-items:center;gap:.35rem; }

.sp-title { font-size:clamp(1.6rem,4vw,2.4rem);font-weight:800;margin-bottom:.6rem;line-height:1.2; }
.sp-desc { font-size:.9rem;color:var(--text-secondary);line-height:1.7;margin-bottom:1rem;max-width:500px; }

/* Rating */
.sp-rating { display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem; }
.sp-stars { display:flex;gap:.15rem; }
.star-btn {
  background:none;border:none;cursor:pointer;padding:.1rem;
  transition:transform .15s;line-height:0;
}
.star-btn:hover { transform:scale(1.2); }
.sp-rating-info { display:flex;align-items:baseline;gap:.3rem;font-size:.9rem; }
.sp-avg { font-size:1.2rem;font-weight:800;color:#fbbf24; }
.sp-sep { color:var(--text-muted); }
.sp-count { font-size:.78rem;color:var(--text-muted); }
.sp-no-rating { font-size:.8rem;color:var(--text-muted);font-style:italic; }

.sp-site-link {
  display:inline-flex;align-items:center;gap:.3rem;font-size:.82rem;
  color:var(--accent,#a78bfa);text-decoration:none;
}
.sp-site-link:hover { text-decoration:underline; }

/* Body: player + chat side-by-side */
.sp-body {
  display:grid;grid-template-columns:1fr 1.6fr;gap:1.25rem;margin-bottom:2rem;
}
@media(max-width:700px){ .sp-body { grid-template-columns:1fr; } }

/* Player card */
.sp-player-card {
  background:var(--bg-card);border:1px solid var(--border);border-radius:20px;
  padding:1.5rem;display:flex;flex-direction:column;gap:1rem;
}
.sp-player-header { display:flex;align-items:center;justify-content:space-between;font-size:.85rem;font-weight:700; }
.sp-player-live-badge {
  display:inline-flex;align-items:center;gap:.3rem;
  background:rgba(239,68,68,.15);border:1px solid rgba(239,68,68,.3);
  border-radius:999px;padding:.2rem .55rem;font-size:.65rem;font-weight:800;color:#fca5a5;letter-spacing:.05em;
}
.sp-player-controls { display:flex;align-items:center;gap:1rem; }
.sp-play-btn {
  width:72px;height:72px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#ef4444,#dc2626);border:none;color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 4px 20px rgba(239,68,68,.4);transition:all .2s;
}
.sp-play-btn:hover { transform:scale(1.06);box-shadow:0 8px 28px rgba(239,68,68,.5); }
.sp-vol-wrap { display:flex;align-items:center;gap:.5rem;flex:1; }
.sp-volume {
  flex:1;-webkit-appearance:none;appearance:none;height:4px;
  background:rgba(255,255,255,.15);border-radius:2px;outline:none;cursor:pointer;
}
.sp-volume::-webkit-slider-thumb {
  -webkit-appearance:none;width:16px;height:16px;border-radius:50%;
  background:#ef4444;border:2px solid #fff;cursor:pointer;
}
.sp-vol-pct { font-size:.72rem;color:var(--text-muted);min-width:32px; }
.sp-status { font-size:.8rem;color:var(--text-muted);text-align:center; }

/* Chat card */
.sp-chat-card {
  background:var(--bg-card);border:1px solid var(--border);border-radius:20px;
  display:flex;flex-direction:column;overflow:hidden;min-height:360px;max-height:500px;
}
.sp-chat-header {
  padding:.9rem 1.1rem;border-bottom:1px solid var(--border);
  font-size:.85rem;font-weight:700;flex-shrink:0;
}
.sp-messages {
  flex:1;overflow-y:auto;padding:.75rem 1rem;
  display:flex;flex-direction:column;gap:.5rem;
}
.sp-messages::-webkit-scrollbar { width:3px; }
.sp-messages::-webkit-scrollbar-thumb { background:rgba(255,255,255,.1);border-radius:2px; }
.sp-chat-input {
  border-top:1px solid var(--border);padding:.75rem;flex-shrink:0;
  background:rgba(0,0,0,.1);display:flex;flex-direction:column;gap:.4rem;
}
.sp-msg-row { display:flex;gap:.4rem; }

/* Related */
.sp-related { margin-top:1rem; }
.sp-related-title { font-size:1.1rem;font-weight:700;margin-bottom:1rem; }
.sp-related-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;
}
.related-station-card {
  display:flex;align-items:center;gap:.75rem;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:14px;padding:.875rem;text-decoration:none;color:var(--text-primary);
  transition:all .2s;
}
.related-station-card:hover { border-color:rgba(239,68,68,.4);transform:translateY(-2px); }
.rsc-logo {
  width:44px;height:44px;border-radius:10px;overflow:hidden;flex-shrink:0;
  background:linear-gradient(135deg,rgba(239,68,68,.25),rgba(245,158,11,.15));
  display:flex;align-items:center;justify-content:center;
}
.rsc-logo img { width:100%;height:100%;object-fit:cover; }
.rsc-initial { font-size:1.1rem;font-weight:800;color:#ef4444; }
.rsc-info { flex:1;min-width:0; }
.rsc-name { font-size:.82rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.rsc-genre { font-size:.7rem;color:var(--text-muted); }
.rsc-live { display:flex;align-items:center; }

/* Light theme */
[data-theme="light"] .sp-player-card,
[data-theme="light"] .sp-chat-card,
[data-theme="light"] .related-station-card { background:#fff;border-color:rgba(15,14,26,.08); }
