:root {
  --hb-pink: #e60073;
  --hb-pink-hot: #ff3f9f;
  --hb-pink-soft: rgba(230, 0, 115, .22);
}

.hb-player-shell {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 14px;
  padding: 0;
  border: 0;
  border-radius: clamp(12px, 1.8vw, 18px);
  background: #000;
  box-shadow: none;
  isolation: isolate;
}

.hb-player-shell .video-container {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: #000 !important;
}

.hb-player-shell video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  max-height: 76vh;
  aspect-ratio: 16 / 9;
  background: #000 !important;
  object-fit: contain !important;
  outline: none;
}

.hb-player-shell video::-webkit-media-controls {
  display: none !important;
}

.hb-player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(230, 0, 115, .18), transparent 32%), linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .38));
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.hb-player-shell.is-loaded .hb-player-start,
.hb-player-shell.is-playing .hb-player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
}

.hb-player-playmark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(34px, 5vw, 44px);
  height: clamp(34px, 5vw, 44px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hb-pink), var(--hb-pink-hot));
  box-shadow: 0 0 0 6px rgba(230, 0, 115, .14), 0 10px 24px rgba(230, 0, 115, .34);
}

.hb-player-playmark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.hb-player-shell:not(.is-loaded) .hb-player-playmark {
  animation: hbPulse 1.9s ease-in-out infinite;
}

.hb-player-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 8, 16, .58), rgba(8, 4, 8, .86));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .42);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.hb-player-shell:hover .hb-player-controls,
.hb-player-shell:focus-within .hb-player-controls,
.hb-player-shell.is-paused .hb-player-controls,
.hb-player-shell.is-loaded:not(.is-playing) .hb-player-controls {
  opacity: 1;
  transform: translateY(0);
}

.hb-player-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, .10);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hb-player-btn:hover {
  background: var(--hb-pink);
  box-shadow: 0 0 24px rgba(230, 0, 115, .42);
  transform: translateY(-1px);
}

.hb-player-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hb-player-time {
  color: rgba(255, 255, 255, .82);
  font: 700 12px/1 Roboto, Arial, sans-serif;
  white-space: nowrap;
}

.hb-player-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--hb-pink);
  background: rgba(255, 255, 255, .16);
}

.hb-player-volume {
  width: 86px;
}

.hb-player-spinner {
  position: absolute;
  inset: auto auto 50% 50%;
  z-index: 7;
  width: 42px;
  height: 42px;
  margin: 0 0 -21px -21px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: var(--hb-pink-hot);
  opacity: 0;
  pointer-events: none;
  animation: hbSpin .8s linear infinite;
}

.hb-player-shell.is-loading .hb-player-spinner {
  opacity: 1;
}

.hb-player-shell.is-fullscreen,
.hb-player-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}

.hb-player-shell.is-fullscreen .video-container,
.hb-player-shell:fullscreen .video-container {
  height: 100vh !important;
  max-height: none;
  border-radius: 0 !important;
}

.hb-player-shell.is-fullscreen video,
.hb-player-shell:fullscreen video {
  height: 100vh !important;
  max-height: none;
}


.hb-player-shell.is-fullscreen.is-playing.is-controls-hidden .hb-player-controls,
.hb-player-shell:fullscreen.is-playing.is-controls-hidden .hb-player-controls {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(14px) !important;
  pointer-events: none !important;
}

@keyframes hbPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(230, 0, 115, .14), 0 10px 24px rgba(230, 0, 115, .34); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(230, 0, 115, .07), 0 12px 28px rgba(230, 0, 115, .42); transform: scale(1.035); }
}

@keyframes hbSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .hb-player-shell { margin: 6px 0 12px; }
  .hb-player-shell video { max-height: 64vh; }
  .hb-player-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    padding: 8px;
    border-radius: 15px;
    opacity: 1;
    transform: none;
  }
  .hb-player-volume { display: none; }
  .hb-player-btn { width: 36px; height: 36px; border-radius: 12px; }
  .hb-player-progress-wrap { gap: 7px; }
  .hb-player-time { font-size: 11px; }
}
