/* Video windows live in #videoLayer and are positioned, never re-parented. */
.exp-video-window {
  position: fixed;
  left: 0; top: 0;
  width: 480px; height: 270px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
}
.exp-video-window__video {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Docked into the watch page: no chrome, no shadow, it IS the player box. */
.exp-video-window[data-dock="watch"] {
  box-shadow: none;
  border-radius: 14px;
}
.exp-video-window[data-dock="watch"] .exp-video-window__bar,
.exp-video-window[data-dock="watch"] .exp-video-window__resize { display: none; }

/* Full background: behind the world, no chrome, cover the viewport. */
.exp-video-window[data-dock="background"] {
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
}
.exp-video-window[data-dock="background"] .exp-video-window__bar,
.exp-video-window[data-dock="background"] .exp-video-window__resize { display: none; }
.exp-video-window[data-dock="background"] .exp-video-window__video { object-fit: cover; }

.exp-video-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(10, 12, 16, .92);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: move;
  touch-action: none;
  flex: 0 0 auto;
}
.exp-video-window__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-video-window__close {
  border: 0; background: transparent; color: #fff;
  font-size: 14px; cursor: pointer; padding: 2px 6px; border-radius: 5px;
}
.exp-video-window__close:hover { background: rgba(255, 255, 255, .16); }
.exp-video-window__resize {
  position: absolute; right: 0; bottom: 0;
  width: 18px; height: 18px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, .5) 50%);
  touch-action: none;
}

/* Which window owns the audio. */
.exp-video-window.is-focused { outline: 2px solid var(--app-accent); outline-offset: -2px; }
body[data-view="play"] .exp-video-window { z-index: 45; }

/* Picker: sits over the live map with NO full-screen dim. Only each card's own
   text shadow darkens anything, so the world reads through between cards. */
.exp-picker {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  padding: 16px 20px 48px;
  background: transparent;
}
.exp-picker[hidden] { display: none; }
.exp-picker__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(8, 10, 14, .78);
  backdrop-filter: blur(6px);
  color: #fff;
}
.exp-picker__head strong { flex: 1; font-size: 15px; }
.exp-picker__add,
.exp-picker__close {
  border: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.exp-picker__add:disabled { opacity: .4; cursor: default; }
.exp-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.exp-picker .video-card__title,
.exp-picker .video-card__sub {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
  color: #fff;
}
@media (max-width: 640px) {
  .exp-picker__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
