:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
button, input { font: inherit; color: inherit; }
.dhp {
  --dhp-accent: #f5b942;
  --dhp-ink: #f6f4ef;
  --dhp-glass: rgba(12, 12, 16, .72);
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(245, 185, 66, .08), transparent 42%),
    #050506;
  color: var(--dhp-ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  user-select: none;
  overflow: hidden;
  outline: none;
}
.dhp::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), transparent 18%),
    linear-gradient(0deg, rgba(0,0,0,.2), transparent 28%);
}
.dhp video { width: 100%; height: 100%; background: #000; display: block; object-fit: contain; }
.dhp-shade {
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,.55) 40%, rgba(0,0,0,.82));
}
.dhp-spin {
  display: none;
  position: absolute;
  left: 50%;
  top: 46%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  z-index: 4;
  background: conic-gradient(from 40deg, transparent 0 68%, var(--dhp-accent) 88%, #fff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: dhp-spin .8s linear infinite;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--dhp-accent) 70%, transparent));
}
.dhp-spin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}
.dhp.is-loading .dhp-spin { display: block; }
.dhp-status {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(46% + 44px);
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8,8,10,.62);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  color: #e7e5e4;
  font-size: 12px;
  letter-spacing: .02em;
}
.dhp.is-loading .dhp-status { display: block; }
.dhp-big {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: rgba(8,8,12,.42);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    0 12px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 4;
  color: #fff;
}
.dhp-big svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}
.dhp-big-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--dhp-accent) 80%, white);
  opacity: .8;
  animation: dhp-pulse 1.8s ease-out infinite;
}
.dhp-big::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--dhp-accent);
}
.dhp-big:hover { background: rgba(8,8,12,.62); }
.dhp-big:hover svg { transform: scale(1.06); }
.dhp-big:active svg { transform: scale(.92); }
.dhp-title {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 140px;
  z-index: 4;
  max-width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8,8,10,.45);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.dhp:not(.is-idle) .dhp-title { opacity: 1; transform: none; }
.dhp-title:empty { display: none; }
.dhp-logo {
  position: absolute;
  z-index: 5;
  line-height: 0;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.6));
  transition: transform .2s ease, opacity .2s ease;
}
.dhp.is-idle .dhp-logo { opacity: .82; }
.dhp-logo:hover { transform: scale(1.04); }
.dhp-logo img { width: 100%; height: auto; display: block; }
.dhp-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 6px 8px 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28,28,32,.55), var(--dhp-glass));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px) saturate(1.3);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s ease, transform .28s ease;
}
.dhp.is-idle .dhp-controls { opacity: 0; pointer-events: none; transform: translateY(10px); }
.dhp-seek {
  position: relative;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}
.dhp-seek-buf, .dhp-seek-play {
  position: absolute;
  left: 0;
  top: 7px;
  height: 4px;
  border-radius: 99px;
  pointer-events: none;
  transition: height .16s ease, top .16s ease;
}
.dhp-seek-buf { z-index: 1; background: rgba(255,255,255,.28); width: 0; }
.dhp-seek-play {
  z-index: 2;
  width: 0;
  background: var(--dhp-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--dhp-accent) 72%, white), var(--dhp-accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--dhp-accent) 45%, transparent);
}
.dhp-seek-play::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dhp-accent) 38%, transparent), 0 2px 8px rgba(0,0,0,.45);
  transform: translate(50%, -50%) scale(.4);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
}
.dhp-seek::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0; right: 0; top: 7px; height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
  transition: height .16s ease, top .16s ease;
}
.dhp-seek:hover .dhp-seek-buf,
.dhp-seek:hover .dhp-seek-play,
.dhp-seek:hover::after,
.dhp.is-seeking .dhp-seek-buf,
.dhp.is-seeking .dhp-seek-play,
.dhp.is-seeking .dhp-seek::after {
  height: 6px;
  top: 6px;
}
.dhp-seek:hover .dhp-seek-play::after,
.dhp.is-seeking .dhp-seek-play::after {
  opacity: 1;
  transform: translate(50%, -50%) scale(1);
}
.dhp-seek-tip {
  position: absolute;
  top: -28px;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10,10,12,.92);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 3px 7px;
  border-radius: 8px;
  display: none;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.dhp-seek:hover .dhp-seek-tip,
