body.v83-video-open {
  overflow: hidden;
}

.video-backdrop[hidden] {
  display: none !important;
}

.video-trigger {
  height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--cyan) 34%, var(--line));
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 650 8px var(--font-geist-mono), monospace;
  letter-spacing: .08em;
  white-space: nowrap;
}

.video-trigger span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 36%, var(--line));
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  color: var(--cyan);
  font-size: 9px;
  line-height: 1;
}

.video-trigger:hover,
.video-trigger.active {
  background: var(--cyan);
  color: var(--ink);
}

.video-trigger:hover span {
  border-color: #fff;
  background: color-mix(in srgb, #fff 16%, transparent);
  color: #fff;
}

.video-trigger.active span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cyan);
}

.video-trigger b {
  font: inherit;
}

.video-backdrop {
  position: fixed;
  inset: 70px 0 0 246px;
  z-index: 36;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 34%, transparent), color-mix(in srgb, var(--ink) 86%, transparent));
  backdrop-filter: blur(10px);
}

.video-drawer {
  position: relative;
  inset: auto;
  transform: none;
  animation: v83-video-drawer-in .14s ease-out both;
  width: min(1080px, calc(100vw - 278px));
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 22px;
  border-left: 1px solid var(--line);
  border-radius: 5px 0 0 5px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--ink) 86%, transparent));
  box-shadow: -24px 0 60px color-mix(in srgb, #000 24%, transparent);
}

@keyframes v83-video-drawer-in {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

.video-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.video-header span {
  display: block;
  color: var(--cyan);
  font: 700 7px var(--font-geist-mono), monospace;
  letter-spacing: .14em;
}

.video-header h2 {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 520;
  letter-spacing: -.03em;
}

.video-header button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.video-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.video-library {
  display: grid;
  gap: 12px;
}

.video-item {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  padding: 22px;
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  gap: 18px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.video-item:hover,
.video-item:focus-within {
  border-color: color-mix(in srgb, var(--cyan) 38%, var(--line));
  transform: translateY(-1px);
}

.video-item.active {
  border-color: color-mix(in srgb, var(--cyan) 44%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 10%, var(--panel)), color-mix(in srgb, var(--panel) 86%, transparent));
}

.video-item-select {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 150px;
  text-align: left;
  background: 0 0;
  border: 0;
  cursor: pointer;
}

.video-item-select strong,
.video-item-select small {
  display: block;
}

.video-item-select strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 680;
  line-height: 1.2;
}

.video-item-select small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.video-item-langs {
  display: flex;
  gap: 10px;
}

.video-item-langs button {
  min-width: 72px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink2) 80%, transparent);
  color: var(--muted);
  cursor: pointer;
  font: 700 10px var(--font-geist-mono), monospace;
}

.video-item-langs button.active {
  border-color: color-mix(in srgb, var(--lime) 40%, var(--line));
  background: var(--lime);
  color: var(--ink);
}

.video-player {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  background: color-mix(in srgb, var(--ink2) 88%, transparent);
}

.video-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.video-player-head span {
  color: var(--muted);
  font: 650 7px var(--font-geist-mono), monospace;
  letter-spacing: .12em;
}

.video-player-head code {
  color: var(--cyan);
  font: 700 7px var(--font-geist-mono), monospace;
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #000;
}

.video-player-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.video-player-copy span {
  display: block;
  color: var(--cyan);
  font: 700 7px var(--font-geist-mono), monospace;
  letter-spacing: .12em;
}

.video-player-copy strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 560;
}

.video-player-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.video-file {
  align-self: flex-end;
  color: var(--muted);
  font: 600 6px var(--font-geist-mono), monospace;
  letter-spacing: .08em;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .video-backdrop {
    inset: 62px 0 0;
    padding: 12px;
    justify-content: center;
  }

  .video-drawer {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-left: 0;
    border-radius: 5px;
  }

  .video-shell {
    grid-template-columns: 1fr;
  }

  .video-trigger b {
    display: none;
  }
}

@media (max-width: 640px) {
  .video-backdrop {
    inset: 58px 0 0;
    padding: 10px;
  }

  .video-drawer {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 16px;
  }

  .video-player-copy {
    display: grid;
    gap: 10px;
  }

  .video-file {
    align-self: start;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
