body {
    margin: 0;
    overflow-y: auto; 
    overflow-x: hidden;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #fff;
    background: #000;
}


.video-background { display: none; }


.video-container {
    position: relative;
    display: block;
}

.stack {
    display: grid;
    gap: 12px; 
    justify-items: center;
}

#main-video {
    display: block;
    width: 100vw;   
    height: auto;   
    margin: 0 auto; 
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: #000;
}


video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button { display: none !important; }

.overlay-text {
    position: relative; 
    left: auto;
    top: auto;
    transform: none;
    z-index: 10;
    color: #fff;
    font-size: clamp(18px, 2.6vw, 28px);
    text-shadow: none;
    pointer-events: auto;

    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);

    user-select: text;
    cursor: pointer;
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    white-space: nowrap; 
    flex-wrap: nowrap;    
}

.ca-label {
    font-weight: 800; 
    letter-spacing: 0.02em;
    flex: 0 0 auto; 
}

.ca-key {
    font-weight: 600; 
    margin-left: 8px;
    word-break: normal; 
    flex: 1 1 40%; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; 
}

.pill-btn {
  margin-left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  cursor: pointer;
  flex: 0 0 auto; 
}
.pill-btn:disabled { opacity: 0.6; cursor: default; }


.sound-btn { margin-left: 0; margin-right: 6px; padding-left: 8px; padding-right: 8px; }


#play-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: none; 
  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 28px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

#play-overlay:focus { outline: 2px solid rgba(255,255,255,0.12); }


.overlay-container {
  position: fixed;
  left: 0;
  right: 0;
  top: 0; 
  bottom: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: center; 
  gap: 12px;
  pointer-events: none; 
}


.overlay-container .overlay-text {
  pointer-events: auto;
  margin: 0; 
}


.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  pointer-events: auto; 
}

.social-icon {
  width: 100px; 
  height: 100px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: transparent;
  filter: none;
}


@media (max-width: 480px) {
  .overlay-text {
    
    width: auto;
    display: inline-flex;
    justify-content: center; 
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 14px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    white-space: nowrap; 
    flex-wrap: nowrap;
    overflow: hidden; 
  }

  .overlay-text .ca-label {
    flex: 0 0 auto;
    font-size: 13px;
    margin: 0;
  }

  .overlay-text .ca-key {
    flex: 1 1 40%;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
  }

  .pill-btn {
    margin-left: 8px;
    padding: 6px 8px;
    font-size: 13px;
    flex: 0 0 auto;
  }

  .sound-btn { margin-right: 8px; padding-left: 6px; padding-right: 6px; }

  #play-overlay { width: 64px; height: 64px; font-size: 24px; }

  .social-icon { width: 90px; height: 90px; } 
}
@media (max-width: 360px) {
  .overlay-text {
    padding: 6px 8px;
    gap: 6px;
    font-size: 13px;
    bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .overlay-text .ca-key { font-size: 12px; }
  .pill-btn { padding: 5px 6px; margin-left: 6px; }
  .social-icon { width: 80px; height: 80px; } 
}