body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.direct-player {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(115deg, rgba(25, 241, 106, 0.14), transparent 35%),
    linear-gradient(250deg, rgba(103, 183, 255, 0.11), transparent 38%),
    #05070d;
  color: #fff7db;
  padding: 24px;
}

.direct-player-with-nav {
  display: block;
  place-items: initial;
  padding: 18px 24px 48px;
}

.direct-player-nav {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1120px, 100%);
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid rgba(255, 241, 184, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 13, 25, 0.88), rgba(3, 5, 12, 0.78));
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 247, 219, 0.08);
  margin: 0 auto 22px;
  padding: 10px 14px;
  backdrop-filter: blur(18px);
  animation: direct-nav-drop 620ms ease-out both;
}

.direct-player-nav::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(25, 241, 106, 0.34), rgba(255, 210, 47, 0.16), rgba(103, 183, 255, 0.28));
  opacity: 0;
  content: "";
  transition: opacity 220ms ease;
}

.direct-player-nav:hover::before {
  opacity: 0.42;
}

.direct-player-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.direct-player-brand,
.direct-player-back {
  color: #fff7db;
  text-decoration: none;
}

.direct-player-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 #050505;
}

.direct-player-brand img {
  width: 42px;
  height: 42px;
  border: 2px solid #050505;
  border-radius: 50%;
  background: #fff;
}

.direct-player-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 12px;
  font: 700 1rem/1.2 system-ui, sans-serif;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.direct-player-back:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 241, 106, 0.6);
  background: rgba(25, 241, 106, 0.1);
  box-shadow: 0 10px 24px rgba(25, 241, 106, 0.12);
}

.direct-player-back svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direct-player-icon {
  width: 42px;
  min-width: 42px;
  padding-inline: 0;
}

.direct-player-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.direct-player-icon:last-child svg {
  width: 19px;
  height: 19px;
  transform: translateX(-1px);
}

.direct-player-stage {
  display: grid;
  justify-items: center;
}

.direct-player .video-wrapper {
  width: min(1280px, 100%);
  border: 2px solid rgba(255, 241, 184, 0.28);
  border-radius: 8px;
  background: #000;
  box-shadow:
    10px 10px 0 #000,
    0 0 34px rgba(25, 241, 106, 0.16);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.direct-player .video-wrapper::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 219, 0.08), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(25, 241, 106, 0.04) 7px 8px);
  opacity: 0.55;
  pointer-events: none;
  content: "";
}

.direct-player .video-wrapper:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 241, 106, 0.62);
  box-shadow:
    10px 10px 0 #000,
    0 0 44px rgba(25, 241, 106, 0.24);
}

.video-play-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #20ff4f;
  cursor: pointer;
  z-index: 10;
}

.video-play-fallback::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid currentColor;
}

.video-play-fallback[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .direct-player-with-nav {
    padding-inline: 10px;
  }

  .direct-player-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-player-links {
    justify-content: stretch;
  }

  .direct-player-back {
    flex: 1;
  }
}

@keyframes direct-nav-drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
