/* EXP Tube embedded homepage video billboards - click fixed */
body.exp-map-home-hq .exp-video-wall-layer {
  display: none !important;
}

.exp-video-wall-layer {
  position: absolute;
  inset: 0;
  z-index: 70; /* above portals/front visuals so clicks hit videos, not portals */
  pointer-events: none;
  overflow: hidden;
}

.exp-video-wall-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.78);
  box-shadow: 0 24px 45px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  color: #fff;
  transform-origin: center center;
  transition: filter 140ms ease, box-shadow 140ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.exp-video-wall-card * {
  pointer-events: none;
}

.exp-video-wall-card:hover,
.exp-video-wall-card:focus-visible {
  filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 30px 70px rgba(0,0,0,0.58), 0 0 28px rgba(59,130,246,0.3);
  outline: none;
}

.exp-video-wall-card.is-active {
  border-color: rgba(96,165,250,0.95);
  box-shadow: 0 30px 75px rgba(0,0,0,0.62), 0 0 36px rgba(59,130,246,0.48);
}

.exp-video-wall-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(0,0,0,0.35);
}

.exp-video-wall-shade {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 46%;
  background: linear-gradient(180deg, rgba(2,6,23,0), rgba(2,6,23,0.82));
}

.exp-video-wall-title {
  position: absolute;
  left: 12px;
  right: 42px;
  bottom: 12px;
  font-size: 20px;
  line-height: 0.95;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  text-align: left;
  text-shadow: 0 3px 10px rgba(0,0,0,0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exp-video-wall-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exp-video-wall-pill,
.exp-video-wall-duration {
  display: inline-flex;
  align-items: center;
  max-width: 72%;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
}

.exp-video-wall-duration {
  margin-left: auto;
  max-width: none;
  font-size: 12px;
  letter-spacing: 0;
}

.exp-video-wall-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(2,6,23,0.72);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
}

.exp-bg-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.exp-bg-embed-frame.is-playing {
  opacity: 0.74;
}

body.exp-video-wall-ready .exp-video-panel {
  display: none !important;
}

body.exp-video-wall-ready .hq-bg-layer--shade {
  background: linear-gradient(180deg, rgba(2,6,23,0.16), rgba(2,6,23,0.72));
}

body.exp-video-wall-ready .exp-bg-video.is-playing {
  opacity: 0.72;
}


/* EXP Tube selected-video mode: hide the clickable thumbnails and let the video play clean. */
body.exp-video-playing .exp-video-wall-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}
body.exp-video-playing .hq-bg-layer--image {
  opacity: 0 !important;
}
body.exp-video-playing .hq-bg-layer--shade {
  display: none !important;
}
body.exp-video-playing .exp-bg-video.is-playing,
body.exp-video-playing .exp-bg-embed-frame.is-playing {
  opacity: 1 !important;
  filter: none !important;
}
body.exp-video-playing .exp-bg-video {
  object-fit: cover;
  background: #fff;
}
body.exp-video-playing .hq-ground {
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.20));
  border-top-color: rgba(25, 184, 170, 0.28);
  box-shadow: none;
}
.exp-video-return-btn {
  position: absolute;
  right: 18px;
  bottom: 70px;
  z-index: 130;
  border: 2px solid rgba(38, 218, 122, 0.85);
  background: rgba(255,255,255,0.92);
  color: #075f6d;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 1000;
  box-shadow: 0 12px 32px rgba(14, 165, 180, 0.20);
  cursor: pointer;
  backdrop-filter: blur(12px);
}
body:not(.exp-video-playing) .exp-video-return-btn { display:none; }


/* The homepage video wall must never appear inside Profile World or Video World.
   Profile pages use only the user's uploaded video portals generated by hq.js. */
body.is-profile-world .exp-video-wall-layer,
body.is-video-world .exp-video-wall-layer,
body.is-profile-world .exp-video-wall-card,
body.is-video-world .exp-video-wall-card {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* LIVE thumbnail overlay — independent card, does not move existing video thumbnails. */
.exp-live-wall-thumb-card {
  position: absolute;
  right: 26px;
  top: 86px;
  width: 300px;
  height: 168px;
  z-index: 95;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.55);
  background: #140000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 26px 60px rgba(0,0,0,0.62), 0 0 34px rgba(255,0,0,0.58);
  pointer-events: auto;
  transform: rotate(1deg);
  animation: expLiveThumbFlash 0.95s infinite alternate;
}

.exp-live-wall-thumb-card * {
  pointer-events: none;
}

.exp-live-wall-thumb-card:hover,
.exp-live-wall-thumb-card:focus-visible {
  filter: brightness(1.18) saturate(1.12);
  outline: none;
}

.exp-live-wall-thumb-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.28), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #ff1515 0%, #8b0000 48%, #1a0000 100%);
}

.exp-live-wall-thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0,0,0,0.68);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.exp-live-wall-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.95);
  animation: expLiveThumbDot 1s infinite;
}

.exp-live-wall-thumb-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 43px;
  color: #fff;
  font-size: 27px;
  line-height: 0.94;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 15px rgba(0,0,0,0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exp-live-wall-thumb-sub {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 15px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes expLiveThumbFlash {
  from { filter: brightness(1); }
  to { filter: brightness(1.28); }
}

@keyframes expLiveThumbDot {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.96); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}


/* EXB hand audio bar + video controls protection.
   Keeps the visual overlay from stealing clicks and keeps video controls above the game/effect layers. */
#exbHandAudioBarOverlay,
#exbHandAudioBarOverlay *,
.exb-hand-audio-bar-overlay,
.exb-hand-audio-bar-overlay * {
  pointer-events: none !important;
}

.exp-video-player,
.exp-video-player *,
.exp-video-player-controls,
.exp-video-player-controls *,
.exp-video-controls,
.exp-video-controls *,
#expVideoControls,
#expVideoControls *,
#expVideoPlayPauseBtn,
#expVideoMuteBtn,
#expVideoVolume {
  pointer-events: auto !important;
}

.exp-video-player,
.exp-video-player-controls,
#expVideoControls,
.exp-video-controls {
  position: relative;
  z-index: 10050 !important;
}

body.exp-video-playing .exp-video-player,
body.exp-video-playing .exp-video-player-controls,
body.exp-video-playing #expVideoControls,
body.exp-video-playing .exp-video-controls {
  pointer-events: auto !important;
  z-index: 10050 !important;
}
