
:root {
  --bg-1: #020b26;
  --bg-2: #041744;
  --bg-3: #07286c;
  --bg-4: #0a347f;
  --panel: rgba(10, 29, 77, 0.76);
  --panel-strong: rgba(13, 37, 96, 0.88);
  --card-border: rgba(154, 192, 255, 0.14);
  --gold: #f2d48a;
  --gold-strong: #ffd972;
  --muted: rgba(229, 236, 255, 0.82);
  --text: #f7fbff;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --blue-glow: rgba(86, 158, 255, 0.22);
  --cyan-glow: rgba(63, 223, 255, 0.14);
  --gold-glow: rgba(255, 217, 114, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(58, 119, 255, 0.24), transparent 0 24%),
    radial-gradient(circle at 85% 10%, rgba(0, 198, 255, 0.16), transparent 0 18%),
    radial-gradient(circle at 78% 82%, rgba(255, 217, 114, 0.09), transparent 0 16%),
    linear-gradient(140deg, #01081d 0%, #03153e 28%, #062662 58%, #041b4e 78%, #020d2d 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

body::before {
  top: -8%;
  left: -12%;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(44, 125, 255, 0.34) 0%, rgba(44, 125, 255, 0.18) 28%, transparent 68%);
  animation: driftGlowA 16s ease-in-out infinite;
}

body::after {
  right: -14%;
  bottom: -10%;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(13, 214, 255, 0.20) 0%, rgba(13, 214, 255, 0.10) 22%, transparent 68%);
  animation: driftGlowB 18s ease-in-out infinite;
}

.site-shell {
  position: relative;
  isolation: isolate;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 1;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.site-shell::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(141, 195, 255, 0.08) 18%, transparent 34%, transparent 100%),
    linear-gradient(130deg, transparent 0%, rgba(80, 177, 255, 0.08) 24%, transparent 42%, transparent 100%),
    radial-gradient(circle at 76% 22%, rgba(255, 217, 114, 0.08), transparent 12%);
  opacity: 0.8;
  animation: financeSweep 12s linear infinite;
}

.site-shell::after {
  background:
    linear-gradient(transparent 0 86%, rgba(117, 183, 255, 0.10) 86% 87%, transparent 87%),
    linear-gradient(transparent 0 72%, rgba(117, 183, 255, 0.07) 72% 73%, transparent 73%),
    linear-gradient(120deg, transparent 56%, rgba(255, 217, 114, 0.10) 56.3%, transparent 56.8%),
    linear-gradient(120deg, transparent 63%, rgba(141, 195, 255, 0.10) 63.25%, transparent 63.75%),
    linear-gradient(120deg, transparent 71%, rgba(255, 217, 114, 0.14) 71.25%, transparent 71.8%),
    linear-gradient(120deg, transparent 79%, rgba(101, 214, 255, 0.14) 79.2%, transparent 79.75%),
    radial-gradient(circle at 82% 78%, rgba(255, 217, 114, 0.12), transparent 10%);
  mix-blend-mode: screen;
  opacity: 0.62;
  animation: chartPulse 10s ease-in-out infinite;
}

.top-header {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 34px 34px 38px;
  border-radius: 34px;
  border: 1px solid rgba(159, 203, 255, 0.15);
  background:
    radial-gradient(circle at right top, rgba(65, 145, 255, 0.15), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(6, 24, 67, 0.40) 42%, rgba(4, 15, 45, 0.92) 100%);
  box-shadow: var(--shadow), inset 0 0 80px rgba(48, 109, 255, 0.08);
  backdrop-filter: blur(12px);
}

.top-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 217, 114, 0.10), transparent 14%),
    linear-gradient(115deg, transparent 58%, rgba(97, 210, 255, 0.12) 62%, transparent 66%),
    linear-gradient(115deg, transparent 72%, rgba(255, 217, 114, 0.11) 75%, transparent 78%);
  pointer-events: none;
  animation: headerFlow 10s ease-in-out infinite;
}

.hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(166, 207, 255, 0.14);
  color: var(--gold);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.gold-pill {
  background: linear-gradient(135deg, #d8b460, #f2d48a);
  color: #061833;
  border: none;
  box-shadow: 0 8px 24px rgba(242, 212, 138, 0.18);
}

.top-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 900px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  line-height: 1.03;
  font-weight: 700;
  color: #f5dfaa;
  letter-spacing: 0.4px;
  text-shadow:
    0 0 16px rgba(242, 212, 138, 0.10),
    0 0 36px rgba(79, 147, 255, 0.10);
}

.subtitle {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  max-width: 820px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
}

.podcast-wrap {
  display: grid;
  gap: 26px;
  margin-top: 22px;
}

.intro-card,
.loading-card,
.episode-card,
.featured-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(62, 138, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(11, 34, 88, 0.88), rgba(7, 23, 59, 0.92));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.intro-card::before,
.featured-card::before,
.episode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 25%),
    linear-gradient(270deg, rgba(242, 212, 138, 0.04), transparent 22%),
    linear-gradient(115deg, transparent 70%, rgba(93, 197, 255, 0.08) 74%, transparent 77%);
  pointer-events: none;
}

.intro-card {
  padding: 30px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-card h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", Georgia, serif;
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1.15;
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.library-card {
  margin-top: 2px;
}

.loading-card {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
}

.featured-wrap {
  display: grid;
  gap: 24px;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.featured-card {
  padding: 28px;
}

.episode-card {
  padding: 22px;
  height: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
  border-color: rgba(179, 216, 255, 0.24);
}

.episode-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.featured-badge,
.episode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(181, 214, 255, 0.14);
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 22px rgba(61, 147, 255, 0.08);
  margin: 0;
}

.new-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8b460, #f2d48a);
  color: #07142f;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    0 0 22px rgba(242, 212, 138, 0.22),
    0 10px 22px rgba(242, 212, 138, 0.18);
}

.featured-title {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-title {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card .episode-video {
  max-width: 900px;
  margin: 0 auto 18px;
}

.episode-card .episode-video {
  max-width: 540px;
  margin: 0 auto 16px;
}

.episode-video {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #041237;
  border: 1px solid rgba(180, 214, 255, 0.10);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(61, 147, 255, 0.12);
}

.episode-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.episode-description {
  margin: 0;
  max-width: 980px;
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  line-height: 1.72;
  color: rgba(244, 248, 255, 0.92);
}

.no-video {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(181, 214, 255, 0.16);
  color: var(--muted);
  font-size: 0.92rem;
}

.error-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(80, 10, 10, 0.2);
  border: 1px solid rgba(255, 120, 120, 0.18);
  color: #ffd0d0;
}

.ghost-admin-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  user-select: none;
}

.ghost-admin-link:hover {
  color: rgba(242, 212, 138, 0.42);
}

@keyframes driftGlowA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(6vw, 3vh) scale(1.08); opacity: 1; }
}

@keyframes driftGlowB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-4vw, -3vh) scale(1.1); opacity: 0.95; }
}

@keyframes financeSweep {
  0% { transform: translateX(-6%); opacity: 0.44; }
  50% { transform: translateX(2%); opacity: 0.76; }
  100% { transform: translateX(8%); opacity: 0.44; }
}

@keyframes chartPulse {
  0%, 100% { opacity: 0.42; transform: translateY(0); }
  50% { opacity: 0.72; transform: translateY(-6px); }
}

@keyframes headerFlow {
  0%, 100% { opacity: 0.45; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(1.6%); }
}

@media (max-width: 900px) {
  .episodes-grid {
    grid-template-columns: 1fr;
  }

  .featured-title {
    font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  }

  .episode-title {
    font-size: clamp(0.98rem, 2.8vw, 1.2rem);
  }

  .featured-card .episode-video,
  .episode-card .episode-video {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .top-header {
    padding: 22px 18px 26px;
  }

  .intro-card,
  .featured-card,
  .episode-card,
  .loading-card {
    padding: 18px;
  }

  .featured-badge,
  .episode-badge {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.86rem;
  }

  .new-sticker {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.72rem;
  }

  .featured-title {
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  .episode-title {
    margin-bottom: 12px;
    font-size: 0.95rem;
  }

  .episode-video {
    margin-bottom: 14px !important;
    border-radius: 18px;
  }

  .subtitle {
    font-size: 0.92rem;
  }

  .episode-description {
    font-size: 0.9rem;
  }
}
