.video-player-unit {
  position: relative;
  display: grid;
  gap: 0;
}

.video-format-switch {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
}

.video-format-choice-button {
  min-height: 34px;
  padding: 0 12px;
  border: 3px solid #050606;
  border-radius: 8px;
  color: #050606;
  background: #fff8e8;
  box-shadow: 3px 3px 0 #050606;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.74rem;
  line-height: 1;
  cursor: pointer;
}

.video-format-choice-button.is-active {
  background: #00ed19;
}

.video-format-choice-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.video-wrapper {
  order: 1;
  position: relative;
  overflow: hidden;
  border: 3px solid #050606;
  border-radius: 8px;
  background: #050606;
  box-shadow: 8px 8px 0 #00ed19;
}

.video-wrapper video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-format-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 52px;
  padding: 7px 10px;
  border: 3px solid #050606;
  border-radius: 8px;
  color: #050606;
  background: #00ed19;
  box-shadow: 3px 3px 0 #050606;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.74rem;
  line-height: 1;
  text-align: center;
  transform: scale(0.5);
  transform-origin: right bottom;
}

.player-page {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: #fff8e8;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 237, 25, 0.3), transparent 34%),
    #050606;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.player-page-shell {
  width: min(980px, 100%);
  margin: 34px auto 0;
}

.player-page-title {
  display: flex;
  justify-content: center;
  margin: 0 0 38px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #050606, 7px 7px 0 #00ed19;
}

.player-page-title span {
  position: relative;
  display: inline-block;
  animation: player-title-neon 2.8s ease-in-out infinite alternate;
}

.player-page-title span:nth-child(1) {
  animation-delay: 0s;
}

.player-page-title span:nth-child(2) {
  animation-delay: 0.12s;
}

.player-page-title span:nth-child(3) {
  animation-delay: 0.24s;
}

.player-page-title span:nth-child(4) {
  animation-delay: 0.36s;
}

.player-page-title span:nth-child(5) {
  animation-delay: 0.48s;
}

.player-page-title span:nth-child(6) {
  animation-delay: 0.6s;
}

.player-page-title span:nth-child(7) {
  animation-delay: 0.72s;
}

@keyframes player-title-neon {
  0%,
  36%,
  100% {
    color: #fff8e8;
    transform: translateY(0);
    text-shadow: 4px 4px 0 #050606, 7px 7px 0 #00ed19;
  }

  18% {
    color: #ffffff;
    transform: translateY(-3px);
    text-shadow:
      0 0 14px rgba(0, 237, 25, 0.95),
      0 0 32px rgba(0, 237, 25, 0.82),
      4px 4px 0 #050606,
      9px 9px 0 #00ed19;
  }
}

.player-nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 12px;
  border: 3px solid #050606;
  border-radius: 8px;
  color: #050606;
  background: rgba(255, 248, 232, 0.92);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.player-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-decoration: none;
}

.player-brand img {
  width: 42px;
  height: 42px;
  border: 2px solid #050606;
  border-radius: 50%;
  object-fit: contain;
}

.player-nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  overflow-x: auto;
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.player-nav-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.player-nav-links a:hover,
.player-nav-links a:focus-visible,
.player-nav-links a[aria-current="page"] {
  color: #07902b;
}

.player-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-social-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #050606;
  border-radius: 8px;
  color: #fff8e8;
  background: #050606;
  box-shadow: 3px 3px 0 #00ed19;
}

.player-social-icon.telegram {
  background: #1259c8;
}

.player-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .player-page {
    padding: 10px;
  }

  .player-nav {
    top: 8px;
    grid-template-columns: 1fr auto;
  }

  .player-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .player-page-shell {
    margin-top: 26px;
  }
}
