.transcribed-video-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Caption Globe Icon (kept) */
.caption-globe-icon {
  position: absolute;
  top: 15px;
  right: 50%;
  transform: translateX(50%);
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  transition: opacity 0.3s ease;
}

/* Legacy: standalone mute icon (now moved inside .video-controls row)
   Keeping base styles so nothing else breaks if used elsewhere */
.audio-toggle-icon {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  transition: opacity 0.3s ease;
}

/* NEW: compact controls row that contains Reset + Play/Pause + (existing) Mute */
.video-controls {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;              /* Only show on hover */
  gap: 8px;
  align-items: center;
  z-index: 11;                /* Above cues and video */
}

/* Only show controls when hovering the video wrapper (same behavior as before) */
.video-wrapper:hover .caption-globe-icon,
.video-wrapper:hover .audio-toggle-icon { /* kept for compatibility */
  display: flex;
}
.video-wrapper:hover .video-controls {
  display: flex;
}

/* Make the (existing) mute icon behave nicely inside the row */
.video-controls .audio-toggle-icon {
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  display: flex;              /* visible when row is visible */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0,0,0,.5);
}

/* Control buttons (new) */
.tv-btn {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.tv-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.tv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Icon swap for play/pause button */
.tv-toggle .icon-pause { display: none; }
.tv-toggle.is-playing .icon-play  { display: none; }
.tv-toggle.is-playing .icon-pause { display: block; }

/* Caption Language Dropdown */
.caption-language-dropdown {
  position: absolute;
  top: 50px;
  right: 50%;
  transform: translateX(50%);
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 5px;
  display: none;
  z-index: 10;
}
.caption-language-dropdown.active { display: block; }
.caption-language-dropdown select {
  background-color: transparent;
  color: white;
  border: none;
  padding: 5px;
  width: 100%;
  cursor: pointer;
}
.caption-language-dropdown option {
  background-color: #333;
  color: white;
}

/* Bricks container */
.brxe-transcribed-video {
  position: absolute;
  top:0; bottom:0; left:0; right:0;
  width: 100%;
  display: flex; justify-content: center; align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  margin: 0px 0;
}

.video-wrapper video {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Hero modifier variants kept */
.hero-transcribed-vid:before {
  z-index: 1;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0))!important;
}
.hero-transcribed-vid .video-wrapper video{
  height: 85vh;
  object-fit: cover;
  border-radius:0!important;
  box-shadow:none!important;
}
.hero-transcribed-vid .audio-toggle-icon { bottom: 22px; }
.hero-transcribed-vid .caption-globe-icon { display: none !important; }

/* WebKit cue box sizing (line height/font for hero) */
.hero-transcribed-vid video::-webkit-media-text-track-container {
  line-height:  clamp(30px, 3.5vw, 42px)!important;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px)!important;
}
.hero-transcribed-vid video ::cue { font-family: 'Roboto', sans-serif; }

/* Hide default video controls (intentionally omitted) */

/* Default cue styling (works cross-browser; ::cue applies inside tracks) */
::cue {
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: .9em !important;
  font-family: 'Roboto', sans-serif;
}

/* WebKit text track container tweaks (keep) */
video::-webkit-media-text-track-container { line-height: 1.2em !important; }

/* Style variations */
.style-minimal ::cue {
  background: none;
  text-shadow: 1px 1px 2px black, -1px -1px 2px black, 1px -1px 2px black, -1px 1px 2px black;
}
.style-bold ::cue   { font-weight: bold; font-size: 1.2em; }
.style-elegant ::cue{
  background-color: rgba(25, 25, 112, 0.8);
  font-family: Georgia, serif;
  border-radius: 10px;
}
.style-modern ::cue {
  background-color: rgba(0, 0, 0, 0.5);
  border-left: 3px solid #ffcc00;
  padding-left: 10px;
}

/* Circular videos */
.transcribed-video-container video {
  overflow: hidden;
  border-radius: 50%!important;
}

/* Position subtitles a bit higher for circular layout */
.transcribed-video-container video::-webkit-media-text-track-display {
  width: 70%!important;
  left:15%!important;
  top:75%!important;
}

/* Slider bits (kept) */
.transcribed-slider-section .splide__pagination {
  top: -30px!important;
  bottom:unset;
  justify-content: space-between;
  max-width: 1250px;
  width:85%;
}
.transcribed-slider-section .splide__pagination__page {
  width: 100%!important;
  border-radius: 0!important;
  padding-left:5px!important;
  padding-right:5px!important;
  margin:0!important;
  height:5px!important;
}
.transcribed-slider-section .brxe-icon{ cursor:pointer; transition:.3s ease-in-out all; }
.transcribed-slider-section .brxe-icon:hover{ transform:scale(1.1); }
.transcribed-slider-section .splide__slide {}
.transcribed-slider-section .splide__slide.is-next {}