@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Questrial";
  src: url("/assets/questrial-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #0e1b4d;
  --blue: #29a8d3;
  --danger: #e4505a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 300px;
  color: #fff;
  background: var(--navy);
  font-family: "Questrial", Arial, sans-serif;
}

button {
  font: inherit;
}

.embed-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 75% 24%, #26417f, var(--navy) 67%);
  background-size: 48px 48px, 48px 48px, auto;
}

.embed-shell::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.embed-snapshot {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transform: scale(1.01);
}

#embedPlayer {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.embed-poster {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 24px 36px;
  padding: clamp(28px, 6vw, 68px);
  background:
    linear-gradient(
      180deg,
      rgba(8, 17, 52, 0.14) 0%,
      rgba(8, 17, 52, 0.32) 42%,
      rgba(8, 17, 52, 0.84) 100%
    );
}

.embed-poster::before {
  position: absolute;
  z-index: -1;
  right: 9%;
  bottom: 17%;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(41, 168, 211, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(41, 168, 211, 0.06),
    0 0 0 68px rgba(41, 168, 211, 0.035);
}

.embed-shell.has-snapshot .embed-poster::before {
  display: none;
}

.embed-brandmark {
  grid-column: 1 / -1;
  align-self: start;
  display: grid;
  width: clamp(190px, 24vw, 250px);
  aspect-ratio: 3 / 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 18px 45px rgba(1, 10, 43, 0.28),
    inset 0 0 0 1px rgba(14, 27, 77, 0.04);
  place-items: center;
}

.embed-brandmark img,
.embed-loading-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.embed-copy {
  max-width: 560px;
}

.embed-eyebrow {
  margin: 0 0 12px;
  color: #78d8f6;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(28px, 5vw, 55px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.embed-copy > p:last-child {
  max-width: 430px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

#embedStartButton {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(41, 168, 211, 0.3);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

#embedStartButton .embed-start-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

#embedStartButton:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#embedStartButton:focus-visible {
  outline: 3px solid rgba(120, 216, 246, 0.45);
  outline-offset: 3px;
}

#embedStartButton:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.embed-loading {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  background:
    radial-gradient(circle at center, rgba(41, 168, 211, 0.12), transparent 34%),
    linear-gradient(145deg, #13245c, var(--navy));
  place-items: center;
}

.embed-shell.has-snapshot .embed-loading {
  background: rgba(14, 27, 77, 0.56);
  backdrop-filter: blur(5px);
}

.embed-loading-mark {
  display: grid;
  width: min(290px, 78vw);
  gap: 20px;
  place-items: center;
}

.embed-loading-logo {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 1;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(1, 10, 43, 0.36);
  place-items: center;
}

.embed-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.13);
  border-top-color: #78d8f6;
  border-right-color: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(41, 168, 211, 0.2);
  animation: spin 0.9s linear infinite;
}

.embed-countdown,
.embed-live,
.embed-attribution {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
}

.embed-live > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(41, 168, 211, 0.13);
}

.embed-countdown {
  top: 18px;
  right: 18px;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(14, 27, 77, 0.72);
  font-size: 10px;
  backdrop-filter: blur(12px);
}

.embed-countdown b {
  color: #fff;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 14px;
}

.embed-live {
  top: 18px;
  left: 18px;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 27, 77, 0.72);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.embed-live > span {
  background: var(--danger);
  box-shadow: none;
  animation: pulse 1.4s infinite;
}

.embed-attribution {
  right: 18px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(14, 27, 77, 0.62);
  font-size: 9px;
  backdrop-filter: blur(12px);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 620px) {
  .embed-poster {
    grid-template-columns: 1fr;
    align-content: end;
    align-items: start;
    gap: 18px;
    padding: 24px;
  }

  .embed-brandmark {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 180px;
    padding: 6px 8px;
    border-radius: 13px;
  }

  .embed-copy > p:last-child {
    display: none;
  }

  #embedStartButton {
    justify-self: start;
    min-height: 46px;
    padding-inline: 18px;
  }

  .embed-attribution {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
