* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
}

body {
  overflow-x: hidden;
}

.scroll-space {
  height: 1000vh;
}

#scrollVideo {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.15);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #fff;
}

.sound-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 110;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 11px 15px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.auto-scroll-toggle {
  top: 62px;
}

body.fullscreen-controls .sound-toggle {
  right: auto;
  top: 22px;
}

body.fullscreen-controls #soundToggle {
  left: calc(50% - 8px);
  transform: translateX(-100%);
}

body.fullscreen-controls .auto-scroll-toggle {
  left: calc(50% + 8px);
  transform: none;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.sound-toggle:disabled {
  cursor: wait;
  opacity: 0.6;
}

body.side-controls .sound-toggle {
  top: 50%;
  width: min(70vh, 480px);
  height: 44px;
  padding: 11px 15px;
  font-size: 13px;
  transform: translate(-50%, -50%) rotate(-90deg);
}

body.side-controls #soundToggle {
  right: auto;
  left: calc(var(--video-side-gutter) / 2);
}

body.side-controls .auto-scroll-toggle {
  right: calc(var(--video-side-gutter) / 2);
  left: auto;
  transform: translate(50%, -50%) rotate(90deg);
}

#status {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

@media (max-width: 600px) {
  .sound-toggle {
    top: 18px;
    right: 14px;
    padding: 10px 13px;
    font-size: 10px;
  }

  .auto-scroll-toggle {
    top: 56px;
  }

  #status {
    left: 12px;
    bottom: 12px;
    font-size: 10px;
  }
}
