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

body {
  margin: 0;
  overflow: hidden;
  font-family: Microsoft YaHei, sans-serif;
  background: #000;
  color: #fff;
}

#views {
  position: fixed;
  inset: 0;
  display: flex;
}

.view {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.viewport {
  position: absolute;
  inset: 0;
}

.panel {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

#info {
  top: 20px;
  left: 20px;
  padding: 16px 24px;
  border-left: 5px solid #ffaa00;
  max-width: 340px;
  z-index: 10;
  pointer-events: auto;
}

#info h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: #ffaa00;
  font-weight: 500;
  letter-spacing: 1px;
}

#info .info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#info #infoToggle {
  pointer-events: auto;
  border: 1px solid rgba(255, 170, 0, 0.65);
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

#info #infoToggle:active {
  transform: translateY(1px);
}

#info.collapsed .info-body {
  display: none;
}

#info.collapsed #infoToggle {
  transform: rotate(-90deg);
}

#info p {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
}

#info .highlight {
  color: #ffaa00;
  font-weight: 700;
}

#info .season-note {
  background: rgba(255, 170, 0, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 12px;
  border-left: 3px solid #ffaa00;
}

#earth-position-indicator {
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 1.1rem;
  border: 1px solid #ffaa00;
  color: #ffaa00;
  z-index: 10;
  letter-spacing: 1px;
  font-weight: 700;
}

#note {
  right: 20px;
  bottom: 120px;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.9rem;
  color: #aaa;
  border: 1px solid #333;
  backdrop-filter: blur(4px);
  z-index: 9;
}

#shadow-panel {
  top: 20px;
  left: 20px;
  right: 20px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 170, 0, 0.5);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 16px;
  z-index: 10;
}

#shadow-title {
  font-size: 16px;
  color: #ffaa00;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

#shadow-info {
  color: #ddd;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
}

#controls-panel {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(20, 20, 30, 0.9);
  backdrop-filter: blur(12px);
  padding: 18px 28px;
  border-radius: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  border: 1px solid #444;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
  z-index: 20;
  color: #eee;
  font-size: 16px;
  pointer-events: all;
  border-bottom: 3px solid #ffaa00;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  flex: 1;
}

.slider-container label {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #ccc;
  letter-spacing: 1px;
  font-weight: 300;
}

.slider-container input {
  width: 100%;
  cursor: pointer;
  accent-color: #ffaa00;
  height: 8px;
  border-radius: 10px;
}

.slider-container span {
  margin-top: 8px;
  font-size: 1rem;
  color: #ffaa00;
  font-weight: 800;
  background: #222;
  padding: 4px 16px;
  border-radius: 40px;
  border: 1px solid #555;
}

#playPauseBtn {
  border: 1px solid rgba(255, 170, 0, 0.8);
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  min-width: 160px;
}

#playPauseBtn:hover {
  background: rgba(255, 170, 0, 0.18);
}

#playPauseBtn:active {
  transform: translateY(1px);
}

@media (max-width: 980px) {
  #views {
    flex-direction: column;
  }
  #controls-panel {
    border-radius: 28px;
    gap: 14px;
    padding: 16px 18px;
  }
  #info {
    max-width: 300px;
    padding: 12px 16px;
  }
}
