:root {
  color-scheme: dark;
  --vx-bg: #05050c;
  --vx-top: #080710;
  --vx-panel: #0d0c18;
  --vx-card: #171628;
  --vx-card-2: #1b1a2e;
  --vx-line: #2d2a43;
  --vx-muted: #928aa8;
  --vx-text: #f6f3ff;
  --vx-soft: #d9d5e8;
  --vx-orange: #f59e0b;
  --vx-yellow: #ffb000;
  --vx-purple: #8b5cf6;
  --vx-purple-2: #6d5bd4;
  --vx-danger: #fb7185;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--vx-bg);
  color: var(--vx-text);
  font-family: Arial, Helvetica, sans-serif;
}

body.vx-embed {
  background: transparent;
}

.vx-shell {
  min-height: 100vh;
  background: var(--vx-bg);
}

.vx-topbar {
  height: 68px;
  border-bottom: 1px solid var(--vx-line);
  background: var(--vx-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7vw;
}

.vx-brand,
.vx-nav,
.vx-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.vx-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--vx-yellow);
  color: #080710;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.vx-brand-name {
  font-size: 28px;
  font-weight: 900;
}

.vx-nav a,
.vx-actions a {
  color: var(--vx-muted);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
}

.vx-nav a.active {
  color: var(--vx-text);
}

.vx-lang {
  height: 46px;
  min-width: 66px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}

.vx-cta {
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--vx-orange);
  color: #090711;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
}

.vx-widget {
  width: 100%;
}

.vx-search {
  margin: 0 22px;
  padding: 18px 26px 24px;
  background: var(--vx-panel);
  border: 1px solid var(--vx-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.vx-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr .95fr 1.1fr 130px;
  gap: 18px;
  align-items: end;
  min-width: 0;
}

.vx-field {
  display: grid;
  gap: 8px;
  color: var(--vx-muted);
  font-size: 16px;
  font-weight: 800;
  min-width: 0;
}

.vx-field input,
.vx-field select {
  width: 100%;
  max-width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #34324b;
  background: var(--vx-card);
  color: #ede9f8;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 900;
  outline: none;
  min-width: 0;
}

.vx-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  line-height: 1;
}

.vx-field select:disabled,
.vx-field input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.vx-field input:focus,
.vx-field select:focus {
  border-color: var(--vx-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .22);
}

.vx-button {
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--vx-orange);
  color: #090711;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.vx-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.vx-status {
  margin: 18px 22px 0;
  color: #b8b0e8;
  font-size: 16px;
  min-height: 22px;
}

