﻿/* Generated bundle from apps\video-frame-studio\styles.css. Keep source files as the editable cascade; update this bundle when imports change. */

/* === styles-base.css === */
* {
  box-sizing: border-box;
}

@font-face {
  font-family: "CoverWatermarkHan";
  src: url("../../p5x-cover/fonts/SourceHanSansSC-Heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #0d0d10;
  --panel: rgba(18, 19, 24, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.7);
  --muted-strong: rgba(245, 245, 247, 0.82);
  --red: #e11414;
  --red-2: #ff4040;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(225, 20, 20, 0.16), transparent 24%),
    linear-gradient(135deg, #08090c, #121318 54%, #0d0d0f);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
  padding: 18px 20px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding-right: 6px;
}

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 64, 64, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.panel-export {
  background:
    linear-gradient(180deg, rgba(255, 64, 64, 0.14), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.panel-legal {
  background:
    linear-gradient(180deg, rgba(255, 64, 64, 0.09), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.status {
  min-height: 40px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status:empty {
  display: none;
}

.panel-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.panel-mode {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(225, 20, 20, 0.15);
  border: 1px solid rgba(255, 64, 64, 0.28);
  color: #ffbaba;
  font-size: 12px;
  font-weight: 800;
}

.panel-mode-public {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.panel-copy,
.panel-hint,
.legal-note-copy {
  font-size: 12px;
  line-height: 1.8;
}

.panel-copy {
  margin-top: 8px;
  color: var(--muted);
}

.panel-title-wrap {
  display: grid;
  gap: 6px;
}

.panel-hint {
  margin-top: 0;
  color: rgba(245, 245, 247, 0.64);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.panel-head-top {
  align-items: flex-start;
}

.field,
.range-grid label,
.textarea-field {
  display: grid;
  gap: 8px;
}

.field {
  margin-top: 14px;
}

.field > span,
.range-grid label > span,
.textarea-field > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

select,
input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0 12px;
}

select {
  color-scheme: dark;
  background: rgba(20, 22, 28, 0.96);
}

select option {
  color: #f5f5f7;
  background: #151820;
}

textarea {
  min-height: 84px;
  padding-block: 10px;
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.button-row.wrap {
  flex-wrap: wrap;
}

.button-row.wrap > .btn {
  flex: 1 1 160px;
}

.button-row.wrap > .btn.small {
  flex-basis: 0;
}

.button-row.tight,
.button-row-tight-bottom {
  gap: 8px;
}

.button-row-secondary {
  margin-top: 12px;
}

.btn {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 12px 28px rgba(225, 20, 20, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn.danger {
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
}

.btn.small {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 12px;
}

.btn-export {
  width: 100%;
  min-height: 58px;
  font-size: 16px;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 34px rgba(225, 20, 20, 0.34);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
}

.range-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.range-grid label {
  display: grid;
  grid-template-columns: 34px 1fr 92px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.range-grid label > span {
  text-align: center;
}

.layer-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.layer-list.empty {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.layer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.layer-item.is-selected {
  border-color: rgba(255, 64, 64, 0.72);
  background: rgba(225, 20, 20, 0.12);
}

.layer-meta {
  display: grid;
  gap: 3px;
}

.layer-name {
  font-size: 13px;
  font-weight: 800;
}

.layer-sub {
  color: var(--muted);
  font-size: 11px;
}

.layer-tag {
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.layer-controls.disabled {
  opacity: 0.7;
}

.layer-controls {
  display: grid;
  gap: 12px;
}

.layer-controls .field,
.layer-controls .textarea-field,
.layer-controls .range-grid {
  margin-top: 0;
}

.panel-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.08);
}

.export-frame {
  margin-top: 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 64, 64, 0.16);
}

.legal-note-copy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: rgba(245, 245, 247, 0.74);
}

.legal-note-copy a {
  color: #ff9a9a;
  font-weight: 800;
  text-decoration: none;
}

.legal-note-copy a:hover {
  text-decoration: underline;
}

/* === styles-stage.css === */
.stage-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.stage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(225, 20, 20, 0.16);
  color: #ffb4b4;
  border: 1px solid rgba(255, 64, 64, 0.34);
}

.pill-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.stage-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.03) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.03) 75%),
    rgba(255,255,255,0.02);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  background: transparent;
  user-select: none;
  overflow: hidden;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.stage-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
}

.background-node {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.frame-node {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
}

.cutout-guide {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.035) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.035) 75%),
    rgba(9, 10, 14, 0.94);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 9999px rgba(0, 0, 0, 0.02);
  pointer-events: none;
}

.cutout-guide::before {
  content: "VIDEO AREA";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.layer-node {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
}

.layer-node.is-selected {
  outline: 2px solid rgba(255, 64, 64, 0.92);
  outline-offset: 3px;
}

.layer-node img {
  display: block;
  max-width: none;
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}

.text-node {
  min-width: 24px;
  min-height: 24px;
  padding: 6px 10px;
  white-space: pre-wrap;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.watermark-stage {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99;
  width: max-content;
  transform: translate(0, 0) scale(1);
  transform-origin: left top;
  pointer-events: none;
}

.watermark-stage.is-empty {
  display: none;
}

.watermark-text {
  position: relative;
  display: block;
  min-width: 1px;
  max-width: none;
  isolation: isolate;
  user-select: none;
  -webkit-user-drag: none;
}

.watermark-text-inner {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  vertical-align: top;
  z-index: 3;
}

.watermark-char {
  --wm-rotate: 0deg;
  --wm-shift-x: 0px;
  --wm-shift-y: 0px;
  --wm-scale: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform:
    translate(var(--wm-shift-x), var(--wm-shift-y))
    rotate(var(--wm-rotate))
    scale(var(--wm-scale));
  transform-origin: center bottom;
  isolation: isolate;
}

.watermark-char.is-lead {
  margin-right: 2px;
}

.watermark-char.is-ascii {
  letter-spacing: 0;
}

.watermark-char-shadow,
.watermark-char-face,
.watermark-char-glyph {
  position: absolute;
  pointer-events: none;
}

.watermark-char-shadow {
  inset: 0;
  background: #000000;
  transform: translate(6px, 5px);
  z-index: 0;
}

.watermark-char-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 68px;
  padding: 0 12px;
  border: 3px solid #000000;
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.watermark-char.is-lead .watermark-char-face {
  min-width: 62px;
  height: 72px;
}

.watermark-char.is-ascii .watermark-char-face {
  min-width: 42px;
  padding-inline: 10px;
}

.watermark-char[data-tone="lead-red"] .watermark-char-face {
  background: #f50000;
  border-color: #000000;
  box-shadow: none;
}

.watermark-char[data-tone="black-white"] .watermark-char-face {
  background: #111111;
  border-color: #ffffff;
  box-shadow:
    inset 0 0 0 2px #111111,
    0 0 0 1px #000000;
}

.watermark-char[data-tone="black-red"] .watermark-char-face {
  background: #111111;
  border-color: #ffffff;
  box-shadow:
    inset 0 0 0 2px #111111,
    0 0 0 1px #000000;
}

.watermark-char[data-tone="white-black"] .watermark-char-face {
  background: #ffffff;
  border-color: #000000;
  box-shadow: none;
}

.watermark-char-glyph {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "CoverWatermarkHan", "Microsoft YaHei UI", "Segoe UI", "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: none;
  transform: translateY(-1px) scaleX(0.95);
}

.watermark-char.is-lead .watermark-char-glyph {
  font-size: 44px;
}

.watermark-char.is-ascii .watermark-char-glyph {
  font-size: 32px;
  transform: translateY(-1px) scaleX(0.92);
}

.watermark-char[data-tone="black-red"] .watermark-char-glyph {
  color: #f50000;
}

.watermark-char[data-tone="white-black"] .watermark-char-glyph {
  color: #111111;
}

.watermark-char.is-punctuation {
  min-width: auto;
  height: auto;
  padding: 0 2px 4px 0;
  transform:
    translate(var(--wm-shift-x), calc(var(--wm-shift-y) - 1px))
    rotate(var(--wm-rotate))
    scale(var(--wm-scale));
}

.watermark-char.is-punctuation .watermark-char-glyph {
  position: relative;
  inset: auto;
  color: #f50000;
  font-size: 38px;
  font-weight: 900;
  text-shadow:
    4px 4px 0 #000000,
    0 0 0 #ffffff;
}

.watermark-char-space {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 1px;
}

/* === styles-responsive.css === */
.hidden {
  display: none !important;
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    max-height: none;
    overflow: visible;
  }

  .stage-shell {
    min-height: 58vh;
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .panel {
    padding: 16px 14px 14px;
  }

  .panel-kicker-row,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-head .inline-check {
    width: 100%;
    justify-content: center;
  }

  .range-grid label {
    grid-template-columns: 1fr;
  }

  .range-grid label > span {
    text-align: left;
  }

  .btn-export {
    min-height: 54px;
    font-size: 15px;
  }
}
