:root {
  color-scheme: dark;
  --bg: #09090d;
  --panel: #15141b;
  --panel-soft: #1d1a24;
  --text: #f8f4f8;
  --muted: #c9bac7;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #ff3f9f;
  --pink-strong: #ff1688;
  --focus: #ffd1ea;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 63, 159, 0.18), transparent 34rem),
    linear-gradient(135deg, #09090d 0%, #141018 52%, #09090d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-shell {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 4rem;
}

.intro {
  max-width: 48rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  line-height: 1.08;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.video-list {
  display: grid;
  gap: 1.25rem;
}

.video-card,
.community-panel {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(21, 20, 27, 0.82);
  box-shadow: 0 1.5rem 4rem var(--shadow);
}

.video-copy {
  padding-top: 0.2rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: var(--panel-soft);
}

.video-frame video,
.missing-video {
  width: 100%;
  height: 100%;
}

.video-frame video {
  display: block;
  object-fit: contain;
  background: #050507;
}

.missing-video {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  padding: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.missing-video strong {
  color: var(--text);
  font-size: 1.05rem;
}

.missing-video span {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.community-panel {
  margin-top: 1.25rem;
  align-items: center;
}

.community-panel-video {
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
}

.community-copy p {
  margin-bottom: 1.1rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0.85rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--pink);
  color: #19040f;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 0.8rem 2rem rgba(255, 63, 159, 0.24);
}

.button:hover {
  background: var(--pink-strong);
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.redirect-page .logo {
  width: 5rem;
  height: 5rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .site-header,
  .video-card,
  .community-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: flex;
    align-items: center;
  }

  .community-panel .button {
    width: 100%;
  }
}
