:root {
  --abyss: #0b0f17;
  --foam: #e8eef7;
  --steel: #8b97ab;
  --gold: #c9b27a;
  --live: #e11d2e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100svh;
}

.video-veil {
  background:
    linear-gradient(180deg, rgba(11, 15, 23, 0.55) 0%, rgba(11, 15, 23, 0.35) 35%, rgba(11, 15, 23, 0.72) 70%, rgba(11, 15, 23, 0.94) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(20, 40, 70, 0.35), transparent 55%);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 178, 122, 0.9), transparent 45%),
    linear-gradient(145deg, #1a2740, #0b0f17 60%, #152033);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(201, 178, 122, 0.2);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 8px 10px 8px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 2px,
    rgba(232, 238, 247, 0.55) 2px 3px
  );
  opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.live-badge { color: var(--foam); }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.7);
  animation: pulse-live 1.6s ease-out infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); }
}

.lang-btn {
  color: var(--steel);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn.is-active {
  color: var(--foam);
  background: rgba(255, 255, 255, 0.08);
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--foam);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.play-btn.is-playing {
  background: linear-gradient(180deg, rgba(201, 178, 122, 0.35), rgba(201, 178, 122, 0.12));
  border-color: rgba(201, 178, 122, 0.45);
}

.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

.volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--foam);
  border: 0;
  cursor: pointer;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  min-width: 34px;
}

.eq span {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.35;
  transform-origin: bottom;
}

.eq.is-active span {
  opacity: 1;
  animation: eq-bar 0.9s ease-in-out infinite alternate;
}

.eq.is-active span:nth-child(1) { animation-duration: 0.7s; }
.eq.is-active span:nth-child(2) { animation-duration: 1.05s; animation-delay: 0.1s; }
.eq.is-active span:nth-child(3) { animation-duration: 0.85s; animation-delay: 0.05s; }
.eq.is-active span:nth-child(4) { animation-duration: 1.15s; animation-delay: 0.15s; }
.eq.is-active span:nth-child(5) { animation-duration: 0.75s; animation-delay: 0.08s; }

@keyframes eq-bar {
  from { height: 25%; }
  to { height: 100%; }
}

.drawer.is-open-mobile {
  display: block;
}

@media (max-width: 767px) {
  .drawer:not(.is-open-mobile) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .eq.is-active span {
    animation: none;
  }
  html { scroll-behavior: auto; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
