.vlv-av {
  position: relative;
  isolation: isolate;
}

.vlv-av:fullscreen,
.vlv-av:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  background: #000 !important;
}

.vlv-av:fullscreen iframe,
.vlv-av:-webkit-full-screen iframe {
  width: 100% !important;
  height: 100% !important;
}

.vlv-av > button,
.vlv-av > [aria-label="Play"],
.vlv-av > [aria-label="Pause"],
.vlv-av > [aria-label="Mute"],
.vlv-av > [aria-label="Unmute"] {
  display: none !important;
}

.vlv-av.has-started > img[src*="ytimg"] {
  display: none !important;
}

.vlv-av iframe {
  pointer-events: none !important;
}

.vlv-av-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.vlv-av-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: #d30000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-left: 4px;
  box-shadow: 0 10px 24px rgba(211, 0, 0, 0.4);
  z-index: 3;
}

.vlv-av.is-playing .vlv-av-play {
  display: none;
}

.vlv-av-play:hover {
  background: #e31335;
  transform: translate(-50%, -50%) scale(1.08);
}

.vlv-av-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.vlv-av-fs {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  opacity: 1;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.vlv-av-fs:hover {
  background: rgba(211, 0, 0, 0.92);
}

.vlv-av-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vlv-av.show-chrome .vlv-av-bar,
.vlv-av:not(.is-playing) .vlv-av-bar,
.vlv-av.is-playing:hover .vlv-av-bar,
.vlv-av:fullscreen .vlv-av-bar,
.vlv-av:-webkit-full-screen .vlv-av-bar {
  opacity: 1;
  pointer-events: auto;
}

.vlv-av-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vlv-av-btn:hover {
  background: rgba(211, 0, 0, 0.92);
}

.vlv-av-time {
  flex: 0 0 auto;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 78px;
}

.vlv-av-seek {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  accent-color: #d30000;
  cursor: pointer;
}

@media (hover: none) {
  .vlv-av.is-playing .vlv-av-bar {
    opacity: 1;
    pointer-events: auto;
  }

  .vlv-av.is-playing .vlv-av-fs {
    opacity: 1;
  }

  .vlv-av-play {
    width: 64px;
    height: 64px;
  }

  .vlv-av-fs {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
  }
}
