:root {
  color-scheme: dark;
  --bg: #070916;
  --bg-elevated: rgba(11, 16, 35, 0.88);
  --panel: rgba(14, 18, 35, 0.92);
  --panel-strong: rgba(12, 15, 28, 0.98);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.72);
  --soft: rgba(238, 242, 255, 0.48);
  --accent: #6ae4ff;
  --accent-strong: #2cc3ff;
  --accent-glow: rgba(106, 228, 255, 0.18);
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --control-height: 54px;
  --container: 1400px;
  --transition: 180ms ease;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(106, 228, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(108, 116, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #050611 0%, #070916 48%, #050611 100%);
}

html.is-embed,
html.is-embed body {
  background: #000;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: transparent;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.app-shell {
  width: min(var(--container), calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 4px 24px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
  backdrop-filter: blur(18px);
}

.layout {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

.player-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.player-root {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.vp-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.vp-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(106, 228, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #03040b 0%, #050714 55%, #04050e 100%);
  box-shadow: var(--shadow);
  aspect-ratio: auto;
}

.is-embed .vp-stage {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.vp-video.is-contain {
  object-fit: contain;
}

.vp-video.is-cover {
  object-fit: cover;
}

.vp-poster {
  position: absolute;
  inset: 0;
  background-color: #03040b;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.98;
  transition: opacity 220ms ease;
}

.vp-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 18, 0.42) 0%, transparent 18%, transparent 58%, rgba(4, 7, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.vp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  pointer-events: none;
  z-index: 2;
}

.vp-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 2px 2px 0;
}

.vp-titlewrap {
  max-width: min(72%, 560px);
  pointer-events: none;
}

.vp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.vp-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.46);
}

.vp-desc {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.vp-top-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.vp-mini-btn,
.vp-control-btn,
.vp-big-play,
.vp-option-btn,
.vp-popover-close {
  cursor: pointer;
}

.vp-mini-btn,
.vp-control-btn,
.vp-popover-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.68);
  color: var(--text);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
  backdrop-filter: blur(16px);
}

.vp-mini-btn:hover,
.vp-control-btn:hover,
.vp-popover-close:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(18, 25, 44, 0.9);
}

.vp-mini-btn svg,
.vp-control-btn svg,
.vp-big-play svg,
.vp-option-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.vp-center {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  gap: 16px;
  min-height: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.vp-big-play {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(106, 228, 255, 0.22), rgba(44, 195, 255, 0.12));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(106, 228, 255, 0.2);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
  pointer-events: auto;
}

.vp-big-play:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 48px rgba(106, 228, 255, 0.28);
}

.vp-big-play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}

.vp-spinner {
  display: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  animation: vp-spin 800ms linear infinite;
}

.vp-message {
  max-width: min(80vw, 420px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 10, 20, 0.84);
  color: var(--text);
  text-align: center;
  line-height: 1.5;
  backdrop-filter: blur(18px);
}

.vp-controls {
  display: grid;
  gap: 10px;
  pointer-events: none;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.vp-progress-shell {
  pointer-events: auto;
}

.vp-progress-hit {
  position: relative;
  height: 20px;
  margin: 0 2px;
  touch-action: none;
  user-select: none;
}

.vp-progress-track,
.vp-progress-buffer,
.vp-progress-played {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
}

.vp-progress-track {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
}

.vp-progress-buffer {
  width: 0;
  background: rgba(255, 255, 255, 0.18);
}

.vp-progress-played {
  width: 0;
  background: linear-gradient(90deg, var(--accent-strong), #8af0ff);
  box-shadow: 0 0 18px rgba(106, 228, 255, 0.28);
}

.vp-progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(106, 228, 255, 0.32),
    0 0 16px rgba(106, 228, 255, 0.22);
  transform: translateY(-50%) scale(0.78);
  opacity: 0;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.vp-progress-hit:hover .vp-progress-handle,
.vp-shell.is-seeking .vp-progress-handle,
.vp-shell.is-idle .vp-progress-handle {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.vp-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.vp-control-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: auto;
}

.vp-left-group,
.vp-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vp-control-btn {
  min-width: 42px;
  padding: 0 12px;
  color: var(--text);
}

.vp-control-btn.is-primary {
  background: rgba(106, 228, 255, 0.16);
  border-color: rgba(106, 228, 255, 0.25);
}

.vp-control-btn.is-active {
  background: rgba(106, 228, 255, 0.18);
  border-color: rgba(106, 228, 255, 0.36);
  color: #fff;
}

.vp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  max-width: 220px;
}

.vp-volume {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.vp-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.vp-popover {
  position: absolute;
  right: 16px;
  bottom: 92px;
  width: min(360px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(11, 15, 28, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  overflow: hidden;
  z-index: 4;
}

.vp-popover[hidden] {
  display: none;
}

.vp-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.vp-popover-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.vp-popover-close {
  min-height: 32px;
  padding: 0 12px;
}

.vp-settings-grid {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.vp-settings-section h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.vp-option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vp-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.vp-option-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.vp-option-btn.is-selected {
  border-color: rgba(106, 228, 255, 0.38);
  background: rgba(106, 228, 255, 0.18);
  color: #fff;
}

.vp-toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  min-width: 180px;
  max-width: min(90%, 360px);
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.92);
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  z-index: 5;
}

.vp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vp-shell.is-paused .vp-big-play,
.vp-shell.is-error .vp-big-play {
  opacity: 1;
}

.vp-shell.is-playing .vp-big-play {
  opacity: 0;
}

.vp-shell.is-playing .vp-poster {
  opacity: 0;
}

.vp-shell.is-idle .vp-controls,
.vp-shell.is-idle .vp-topbar {
  opacity: 0;
}

.vp-shell.is-idle:hover .vp-controls,
.vp-shell.is-idle:hover .vp-topbar,
.vp-shell.is-idle:focus-within .vp-controls,
.vp-shell.is-idle:focus-within .vp-topbar {
  opacity: 1;
}

.vp-shell.is-loading .vp-spinner {
  display: block;
}

.vp-shell.is-loading .vp-big-play {
  opacity: 0;
}

.vp-shell.is-error .vp-message {
  display: block;
}

.vp-shell.is-fullscreen .vp-stage {
  border-radius: 0;
}

.vp-shell.is-fullscreen {
  width: 100%;
  height: 100%;
}


.vp-shell.is-loading .vp-message,
.vp-shell.is-error .vp-message {
  display: block;
}

.vp-shell:not(.is-error) .vp-message {
  display: none;
}

.vp-shell.is-loading .vp-center {
  gap: 0;
}

.vp-shell.is-error .vp-spinner {
  display: none;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
  background-clip: padding-box;
}

@keyframes vp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 780px) {
  .vp-overlay {
    padding: 14px;
  }

  .vp-topbar {
    flex-direction: column;
  }

  .vp-titlewrap {
    max-width: 100%;
  }

  .vp-top-actions {
    flex-wrap: wrap;
  }

  .vp-control-row {
    gap: 10px;
  }

  .vp-volume-wrap {
    min-width: 140px;
    max-width: 180px;
  }

  .vp-popover {
    right: 12px;
    left: 12px;
    bottom: 82px;
    width: auto;
  }
}

@media (max-width: 560px) {
  .vp-control-row {
    align-items: stretch;
  }

  .vp-left-group,
  .vp-right-group {
    flex-wrap: wrap;
  }

  .vp-volume-wrap {
    width: 100%;
    max-width: none;
  }
}
