.ok-yt-player {
  --okvp-bg: #050606;
  --okvp-text: #ffffff;
  --okvp-muted: rgba(255, 255, 255, .72);
  --okvp-track: rgba(255, 255, 255, .24);
  --okvp-brand: var(--color-primary, #00ba9e);
  --okvp-primary: var(--okvp-brand);
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--okvp-bg);
  color: var(--okvp-text);
  font-family: var(--font-family-main, Arial, sans-serif);
  user-select: none;
  border-radius: 0 !important;
}

.ok-has-yt-player {
  border-radius: 0 !important;
}

.ok-yt-player video,
.ok-yt-player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 0 !important;
  max-width: none;
  max-height: none;
}

.ok-single-media .ok-yt-player,
.ok-single-media .ok-yt-player video,
.ok-single-media--video .ok-yt-player,
.ok-single-media--video .ok-yt-player video,
.ok-single-content .ok-yt-player,
.ok-single-content .ok-yt-player video,
.wp-video .ok-yt-player,
.wp-video .ok-yt-player video {
  border-radius: 0 !important;
}

.ok-yt-player:fullscreen,
.ok-yt-player:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  background: #000;
}

.ok-yt-player:fullscreen:not(.is-controls-active),
.ok-yt-player:-webkit-full-screen:not(.is-controls-active) {
  cursor: none;
}

.ok-yt-player:fullscreen video,
.ok-yt-player:fullscreen img,
.ok-yt-player:fullscreen .ok-yt-player__ad-layer,
.ok-yt-player:fullscreen .ok-yt-player__ad-media,
.ok-yt-player:-webkit-full-screen video,
.ok-yt-player:-webkit-full-screen img,
.ok-yt-player:-webkit-full-screen .ok-yt-player__ad-layer,
.ok-yt-player:-webkit-full-screen .ok-yt-player__ad-media {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

.ok-yt-player video::-webkit-media-controls {
  display: none !important;
}

.ok-yt-player__surface {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.ok-yt-player__big {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: opacity .18s ease, transform .18s ease;
}

.ok-yt-player.is-playing .ok-yt-player__big {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  pointer-events: none;
}

.ok-yt-player__controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 56px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 11;
  pointer-events: none;
}

.ok-yt-player.is-controls-active .ok-yt-player__controls {
  opacity: 1;
}

.ok-yt-player__controls button,
.ok-yt-player__controls input,
.ok-yt-player__bar {
  pointer-events: auto;
}

.ok-yt-player__bar {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: var(--okvp-track);
  cursor: pointer;
}

.ok-yt-player__progress,
.ok-yt-player__buffer {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
}

.ok-yt-player__buffer {
  background: rgba(255, 255, 255, .34);
}

.ok-yt-player__progress {
  background: var(--okvp-primary);
}

.ok-yt-player__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ok-yt-player__left,
.ok-yt-player__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ok-yt-player button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ok-yt-player button:hover,
.ok-yt-player button:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.ok-yt-player svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ok-yt-player__time {
  min-width: 98px;
  color: var(--okvp-muted);
  font-size: 13px;
  font-weight: 700;
}

.ok-yt-player__volume {
  width: 82px;
  accent-color: #fff;
}

.ok-yt-player__ad-layer {
  position: absolute;
  inset: -1px;
  display: none;
  background: #000;
  z-index: 4;
  pointer-events: none;
  font-family: "Product Sans", "Google Sans", Arial, sans-serif;
}

.ok-yt-player.is-ad .ok-yt-player__ad-layer {
  display: block;
  pointer-events: auto;
}

.ok-yt-player:not(.is-ad) .ok-yt-player__ad-mini-progress,
.ok-yt-player:not(.is-ad) .ok-yt-player__ad-ui {
  display: none;
}

.ok-yt-player__ad-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  pointer-events: auto;
}

.ok-yt-player__ad-media > * {
  pointer-events: none;
}

.ok-yt-player__ima,
.ok-yt-player__ima > div,
.ok-yt-player__ima iframe,
.ok-yt-player__ima video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  pointer-events: auto !important;
}

.ok-yt-player.is-ad .ok-yt-player__progress {
  background: #ffcc00;
}

.ok-yt-player__ad-mini-progress {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
  z-index: 13;
}

.ok-yt-player.is-ad.is-controls-active .ok-yt-player__ad-mini-progress {
  display: none;
}

.ok-yt-player__ad-mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffcc00;
}

