/* ============================================================
   Teaser / visszaszámláló oldal (a styles.css tokenjeire épül)
   ============================================================ */

.teaser { min-height: 100vh; overflow-x: hidden; }
.no-js .needs-js { display: none !important; }

/* ─── Felső sáv ──────────────────────────────────────────── */
.t-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

/* ─── Színpad ────────────────────────────────────────────── */
.t-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #1C1C20 0%, rgba(5, 5, 5, 0) 70%),
    var(--bg);
}
/* Finom képsorok, mint egy monitoron */
.t-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 6;
}

/* A háttérben lebegő, "adásra váró" képernyő */
.screen-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
  pointer-events: none;
}
.screen {
  position: relative;
  width: min(1100px, 94vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0A0A0C;
  border: 1px solid var(--line-2);
  opacity: 0.4;
  transform: rotateX(14deg) rotateY(-18deg) rotateZ(2deg) translateZ(-200px);
  animation: drift 18s ease-in-out infinite alternate;
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.8);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
}
@keyframes drift {
  to { transform: rotateX(8deg) rotateY(14deg) rotateZ(-1deg) translateZ(-160px); }
}
.screen.vf::after { inset: 16px; --l: 30px; }
.screen canvas { width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.3; }
.screen__cam {
  position: absolute;
  left: 3%;
  top: 6%;
  width: 17%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  filter: grayscale(1) contrast(1.1);
  opacity: 0.85;
}
.screen__cam img { width: 100%; height: 100%; object-fit: cover; }
.screen__label, .screen__tc { position: absolute; bottom: 6%; font-size: clamp(9px, 1.2vw, 14px); }
.screen__label { left: 3.5%; color: var(--onair); }
.screen__tc { right: 3.5%; color: var(--text); letter-spacing: 0.12em; }

/* ─── Tartalom ───────────────────────────────────────────── */
.t-content { position: relative; z-index: 7; width: 100%; max-width: 1000px; text-align: center; }
.t-kicker { margin-bottom: 20px; }
.t-title {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin-bottom: clamp(32px, 6vh, 60px);
}

/* Számláló */
.count { display: flex; justify-content: center; align-items: flex-start; gap: clamp(6px, 2vw, 26px); }
.unit { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.digits {
  display: flex;
  font-size: clamp(3.2rem, 12.5vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.digit { position: relative; display: block; width: 0.62em; height: 1.04em; overflow: hidden; }
.digit span {
  position: absolute;
  inset: 0;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 35%, #6F6F75 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.digit .d-out { animation: d-out 0.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.digit .d-in  { animation: d-in 0.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
@keyframes d-out { to { transform: translateY(-90%); opacity: 0; filter: blur(6px); } }
@keyframes d-in  { from { transform: translateY(90%); opacity: 0; filter: blur(6px); } }
.sep {
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
  padding-top: 0.14em;
  color: var(--text-3);
  animation: sep 1s steps(2, start) infinite;
}
@keyframes sep { 50% { opacity: 0.2; } }

/* Hét: 7 szakasz, a mai pirosan tölt */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 560px;
  margin: clamp(36px, 6vh, 60px) auto 14px;
}
.week__day i {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.week__day i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: left;
  transform: scaleX(var(--f, 0));
}
.week__day.is-today i::after { background: var(--onair); box-shadow: 0 0 10px var(--onair); }
.week__day span { display: block; margin-top: 10px; font-size: 0.6rem; }
.week__day em { font-style: normal; }
.week__day.is-today span { color: var(--text); }
.t-meta { display: flex; justify-content: space-between; gap: 16px; max-width: 560px; margin: 0 auto; }

.t-links { justify-content: center; margin-top: clamp(32px, 6vh, 56px); }
.t-enter { display: none; }
.is-done .t-enter { display: inline-flex; }
.is-done .t-follow { background: transparent; color: var(--text); border-color: var(--line-2); }
.js .is-done .t-content > .count { opacity: 0.3; }
.is-done .sep { animation: none; }

/* JS nélküli változat */
.t-nojs .text { margin: 0 auto; }
.t-nojs strong { color: var(--text); font-weight: 600; }

/* ─── Filmes nyitás: betöltő + letterbox ─────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: #000;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader__bar { width: 160px; height: 1px; background: var(--line-2); overflow: hidden; }
.loader__bar i { display: block; width: 40%; height: 100%; background: var(--text); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.is-ready .loader { opacity: 0; visibility: hidden; }

.bars i {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 15;
  height: 50vh;
  background: #000;
  transition: height 1.5s cubic-bezier(0.77, 0, 0.18, 1) 0.2s;
}
.bars i:first-child { top: 0; border-bottom: 1px solid var(--line); }
.bars i:last-child { bottom: 0; border-top: 1px solid var(--line); }
.is-ready .bars i { height: 6vh; }

/* A tartalom a függöny után úszik be, egymás után */
.js .t-content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .is-ready .t-content > * { opacity: 1; transform: none; }
.js .is-ready .t-content > :nth-child(1) { transition-delay: 0.9s; }
.js .is-ready .t-content > :nth-child(2) { transition-delay: 1.05s; }
.js .is-ready .t-content > :nth-child(3) { transition-delay: 1.25s; }
.js .is-ready .t-content > :nth-child(4) { transition-delay: 1.45s; }
.js .is-ready .t-content > :nth-child(5) { transition-delay: 1.55s; }
.js .is-ready .t-content > :nth-child(6) { transition-delay: 1.7s; }

@media (max-width: 600px) {
  .sep { display: none; }
  .count { gap: 5vw; }
  .digits { font-size: 13vw; }
  .week__day em { display: none; }
  .unit { gap: 8px; }
  .t-meta { flex-direction: column; align-items: center; gap: 4px; }
  .screen { width: 150vw; }
}
