:root {
  --bg: #000000;
  --ink: #f4f4f4;
  --muted: #9a9a9a;
  --accent-live: #ff1a1a;
  --nav-gap: clamp(1.75rem, 4.5vw, 3.5rem);
  --font-ui: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem clamp(0.85rem, 3vw, 2rem);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--nav-gap);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2f2f2;
  opacity: 0.92;
  transition: opacity 160ms ease, text-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link--live {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 26, 26, 0.95),
    0 0 16px rgba(255, 26, 26, 0.75),
    0 0 32px rgba(255, 40, 40, 0.45);
}

.nav-link--live:hover {
  text-shadow:
    0 0 8px rgba(255, 40, 40, 1),
    0 0 20px rgba(255, 26, 26, 0.9),
    0 0 40px rgba(255, 40, 40, 0.55);
}

.nav-link--big {
  font-size: 1.15rem;
}

.nav-link--apply {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.clipboard-toast {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, 0.65rem);
  margin: 0;
  background: transparent;
  color: #3dff6a;
  border: 0;
  padding: 0.15rem 0.35rem;
  border-radius: 0;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 100;
  white-space: nowrap;
}

.clipboard-toast.is-visible {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.hero__image {
  width: min(92vw, 980px);
  height: auto;
  display: block;
  filter: contrast(1.05);
  animation: hero-in 900ms ease both;
}

.hero__cta {
  position: absolute;
  bottom: clamp(1.5rem, 6vh, 3.5rem);
  left: 50%;
  transform: translateX(-50%);
}

.hero__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hero__cta a:hover {
  border-color: var(--accent-live);
  box-shadow: 0 0 24px rgba(255, 26, 26, 0.35);
  background: rgba(20, 0, 0, 0.7);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-shell {
  padding: 1.25rem clamp(0.85rem, 3vw, 2rem) 2.5rem;
}

.page-shell--watch {
  padding: 0;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: #000;
}

.watch-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  height: calc(100vh - 64px - 2.75rem);
  min-height: 280px;
  margin: 0;
  background: #000;
  border: 0;
  overflow: hidden;
}

.watch-frame > .player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.watch-meta {
  width: 100%;
  margin: 0;
  padding: 0.75rem clamp(0.85rem, 3vw, 2rem);
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: #000;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.9);
  display: inline-block;
  margin-right: 0.45rem;
  animation: pulse 1.4s ease-in-out infinite;
}

.live-dot--off {
  background: #666;
  box-shadow: none;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 720px) {
  .site-nav__links {
    justify-content: center;
    gap: 1.1rem 1.5rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .nav-link--big {
    font-size: 0.95rem;
  }
}
