.app-shell {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 78px 1fr;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(92, 225, 230, 0.12), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(244, 197, 106, 0.12), transparent 45%),
    linear-gradient(180deg, #0a1020 0%, #070b16 100%);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(244, 197, 106, 0.4);
}
.brand h1 {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-title);
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.top-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(24, 35, 56, 0.8);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.top-actions { display: flex; gap: 8px; }

.layout {
  display: grid;
  grid-template-columns: 210px 1fr 470px;
  gap: 14px;
  padding: 14px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.layout.no-inspector {
  grid-template-columns: 210px 1fr;
}
.layout.no-inspector .inspector { display: none; }
.side, .inspector, .stage {
  background: linear-gradient(180deg, rgba(24, 35, 56, 0.92), rgba(12, 18, 32, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 0;
}
.side {
  padding: 14px;
  overflow: auto;
  position: sticky;
  top: 0;
  align-self: stretch;
}
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 6px;
  transition: transform .12s ease, background .15s ease;
}
.nav-btn img { width: 28px; height: 28px; }
.nav-btn.active, .nav-btn:hover {
  background: linear-gradient(90deg, rgba(244, 197, 106, 0.18), rgba(92, 225, 230, 0.08));
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-btn:active { transform: scale(0.97); }
.stage {
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr;
  gap: 12px;
  overflow: auto;
}
#previewPane {
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  height: 100%;
}
#previewPane.is-on { display: grid; }
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stage-head > .toolbar {
  align-items: center;
}
.stage-head .size-switch {
  margin: 0;
  min-width: 0;
}
.stage-head .size-switch > span { display: none; }
.stage-head .size-switch .sel,
.stage-head .size-switch select {
  min-width: 210px;
}
.stage-head .size-switch .sel-btn {
  min-height: 42px;
  border-color: rgba(92, 225, 230, 0.45);
  background: linear-gradient(180deg, rgba(92, 225, 230, 0.16), rgba(16, 25, 44, 0.95));
  box-shadow: inset 0 0 0 1px rgba(92, 225, 230, 0.12), 0 6px 16px rgba(92, 225, 230, 0.08);
  color: #dffcff;
}
.stage-head .size-switch .sel.open .sel-btn {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.18);
}
.preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  background:
    linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%),
    linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(244,197,106,.25);
}
#previewCanvas {
  display: block;
  max-width: none;
  max-height: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  background: #111;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inspector {
  padding: 12px 14px;
  overflow: auto;
}
.inspector h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--gold);
}
.field { margin-bottom: 8px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea,
.toolbar select, .toolbar input, .filter-bar input, .filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1424;
  color: var(--text);
  border-radius: 12px;
  padding: 8px 11px;
  color-scheme: dark;
}
.toolbar select, .filter-bar select, .toolbar input {
  width: auto;
  min-width: 168px;
}
.field textarea { min-height: 52px; resize: vertical; }
.inspector .field.task-inline {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.inspector .field.task-inline > label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.inspector .field.task-inline .control-row {
  min-width: 0;
}
.inspector .field.task-inline .control-row input,
.inspector .field.task-inline .control-row textarea {
  min-height: 36px;
  padding: 7px 10px;
}
.inspector .field.task-inline .btn.ghost {
  padding: 7px 10px;
  white-space: nowrap;
  min-height: 36px;
}
.inspector .field.egg-inline .control-row {
  grid-template-columns: 1fr auto;
  align-items: stretch;
}
.inspector .field.egg-inline textarea {
  min-height: 56px;
  resize: vertical;
}
.inspector .field.egg-inline .btn.ghost {
  align-self: start;
}
.inspector .compact-field textarea {
  min-height: 48px;
}
.inspector .range-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 6px;
}
.inspector .range-row > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  gap: 8px;
}
.inspector .lock-row {
  margin-bottom: 8px;
  gap: 6px;
}
.inspector .setting-help {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lock-row { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #081018;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 18px rgba(244, 197, 106, 0.18);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn.secondary {
  background: linear-gradient(180deg, #2a3b5c, #1a2740);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn.cyan { background: linear-gradient(180deg, #8af6fa, var(--cyan)); }
.btn.mint { background: linear-gradient(180deg, #b6ffc6, var(--mint)); }
.btn.pink { background: linear-gradient(180deg, #ffb3ea, var(--pink)); color: #2a1024; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn:hover { filter: brightness(1.06); }
.btn:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(0.92);
}
.btn.active {
  box-shadow: 0 0 0 2px rgba(244, 197, 106, 0.55), 0 8px 18px rgba(244, 197, 106, 0.18);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.page { display: none; min-height: 100%; }
.page.active { display: block; }

.cover-grid, .batch-grid, .vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.cover-card, .batch-card, .vault-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1424;
  cursor: pointer;
}
.cover-card img, .cover-card canvas, .batch-card canvas, .vault-card canvas {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: #09101d;
}
.cover-card .meta, .batch-card .meta, .vault-card .meta {
  padding: 8px 10px 10px;
  font-size: 12px;
}
.cover-card { position: relative; }
.cover-card .fav-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(7,11,22,.76);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  font-size: 18px;
  line-height: 32px;
}
.cover-card .fav-toggle.on { color: #ffd76a; background: rgba(72,45,8,.88); }
.cover-card .size-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #f4f8ff;
  background: rgba(50,66,94,.72);
  font-size: 10px;
  letter-spacing: .02em;
}
.range-row output { float: none; color: var(--gold-2); font-weight: 700; }
.setting-help { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.cover-card.active { outline: 2px solid var(--gold); }

.home-hub { display: grid; gap: 18px; }
.home-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 280px;
  background: #123 url("../assets/backgrounds/bg_002_fantasy_floating_islands.png") center 44%/cover;
  border: 1px solid var(--line);
}
.home-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,11,22,.82) 0%, rgba(7,11,22,.35) 58%, rgba(7,11,22,.12) 100%);
}
.home-banner-copy {
  position: relative;
  z-index: 1;
  padding: 42px 48px;
  max-width: 760px;
}
.home-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  color: var(--gold-2);
  font-size: 13px;
}
.home-banner-copy h2 {
  font-family: var(--font-title);
  font-size: 40px;
  line-height: 1.28;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.home-lead {
  margin: 0;
  color: #dce6f5;
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stat {
  background: rgba(13,20,36,.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.stat b { display: block; font-size: 20px; color: var(--gold); }
.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.entry-card {
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(32,46,74,.9), rgba(13,20,36,.92));
  color: var(--text);
  border-radius: 16px;
  padding: 18px 16px;
  min-height: 118px;
}
.entry-card b { display: block; font-size: 18px; margin-bottom: 8px; color: var(--gold-2); }
.entry-card small { color: var(--muted); line-height: 1.5; }

.date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.date-trigger {
  min-width: 168px;
  border: 1px solid var(--line);
  background: #0d1424;
  color: var(--gold-2);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}
.cal-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  width: 300px;
  background: #121a2e;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 12px;
}
.cal-grid span { color: var(--muted); padding: 6px 0; }
.cal-grid button {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 0;
}
.cal-grid button:hover { background: rgba(244,197,106,.16); }
.cal-grid button.active { background: var(--gold); color: #1a1208; font-weight: 700; }
.cal-grid button.mute { color: #5b6780; }

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  gap: 8px;
}
.empty-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: radial-gradient(circle at 35% 30%, #ffe09a, #f4c56a 38%, #1a2740 70%);
  box-shadow: 0 0 32px rgba(244,197,106,.35);
  animation: floaty 2.4s ease-in-out infinite alternate;
}
.hint-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  flex: 1 0 100%;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 6px;
}
.page-head h3 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
#page-video .page-head {
  align-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  place-items: center;
  z-index: 50;
}
.modal.show { display: grid; }
.modal-card {
  width: min(920px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: #121a2e;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.batch-cover-modal-card { width: min(1080px, 94vw); }
.batch-cover-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.batch-picker-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: #0d1424;
  text-align: left;
}
.batch-picker-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.batch-picker-card span { display: block; padding: 8px 10px; font-size: 12px; }
.batch-picker-card::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: rgba(7,11,22,.72);
  border: 1px solid rgba(255,255,255,.3);
}
.batch-picker-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(244,197,106,.2); }
.batch-picker-card.selected::after { color: #132012; background: var(--mint); border-color: transparent; font-weight: 900; }
.modal-actions { justify-content: flex-end; margin-top: 16px; }
.media-preview-modal-card { width: min(1180px, 96vw); }
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.media-preview-card {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #0d1424;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.media-preview-card canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #070b16;
}
.media-preview-card span {
  display: block;
  padding: 8px 10px 10px;
  font-size: 12px;
  line-height: 1.45;
}
.media-preview-card b { display: block; margin-bottom: 2px; }
.media-preview-card small { color: var(--muted); }
.media-preview-card.active,
.media-preview-card:hover { border-color: var(--gold); }
.media-preview-empty { grid-column: 1 / -1; color: var(--muted); padding: 12px 0; }
.video-date-modal-card { width: min(460px, 92vw); }
.video-date-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.video-date-form input[type="date"] {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d1424;
  color: var(--text);
  padding: 0 10px;
}
#videoDateEndWrap[hidden] { display: none !important; }
.batch-summary-line { grid-column: 1 / -1; color: var(--gold-2); }
#batchCountControl[hidden], #batchScopeControl[hidden] { display: none !important; }
#batchCoverSummary[hidden], #btnChooseBatchCovers[hidden], #coverRandom[hidden] { display: none !important; }

.panel-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 20, 36, 0.55);
  padding: 12px;
}
.batch-toolbar {
  align-items: flex-end;
  gap: 10px;
}
.batch-toolbar > .control {
  margin: 0;
}
.batch-toolbar > .btn {
  align-self: flex-end;
  min-height: 42px;
}
.batch-summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #18263d, #10192c);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  white-space: nowrap;
  align-self: flex-end;
}
.covers-filter-bar {
  align-items: flex-end;
}
.covers-filter-bar .covers-search {
  flex: 1;
  min-width: 220px;
  margin-left: auto;
}
.vault-toolbar {
  align-items: center;
  gap: 12px;
}
.vault-toolbar .vault-search {
  margin: 0;
  gap: 0;
}
.vault-toolbar .vault-search input {
  min-height: 42px;
  border-radius: 12px;
}

