@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/SpaceGrotesk-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/SpaceGrotesk-700-latin.woff2") format("woff2"); }

:root {
  --night: #050816;
  --dusk: #0d1633;
  --ink: #f2f4ff;
  --muted: rgba(242, 244, 255, 0.66);
  --line: rgba(242, 244, 255, 0.16);
  --lamp: #ffc36b;
  --star: #7fb2ff;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--star); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: var(--measure); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 0.75rem; z-index: 10; background: var(--lamp); color: var(--night); padding: 0.5rem 0.9rem; }

/* Fejléc */
.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--gutter);
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.masthead nav { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); font-size: 0.95rem; }
.masthead nav a { color: var(--ink); text-decoration: none; opacity: 0.82; }
.masthead nav a:hover { opacity: 1; text-decoration: underline; }

/* Nyitókép: az éjszakai égbolt, a szöveg a dombok fölött ül */
.sky {
  position: relative;
  min-height: min(100svh, 60rem);
  display: flex; align-items: flex-end;
  padding: 7rem var(--gutter) clamp(3rem, 9vh, 6.5rem);
  background-color: var(--night);
  background-image:
    linear-gradient(to bottom, rgba(5, 8, 22, 0.55) 0%, rgba(5, 8, 22, 0) 28%, rgba(5, 8, 22, 0) 55%, var(--night) 100%),
    image-set(url("img/sky-1200.jpg") 1x, url("img/sky-2400.jpg") 2x);
  background-size: cover;
  background-position: 70% 50%;
}
.sky h1 { font-size: clamp(2.9rem, 9.5vw, 7.5rem); max-width: 11ch; }
.sky .tagline { font-family: var(--display); font-weight: 500; color: var(--lamp); font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 1.1rem 0 0.9rem; }
.sky .lede { color: var(--muted); max-width: 32rem; margin-bottom: 1.8rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; }
.button {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px;
  background: var(--lamp); color: var(--night); font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: #ffd595; color: var(--night); }

@media (prefers-reduced-motion: no-preference) {
  .sky h1, .sky .tagline, .sky .lede, .sky .actions { animation: settle 0.9s ease-out both; }
  .sky .tagline { animation-delay: 0.12s; }
  .sky .lede { animation-delay: 0.22s; }
  .sky .actions { animation-delay: 0.32s; }
}
@keyframes settle { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }

/* Szakaszok */
.band { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.band + .band { border-top: 1px solid var(--line); }
.band > h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.band--dusk { background: linear-gradient(to bottom, var(--night), var(--dusk)); }

/* Aktuális rész: lejátszó + műsorrend */
.episode { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.episode h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 0.6rem; }
.episode .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 0.75rem; overflow: hidden; background: #000; margin-bottom: 1.5rem; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player button {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: transparent;
  display: grid; place-items: center; color: var(--ink);
}
.player button svg { width: clamp(3.5rem, 8vw, 5rem); height: auto; fill: var(--lamp); filter: drop-shadow(0 0.25rem 1.2rem rgba(5, 8, 22, 0.7)); transition: transform 0.15s ease; }
.player button:hover svg { transform: scale(1.07); }

.chapters { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.chapters li { border-bottom: 1px solid var(--line); }
.chapters a { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.5rem; padding: 0.62rem 0; color: var(--ink); text-decoration: none; }
.chapters time { color: var(--lamp); font-variant-numeric: tabular-nums; }
.chapters a:hover span { text-decoration: underline; }
.chapters-title { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--muted); margin: 0 0 0.4rem; }

/* Mire számíthatsz */
.expect { display: grid; gap: clamp(1.5rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.expect .large { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 22ch; color: var(--ink); }
.topics { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; max-width: var(--measure); }
.topics li { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.92rem; color: var(--muted); }

.sources { color: var(--muted); font-size: 0.98rem; max-width: 46rem; }

/* Következő rész */
.next { display: grid; gap: clamp(1.25rem, 4vw, 3rem); grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: center; }
.next img { border-radius: 0.6rem; }

.closing { text-align: left; }
.closing h2 { max-width: 16ch; margin-bottom: 1.5rem; }

footer { border-top: 1px solid var(--line); padding: 2rem var(--gutter) 2.5rem; color: var(--muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
footer a { color: var(--muted); }

/* Szöveges oldalak (adatvédelem, feltételek, csatornaeszköz) */
.doc-head { padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--line); }
.doc { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); max-width: calc(44rem + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 0.6rem; }
.doc h2 { font-size: 1.4rem; margin: 2.4rem 0 0.7rem; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 52rem) {
  .episode, .expect, .next { grid-template-columns: minmax(0, 1fr); }
  .masthead nav a.optional { display: none; }
  .sky { background-position: 78% 50%; }
}
