/* ElseTube watch player — YouTube / Plyr-class chrome (elsetube theme only) */

.et-player-shell,
.video-player.et-player-shell,
.pt_video_player.et-player-shell {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b0b0f;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
  max-height: none;
}

.et-player-shell .pt_vdo_plyr,
.et-player-shell .embed-responsive,
.et-player-shell .fb-video,
.et-player-shell .plyr,
.et-player-shell .mejs__container,
.et-player-shell .fluid_video_wrapper,
.et-player-shell .video-js,
.et-player-shell .video-processing,
.et-player-shell > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  background: #000;
}

.et-player-shell .embed-responsive iframe,
.et-player-shell .pt_vdo_plyr iframe,
.et-player-shell iframe,
.et-player-shell video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
  background: #000;
}

.et-player-shell .plyr {
  aspect-ratio: auto;
}

.et-player-shell .plyr video,
.et-player-shell .plyr__video-wrapper,
.et-player-shell .plyr__video-embed,
.et-player-shell .plyr__video-embed iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  padding-bottom: 0 !important;
}

.et-player-shell .plyr video {
  object-fit: contain;
}

.et-player-shell .mejs__container video,
.et-player-shell .video-js {
  border-radius: 0;
}

.et-player-shell .video-processing {
  overflow: hidden;
}

.et-player-shell .video-processing img,
.player-video .et-player-shell .video-processing img,
.player-video .video-processing img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover;
  aspect-ratio: auto;
  display: block;
}

.et-player-shell .plyr {
  --plyr-color-main: #6366f1;
  --plyr-video-background: #0b0b0f;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #fff;
  --plyr-video-control-background-hover: rgba(99, 102, 241, 0.92);
  --plyr-font-family: "Roboto", Arial, Helvetica, sans-serif;
  --plyr-font-size-small: 13px;
  --plyr-font-size-base: 13px;
  --plyr-font-size-large: 16px;
  --plyr-control-icon-size: 20px;
  --plyr-control-spacing: 10px;
  --plyr-control-radius: 8px;
  --plyr-range-fill-background: #6366f1;
  --plyr-range-thumb-background: #fff;
  --plyr-range-thumb-height: 13px;
  --plyr-range-thumb-width: 13px;
  --plyr-range-thumb-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28);
  --plyr-range-track-height: 3px;
  --plyr-video-progress-buffered-background: rgba(255, 255, 255, 0.32);
  --plyr-menu-background: rgba(28, 28, 28, 0.96);
  --plyr-menu-color: #fff;
  --plyr-menu-border-radius: 10px;
  --plyr-menu-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --plyr-tooltip-background: rgba(28, 28, 28, 0.92);
  --plyr-tooltip-color: #fff;
  --plyr-badge-background: #6366f1;
}

.et-player-shell .plyr__controls {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 28%, rgba(0, 0, 0, 0.78) 100%) !important;
  padding: 28px 12px 10px !important;
  color: #fff;
  align-items: center;
}

.et-player-shell .plyr__control {
  border-radius: 8px;
}

.et-player-shell .plyr__control.plyr__tab-focus,
.et-player-shell .plyr__control:hover,
.et-player-shell .plyr__control[aria-expanded="true"] {
  background: rgba(99, 102, 241, 0.92);
}

.et-player-shell .plyr__control--overlaid {
  background: rgba(15, 15, 18, 0.72);
  border: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 22px;
  color: #fff;
}

.et-player-shell .plyr__control--overlaid:hover,
.et-player-shell .plyr__control--overlaid.plyr__tab-focus {
  background: #6366f1;
}

.et-player-shell .plyr__progress {
  position: relative;
}

.et-player-shell .plyr__progress input[type="range"] {
  color: #6366f1;
}

.et-player-shell .plyr--full-ui input[type="range"] {
  color: #6366f1;
}

.et-player-shell .plyr__progress__buffer {
  color: rgba(255, 255, 255, 0.35);
}

.et-player-shell .plyr__time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 13px;
  color: #fff;
}

.et-player-shell .plyr__menu__container {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 220px;
}

.et-player-shell .plyr__menu__container .plyr__control {
  font-size: 13px;
  font-weight: 500;
}

.et-player-shell .plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::before {
  background: #6366f1;
}

.et-player-shell .plyr__volume input[type="range"] {
  max-width: 72px;
}

.et-player-shell .plyr__captions {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.et-player-shell .et-chapter-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.9);
  z-index: 3;
  cursor: pointer;
  padding: 0;
}

.et-player-shell .et-chapter-dot:hover {
  transform: scale(1.25);
  background: #6366f1;
}

.et-player-toast {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) scale(0.94);
  background: rgba(15, 15, 18, 0.82);
  color: #fff;
  font: 600 18px/1.2 "Roboto", Arial, Helvetica, sans-serif;
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.et-player-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.et-player-keys {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.et-player-keys.is-on {
  display: flex;
}

.et-player-keys__box {
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.et-player-keys__box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.et-player-keys__box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.et-player-keys__box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: #cbd5e1;
}

.et-player-keys__box kbd {
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 5px;
  background: #1e293b;
  border: 1px solid #334155;
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.et-player-keys__box p {
  margin: 12px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* MediaElement (YouTube + ads fallback) */
.et-player-shell .mejs__controls:not([style*="display: none"]) {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)) !important;
  padding: 32px 10px 8px !important;
}

.et-player-shell .mejs__time-current,
.et-player-shell .mejs__time-hovered.negative {
  background-color: #6366f1 !important;
}

.et-player-shell .mejs__overlay-play:hover .mejs__overlay-button {
  background-color: #6366f1 !important;
}

.et-player-shell .mejs__overlay-play .mejs__overlay-button {
  background-color: rgba(15, 15, 18, 0.78) !important;
  width: 68px !important;
  height: 68px !important;
}

.et-player-shell .mejs__qualities-selected,
.et-player-shell .mejs-qualities-selected {
  color: #6366f1 !important;
}

.et-player-shell .mejs__speed-selector,
.et-player-shell .mejs-speed-selector,
.et-player-shell .mejs__qualities-selector,
.et-player-shell .mejs__volume-button > .mejs__volume-slider {
  background: rgba(28, 28, 28, 0.96) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.et-player-shell .mejs__time-handle-content {
  border-color: #fff !important;
}

.et-player-shell .fluid_controls_container,
.et-player-shell .vjs-control-bar {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)) !important;
}

.et-player-shell .vjs-play-progress,
.et-player-shell .vjs-volume-level {
  background-color: #6366f1 !important;
}

.et-player-shell .vjs-big-play-button {
  background: rgba(15, 15, 18, 0.78) !important;
  border: 0 !important;
  border-radius: 50% !important;
}

.et-player-shell .vjs-big-play-button:hover {
  background: #6366f1 !important;
}

.expend-player-container .et-player-shell,
.expend-player-container .video-player.et-player-shell {
  border-radius: 0;
  max-height: none !important;
  aspect-ratio: auto;
  height: 100%;
}

@media (max-width: 768px) {
  .et-player-shell,
  .video-player.et-player-shell {
    border-radius: 0;
    max-height: none !important;
  }

  .et-player-shell > video,
  .et-player-shell .plyr {
    max-height: none;
  }

  .et-player-shell .plyr__captions {
    font-size: 14px;
  }

  .et-player-shell .plyr__volume input[type="range"] {
    display: none;
  }
}