.vx-stage {
  margin: 30px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.vx-player-card,
.vx-segments {
  background: #070611;
  border: 1px solid var(--vx-line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

.vx-player-head {
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vx-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vx-player-head strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.vx-player-head span {
  display: block;
  margin-top: 4px;
  color: var(--vx-muted);
  font-size: 13px;
}

.vx-ghost {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--vx-line);
  background: var(--vx-card);
  color: var(--vx-soft);
  font-weight: 800;
  cursor: pointer;
}

.vx-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101018;
  touch-action: none;
  user-select: none;
}

.vx-video-shell:fullscreen,
.vx-video-shell.is-fullscreen,
.vx-video-shell.is-faux-fullscreen {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.vx-video-shell.is-faux-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vx-lock-scroll {
  overflow: hidden;
}

.vx-video-shell:-webkit-full-screen {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  background: #000;
}

.vx-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
}

.vx-video-shell.is-fullscreen .vx-video,
.vx-video-shell.is-faux-fullscreen .vx-video,
.vx-video-shell:-webkit-full-screen .vx-video {
  object-fit: contain;
}

.vx-video-shell.is-zoomed .vx-video {
  cursor: grab;
}

.vx-video-shell.is-zoomed .vx-video:active {
  cursor: grabbing;
}

.vx-gesture-layer {
  position: absolute;
  inset: 0 0 58px 0;
  z-index: 3;
  touch-action: none;
  cursor: zoom-in;
  pointer-events: none;
}

.vx-video-shell.is-zoomed .vx-gesture-layer {
  cursor: grab;
}

.vx-video-shell.is-zoomed .vx-gesture-layer:active {
  cursor: grabbing;
}

.vx-video-shell.is-fullscreen .vx-gesture-layer,
.vx-video-shell.is-faux-fullscreen .vx-gesture-layer {
  inset: 0;
  pointer-events: auto;
}

.vx-fullscreen-button {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: rgba(7, 6, 17, .74);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.vx-fullscreen-button span {
  font-size: 21px;
}

.vx-fullscreen-button small {
  font-size: 11px;
  font-weight: 900;
}

.vx-fullscreen-button:hover {
  background: rgba(255, 168, 0, .9);
  color: #070611;
}

.vx-zoom-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(7, 6, 17, .72);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  opacity: .78;
  transition: opacity .18s ease;
}

.vx-video-shell.is-zoomed .vx-zoom-hint {
  opacity: 0;
}

.vx-video-shell.is-fullscreen .vx-zoom-hint,
.vx-video-shell.is-faux-fullscreen .vx-zoom-hint {
  bottom: 22px;
  left: 22px;
}

.vx-video-shell.is-fullscreen .vx-fullscreen-button,
.vx-video-shell.is-faux-fullscreen .vx-fullscreen-button {
  top: 22px;
  right: 22px;
  min-width: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  background: rgba(7, 6, 17, .62);
  border-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
}

.vx-video-shell.is-fullscreen .vx-fullscreen-button span,
.vx-video-shell.is-faux-fullscreen .vx-fullscreen-button span {
  font-size: 34px;
  line-height: 1;
  transform: translateY(-1px);
}

.vx-video-shell.is-fullscreen .vx-fullscreen-button small,
.vx-video-shell.is-faux-fullscreen .vx-fullscreen-button small {
  display: none;
}

.vx-mobile-fs-ui {
  display: none;
}

.vx-video-shell.is-faux-fullscreen .vx-mobile-fs-ui {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  color: #fff;
  pointer-events: none;
}

.vx-mobile-fs-top,
.vx-mobile-fs-bottom,
.vx-mobile-fs-center {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.vx-mobile-fs-top {
  top: max(14px, env(safe-area-inset-top));
  padding: 0 72px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vx-mobile-fs-clock {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.vx-mobile-fs-center {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.vx-mobile-fs-bottom {
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 0 18px 4px;
}

.vx-mobile-play,
.vx-mobile-action-row button {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(7, 6, 17, .56);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}

.vx-mobile-play {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #090817;
  border-color: transparent;
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}

.vx-video-shell.show-center-control .vx-mobile-play {
  opacity: 1;
  transform: scale(1);
}

.vx-mobile-seek {
  pointer-events: auto;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: #ffb000;
  touch-action: pan-x;
}

.vx-mobile-seek::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.vx-mobile-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10.5px;
  border: 4px solid #ffb000;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}

.vx-mobile-seek::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.vx-mobile-seek::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid #ffb000;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}

.vx-mobile-time-row,
.vx-mobile-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vx-mobile-time-row {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.vx-mobile-action-row {
  margin-top: 10px;
  gap: 8px;
  justify-content: flex-end;
}

.vx-mobile-action-row button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

@media (orientation: portrait) and (max-width: 900px) {
  .vx-video-shell.is-faux-fullscreen {
    width: 100dvw;
    height: 100dvh;
    transform: none;
    padding: max(14px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
  }

  .vx-video-shell.is-faux-fullscreen .vx-video {
    width: auto;
    height: 100%;
    min-width: 100%;
    max-width: none;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .vx-video-shell.is-faux-fullscreen .vx-fullscreen-button {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    background: rgba(7, 6, 17, .82);
  }
}

.vx-timeline-wrap {
  padding: 14px;
  border-top: 1px solid var(--vx-line);
}

.vx-timeline {
  display: flex;
  gap: 4px;
  min-height: 16px;
  align-items: stretch;
}

.vx-bar {
  height: 12px;
  min-width: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--vx-purple-2);
  cursor: pointer;
  opacity: .82;
}

.vx-bar:hover,
.vx-bar.active {
  background: var(--vx-orange);
  opacity: 1;
}

.vx-segments {
  max-height: 760px;
  overflow: auto;
}

.vx-segments-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--vx-line);
}

.vx-segments h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.vx-segment-list {
  display: grid;
}

.vx-segment {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--vx-line);
  background: transparent;
  color: inherit;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.vx-segment:hover,
.vx-segment.active {
  background: var(--vx-card);
}

.vx-segment img {
  width: 132px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--vx-card-2);
}

.vx-segment strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--vx-text);
  margin: 2px 0 8px;
}

.vx-segment small {
  display: block;
  color: #aaa2ca;
  font-size: 14px;
  line-height: 1.45;
}

.vx-empty {
  margin: 0;
  padding: 18px;
  color: var(--vx-muted);
}

body.vx-hide-segments .vx-stage {
  grid-template-columns: minmax(0, 1fr);
}

body.vx-hide-segments .vx-segments {
  display: none;
}

body.vx-embed .vx-shell {
  min-height: auto;
}

body.vx-embed .vx-search {
  margin: 0;
  border-radius: 16px;
  border-top: 1px solid var(--vx-line);
}

body.vx-embed .vx-stage,
body.vx-embed .vx-status {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1180px) {
  .vx-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vx-stage {
    grid-template-columns: 1fr;
  }

  .vx-segments {
    max-height: none;
  }
}

@media (max-width: 850px) {
  .vx-topbar {
    padding: 0 16px;
  }

  .vx-nav,
  .vx-actions a,
  .vx-cta {
    display: none;
  }

  .vx-brand {
    gap: 12px;
  }

  .vx-brand-name {
    font-size: 24px;
  }

  .vx-search {
    margin: 0;
    border-radius: 0 0 16px 16px;
    padding: 16px;
  }

  .vx-filters {
    grid-template-columns: 1fr;
  }

  .vx-status,
  .vx-stage {
    margin-left: 12px;
    margin-right: 12px;
  }

  .vx-segment {
    grid-template-columns: 112px 1fr;
    padding: 14px;
  }

  .vx-segment img {
    width: 112px;
    height: 64px;
  }
}

.vx-clip-button {
  position: absolute;
  z-index: 20;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ffffff45;
  border-radius: 8px;
  background: #101013e8;
  color: #fff;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
.vx-clip-button:disabled { opacity: .55; cursor: default; }
.vx-clip-button i { width: 10px; height: 10px; border-radius: 50%; background: #ff5964; }
.vx-clip-button[aria-pressed="true"] i { border-radius: 2px; }
