/* Video — une short par loop, aperçu canvas */

.vd-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

.vd-status {
  padding: 28px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.vd-list {
  display: flex;
  flex-direction: column;
}

.vd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vd-row:hover { background: var(--hover-bg); }

.vd-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}

.vd-cover--empty {
  display: block;
}

.vd-row-copy {
  min-width: 0;
  flex: 1;
}

.vd-row-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-row-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-row-go {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.vd-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.vd-back:hover { color: var(--text-primary); }

.vd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 8px 40px;
  align-items: start;
}

.vd-aside {
  position: sticky;
  top: 16px;
  width: 300px;
  justify-self: end;
}

.vd-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vd-kicker {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.vd-frame {
  position: relative;
  width: 270px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid var(--line);
}

.vd-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  height: 26px;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1a1a1a;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.vd-light-x {
  display: none;
}

.vd-stage.is-big {
  position: fixed;
  inset: 0;
  z-index: 40;
  justify-content: center;
  padding: 56px 20px 24px;
  background: rgba(12, 12, 12, 0.78);
}

.vd-stage.is-big .vd-kicker,
.vd-stage.is-big .vd-expand { display: none; }

.vd-stage.is-big .vd-light-x {
  display: grid;
  place-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vd-stage.is-big .vd-frame,
.vd-stage.is-big .vd-transport,
.vd-stage.is-big .vd-note {
  width: min(460px, calc((100vh - 160px) * 0.5625));
}

.vd-stage.is-big .vd-frame {
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body.vd-lock { overflow: hidden; }

.vd-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vd-transport {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 270px;
  margin-top: 12px;
}

.vd-play {
  flex-shrink: 0;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.vd-play:hover { border-color: var(--text-primary); }

.vd-seek {
  flex: 1;
  min-width: 0;
  accent-color: var(--text-primary);
}

.vd-time {
  flex-shrink: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.vd-note {
  width: 270px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.vd-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.vd-editor .vd-visual .radio {
  flex: 1 1 30%;
}

.vd-editor .vd-swatch-auto {
  background: linear-gradient(135deg, #1a1a1a 50%, #f4f4f4 50%) !important;
}

.vd-editor .lp-item[hidden] {
  display: none;
}

.vd-editor .vd-drive {
  max-width: 280px;
}

.vd-editor .vd-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vd-editor .vd-colors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vd-editor .vd-inline-picks,
.vd-editor .vd-grad-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vd-editor .vd-pick-label,
.vd-editor .vd-grad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.vd-editor .vd-drop {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--text-primary);
  cursor: pointer;
}

.vd-editor .vd-drop input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.vd-editor .vd-drop-icon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.vd-editor button,
.vd-editor label,
.vd-editor .lp-bg-swatch,
.vd-editor .radio .name {
  user-select: none;
  -webkit-user-select: none;
}

.vd-editor .vd-auto {
  border: none;
  background: none;
  padding: 0;
  color: var(--text-secondary);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.vd-editor .vd-auto:hover { color: var(--text-primary); }

.vd-editor [hidden] { display: none !important; }

@media (max-width: 1100px) {
  .vd-grid {
    display: flex;
    flex-direction: column;
  }
  .vd-aside {
    position: static;
    width: 100%;
    justify-self: stretch;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
}