.dhp.is-seeking .dhp-seek-tip { display: block; }
.dhp-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
}
.dhp-btn, .dhp-text {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.dhp-btn:hover, .dhp-text:hover {
  background: rgba(255,255,255,.1);
  color: var(--dhp-accent);
}
.dhp-btn:active { transform: scale(.94); }
.dhp-btn:focus-visible, .dhp-text:focus-visible, .dhp-big:focus-visible, .dhp-seek:focus-visible {
  outline: 2px solid var(--dhp-accent);
  outline-offset: 2px;
}
.dhp-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  animation: dhp-ico-in .22s ease;
}
.dhp-text {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 5px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.dhp-text::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: .7;
  transition: transform .18s ease;
}
.dhp-group:has(.dhp-popmenu:not([hidden])) .dhp-text {
  color: var(--dhp-accent);
  background: rgba(255,255,255,.08);
}
.dhp-group:has(.dhp-popmenu:not([hidden])) .dhp-text::after {
  transform: translateY(1px) rotate(225deg);
}
.dhp-ico-volume .dhp-wave,
.dhp-ico-pause .dhp-eq,
.dhp-ico-mute .dhp-slash,
.dhp-ico-full,
.dhp-ico-exit,
.dhp-ico-pip {
  transform-box: fill-box;
  transform-origin: center;
}
.dhp:not(.is-paused) .dhp-ico-volume .dhp-wave {
  animation: dhp-wave 1.15s ease-in-out infinite;
}
.dhp:not(.is-paused) .dhp-ico-volume .dhp-wave-2 { animation-delay: .18s; }
.dhp.is-paused .dhp-ico-volume .dhp-wave { opacity: .45; }
.dhp:not(.is-paused) .dhp-ico-pause .dhp-eq {
  transform-origin: center bottom;
  animation: dhp-eq .9s ease-in-out infinite;
}
.dhp:not(.is-paused) .dhp-ico-pause .dhp-eq-2 { animation-delay: .2s; }
.dhp-ico-mute .dhp-slash {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: dhp-draw .28s ease forwards;
}
.dhp-btn:hover .dhp-ico-full,
.dhp-btn:hover .dhp-ico-exit { transform: scale(1.08); }
.dhp-btn:hover .dhp-ico-pip { transform: translate(1px, 1px); }
.dhp-time {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  gap: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  padding: 0 8px;
}
.dhp-time b { font-weight: 700; color: #fff; }
.dhp-time span::before { content: "  /  "; color: rgba(255,255,255,.35); font-weight: 500; }
.dhp-time.is-live {
  gap: 7px;
  color: #ff8b96;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
}
.dhp-time.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .7);
  animation: dhp-live 1.4s ease-out infinite;
}
.dhp-spacer { flex: 1; }
.dhp-vol { display: flex; align-items: center; gap: 2px; }
.dhp-vol input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 78px;
  height: 4px;
  border-radius: 99px;
  border: 0;
  background: linear-gradient(90deg, var(--dhp-accent) calc(var(--p, 90) * 1%), rgba(255,255,255,.2) 0);
  cursor: pointer;
}
.dhp-vol input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dhp-accent) 42%, transparent);
}
.dhp-vol input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dhp-accent) 42%, transparent);
}
.dhp-group { position: relative; }
.dhp-popmenu {
  position: absolute;
  right: 0;
  bottom: 46px;
  min-width: 148px;
  max-height: 260px;
  overflow: auto;
  background: rgba(16,16,20,.94);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  transform-origin: bottom right;
  animation: dhp-menu .16s ease;
}
.dhp-popmenu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #eee;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}
.dhp-popmenu button[aria-checked="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dhp-accent);
  box-shadow: 0 0 8px var(--dhp-accent);
}
.dhp-popmenu button[aria-checked="true"],
.dhp-popmenu button:hover {
  background: rgba(255,255,255,.06);
  color: var(--dhp-accent);
}
.dhp [hidden] { display: none !important; }
.dhp-error {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  padding: 24px;
}
.dhp-error-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28,28,32,.95), rgba(10,10,12,.96));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  text-align: center;
}
.dhp-error-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, transparent 0 3px, var(--dhp-accent) 4px 6px, transparent 7px),
    conic-gradient(from 20deg, transparent 0 18%, var(--dhp-accent) 0 32%, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: dhp-spin 2.8s linear infinite;
}
.dhp-error strong { font-size: 16px; }
.dhp-error p { margin: 0; max-width: 340px; color: #d4d4d8; font-size: 13px; line-height: 1.45; }
.dhp-error button, .dhp-skip {
  border: 0;
  background: var(--dhp-accent);
  color: #1a1203;
  font-weight: 750;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--dhp-accent) 28%, transparent);
}
.dhp-error button { margin-top: 6px; }
.dhp-error button:hover, .dhp-skip:hover { filter: brightness(1.06); }
.dhp-preroll, .dhp-pause-ad {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #000;
}
.dhp-preroll.on, .dhp-pause-ad.on { display: block; }
.dhp-preroll-html, .dhp-ad-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.dhp-preroll-html { overflow: auto; background: #000; }
.dhp-skip { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.dhp-pause-ad { background: rgba(0,0,0,.72); display: none; place-items: center; padding: 28px; }
.dhp-pause-ad.on { display: grid; }
.dhp-overlay {
  display: none;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 84px;
  z-index: 7;
  background: rgba(12,12,14,.9);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 12px 40px 12px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
}
.dhp-overlay.on { display: block; animation: dhp-menu .2s ease; }
.dhp-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.dhp-x:hover { background: rgba(255,255,255,.16); }
.dhp-pop { position: absolute; width: 0; height: 0; overflow: hidden; }
@keyframes dhp-spin { to { transform: rotate(360deg); } }
@keyframes dhp-pulse {
  0% { transform: scale(.92); opacity: .75; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes dhp-wave {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}
@keyframes dhp-eq {
  0%, 100% { transform: scaleY(.72); }
  50% { transform: scaleY(1); }
}
@keyframes dhp-draw { to { stroke-dashoffset: 0; } }
@keyframes dhp-ico-in {
  from { transform: scale(.72); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes dhp-menu {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes dhp-live {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .65); }
  100% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); }
}
@media (max-width: 640px) {
  .dhp-controls {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
    padding: 3px 5px;
  }
  .dhp-title {
    top: 10px;
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    font-size: 12px;
    padding: 5px 10px;
  }
  .dhp-status { top: calc(46% + 40px); font-size: 11px; max-width: calc(100% - 40px); }
  .dhp-big { width: 68px; height: 68px; }
  .dhp-big svg { width: 28px; height: 28px; margin-left: 3px; }
  .dhp-bar { min-height: 36px; gap: 1px; }
  .dhp-btn, .dhp-text { height: 36px; min-width: 36px; }
  .dhp-text { padding: 0 6px; font-size: 11px; gap: 3px; }
  .dhp-text::after { width: 4px; height: 4px; }
  .dhp-btn svg { width: 20px; height: 20px; }
  .dhp-vol { gap: 0; }
  .dhp-vol input { display: none; }
  .dhp-time { flex-shrink: 1; overflow: hidden; font-size: 11px; padding: 0 2px; }
  .dhp-seek-tip { top: -24px; }
  .dhp-popmenu { min-width: 132px; max-height: min(46vh, 240px); border-radius: 12px; }
  .dhp-popmenu button { padding: 9px 10px; font-size: 12.5px; }
  .dhp-overlay {
    left: 8px;
    right: 8px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    padding: 10px 36px 10px 12px;
    border-radius: 13px;
  }
  .dhp-skip { right: 12px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .dhp-error { padding: 16px; }
  .dhp-error-card { padding: 20px 16px 16px; border-radius: 18px; }
  .dhp-error strong { font-size: 15px; }
  .dhp-pause-ad { padding: 16px; }
  .dhp-shade { height: 140px; }
}
@media (pointer: coarse) {
  .dhp-vol input[type=range] { display: none; }
  .dhp-seek { height: 26px; }
  .dhp-seek-buf, .dhp-seek-play, .dhp-seek::after { top: 11px; }
  .dhp-seek:hover .dhp-seek-buf,
  .dhp-seek:hover .dhp-seek-play,
  .dhp-seek:hover::after,
  .dhp.is-seeking .dhp-seek-buf,
  .dhp.is-seeking .dhp-seek-play,
  .dhp.is-seeking .dhp-seek::after { top: 10px; }
  .dhp-seek-tip { top: -28px; }
}
@media (max-width: 400px) {
  .dhp-time span { display: none; }
}
@media (max-width: 360px) {
  .dhp-time { font-size: 10px; }
  .dhp-btn, .dhp-text { min-width: 32px; height: 34px; }
  .dhp-bar { min-height: 34px; }
  .dhp-text { padding: 0 4px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .dhp-big { width: 58px; height: 58px; }
  .dhp-big svg { width: 24px; height: 24px; }
  .dhp-status { top: calc(46% + 34px); }
  .dhp-title { top: 8px; left: 10px; right: 10px; }
  .dhp-shade { height: 110px; }
  .dhp-overlay { bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .dhp-spin,
  .dhp-big-ring,
  .dhp-ico-volume .dhp-wave,
  .dhp-ico-pause .dhp-eq,
  .dhp-time.is-live::before,
  .dhp-error-mark,
  .dhp-btn svg,
  .dhp-popmenu,
  .dhp-overlay.on { animation: none; }
  .dhp-controls, .dhp-title, .dhp-logo, .dhp-seek-play::after { transition: none; }
}
