/* 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: 0;
  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,
.et-player-shell .et-fluid-ad-shell,
.et-player-shell .et-fluid-embed-host {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  background: #000;
}

.et-player-shell .et-fluid-embed-host .pt_vdo_plyr,
.et-player-shell .et-fluid-embed-host .embed-responsive,
.et-player-shell .et-fluid-embed-host .fb-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.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: var(--color-primary);
  --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: var(--color-primary);
  --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: var(--color-primary);
}

.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: var(--color-primary);
}

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

.et-player-shell .plyr__progress input[type="range"] {
  color: var(--color-primary);
}

.et-player-shell .plyr--full-ui input[type="range"] {
  color: var(--color-primary);
}

.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: var(--color-primary);
}

.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: var(--color-primary);
}

.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: var(--color-primary) !important;
}

.et-player-shell .mejs__overlay-play:hover .mejs__overlay-button {
  background-color: var(--color-primary) !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: var(--color-primary) !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: var(--color-primary) !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: var(--color-primary) !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;
  }
}

/* ElseTube proprietary player branding + ad chrome */
.et-elsetube-player .et-player-brand {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 7;
  width: 32px;
  height: 32px;
  line-height: 0;
  pointer-events: none;
  opacity: .9;
}
.et-elsetube-player .et-player-brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
}
.et-ad-ui {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}
.et-ad-ui__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  pointer-events: auto;
}
.et-ad-ui__label {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.et-ad-ui__skip {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
}
.et-ad-ui__skip:disabled {
  opacity: .65;
  cursor: default;
}
.et-ad-ui__cta {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  align-items: center;
  border-radius: 8px;
  background: var(--color-primary, #6366F1);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.et-elsetube-ad-shell {
  z-index: 5;
}


/* ---- Admin > Video Player (CSS variables / classes set by elsetube-player.js applyLook) ---- */
.et-player-shell.et-vp .plyr {
  --plyr-color-main: var(--et-player-main, var(--color-primary));
  --plyr-range-fill-background: var(--et-player-main, var(--color-primary));
  --plyr-badge-background: var(--et-player-main, var(--color-primary));
  --plyr-range-track-height: var(--et-progress-h, 3px);
  --plyr-range-thumb-background: var(--et-player-main, var(--color-primary));
  --plyr-range-thumb-shadow: none;
  --plyr-range-thumb-active-shadow-width: 0;
  --plyr-video-range-track-background: rgba(255, 255, 255, 0.2);
  --plyr-video-progress-buffered-background: rgba(255, 255, 255, 0.4);
}
.et-player-shell.et-vp .plyr__control.plyr__tab-focus,
.et-player-shell.et-vp .plyr__control:hover,
.et-player-shell.et-vp .plyr__control[aria-expanded="true"],
.et-player-shell.et-vp .plyr__control--overlaid:hover {
  background: var(--et-player-main, var(--color-primary));
}
.et-player-shell.et-vp .plyr__progress input[type="range"],
.et-player-shell.et-vp .plyr--full-ui input[type="range"] {
  color: var(--et-player-main, var(--color-primary));
}
.et-player-shell.et-vp .plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::before {
  background: var(--et-player-main, var(--color-primary));
}

/* Thin YouTube-style progress bar on its own full-width row above the buttons */
.et-player-shell.et-vp .plyr__controls {
  flex-wrap: wrap;
  padding: 26px 10px 6px !important;
}
.et-player-shell.et-vp .plyr__controls .plyr__progress__container {
  order: -1;
  flex: 0 0 100%;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.et-player-shell.et-vp .plyr__controls .plyr__controls__item.plyr__time--current { margin-left: 4px; }
.et-player-shell.et-vp .plyr__controls .plyr__volume { margin-right: auto; }
.et-player-shell.et-vp .plyr__progress {
  left: 0;
  margin: 0;
  padding: 6px 0;
  cursor: pointer;
}
.et-player-shell.et-vp .plyr__progress input[type="range"],
.et-player-shell.et-vp .plyr__progress__buffer {
  margin: 0;
  width: 100%;
  left: 0;
  transition: height .12s ease;
}
.et-player-shell.et-vp .plyr__progress input[type="range"] { height: 13px; }
.et-player-shell.et-vp .plyr__progress__buffer { margin-top: 0; top: 50%; transform: translateY(-50%); border-radius: 0; }
.et-player-shell.et-vp .plyr__progress:hover,
.et-player-shell.et-vp .plyr__progress:focus-within { --plyr-range-track-height: var(--et-progress-hh, 5px); }
.et-player-shell.et-vp .plyr__progress input[type="range"]::-webkit-slider-runnable-track { border-radius: 0; transition: height .12s ease; }
.et-player-shell.et-vp .plyr__progress input[type="range"]::-moz-range-track { border-radius: 0; }
.et-player-shell.et-vp .plyr__progress input[type="range"]::-moz-range-progress { border-radius: 0; }
.et-player-shell.et-vp .plyr__progress input[type="range"]::-webkit-slider-thumb { transform: scale(0); transition: transform .12s ease; box-shadow: none; }
.et-player-shell.et-vp .plyr__progress input[type="range"]::-moz-range-thumb { transform: scale(0); transition: transform .12s ease; box-shadow: none; }
.et-player-shell.et-vp .plyr__progress:hover input[type="range"]::-webkit-slider-thumb,
.et-player-shell.et-vp .plyr__progress input[type="range"]:active::-webkit-slider-thumb,
.et-player-shell.et-vp .plyr__progress input[type="range"].plyr__tab-focus::-webkit-slider-thumb { transform: scale(1); }
.et-player-shell.et-vp .plyr__progress:hover input[type="range"]::-moz-range-thumb,
.et-player-shell.et-vp .plyr__progress input[type="range"]:active::-moz-range-thumb { transform: scale(1); }
.et-player-shell.et-vp .plyr__progress .plyr__tooltip { font-size: 12px; font-variant-numeric: tabular-nums; padding: 4px 7px; bottom: 100%; margin-bottom: 6px; }
.et-player-shell.et-vp .et-chapter-dot { width: 6px; height: 6px; margin-left: -3px; margin-top: -3px; }
.et-player-shell.et-no-buffer .plyr__progress__buffer { display: none; }
.et-player-shell.et-no-scrubber .plyr__progress input[type="range"]::-webkit-slider-thumb { transform: scale(0) !important; }
.et-player-shell.et-no-scrubber .plyr__progress input[type="range"]::-moz-range-thumb { transform: scale(0) !important; }
.et-player-shell.et-no-seektip .plyr__progress .plyr__tooltip { display: none !important; }

/* Logo watermark (site logo by default) */
.et-elsetube-player .et-player-brand.et-player-brand--logo {
  width: auto;
  height: auto;
  top: 12px;
  right: 12px;
  left: auto;
  opacity: var(--et-logo-opacity, .85);
  transition: opacity .2s ease;
}
.et-elsetube-player .et-player-brand.et-player-brand--logo img {
  width: auto !important;
  height: var(--et-logo-h, 22px) !important;
  max-width: 40%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
.et-player-shell.et-logo-top-left .et-player-brand--logo { top: 12px; left: 12px; right: auto; bottom: auto; }
.et-player-shell.et-logo-top-right .et-player-brand--logo { top: 12px; right: 12px; left: auto; bottom: auto; }
.et-player-shell.et-logo-bottom-left .et-player-brand--logo { bottom: 64px; left: 12px; top: auto; right: auto; }
.et-player-shell.et-logo-bottom-right .et-player-brand--logo { bottom: 64px; right: 12px; top: auto; left: auto; }
.et-elsetube-player .et-player-brand--link { pointer-events: auto; }

/* Loading spinner */
.et-player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: var(--et-spinner-color, var(--color-primary));
  animation: et-player-spin .8s linear infinite;
  z-index: 6;
  pointer-events: none;
  display: none;
}
.et-player-spinner.is-on { display: block; }
@keyframes et-player-spin { to { transform: rotate(360deg); } }
.et-player-shell.et-spinner-none .et-player-spinner { display: none !important; }
.et-player-shell.et-spinner-dots .et-player-spinner {
  border: 0;
  width: 56px;
  margin-left: -28px;
  height: 14px;
  margin-top: -7px;
  border-radius: 0;
  animation: none;
  background:
    radial-gradient(circle closest-side, var(--et-spinner-color, var(--color-primary)) 90%, transparent) 0 50% / 14px 14px no-repeat,
    radial-gradient(circle closest-side, var(--et-spinner-color, var(--color-primary)) 90%, transparent) 50% 50% / 14px 14px no-repeat,
    radial-gradient(circle closest-side, var(--et-spinner-color, var(--color-primary)) 90%, transparent) 100% 50% / 14px 14px no-repeat;
}
.et-player-shell.et-spinner-dots .et-player-spinner.is-on { animation: et-player-dots 1s ease-in-out infinite; }
@keyframes et-player-dots { 50% { opacity: .35; } }

/* YouTube inside the ElseTube player */
.et-player-shell .et-yt-plyr { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding: 0 !important; }

/* Mini player: docked bottom-right while playing and scrolled away (mini_player_system) */
.et-player-shell.et-mini .plyr {
  position: fixed !important;
  inset: auto 16px 16px auto !important;
  width: 340px !important;
  height: 191px !important;
  z-index: 9990;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
@media (max-width: 768px) {
  .et-elsetube-player .et-player-brand.et-player-brand--logo img { height: calc(var(--et-logo-h, 22px) * .8) !important; }
  .et-player-shell.et-mini .plyr { width: 220px !important; height: 124px !important; inset: auto 10px 76px auto !important; }
}
.et-player-shell.et-vp .plyr__controls { justify-content: flex-start; }
.et-player-shell.et-vp .plyr__controls .plyr__volume { margin-right: 0; }
.et-player-shell.et-vp .plyr__controls > .plyr__menu,
.et-player-shell.et-vp .plyr__controls > .plyr__menu ~ .plyr__control:first-of-type { margin-left: auto; }

/* movies2 (24 Oct 2026): the site-wide form input style (white background + 1px border) was leaking onto
   the Plyr range inputs, turning the progress line into a thick white bar. Keep it a thin Finepedia-style
   line: 3px, 5px on hover. */
.et-player-shell .plyr input[type="range"],
.et-player-shell .plyr input[type="range"]:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  outline: none;
}
.et-player-shell .plyr__progress { --plyr-range-track-height: 3px; }
.et-player-shell .plyr__progress:hover,
.et-player-shell .plyr__progress:focus-within { --plyr-range-track-height: 5px; }
.et-player-shell .plyr__progress__buffer { height: var(--plyr-range-track-height, 3px) !important; }
