/* ═══════════════════════════════════════════════════════════════════
   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;
}
