:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ed1c24;
  --glass: rgba(0, 0, 0, 0.58);
  --border: rgba(255, 255, 255, 0.34);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.video-banner {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

.banner-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--black);
}

.video-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, transparent 30%, transparent 72%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent 35%, transparent 65%, rgba(0, 0, 0, 0.05));
}

.location-button,
.sound-button {
  position: fixed;
  z-index: 20;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.location-button {
  right: clamp(18px, 4vw, 64px);
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 12px 18px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sound-button {
  top: max(24px, env(safe-area-inset-top));
  right: clamp(18px, 4vw, 64px);
  padding: 11px 16px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-button:hover,
.location-button:focus-visible,
.sound-button:hover,
.sound-button:focus-visible {
  transform: translateY(-2px);
  background: var(--red);
  outline: none;
}

.location-button svg,
.sound-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.sound-on-icon {
  display: none;
}

.sound-button[aria-pressed="true"] .sound-on-icon {
  display: block;
}

.sound-button[aria-pressed="true"] .sound-off-icon {
  display: none;
}

.video-status {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(36px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.status-dot.is-active {
  width: 26px;
  background: var(--red);
}

.progress-bar {
  position: fixed;
  z-index: 22;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

.progress-bar.is-running span {
  animation: video-progress var(--progress-duration, 10000ms) linear forwards;
}

@keyframes video-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .banner-video {
    object-fit: cover;
    object-position: center;
  }

  .sound-button {
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .sound-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .location-button {
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 10px 14px;
    font-size: 10px;
  }

  .location-button svg {
    width: 18px;
    height: 18px;
  }

  .video-status {
    left: 18px;
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 16px));
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-button,
  .sound-button,
  .status-dot {
    transition: none;
  }
}
