* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #0a0a0f;
  color: #e6edf3;
  overflow: hidden;
  height: 100vh;
}

.glass {
  background: rgba(18, 18, 30, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.app {
  display: flex;
  height: calc(100vh - 70px);
  margin-left: 240px;
  position: relative;
}

.map-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 0;
}

#globe-container,
#globe-container > div,
#globe-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: rgba(18, 18, 30, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), -4px 0 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
}

.clear-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b949e;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.clear-btn:hover {
  color: #e6edf3;
  border-color: rgba(255, 255, 255, 0.15);
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.queue-empty {
  color: #484f58;
  font-size: 12px;
  text-align: center;
  padding: 40px 20px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: grab;
  transition: background 0.15s, border-color 0.15s;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.queue-item.active {
  background: rgba(29, 185, 84, 0.08);
  border: 1px solid rgba(29, 185, 84, 0.25);
  box-shadow: inset 0 0 12px rgba(29, 185, 84, 0.08);
}

.queue-item.dragging {
  opacity: 0.4;
}

.qi-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.qi-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qi-remove {
  background: none;
  border: none;
  color: #484f58;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.qi-remove:hover {
  color: #f85149;
}

/* Player bar */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  z-index: 100;
}

.player-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #b1b4b8;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ctrl-btn.active {
  color: #1db954;
}

.play-btn {
  font-size: 20px;
  color: #fff;
  width: 36px;
  height: 36px;
}

.play-btn:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.08);
}

.seek-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 500px;
}

.seek-row input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.seek-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e6edf3;
  cursor: pointer;
}

.time-label {
  font-size: 10px;
  color: #8b949e;
  min-width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Left controls panel */
.controls-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: calc(100vh - 70px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.controls-panel h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ctrl-group label {
  font-size: 10px;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-row input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8c50ff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(140, 80, 255, 0.4);
}

.slider-val {
  font-size: 11px;
  color: #e6edf3;
  min-width: 50px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

.stat-val {
  font-size: 12px;
  color: #e6edf3;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Adjust map area for left panel */