.ok-yt-player__ad-ui {
  position: absolute;
  right: 14px;
  bottom: 34px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 15;
  pointer-events: none;
  transition: bottom .18s ease;
}

.ok-yt-player.is-controls-active .ok-yt-player__ad-ui {
  bottom: 70px;
}

.ok-yt-player__ad-left {
  display: grid;
  min-width: 0;
  max-width: min(360px, calc(100% - 116px));
  pointer-events: none;
}

.ok-yt-player__sponsor {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(18, 18, 18, .54);
  color: #fff;
  font-family: "Product Sans", "Google Sans", Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}

.ok-yt-player__sponsor:hover,
.ok-yt-player__sponsor:focus-visible {
  background: rgba(18, 18, 18, .68);
  color: #fff;
  text-decoration: none;
}

.ok-yt-player__sponsor-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff center / cover no-repeat;
  color: #d71920;
  font-size: 15px;
  font-weight: 950;
}

.ok-yt-player__sponsor-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ok-yt-player__sponsor-copy strong,
.ok-yt-player__sponsor-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ok-yt-player__sponsor-copy strong {
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.ok-yt-player__sponsor-copy em {
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.ok-yt-player__sponsor-cta {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ok-yt-player__ad-line {
  display: none;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .88);
  font-family: Arial, "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
}

.ok-yt-player__ad-line strong {
  color: #fff;
}

.ok-yt-player__ad-line strong::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  vertical-align: middle;
}

.ok-yt-player__skip {
  display: inline-flex !important;
  width: auto !important;
  min-width: 58px;
  height: 36px !important;
  grid-auto-flow: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px 0 13px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(25, 25, 25, .46) !important;
  color: #fff;
  font-size: 12px;
  font-family: "Product Sans", "Google Sans", Arial, sans-serif;
  font-weight: 800;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  flex: 0 0 auto;
}

.ok-yt-player__skip[hidden] {
  display: none !important;
}

.ok-yt-player__skip svg {
  width: 16px;
  height: 16px;
}

.ok-yt-player__skip:not([disabled]) {
  background: rgba(25, 25, 25, .52) !important;
}

.ok-yt-player__skip:not([disabled]):hover {
  background: rgba(25, 25, 25, .66) !important;
  border: 0 !important;
  color: #fff;
  outline: none;
}

.ok-yt-player__skip:focus,
.ok-yt-player__skip:focus-visible {
  border: 0 !important;
  outline: none;
}

.ok-yt-player__skip[disabled] {
  cursor: default;
  opacity: .9;
}

.ok-yt-player__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, .24);
  border-top-color: var(--okvp-brand);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: okvp-spin .8s linear infinite;
  pointer-events: none;
}

.ok-yt-player.is-waiting .ok-yt-player__loader {
  opacity: 1;
}

@keyframes okvp-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 640px) {
  .ok-yt-player__controls {
    padding: 42px 10px 10px;
  }

  .ok-yt-player__sponsor {
    grid-template-columns: 28px;
    width: 38px;
    min-height: 38px;
    padding: 5px;
    border-radius: 7px;
  }

  .ok-yt-player__ad-ui {
    right: 10px;
    bottom: 30px;
    left: 10px;
    gap: 6px;
  }

  .ok-yt-player.is-controls-active .ok-yt-player__ad-ui {
    bottom: 58px;
  }

  .ok-yt-player__ad-left {
    max-width: calc(100% - 74px);
  }

  .ok-yt-player__sponsor-logo {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .ok-yt-player__sponsor-copy,
  .ok-yt-player__sponsor-cta {
    display: none;
  }

  .ok-yt-player__sponsor-copy strong {
    font-size: 11px;
  }

  .ok-yt-player__sponsor-copy em {
    display: none;
  }

  .ok-yt-player__sponsor-cta {
    display: none;
  }

  .ok-yt-player__ad-line {
    gap: 6px;
  }

  .ok-yt-player__skip {
    min-width: 58px;
    height: 30px !important;
    padding: 0 8px 0 10px !important;
    font-size: 10px;
    border-radius: 7px !important;
  }

  .ok-yt-player__skip svg {
    width: 13px;
    height: 13px;
  }

  .ok-yt-player__volume {
    display: none;
  }

  .ok-yt-player__time {
    min-width: auto;
    font-size: 12px;
  }

  .ok-yt-player button {
    width: 34px;
    height: 34px;
  }

  .ok-yt-player__big {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-color-scheme: light) {
  .ok-yt-player {
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  }
}
