.vp {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #14161c;
  color: #f3f4f7;
  user-select: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.vp.is-portrait {
  max-width: 100%;
}

.vp-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  container-type: size;
}

.vp:focus {
  outline: 2px solid #f0b15a;
  outline-offset: 2px;
}

.vp-video {
  display: block;
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: translate(-50%, -50%) rotate(var(--orient-rot, 0deg));
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

[data-rot="90"] .vp-video,
[data-rot="270"] .vp-video {
  width: 100cqh;
  height: 100cqw;
}

.vp-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  background: transparent;
}

.vp.is-paused .vp-overlay,
.vp.is-loading .vp-overlay {
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.35));
}

.vp-status {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.72);
  color: #f0b15a;
  font-size: 13px;
  pointer-events: none;
}

.vp-status:empty {
  display: none;
}

.vp-spinner {
  display: none;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #f0b15a;
  border-radius: 50%;
  animation: vp-spin 0.7s linear infinite;
}

.vp.is-loading .vp-spinner,
.vp.is-waiting .vp-spinner {
  display: block;
}

.vp.is-loading .vp-bigplay {
  display: none;
}

@keyframes vp-spin {
  to {
    transform: rotate(360deg);
  }
}

.vp-bigplay {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: #f0b15a;
  color: #1a1308;
  pointer-events: auto;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vp-bigplay:disabled {
  opacity: 0.35;
  cursor: default;
}

.vp-bigplay svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.vp.is-playing .vp-bigplay {
  display: none;
}

.player-host {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.player-host .vp {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}

.player-host .vp.is-portrait {
  height: 100%;
}

.vp-bar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  flex: 0 0 48px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  height: 48px !important;
  max-width: 100%;
  max-height: 48px !important;
  padding: 0 10px;
  background: #1a1d24;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transform: none !important;
}

.player-host:fullscreen,
.player-host:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.player-host:fullscreen .vp,
.player-host:-webkit-full-screen .vp {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.player-host:fullscreen .vp-stage,
.player-host:-webkit-full-screen .vp-stage {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  max-height: none;
}

.vp.is-playing.is-idle .vp-overlay {
  opacity: 0;
}

.vp.is-playing.is-idle .vp-bar {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.vp.is-waiting .vp-overlay,
.vp.is-loading .vp-overlay {
  opacity: 1;
}

.vp-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.vp-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.vp-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.vp-btn svg {
  width: 20px;
  height: 20px;
}

.vp-time {
  flex: none;
  min-width: 40px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #d7dbe3;
}

.vp-seek {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 18px;
  cursor: pointer;
}

.vp-seek-track,
.vp-seek-buf,
.vp-seek-played {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 4px;
  border-radius: 99px;
}

.vp-seek-track {
  background: rgba(255, 255, 255, 0.18);
}

.vp-seek-buf {
  width: 0;
  background: rgba(255, 255, 255, 0.35);
  right: auto;
}

.vp-seek-played {
  width: 0;
  background: #f0b15a;
  right: auto;
}

.vp-seek-knob {
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  left: 0;
}

.vp-vol {
  width: 72px;
  accent-color: #f0b15a;
  cursor: pointer;
}

@media (max-width: 720px) {
  .vp-vol {
    width: 56px;
  }

  .vp-time {
    min-width: 34px;
    font-size: 11px;
  }
}
