/* HM Video Features — default theme */
:root {
  --hmvf-bg: transparent;
  --hmvf-fg: #fff;
  --hmvf-muted: #e6e6e6;
  --hmvf-card-radius: 0px;
  --hmvf-thumb-radius: 6px;
  --hmvf-shadow: 0 10px 25px rgba(0,0,0,.08);
  --hmvf-cta-bg: #fff;
  --hmvf-cta-fg: #111;
  --hmvf-dot: #6b7280;
  --hmvf-dot-active: #fff;
  --hmvf-arrow-bg: rgba(255,255,255,.6);
  --hmvf-arrow-fg: #111;
  --hmvf-overlay-bg: rgba(0,0,0,.85);
}

/* Wrapper */
.hmvf-wrap {
  position: relative;
  max-width: 1170px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--hmvf-fg);
}

/* Carousel shell */
.hmvf-carousel {
  position: relative;
  overflow: visible;
  border-radius: var(--hmvf-card-radius);
  box-shadow: var(--hmvf-shadow);
  background: var(--hmvf-bg);
}

/* Slider track + item */
.hmvf-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.hmvf-item {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

/* Thumbnail */
.hmvf-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--hmvf-thumb-radius);
}
.hmvf-thumb::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: 0;
  border-radius: calc(var(--hmvf-thumb-radius) + 3px);
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    #fff 60deg,
    transparent 120deg
  );
  animation: hmvf-border-spin 2.5s linear infinite;
  pointer-events: none;
}
.hmvf-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.9);
  border-radius: var(--hmvf-thumb-radius);
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes hmvf-border-spin {
  to { --angle: 360deg; }
}

/* Play button overlay */
.hmvf-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hmvf-play::before {
  content: '';
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
 /* background: rgba(0,0,0,.45);*/
  background: rgb(15 216 219 / 45%);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.hmvf-play::after {
  content: '';
  position: absolute;
  border-style: solid;
 /* border-width: 14px 0 14px 24px;*/
  border-width: 30px 0 30px 50px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}
.hmvf-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Text */
.hmvf-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 4px 0 0;
}
.hmvf-desc {
  font-size: .95rem;
  line-height: 1.45;
  color: var(--hmvf-muted);
}

/* CTA */
.hmvf-cta { margin-top: 6px; }
.hmvf-cta a {
  display: inline-block;
  background: var(--hmvf-cta-bg);
  color: var(--hmvf-cta-fg);
  padding: 10px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
}
.hmvf-cta a:hover { filter: brightness(.95); }
.hmvf-cta a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Nav arrows */
.hmvf-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hmvf-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10%;
  background: var(--hmvf-arrow-bg);
  color: var(--hmvf-arrow-fg);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}
.hmvf-arrow:hover { background: #fff; }
.hmvf-prev { left: 0px; }
.hmvf-next { right: 0px; }

/* Dots */
.hmvf-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hmvf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hmvf-dot);
  opacity: .7;
  cursor: pointer;
}
.hmvf-dot.active {
  background: var(--hmvf-dot-active);
  opacity: 1;
}

/* Utilities */
.hmvf-hidden { display: none !important; }

/* Lightbox player */
.hmvf-lightbox {
  position: fixed;
  inset: 0;
  background: var(--hmvf-overlay-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.hmvf-lightbox.active { display: flex; }
.hmvf-lightbox-inner {
  width: min(100%, 1170px);
  aspect-ratio: 16/9;
  position: relative;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.hmvf-lightbox iframe,
.hmvf-lightbox video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hmvf-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #111;
  cursor: pointer;
  z-index: 2;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hmvf-title { font-size: 1rem; }
  .hmvf-desc { font-size: .9rem; }
}