.video-toolbar {
  position: relative;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
  min-height: 76px;
}
.video-export-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 220px;
  max-width: 420px;
  margin-right: auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(92, 225, 230, 0.18);
  background: rgba(10, 18, 34, 0.55);
  min-height: 58px;
  box-sizing: border-box;
  opacity: 0.38;
  pointer-events: none;
  transition: opacity .18s ease, border-color .18s ease, background .18s ease;
}
.video-export-dock.is-active {
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(92, 225, 230, 0.28);
  background: rgba(10, 18, 34, 0.88);
}
.video-export-dock-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.video-export-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.video-export-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ce1e6, #f4c56a);
  transition: width .18s ease;
}
.video-export-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.video-export-copy b {
  flex: 0 0 auto;
  color: var(--cyan, #5ce1e6);
  font-variant-numeric: tabular-nums;
}
.video-export-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.video-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 132px;
}
.video-actions > .btn,
.video-export-menu > .btn {
  width: 100%;
  justify-content: center;
}
.video-export-menu {
  position: relative;
}
.video-export-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  z-index: 30;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 32, 0.98);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.video-export-pop[hidden] { display: none !important; }
.video-export-pop button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.video-export-pop button:hover {
  background: linear-gradient(90deg, rgba(244,197,106,.16), rgba(92,225,230,.08));
}

