/* Трансляции Stepicon 2026 — standalone page, same visual language as the
   stepicon.org landing: Inter Display, black ground, green and purple accents. */

@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background-black: #000000;
  --background-purple: #9674ff;
  --background-green: #a2ff8a;
  --background-transparent: rgba(255, 255, 255, 0.12);

  --border-green: #a2ff8a;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-primary-inverse: #000000;

  --font-display: "Inter Display", "Inter", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

  --card: #111111;
  --radius: 24px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background-black);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Purple wash behind the page, clipped by body's overflow-x so it never
   inflates the document. */
.glow {
  position: fixed;
  left: 50%;
  top: -18vw;
  width: min(1400px, 150vw);
  height: min(1400px, 150vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: var(--background-purple);
  opacity: 0.22;
  filter: blur(min(320px, 40vw));
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}

/* --- Head ---------------------------------------------------------------- */

.head {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}
.head__kicker {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
.head__title {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.head__title-accent { color: var(--background-green); }
.head__lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* --- Switchers ----------------------------------------------------------- */

.player {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
}
.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.switch__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  /* The one-line platform buttons come out at 41px on their padding alone —
     under the 44px a finger needs. */
  min-height: 48px;
  padding: clamp(12px, 1.2vw, 16px) clamp(18px, 1.8vw, 26px);
  border: 0;
  border-radius: 9999px;
  background-color: var(--background-transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.switch__btn:hover { background-color: rgba(255, 255, 255, 0.2); }
.switch__btn--active,
.switch__btn--active:hover {
  background-color: var(--background-green);
  color: var(--text-primary-inverse);
}
.switch__time {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
.switch__btn--active .switch__time { color: rgba(0, 0, 0, 0.6); }
.switch--platform .switch__btn { flex-direction: row; align-items: center; }
.switch--platform .switch__btn--active,
.switch--platform .switch__btn--active:hover {
  background-color: var(--background-purple);
  color: var(--text-primary);
}

/* --- Stage --------------------------------------------------------------- */

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--card);
}
/* Browsers without aspect-ratio fall back to the padding-box trick. */
@supports not (aspect-ratio: 16 / 9) {
  .stage { height: 0; padding-bottom: 56.25%; }
}
.stage__frame,
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stage__noscript {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-secondary);
}
.stage__hint {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  color: var(--text-tertiary);
}

/* --- Direct links -------------------------------------------------------- */

.links {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
}
.links__heading {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.day {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 24px);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius);
  background-color: var(--card);
}
.day__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.day__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.day__time {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
.day__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.link {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 clamp(20px, 2vw, 28px);
  border-radius: 9999px;
  text-decoration: none;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.link--yt {
  background-color: var(--background-green);
  color: var(--text-primary-inverse);
}
.link--vk {
  background-color: var(--background-purple);
  color: var(--text-primary);
}

/* The landing's button fill: a panel wipes up on hover and the ink flips. */
.btn-fill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease;
}
.btn-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.btn-fill:hover::after,
.btn-fill:focus-visible::after { transform: scaleY(1); }
.link--yt.btn-fill::after { background-color: var(--background-purple); }
.link--yt.btn-fill:hover,
.link--yt.btn-fill:focus-visible { color: var(--text-primary); }
.link--vk.btn-fill::after { background-color: var(--background-green); }
.link--vk.btn-fill:hover,
.link--vk.btn-fill:focus-visible { color: var(--text-primary-inverse); }

/* --- Foot ---------------------------------------------------------------- */

.foot { padding-top: clamp(8px, 1vw, 16px); }
.foot__text {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  color: var(--text-tertiary);
}
.foot__link {
  color: var(--background-green);
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot__link:hover,
.foot__link:focus-visible { color: var(--background-purple); }

/* --- Focus --------------------------------------------------------------- */

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--border-green);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .switch__btn,
  .btn-fill,
  .btn-fill::after,
  .foot__link { transition: none; }
}

/* --- Phones -------------------------------------------------------------- */

@media (max-width: 768px) {
  .links__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .stage { border-radius: 16px; }
  .day { border-radius: 18px; }
  .switch__btn { flex: 1 1 auto; align-items: center; justify-content: center; }
  .switch--platform .switch__btn { justify-content: center; }
  .link { flex: 1 1 100%; }
}
