/* ParaSensei 3D Flight Player */
.player-controls {
  background: #1a1a2e;
  padding: 0.75rem;
  border-radius: 0 0 8px 8px;
}
.play-btn-sm {
  background: #4CAF50;
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 28px;
  text-align: center;
  padding: 0;
}
.play-btn-sm:hover { background: #45a049; }
.scrubber-wrapper {
  flex: 1;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.alt-profile {
  width: 100%;
  height: 80px;
  display: block;
  border-radius: 4px;
}
.alt-cursor {
  position: absolute;
  top: 0;
  width: 2px;
  height: 80px;
  background: rgba(255, 255, 0, 0.9);
  pointer-events: none;
  transition: left 0.05s linear;
}
.alt-hover {
  position: absolute;
  top: 0;
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.time-label {
  color: #ccc;
  font-family: monospace;
  font-size: 0.9rem;
  min-width: 60px;
}
.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #aaa;
  font-size: 0.8rem;
}
.player-info-left {
  display: flex;
  gap: 1rem;
}
.player-info-left span {
  font-family: monospace;
  min-width: 90px;
}
.player-info-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.player-info-right .toggle-switch {
  margin-left: 12px;
}
.player-info-right #speedLabel {
  font-family: monospace;
  min-width: 36px;
  text-align: center;
}
.speed-btn {
  background: #333;
  border: 1px solid #555;
  color: #ccc;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.speed-btn:hover { background: #444; }
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input { display: none; }
.toggle-slider {
  width: 32px;
  height: 18px;
  background: #555;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #4CAF50;
}
.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(14px);
  background: #fff;
}
.toggle-label {
  color: #aaa;
  font-size: 0.75rem;
}
.map-help-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ccc;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-help-btn:hover { background: rgba(0,0,0,0.8); color: #fff; }
.player-legend {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  background: rgba(0,0,0,0.85);
  color: #ddd;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.6;
  z-index: 100;
  max-width: 250px;
}
.legend-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.legend-dismiss {
  margin-top: 8px;
  color: #888;
  cursor: pointer;
  text-align: right;
  font-size: 0.75rem;
}
.legend-dismiss:hover { color: #fff; }
#cesiumContainer .cesium-viewer-bottom { display: none !important; }
.player-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: opacity 0.4s ease;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-text {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 12px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 480px) {
  .player-info {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .player-info-left {
    width: 100%;
    justify-content: space-between;
  }
  .player-info-left span {
    min-width: auto;
    font-size: 0.75rem;
  }
  .player-info-right {
    width: 100%;
    justify-content: flex-end;
  }
  .player-controls {
    padding: 0.5rem;
  }
  .play-btn-sm {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    line-height: 24px;
  }
  .speed-btn {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }
  .toggle-label { font-size: 0.7rem; }
  .toggle-slider { width: 28px; height: 16px; }
  .toggle-slider::after { width: 12px; height: 12px; }
  .toggle-switch input:checked + .toggle-slider::after { transform: translateX(12px); }
}
