/* Extracted from videolife-pro-gls/assets/css/ui-polish.css — vip-notice + GLS Video Player. Rename gls-/vip-notice as needed for wdp-video-player. */







.video-download-wrapper {
  margin-bottom: 10px;
}

/* ==================================================
   PROMO BANNERS
   ================================================== */

.category-banner-ad {
  margin: 2px 0;
  text-align: center;
}

.category-banner-ad__link {
  display: block;
  max-width: 800px;
}

.category-banner-ad__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  border-radius: 12px;
}

/* ==================================================
   GLS LIGHTBOX
   ================================================== */

.wdp-lightbox-open {
  overflow: hidden;
}

.wdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}

.wdp-lightbox[hidden] {
  display: none;
}

.wdp-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1280px);
  height: min(88vh, 920px);
}

.wdp-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.wdp-lightbox__close,
.wdp-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 32, 32, 0.82);
  color: rgba(235, 235, 235, 0.92);
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.wdp-lightbox__close:hover,
.wdp-lightbox__nav:hover {
  background: rgba(56, 56, 56, 0.9);
  transform: translateY(-1px);
}

.wdp-lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.wdp-lightbox__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  font-size: 38px;
  line-height: 1;
}

.wdp-lightbox__nav--prev {
  left: 20px;
}

.wdp-lightbox__nav--next {
  right: 20px;
}

.wdp-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.72);
  color: rgba(228, 228, 228, 0.8);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.entry-content .wp-block-gallery img {
  cursor: zoom-in;
}

@media (max-width: 767px) {
  .wdp-lightbox {
    padding: 16px;
  }

  .wdp-lightbox__stage {
    width: 100%;
    height: min(82vh, 720px);
  }

  .wdp-lightbox__image {
    border-radius: 12px;
  }

  .wdp-lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .wdp-lightbox__nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 34px;
  }

  .wdp-lightbox__nav--prev {
    left: 8px;
  }

  .wdp-lightbox__nav--next {
    right: 8px;
  }

  .wdp-lightbox__counter {
    bottom: 14px;
    font-size: 12px;
  }
}

/* =========================================================
 * GLS Video Player
 * ========================================================= */

.wdp-video-player-shell {
  margin: 14px 0 16px;
  /* Keep quality menu/toast focus geometry from shifting page scrollX. */
  overflow: hidden;
}

.wdp-video-player-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 640px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 42%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 36%),
    #09090f;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.wdp-video-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  --wdp-video-poster: none;
  isolation: isolate;
}

.wdp-video-player-frame .artplayer-app,
.wdp-video-player-frame .wdp-video-element {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
}

.wdp-video-player-frame .wdp-video-element,
.wdp-video-player-frame .artplayer video,
.wdp-video-player-frame .art-video-player,
.wdp-video-player-frame .art-video {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  background: #000;
}

/* Web/native fullscreen must escape shell/frame overflow clipping */
/* ArtPlayer 5.2.3 uses art-fullscreen / art-fullscreen-web (not artplayer-*). */
.wdp-video-player-shell:has(.art-fullscreen-web),
.wdp-video-player-shell:has(.art-fullscreen),
.wdp-video-player-shell:has(.artplayer-web-fullscreen),
.wdp-video-player-shell:has(.artplayer-fullscreen),
.wdp-video-player-frame:has(.art-fullscreen-web),
.wdp-video-player-frame:has(.art-fullscreen),
.wdp-video-player-frame:has(.artplayer-web-fullscreen),
.wdp-video-player-frame:has(.artplayer-fullscreen) {
  overflow: visible;
  border-radius: 0;
  width: auto;
  max-width: none;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.wdp-video-player.art-fullscreen-web,
.wdp-video-player.art-fullscreen,
.wdp-video-player.artplayer-web-fullscreen,
.wdp-video-player.artplayer-fullscreen,
.wdp-video-player-frame .art-fullscreen-web,
.wdp-video-player-frame .art-fullscreen,
.wdp-video-player-frame .artplayer-web-fullscreen,
.wdp-video-player-frame .artplayer-fullscreen {
  aspect-ratio: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
}

.wdp-video-player--idle {
  position: relative;
  overflow: hidden;
  background:
    var(--wdp-video-poster) center / contain no-repeat,
    #000;
}

.wdp-video-launch {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.wdp-video-launch__button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease;
}

.wdp-video-launch__triangle {
  display: block;
  width: 76px;
  height: 100px;
  margin-left: 0;
  transform: translateY(8px);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 50'%3E%3Cpath d='M7 4.8c0-2.8 3.1-4.5 5.5-2.9l22.1 14.4c2.2 1.4 2.2 4.7 0 6.1L12.5 36.8C10.1 38.4 7 36.7 7 33.9V4.8Z' fill='%23fff' fill-opacity='.9'/%3E%3C/svg%3E");
}

.wdp-video-launch:hover .wdp-video-launch__button {
  transform: translate(-50%, -50%) scale(1.04);
}

.wdp-video-player--booting .wdp-video-launch {
  cursor: progress;
}

.wdp-video-player--booting .wdp-video-launch__button {
  transform: translate(-50%, -50%) scale(0.97);
}

.wdp-video-preview-notice {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 7px;
  z-index: 40;
  width: auto;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 139, 0.18);
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.56);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.wdp-video-preview-notice__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #f8deaa;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.wdp-video-preview-notice__icon {
  flex: 0 0 auto;
}

