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

:root {
  --glass: rgba(255,255,255,0.10);
  --glass-strong: rgba(255,255,255,0.16);
  --glass-border: rgba(255,255,255,0.18);
  --glass-blur: 20px;
  --text-primary: rgba(255,255,255,0.92);
  --text-secondary: rgba(255,255,255,0.55);
  --accent-glass: rgba(255,255,255,0.9);
  --panel-radius: 16px;
  --btn-radius: 100px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.20);
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  font-family: var(--font);
  color: var(--text-primary);
}

/* ─── Video Background ─── */
#video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Stand overlay needs to receive clicks even though parent has pointer-events:none */
#video-bg .stand-overlay {
  pointer-events: auto;
}

#video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: calc(100vh * 16/9);
  min-height: calc(100vw * 9/16);
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* ─── Ambient overlay ─── */
.video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 35%, transparent 60%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ─── Location Bar (top-left) ─── */
.location-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#location-text {
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Logo Mini Button ─── */
.logo-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}

.logo-mini-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ─── Top Actions (top-right) ─── */
.top-actions {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background 0.2s;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.top-action-btn:hover {
  background: var(--glass-strong);
}

.top-action-btn.active {
  background: rgba(255,255,255,0.25);
}

/* ─── Logo Sidebar ─── */
.logo-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 220px;
  z-index: 20;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid var(--glass-border);
}

.logo-sidebar.open {
  transform: translateX(0);
}

.sidebar-logo-area {
  padding-top: 8px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-nav-link {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}

.sidebar-nav-link:hover {
  color: white;
}

.sidebar-nav-link:last-child {
  border-bottom: none;
}

/* ─── Ambassador Badge ─── */
.ambassador-badge {
  position: fixed;
  top: 72px;
  right: 20px;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.ambassador-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.amb-icon {
  font-size: 14px;
}

/* ─── Right-click Context Menu ─── */
.context-menu {
  position: fixed;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 1000;
  min-width: 180px;
  display: none;
}

.context-menu.open {
  display: block;
}

.context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
}

.context-item:hover {
  background: rgba(255,255,255,0.08);
}

.context-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.context-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 4px 0;
}

/* ─── UI Minimize Toggle ─── */
.ui-toggle-btn {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  width: 32px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s, bottom 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ui-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--glass-strong);
}

/* When UI is hidden, drop the toggle to the bottom */
body.ui-hidden .ui-toggle-btn {
  bottom: 20px;
}

/* ─── UI Hidden: hide all panels ─── */
body.ui-hidden .location-bar,
body.ui-hidden .top-actions,
body.ui-hidden .logo-sidebar,
body.ui-hidden #map-panel,
body.ui-hidden .ambassador-badge {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

body.ui-hidden .controls-wrapper {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

/* ─── Controls Wrapper (bottom-center pill) ─── */
.controls-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(680px, calc(100vw - 420px));
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: var(--shadow);
  overflow: visible;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─── Controls Body ─── */
.controls-body {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  gap: 8px;
  overflow: visible;
}

/* ─── City Selector ─── */
.city-selector-wrap {
  position: relative;
  flex: 1;
  min-width: 80px;
  max-width: 150px;
}

.select-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
}

#city-search {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  padding: 4px 20px 4px 22px;
  cursor: pointer;
  outline: none;
  min-width: 100px;
  max-width: 160px;
}

#city-search::placeholder {
  color: var(--text-secondary);
}

.select-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* ─── Dropdown (opens upward, position:fixed to escape stacking context) ─── */
.city-dropdown {
  position: fixed;
  min-width: 280px;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 16px;
  z-index: 9999;
  display: none;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
}

.city-dropdown.open {
  display: block;
}

