body {
  margin: 0;
  overflow: hidden;
  background: #111;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
#threejs-container {
  flex: 1;
  position: relative;
  min-height: 0;
}
canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}
#title {
  position: relative;
  top: 24px;
  width: 100%;
  text-align: center;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.5rem;
  color: white;
  letter-spacing: 0.2em;
  /* text-shadow: 0 2px 16px #00aaff, 0 0px 2px #000; */
  z-index: 10;
  pointer-events: none;
  user-select: none;
}
#subtitle {
  color: #fff;
  text-align: center;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
#slider-container {
  background: transparent !important;
}
#timeSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #00aaff 0%, #005577 100%);
  border-radius: 4px;
  outline: none;
  box-shadow: 0 2px 8px #000a;
  transition: background 0.3s;
}
#timeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #00aaff;
  box-shadow: 0 2px 8px #00aaff88;
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}
#timeSlider:focus::-webkit-slider-thumb {
  background: #00aaff;
  border: 3px solid #fff;
}
#timeSlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #00aaff;
  box-shadow: 0 2px 8px #00aaff88;
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}
#timeSlider:focus::-moz-range-thumb {
  background: #00aaff;
  border: 3px solid #fff;
}
#timeSlider::-ms-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #00aaff;
  box-shadow: 0 2px 8px #00aaff88;
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}
#timeSlider:focus::-ms-thumb {
  background: #00aaff;
  border: 3px solid #fff;
}
#timeSlider::-ms-fill-lower {
  background: #00aaff;
  border-radius: 4px;
}
#timeSlider::-ms-fill-upper {
  background: #005577;
  border-radius: 4px;
}
#timeSlider:focus {
  outline: none;
}
#sliderLabel {
  color: white;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 16px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}
.arrow-btn {
  background: #222;
  color: #00aaff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #00aaff33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.arrow-btn:hover, .arrow-btn:focus {
  background: #00aaff;
  color: #fff;
  box-shadow: 0 2px 16px #00aaff88;
  outline: none;
}
.play-btn {
  background: none;
  color: #00aaff;
  border: none;
  border-radius: 0;
  width: 40px;
  height: 40px;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  margin-right: 8px;
  transition: color 0.2s, transform 0.1s;
  outline: none;
}
.play-btn:hover, .play-btn:focus {
  color: #fff;
  transform: scale(1.12);
  outline: none;
}
#drag-hint {
  position: absolute;
  left: 32px;
  bottom: 32px;
  top: auto;
  transform: none;
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 18px;
  border-radius: 18px;
  box-shadow: 0 2px 8px #000a;
  z-index: 30;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.6s;
}
#drag-hint.hide {
  opacity: 0;
}
#loading-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.92);
  color: #00aaff;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.5s;
}
#loading-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
#main-container {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 20px;
  padding: 20px;
  min-height: 0;
}
#threejs-container {
  position: relative;
  min-height: 0;
  background: #1a1a1a;
  border-radius: 8px;
}
#canvas-container {
  position: relative;
  min-height: 0;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}
#imageCanvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Mobile layout */
@media (max-width: 768px) {
  #main-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  #threejs-container,
  #canvas-container {
    min-height: 300px;
  }
} 