.wdp-video-preview-notice__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 139, 0.15);
  color: #f8deaa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wdp-video-preview-notice__link:hover {
  color: #fff1cb;
  background: rgba(255, 214, 139, 0.22);
  opacity: 1;
}

.wdp-video-player--loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.wdp-video-skip-overlay__button {
  position: absolute;
  top: 50%;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 60px;
  height: 60px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 10, 16, 0.42);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.wdp-video-skip-overlay__button.is-visible {
  opacity: 1;
  visibility: visible;
}

.wdp-video-skip-overlay__button:hover,
.wdp-video-skip-overlay__button:focus-visible {
  background: rgba(18, 20, 30, 0.62);
  transform: translateY(-50%) scale(1.03);
}

.wdp-video-skip-overlay__button--back {
  left: 14px;
}

.wdp-video-skip-overlay__button--forward {
  right: 14px;
}

.wdp-video-skip-overlay__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  opacity: 0.96;
}

.wdp-video-skip-overlay__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wdp-video-skip-overlay__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.wdp-video-player-frame .art-controls .art-control .wdp-art-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  max-width: 58px;
  line-height: 1;
  min-width: 0;
}

.wdp-video-player-frame .art-controls .art-control .wdp-art-download__image {
  display: block;
  width: auto;
  height: 24px;
  margin: 0;
  max-width: 100%;
  max-height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.wdp-video-player-frame .art-controls .wdp-art-download-control {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  height: 100%;
  padding: 0 2px;
  margin-top: 0;
  margin-bottom: 0;
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.wdp-video-player-frame .art-controls .art-control-time {
  min-width: 0;
}

.wdp-video-player-frame .art-controls-left .wdp-art-download-control {
  margin-left: 5px;
}

/* Multi-quality selector (right of download) */
.wdp-video-player-frame .art-controls-left .wdp-art-quality-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 44px;
  min-height: 44px;
  height: 100%;
  margin-left: 2px;
  padding: 0 2px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.wdp-video-player-frame .art-controls .wdp-art-quality {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.wdp-video-player-frame .art-controls .wdp-art-quality:hover,
.wdp-video-player-frame .art-controls .wdp-art-quality:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.wdp-video-player-frame .art-controls .wdp-art-quality__label {
  max-width: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wdp-video-player-frame .art-controls .wdp-art-quality__sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.wdp-video-player-frame .art-controls .wdp-art-quality__caret {
  font-size: 10px;
  opacity: 0.8;
  transform: translateY(1px);
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: none;
  min-width: 148px;
  max-width: min(220px, 70vw);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 10px;
  background: rgba(18, 18, 22, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu.is-open,
.wdp-video-player-frame .art-controls .wdp-art-quality-menu:not([hidden]) {
  display: block;
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  color: #f3f3f5;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

/*
 * ArtPlayer layers/loading use z-index ~40–70 while .art-bottom/.art-controls sit lower.
 * Menu z-index inside controls cannot escape a lower parent stacking context.
 * JS toggles .wdp-quality-menu-open on .wdp-video-player only while the menu is open.
 */
.wdp-video-player.wdp-quality-menu-open .art-bottom {
  z-index: 80 !important;
}
.wdp-video-player.wdp-quality-menu-open .art-controls {
  z-index: 81 !important;
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__item:hover,
.wdp-video-player-frame .art-controls .wdp-art-quality-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__item.is-selected {
  color: #7dd3fc;
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__item.is-locked {
  opacity: 0.92;
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__label {
  flex: 1 1 auto;
  min-width: 0;
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__vip {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid #7657d6;
  border-radius: 4px;
  background: #7657d6;
  background-image: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  text-shadow: none;
}

.wdp-video-player-frame .art-controls .wdp-art-quality-menu__check {
  flex: 0 0 auto;
  font-size: 12px;
  opacity: 0.9;
}

.wdp-video-quality-toast {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92%, 360px);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 12, 16, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  transform: translateX(-50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.wdp-video-player .wdp-video-quality-toast__link,
.wdp-video-player .wdp-video-quality-toast__link:link,
.wdp-video-player .wdp-video-quality-toast__link:visited {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #7657d6;
  border-radius: 4px;
  background: #7657d6;
  background-image: none;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
  filter: none;
  transform: none;
}

.wdp-video-player .wdp-video-quality-toast__link:hover,
.wdp-video-player .wdp-video-quality-toast__link:focus-visible {
  border-color: #6546c2;
  background: #6546c2;
  background-image: none;
  color: #fff;
  box-shadow: none;
  filter: none;
  transform: none;
}

.wdp-video-player-frame .art-controls-right .art-control-volume {
  order: 2;
}

.wdp-video-player-frame .art-controls-right .art-control-web-fullscreen {
  display: none !important;
}

@media (max-width: 767px) {

  .wdp-video-player-shell {
    margin: 12px 0 14px;
  }

  .wdp-video-player-frame {
    border-radius: 14px;
  }

  .wdp-video-preview-notice {
    left: 10px;
    right: 10px;
    top: 7px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .wdp-video-preview-notice__text {
    font-size: 12px;
  }

  .wdp-video-preview-notice__link {
    width: 100%;
    min-height: 36px;
  }

  .wdp-video-player-frame .art-bottom .art-controls {
    padding-left: 8px;
    padding-right: 8px;
  }

  .wdp-video-player-frame .art-bottom .art-controls-left,
  .wdp-video-player-frame .art-bottom .art-controls-right {
    gap: 2px;
  }

  .wdp-video-player-frame .art-controls .art-control {
    min-width: auto;
    margin: 0;
    padding-left: 3px;
    padding-right: 3px;
  }

  .wdp-video-player-frame .art-controls .art-control-time {
    padding-left: 2px;
    padding-right: 2px;
    white-space: nowrap;
    font-size: 12px;
  }

  .wdp-video-player-frame .art-controls .art-control .wdp-art-download {
    width: 50px;
    max-width: 50px;
  }

  .wdp-video-player-frame .art-controls .art-control .wdp-art-download__image {
    height: 20px;
    max-height: 20px;
  }

  .wdp-video-player-frame .art-controls .wdp-art-download-control {
    padding: 0 1px;
    transform: none;
  }

  .wdp-video-player-frame .art-controls-left .wdp-art-quality-control {
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
    padding: 0 1px;
  }

  .wdp-video-player-frame .art-controls .wdp-art-quality {
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 12px;
  }

  .wdp-video-player-frame .art-controls .wdp-art-quality__sub {
    display: none;
  }

  .wdp-video-player-frame .art-controls .wdp-art-quality-menu {
    left: auto;
    right: 0;
    min-width: 140px;
    transform: none;
    bottom: calc(100% + 10px);
  }

  .wdp-video-quality-toast {
    bottom: 52px;
    font-size: 12px;
  }

  .wdp-video-player-frame .art-controls-right .art-control-volume {
    order: 2;
  }

  .wdp-video-player-frame .art-controls-right .art-control-web-fullscreen {
    display: none !important;
  }

  .wdp-video-skip-overlay__button {
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    gap: 4px;
  }

  .wdp-video-skip-overlay__button--back {
    left: 10px;
  }

  .wdp-video-skip-overlay__button--forward {
    right: 10px;
  }

  .wdp-video-skip-overlay__icon {
    width: 16px;
    height: 16px;
  }

  .wdp-video-skip-overlay__label {
    font-size: 12px;
  }
}

@media (max-width: 880px) {
  .wdp-video-player-frame .art-controls .art-control .wdp-art-download {
    width: 50px;
    max-width: 50px;
  }
}

@media (max-width: 560px) {
  .wdp-video-skip-overlay__label {
    display: none;
  }

  .wdp-video-player-frame .art-controls .art-control .wdp-art-download {
    width: 50px;
    max-width: 50px;
  }

  .wdp-video-player-frame .art-controls .wdp-art-quality {
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 11px;
  }

  .wdp-video-player-frame .art-controls-left .wdp-art-quality-control {
    min-width: 44px;
    min-height: 44px;
  }

  .wdp-video-player-frame .art-controls .wdp-art-quality-menu__item {
    min-height: 44px;
    min-width: 44px;
  }

  .wdp-video-player-frame .art-controls .wdp-art-quality__caret {
    display: none;
  }

  .wdp-video-skip-overlay__button {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
  }
}

/* Safe-area / landscape: keep quality menu above controls */
@supports (padding: max(0px)) {
  .wdp-video-player-frame .art-controls .wdp-art-quality-menu {
    bottom: calc(100% + max(8px, env(safe-area-inset-bottom, 0px)));
  }
}