.dropdown-search {
  position: sticky;
  top: 0;
  padding: 10px 12px;
  background: rgba(20,20,20,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1;
}

.dropdown-search input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.dropdown-search input::placeholder {
  color: rgba(255,255,255,0.4);
}

.country-group {
  padding: 4px 0;
}

.country-label {
  padding: 6px 14px 3px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.city-option {
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s;
}

.city-option:hover,
.city-option.highlighted {
  background: rgba(255,255,255,0.08);
}

.city-option.active {
  font-weight: 600;
  color: white;
}

/* ─── Random City Button ─── */
.random-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.random-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* ─── Divider ─── */
.ctrl-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ─── Mute Button ─── */
.mute-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.mute-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.mute-btn.muted {
  color: var(--text-secondary);
}

.mute-btn:not(.muted) {
  color: var(--text-primary);
}

/* ─── Mode Buttons ─── */
.mode-buttons {
  display: flex;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.mode-btn.active {
  background: rgba(255,255,255,0.22);
  color: var(--text-primary);
}

.mode-btn svg {
  flex-shrink: 0;
}

/* ─── Stand Button ─── */
.stand-btn {
  color: var(--text-secondary);
}

.stand-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

.stand-btn.active {
  background: rgba(255,165,0,0.3);
  color: rgba(255,200,50,0.9);
}

/* ─── Radio Row ─── */
.row-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.radio-play-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.radio-play-btn:hover {
  background: rgba(255,255,255,0.3);
}

.radio-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.radio-name {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Animated Radio Bars ─── */
.radio-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}

.radio-bars.playing {
  display: flex;
}

.radio-bars span {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--text-secondary);
  height: 3px;
  transition: height 0.1s;
}

.radio-bars.playing span {
  background: var(--text-primary);
}

.radio-bars.playing span:nth-child(1) { animation: bar 0.9s ease-in-out infinite; }
.radio-bars.playing span:nth-child(2) { animation: bar 0.7s ease-in-out infinite 0.1s; }
.radio-bars.playing span:nth-child(3) { animation: bar 1.1s ease-in-out infinite 0.2s; }
.radio-bars.playing span:nth-child(4) { animation: bar 0.8s ease-in-out infinite 0.05s; }
.radio-bars.playing span:nth-child(5) { animation: bar 1.0s ease-in-out infinite 0.15s; }

@keyframes bar {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

/* ─── Radio Volume Slider ─── */
.radio-volume {
  width: 50px;
  flex-shrink: 0;
  accent-color: rgba(255,255,255,0.8);
  cursor: pointer;
}

/* ─── Share Button ─── */
.share-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.share-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* ─── Now Playing Toast ─── */
.now-playing {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-family: var(--font);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

.now-playing.visible {
  opacity: 1;
}

/* ─── Loading Spinner ─── */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.loading-overlay.visible {
  opacity: 1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Dropdown Scrollbar ─── */
.city-dropdown::-webkit-scrollbar {
  width: 4px;
}
.city-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.city-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

/* ══════════════════════════════════════════
   MAP PANEL (bottom-right, anchored)
══════════════════════════════════════════ */

.map-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 360px;
  height: 55vh;
  min-height: 280px;
  background: rgba(15,15,20,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px 0 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.map-panel.is-floating {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* ─── Video Scrubber ─── */
.video-scrubber {
  padding: 8px 14px 6px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.scrubber-track {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: height 0.15s ease;
}

.scrubber-track:hover {
  height: 5px;
}

.scrubber-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.8);
  border-radius: 3px;
  pointer-events: none;
  transition: width 0.4s linear;
}

.scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.scrubber-track:hover .scrubber-thumb,
.scrubber-track.scrubbing .scrubber-thumb {
  opacity: 1;
}

.scrubber-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.map-panel.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Map Header — also the drag handle */
.map-header {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  gap: 6px;
  cursor: grab;
  user-select: none;
}
.map-header.is-dragging {
  cursor: grabbing;
}

.map-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.map-action-btn:hover {
  background: rgba(255,255,255,0.18);
}

.map-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: background 0.15s;
}

.map-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Map Container */
#map-container {
  flex: 1;
  min-height: 0;
}

/* Status bar */
.map-status-bar {
  padding: 4px 12px;
  flex-shrink: 0;
  min-height: 22px;
}

#map-status {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

/* Chapter list */
.map-chapter-list {
  max-height: 80px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.map-chapter-list::-webkit-scrollbar { width: 4px; }
.map-chapter-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.chapter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chapter-item:last-child { border-bottom: none; }

.chapter-item:hover { background: rgba(255,255,255,0.06); }

.chapter-item.active {
  background: rgba(255,255,255,0.08);
}

.chapter-num {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chapter-item.active .chapter-num {
  background: #e05a2b;
}

.chapter-title {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-ts {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ── Custom Map Pins ── */
.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.city-pin {
  width: 14px;
  height: 14px;
  background: #40433e;
}

.chapter-pin {
  width: 24px;
  height: 24px;
  background: #40433e;
  color: white;
}

.start-pin { background: #22a559; }
.end-pin   { background: #7E8595; }

.active-pin {
  background: #e05a2b !important;
  transform: scale(1.3);
  box-shadow: 0 3px 12px rgba(224,90,43,0.5);
}

/* Popup */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  font-family: var(--font);
  padding: 0;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
}

.leaflet-popup-tip {
  background: rgba(20,20,20,0.92);
}

.leaflet-popup-content {
  margin: 0;
  min-width: 140px;
  color: white;
}

.popup-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 10px 14px 4px;
}

.popup-ts {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  padding: 0 14px 6px;
}

.popup-seek {
  display: block;
  width: 100%;
  padding: 7px 14px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.popup-seek:hover { background: rgba(255,255,255,0.12); }

/* ── Community Pins ── */
.community-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e05a2b;
  border: 2px solid white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.my-pin {
  background: #3b82f6;
  width: 14px;
  height: 14px;
  border-width: 2.5px;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.pulse-pin { animation: pulse 1.8s ease-out 3; }

.popup-community { padding: 10px 14px; min-width: 160px; }
.popup-comm-msg { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
.popup-comm-place { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.popup-comm-ts { font-size: 11px; color: rgba(255,255,255,0.45); margin-bottom: 2px; }
.popup-comm-date { font-size: 10px; color: rgba(255,255,255,0.3); }

.popup-comm-delete {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 4px 0;
  font-size: 11px;
  color: #f87171;
  background: none;
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.popup-comm-delete:hover { background: rgba(248,113,113,0.1); }

.popup-comm-url { margin-top: 6px; }
.popup-comm-url a {
  font-size: 11px;
  color: rgba(120,180,255,0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.popup-comm-url a:hover { text-decoration: underline; }

/* ── Map pick-mode banner ── */
.map-pick-hint {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(249,115,22,0.2);
  border-bottom: 1px solid rgba(249,115,22,0.3);
  font-size: 12px;
  color: rgba(255,200,120,0.95);
  flex-shrink: 0;
}
.map-pick-hint.visible { display: flex; }
.map-pick-cancel {
  background: rgba(249,115,22,0.25);
  border: 1px solid rgba(249,115,22,0.4);
  border-radius: 100px;
  color: rgba(255,200,120,0.9);
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.map-pick-cancel:hover { background: rgba(249,115,22,0.4); }

/* ── Leave a Note Modal ── */
.comm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.comm-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.comm-modal {
  background: rgba(20,20,20,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 20px;
  width: 340px;
  max-width: calc(100vw - 40px);
  transform: translateY(8px) scale(0.97);
  transition: transform 0.2s ease;
}

.comm-modal-backdrop.open .comm-modal {
  transform: translateY(0) scale(1);
}

.comm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.comm-modal-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.15s;
}

.comm-modal-close:hover { background: rgba(255,255,255,0.2); }

.comm-form { display: flex; flex-direction: column; gap: 10px; }

.comm-textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

.comm-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.comm-textarea:focus { border-color: rgba(255,255,255,0.35); }

.comm-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comm-status { font-size: 11px; color: rgba(255,255,255,0.5); }

.comm-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.comm-submit:hover { background: rgba(255,255,255,0.25); }

.comm-note {
  margin: 12px 0 0;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ── Note modal: video URL row ── */
.comm-url-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.4);
}
.comm-url-link {
  font-size: 11px;
  color: rgba(120,180,255,0.85);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.comm-url-link:hover { text-decoration: underline; }

/* ── Note modal: location row ── */
.comm-loc-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comm-loc-options {
  display: flex;
  gap: 6px;
}
.comm-loc-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font, sans-serif);
}
.comm-loc-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.comm-loc-btn.active {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.35);
}
.comm-location-display {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  padding-left: 2px;
}

/* ── Drive/Fly coming-soon ── */
.mode-btn-future {
  display: none;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .controls-wrapper {
    width: calc(100vw - 20px);
    bottom: 10px;
    border-radius: 20px;
  }

  .controls-body {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .video-progress-row {
    padding: 2px 12px 8px;
  }

  .map-panel {
    width: calc(100vw);
    height: 40vh;
    border-radius: 12px 12px 0 0;
    bottom: 0;
    right: 0;
  }

  .ambassador-badge {
    top: 72px;
    right: 12px;
  }

  .radio-volume {
    width: 40px;
  }

  .radio-name {
    max-width: 60px;
  }
}

/* ══════════════════════════════════════════
   STAND OVERLAY
══════════════════════════════════════════ */

.stand-overlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  z-index: 20;
  background: rgba(0,0,0,0.08);
}

.stand-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: white;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}

.stand-exit {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.stand-exit:hover { background: rgba(0,0,0,0.8); }

/* Stand Dot */
.stand-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e07b2b;
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s;
  z-index: 2;
}

.stand-dot:hover { transform: translate(-50%, -50%) scale(1.3); }

/* Stand Popup — dark glass style */
.stand-popup {
  position: fixed;
  width: 230px;
  background: rgba(20,20,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  padding: 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stand-pop-ts {
  font-size: 11px;
  font-weight: 700;
  color: #e07b2b;
  font-family: var(--font);
}

.stand-textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 13px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

.stand-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.stand-textarea:focus { border-color: #e07b2b; }

.stand-pop-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.stand-cancel {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
}

.stand-save {
  padding: 5px 14px;
  border: none;
  border-radius: 16px;
  background: #e07b2b;
  color: white;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.stand-save:hover { background: #c96820; }

.stand-read .stand-pop-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.stand-seek {
  padding: 5px 12px;
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.stand-seek:hover { background: rgba(255,255,255,0.18); }
