html, body, #cesiumContainer {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#cesiumContainer {
  position: absolute;
  left: 320px;
  top: 0;
  right: 0;
  bottom: 0;
}

#sidebar {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  background: rgba(18, 18, 22, 0.96);
  color: white;
  padding: 16px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

#sidebar h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.section label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.section button,
.section input[type="text"],
.section select {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
}

.section button {
  cursor: pointer;
}

.section .danger {
  background: #8b1e1e;
  color: white;
}

#hoverInfo {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.88);
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  min-width: 180px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.satellite {
  background: lime;
}

.dot.militarysat {
  background: #ff1744;
}

.dot.starlink {
  background: orange;
}

.dot.iss {
  background: cyan;
}

.dot.aircraft {
  background: #ff3b30;
}

.dot.aircraft-heavy {
  background: #ff9800;
}

.dot.aircraft-special {
  background: #ffd600;
}

.dot.aircraft-rotor {
  background: #9c27b0;
}

.dot.aircraft-ground {
  background: #9aa0a6;
}

.dot.aircraft-military {
  background: #00e5ff;
}

.dot.camera {
  background: #4caf50;
}

.dot.cluster {
  background: #ffffff;
}

.object-card,
.media-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.object-card.empty,
.media-card.empty {
  opacity: 0.9;
}

#objectTitle,
#mediaTitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

#objectSubtitle,
#mediaSubtitle {
  font-size: 13px;
  color: #b9c0cc;
  margin-bottom: 12px;
}

#objectStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px;
}

.stat-label {
  font-size: 11px;
  color: #b9c0cc;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
}

#objectExtra,
#mediaMeta {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  color: #e8edf5;
  margin-bottom: 12px;
}

.object-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.object-actions button {
  width: 100%;
}

.media-actions {
  margin-bottom: 10px;
}

#mediaOpenLink {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 8px;
}

#mediaViewerWrap {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

#mediaFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
  display: none;
}

#mediaImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  background: #111;
}