.index-video { width: min(1040px, calc(100% - 40px)); margin: 96px auto 0; }
.index-video__heading { max-width: 600px; margin: 0 auto 32px; text-align: center; }
.index-video + #Product + .cheat_text_section { margin-top: 96px; }

.index-video__heading h2 {
  margin: 0;
  color: #f8f8f8;
  font: 600 clamp(24px, 2.8vw, 34px)/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}

.index-video__heading p {
  margin: 10px 0 0;
  color: #a9a9ac;
  font: 400 15px/1.55 Inter, system-ui, sans-serif;
  text-wrap: balance;
}

.index-video__player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #101012;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  isolation: isolate;
}

.index-video__player video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
}
.index-video__player.is-enhanced video { cursor: pointer; }
.index-video__launch, .index-video__controls, .index-video__error { display: none; }
.index-video__player.is-enhanced .index-video__launch {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(12, 12, 15, .42);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.index-video__launch svg { display: block; width: 30px; height: 30px; margin: 0; transform: none; }
.index-video__launch:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(12,12,15,.7); }
.index-video__player.is-playing .index-video__launch { opacity: 0; visibility: hidden; pointer-events: none; }
.index-video__player.is-enhanced .index-video__controls {
  position: absolute; z-index: 2;
  right: 0; bottom: 0; left: 0;
  display: grid; align-items: center;
  grid-template-columns: 44px auto 1fr auto 44px;
  column-gap: 8px; row-gap: 0;
  box-sizing: border-box;
  padding: 28px 16px 10px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65) 40%, rgba(0,0,0,.85));
  transition: opacity .2s ease;
}
.index-video__player.is-playing.controls-idle .index-video__controls { opacity: 0; pointer-events: none; }
.index-video__player.is-playing.controls-idle .index-video__controls:focus-within,
.index-video__player.is-playing.controls-idle .index-video__controls:hover { opacity: 1; pointer-events: auto; }
.index-video__player.is-playing.controls-idle video { cursor: none; }
.index-video__toggle { grid-column: 1; grid-row: 1; }
.index-video__time { grid-column: 2; grid-row: 1; }
.index-video__volume-group { grid-column: 4; grid-row: 1; display: flex; align-items: center; gap: 2px; }
.index-video__control[data-video-fullscreen] { grid-column: 5; grid-row: 1; }
.index-video__control {
  display: grid; flex: 0 0 42px; place-items: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer;
  transition: background .18s ease;
}
.index-video__control:hover { background: rgba(255,255,255,.17); }
.index-video__control svg { grid-area: 1 / 1; width: 20px; height: 20px; margin: 0; }
.index-video__icon-pause, .index-video__icon-muted { display: none; }
.index-video__player.is-playing .index-video__icon-play,
.index-video__player.is-muted .index-video__icon-sound { display: none; }
.index-video__player.is-playing .index-video__icon-pause,
.index-video__player.is-muted .index-video__icon-muted { display: block; }
.index-video__time {
  flex: 0 0 auto;
  font: 500 13px/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; color: #f1edf1;
}
.index-video__seek {
  grid-column: 1 / -1; grid-row: 2;
  width: 100%; min-width: 0; height: 22px; margin: 0; padding: 0; border: 0;
  appearance: none; background: transparent; cursor: pointer;
  --video-progress: 0%;
}
.index-video__seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, #e481e3 var(--video-progress), rgba(255,255,255,.42) var(--video-progress));
}
.index-video__seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.42); }
.index-video__seek::-moz-range-progress { height: 4px; border-radius: 4px; background: #e481e3; }
.index-video__seek::-webkit-slider-thumb {
  width: 12px; height: 12px; margin-top: -4px; appearance: none;
  border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
}
.index-video__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.index-video__volume {
  width: 72px; min-width: 0; height: 30px; margin: 0 8px 0 0; padding: 0;
  appearance: none; background: transparent; border: 0; cursor: pointer;
  --volume-progress: 100%;
}
.index-video__volume::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, #e481e3 var(--volume-progress), #777 var(--volume-progress)); }
.index-video__volume::-moz-range-track { height: 3px; border-radius: 3px; background: #777; }
.index-video__volume::-moz-range-progress { height: 3px; background: #e481e3; }
.index-video__volume::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #fff; }
.index-video__volume::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
.index-video__player :is(button, input):focus-visible { outline: 2px solid #ff9aff; outline-offset: 3px; }
.index-video__player.is-enhanced .index-video__error:not([hidden]) {
  position: absolute; z-index: 3; inset: auto 16px 82px;
  display: block; margin: 0; padding: 12px 16px;
  border-radius: 10px; background: rgba(17,13,19,.88);
  color: #fff; font: 500 14px/1.4 Inter, system-ui, sans-serif;
}
.index-video__player:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.index-video__player:fullscreen video { object-fit: contain; }

body.light .index-video__heading h2 { color: #202024; }
body.light .index-video__heading p { color: #595961; }
body.light .index-video__player {
  box-shadow: 0 20px 60px rgba(34, 26, 40, .09);
}

@media (max-width: 700px) {
  .index-video { margin-top: 64px; }
  .index-video__heading { margin-bottom: 24px; }
  .index-video + #Product + .cheat_text_section { margin-top: 72px; }
  .index-video__heading p { font-size: 14px; }
  .index-video__player { border-radius: 14px; }
  .index-video__player.is-enhanced .index-video__controls { column-gap: 2px; padding: 16px 8px 4px; }
  .index-video__volume { width: 48px; margin-right: 2px; }
  .index-video__time { font-size: 12px; }
  .index-video__player.is-enhanced .index-video__launch { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .index-video__launch, .index-video__control, .index-video__controls { transition: none; }
}