/* —— 视频工坊 —— */
.stage.stage-video {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stage.stage-video #page-video.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.stage.stage-video #page-video .page-head {
  flex: 0 0 auto;
}
.video-studio {
  display: grid;
  grid-template-columns: minmax(380px, 1.5fr) minmax(280px, 0.85fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  overflow: hidden;
}
.video-preview-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.video-controls-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}
.video-preview-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px dashed rgba(244,197,106,.28);
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(92,225,230,.08), transparent 60%),
    linear-gradient(180deg, rgba(10,14,28,.9), rgba(7,10,18,.96));
  overflow: hidden;
}
.video-preview-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#videoPreviewCanvas {
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  background: #000;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}
.video-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.video-play-btn,
.video-stop-btn {
  min-width: 118px;
  justify-content: center;
  text-align: center;
}
.video-time-chip {
  min-width: 132px;
  text-align: center;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.video-scrub-wrap {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.video-scrub-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}
.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-controls-panel .panel-card {
  border: 1px solid var(--line);
  background: rgba(10, 16, 30, 0.55);
  border-radius: 14px;
  padding: 12px 14px;
  flex: 0 0 auto;
}
.video-controls-panel .panel-card h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
}
.rec-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #102018;
  background: linear-gradient(90deg, rgba(126, 231, 180, 0.95), rgba(92, 225, 230, 0.9));
  vertical-align: middle;
}
.video-style-list {
  display: grid;
  gap: 8px;
}
.video-style-card {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(13, 20, 36, 0.9);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.video-style-card b { display: block; margin-bottom: 4px; }
.video-style-card small { color: var(--muted); line-height: 1.4; }
.video-style-card.active,
.video-style-card:hover {
  border-color: rgba(244,197,106,.55);
  box-shadow: 0 0 0 1px rgba(244,197,106,.18);
  background: linear-gradient(90deg, rgba(244,197,106,.12), rgba(92,225,230,.06));
}
.video-sfx-panel > h4 { margin-bottom: 0; }
.video-sfx-list {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  margin-top: 14px;
}
.video-sfx-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(13, 20, 36, 0.88);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.video-sfx-item.active {
  border-color: rgba(92,225,230,.5);
  box-shadow: inset 0 0 0 1px rgba(92,225,230,.2);
}
.video-sfx-main b { display: block; margin-bottom: 2px; }
.video-sfx-main small { color: var(--gold-2); font-size: 12px; }
.video-sfx-main span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.video-sfx-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.video-sfx-tags em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.video-sfx-actions { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 1100px) {
  .stage.stage-video { overflow: auto; }
  .stage.stage-video #page-video.active { height: auto; overflow: visible; }
  .video-studio {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .video-preview-panel { height: auto; overflow: visible; }
  .video-preview-wrap { min-height: 420px; }
  .video-controls-panel { height: auto; overflow: visible; }
}

@media (max-width: 1180px) {
  .layout, .layout.no-inspector { grid-template-columns: 76px 1fr; }
  .inspector { display: none !important; }
  .nav-btn span { display: none; }
  .home-banner-copy h2 { font-size: 30px; }
  .stats, .entry-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .layout, .layout.no-inspector { grid-template-columns: 1fr; }
  .side { display: flex; gap: 8px; overflow: auto; position: static; }
  .nav-btn { min-width: 120px; }
  .nav-btn span { display: inline; }
  .home-banner { min-height: 220px; }
  .home-banner-copy { padding: 24px; }
}
