
.vp {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vp-tint, #17151c);
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.vp video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
}


.vp__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
    rgba(10, 8, 6, 0.10) 0%,
    rgba(10, 8, 6, 0) 30%,
    rgba(10, 8, 6, 0) 62%,
    rgba(10, 8, 6, 0.28) 100%);
  transition: opacity .35s ease, visibility .35s ease;
}

.vp.is-playing .vp__overlay {
  opacity: 0;
  visibility: hidden;
}

.vp__play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 16, 12, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform .25s ease, background .25s ease;
}

.vp__play::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  animation: vp-pulse 2.4s ease-out infinite;
}

@keyframes vp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.40); }
  70%  { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.vp__play svg { width: 28px; height: 28px; margin-left: 4px; }

.vp__play:hover { transform: scale(1.08); background: rgba(20, 16, 12, 0.58); }


.vp__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0) 0%, rgba(10, 8, 6, 0.55) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.vp:hover .vp__bar,
.vp:focus-within .vp__bar {
  opacity: 1;
  visibility: visible;
}

.vp__btn {
  flex: none;
  width: 32px; height: 32px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: transparent;
  transition: background .2s ease;
}

.vp__btn:hover { background: rgba(255, 255, 255, 0.18); }
.vp__btn svg { width: 18px; height: 18px; }


.vp__track {
  position: relative;
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.vp__track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.30);
}

.vp__fill {
  position: absolute;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 2px;
  background: #fff;
  pointer-events: none;
}

.vp__fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity .15s ease;
}

.vp__track:hover .vp__fill::after { opacity: 1; }

.vp__time {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  opacity: 0.9;
  user-select: none;
}


.two-col-media.vp-host { box-shadow: none; border-radius: 0; }

@media (max-width: 640px) {
  .vp { border-radius: 14px; }
  .vp__play { width: 62px; height: 62px; }
  .vp__play svg { width: 22px; height: 22px; }
  .vp__time { font-size: 11px; }
}
