/* overwrite */
.header {
  background: none !important;
}

#description {
  text-align: center;
}

.header .navigation a
{
  text-decoration: none;
}

footer.footer {
  background: none;
}
section .overlay {
  display: initial;
  background: initial;
}








/* real */


:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c23;
  --text: #e6edf3;
  --muted: #9aa6b2;
  --accent: #4cc2ff;
  --scrollbar-track: #0a0f14;
  --scrollbar-thumb: #ff8a2b;
  --scrollbar-glow: rgba(255, 138, 43, 0.65);
  --scrollbar-glow-weak: rgba(255, 138, 43, 0.35);
  --danger: #ff5f6d;
  --border: #26303c;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #162131 0%, transparent 40%),
              radial-gradient(1000px 700px at -10% 120%, #1a1f2d 0%, transparent 45%),
              var(--bg);
  color: var(--text);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #081018 0%, #0d1620 50%, #0a1118 100%);
  border-radius: 999px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffc27a 0%, #ff8a2b 55%, #ff6f12 100%);
  border-radius: 999px;
  border: 2px solid #0a0f14;
  box-shadow:
    0 0 6px var(--scrollbar-glow-weak),
    0 0 14px var(--scrollbar-glow);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffc07a, #ff8a2b);
  box-shadow:
    0 0 8px var(--scrollbar-glow),
    0 0 18px rgba(255, 138, 43, 0.85);
}

*::-webkit-scrollbar-corner {
  background: #0a0f14;
}

.app-video-tool {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 16px 24px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
}

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controls {
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

h1 {
  margin: 0 0 2px;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.group {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.01);
  display: grid;
  gap: 8px;
}

.group-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.meta-list {
  display: grid;
  gap: 6px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #0f1318;
  font-size: 12px;
}

.meta-key {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.2px;
  min-width: 120px;
}

.meta-value {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

label.checkbox {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

label.checkbox input {
  width: auto;
}


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

input[type="file"],
select,
button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1318;
  color: var(--text);
  padding: 10px;
  font-size: 13px;
}

button {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  background: linear-gradient(180deg, #151d25, #10161d);
}

button:hover { border-color: var(--accent); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.buttons-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace {
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  min-width: 0;
}

.preview-wrap {
  position: relative;
  width: 100%;
  height: clamp(240px, 56vh, 720px);
  background: #07090c;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

canvas,
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.overlay {
  cursor: crosshair;
  z-index: 5;
}

.hint {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 11px;
  color: #c5d3df;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 8px;
  z-index: 7;
  pointer-events: none;
}

.timeline {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #0c1116;
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zoom-controls button {
  width: 34px;
  height: 30px;
  padding: 0;
}

.frames {
  --frame-zoom: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.thumb {
  flex: 0 0 auto;
  width: calc(120px * var(--frame-zoom));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #05070a;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.thumb img {
  display: block;
  width: 100%;
  height: calc(70px * var(--frame-zoom));
  object-fit: cover;
}

.thumb span {
  display: block;
  padding: 4px;
}

.scrub-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.status {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
  background: #0f141a;
}

.status.error {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  background: rgba(255, 95, 109, 0.08);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #cad6e2;
}


@media (max-width: 1020px) {
  .app-video-tool {
    grid-template-columns: 1fr;
  }

  .controls {
    max-height: none;
  }
}
