:root {
  --bg-main: #090C14;
  --bg-secondary: #17293D;

  --text-primary: #F7F9F6;
  --text-muted: #A0A6AD;

  --accent-primary: #81DCED;
  --accent-secondary: #3A95C1;

  --border: #2D5879;
}

* { box-sizing: border-box; }

/* --------------------------------------------------
   PAGE LAYOUT
-------------------------------------------------- */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;

  /* center the frame */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* Subtle centered frame */
.frame {
  width: min(80vw, 980px);
  margin: 0 auto;

  display: flex;              /* FIX */
  flex-direction: column;     /* FIX */

  border: 1px solid rgba(129, 220, 237, 0.18);
  border-radius: 18px;
  overflow: hidden;

  background: rgba(23, 41, 61, 0.18);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;

  backdrop-filter: blur(6px);
}

/* Mobile: almost full width */
@media (max-width: 720px) {
  body { padding: 14px 0; }

  .frame {
    width: calc(100vw - 24px);
    border-radius: 16px;
  }
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.header {
  padding: 72px 20px 56px;
  text-align: center;
  background: radial-gradient(
    circle at top,
    var(--bg-secondary),
    var(--bg-main) 65%
  );
}

.header__logo {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* --------------------------------------------------
   MAIN CONTENT
-------------------------------------------------- */

.main {
  max-width: none; /* frame controls width */
  margin: 0;
  padding: 0 20px 72px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

/* ----------------------------------------------
   Links
---------------------------------------------- */

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  outline: none;
}

.highlight { color: var(--text-primary); }
.muted { color: var(--text-muted); }

.section-title {
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

/* --------------------------------------------------
   VIDEO
-------------------------------------------------- */

.video {
  margin-bottom: 10px;
}

.video__meta {
  margin-bottom: 12px;
}

.video__title {
  color: var(--text-primary);
  font-weight: 650;
  font-size: 1.05rem;
}

.video__date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------
   ICONS (Simple Icons CDN)
-------------------------------------------------- */

.icon-img {
  display: block;
}

/* Social icon tiles */
.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.icon-tile:hover,
.icon-tile:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  outline: none;
}

/* Subscribe pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  outline: none;
}

.pill span {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pill--primary {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--bg-main);
}

.pill--primary span {
  color: var(--bg-main);
}

/* --------------------------------------------------
   EPISODES
-------------------------------------------------- */

.episodes { margin-top: 6px; }

.episode {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
}

.episode h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.episode .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.episode p {
  font-size: 0.95rem;
}

audio {
  width: 100%;
  margin-top: 14px;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer span { color: var(--accent-primary); }