:root {
  --sidebar: 76px;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.46);
  --green: #53c66d;
  --green-dark: #2f9f57;
  --panel: rgba(105, 145, 165, 0.42);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1180px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background: #080909;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  align-items: center;
  background: #101010;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
}

.logo {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin: 16px 0 14px;
  place-items: center;
}

.xlike-logo-shell {
  --xlike-logo-size: 56px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--xlike-logo-size);
  height: var(--xlike-logo-size);
  overflow: hidden;
  border: 1px solid rgba(126, 153, 255, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 36% 18%, rgba(105, 240, 255, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(17, 23, 54, 0.78), rgba(6, 9, 28, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 22px rgba(25, 39, 92, 0.24),
    0 0 18px rgba(79, 109, 255, 0.18);
  transform-origin: 50% 60%;
  animation: xlike-logo-enter 800ms ease-out both;
}

.xlike-logo-shell::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 42%);
  content: "";
  pointer-events: none;
}

.xlike-logo-mark {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  width: min(56px, calc(var(--xlike-logo-size) - 2px));
  max-height: calc(var(--xlike-logo-size) - 10px);
  overflow: visible;
  aspect-ratio: 330 / 128;
  line-height: 0;
}

.xlike-logo-mark::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/brand/xlike-logo.webp") center / contain no-repeat;
  content: "";
  filter: brightness(0) saturate(100%) invert(24%) sepia(78%) saturate(926%) hue-rotate(166deg) brightness(82%) contrast(96%);
  opacity: 0.46;
  transform: translate(-3px, 3px) scale(1.018);
  transform-origin: center;
  pointer-events: none;
}

.xlike-logo-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.24));
  pointer-events: none;
  user-select: none;
}

.xlike-logo-edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  mix-blend-mode: screen;
  pointer-events: none;
}

.xlike-logo-edge-trace {
  fill: none;
  stroke: rgba(99, 224, 255, 0.14);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.xlike-logo-edge-spark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(235, 255, 255, 0.98) 0 18%, rgba(91, 235, 255, 0.96) 34%, rgba(35, 190, 255, 0.72) 56%, rgba(35, 190, 255, 0) 74%);
  box-shadow:
    0 0 6px rgba(118, 244, 255, 0.9),
    0 0 13px rgba(39, 190, 255, 0.6);
  opacity: 0;
  offset-anchor: 50% 50%;
  offset-path: path("M 3.3 12 L 9 4 L 14.6 4.1 L 11.9 7.7 L 16.9 13.1 L 11.1 13.3 L 8.4 9.6 L 3.3 13.5 L 0.9 12.2 L 6.1 8.1 L 2.5 4.2 L 7.7 4.2 L 10.1 6.8 L 12.7 4 L 19.7 4 L 19.7 12 L 24.9 12 L 25.3 4 L 30.4 4 L 29.7 7.7 L 34.3 4 L 40.4 4 L 36.3 7.4 L 42.4 7.4 L 41.7 9.5 L 35.3 9.6 L 34.3 11.9 L 42.6 12 L 41.7 14.1 L 31.3 14.1 L 31.7 9.9 L 26.8 14.1 L 22.1 14.1 L 23 4.1 L 21.9 14.1 L 16.1 14.1 L 11.9 8.9 L 6.2 14.1 L 1.4 14.1 Z");
  offset-distance: 0%;
  offset-rotate: auto;
  pointer-events: none;
  will-change: offset-distance, opacity;
  animation: xlike-logo-edge-run 8s linear 1.15s infinite;
}

@keyframes xlike-logo-enter {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes xlike-logo-edge-run {
  0% {
    opacity: 0.82;
    offset-distance: 0%;
  }

  100% {
    opacity: 0.82;
    offset-distance: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xlike-logo-shell {
    animation: none;
  }

  .xlike-logo-edge,
  .xlike-logo-edge-spark {
    display: none;
  }
}

.nav-list {
  display: grid;
  width: 100%;
  gap: 2px;
}

.nav-list a,
.side-bottom button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

.nav-list a {
  position: relative;
  height: 62px;
}

.nav-list a.active {
  color: #fff;
}

.nav-list a.active::before {
  content: "";
  position: absolute;
  inset: 8px 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
}

.nav-list i,
.side-bottom i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-style: normal;
  line-height: 1;
}

.nav-list svg,
.side-bottom svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-bottom {
  display: grid;
  width: 100%;
  gap: 7px;
  margin-top: auto;
  padding-bottom: 12px;
  place-items: center;
}

.side-bottom button {
  height: auto;
  font-size: 12px;
}

.side-bottom strong {
  font-size: 11px;
  line-height: 1;
}

.vip {
  width: 64px !important;
  height: 24px !important;
  flex-direction: row !important;
  gap: 0 !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6dba5, #8f6f34) !important;
  color: #392a0b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: linear-gradient(135deg, #f7ff8f, #88dfff);
  color: #202020;
  font-weight: 900;
}

.home {
  min-height: 100vh;
  padding-left: var(--sidebar);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 84px;
  background:
    linear-gradient(180deg, rgba(6, 18, 28, 0.08) 0%, rgba(6, 10, 12, 0.92) 79%, #0e0e0e 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 15%, transparent 72%, rgba(255, 255, 255, 0.12)),
    url("assets/hero-bg.png") center top / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 23%, rgba(30, 182, 255, 0.38), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.top-language {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 40;
}

.language-menu-wrap {
  position: relative;
  width: 154px;
}

.language-menu-wrap.top-language {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 40;
}

.language-menu-wrap .icon-button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(56, 189, 248, 0.52);
  border-radius: 8px;
  color: #f7f2ff;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(124, 58, 237, 0.28)),
    rgba(17, 17, 20, 0.92);
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 19px;
  font-weight: 800;
}

.language-menu-wrap .icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.language-menu-wrap .icon-button span {
  min-width: 0;
  white-space: nowrap;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 8px;
  background: rgba(9, 7, 13, 0.99);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(18px);
}

.language-dropdown[hidden] {
  display: none;
}

.language-dropdown button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #f7f2ff;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.language-dropdown button:last-child {
  border-bottom: 0;
}

.language-dropdown button:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}

.headline,
.script-card,
.promo-row,
.dots,
.gallery-row,
.page-footer {
  position: relative;
  z-index: 2;
}

.headline {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(14, 127, 255, 0.4);
}

.headline p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.script-card {
  box-sizing: border-box;
  display: block;
  flex: 0 0 auto;
  width: 800px !important;
  max-width: 800px !important;
  min-width: 800px !important;
  height: 228px !important;
  margin: 42px auto 0 !important;
  overflow: hidden;
  border: 1px solid rgba(229, 240, 244, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 57%, rgba(169, 189, 141, 0.34), transparent 28%),
    linear-gradient(115deg, rgba(67, 106, 96, 0.69), rgba(80, 73, 76, 0.5)),
    rgba(50, 80, 80, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px);
}

.script-card * {
  box-sizing: border-box;
}

.script-card::before,
.script-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.script-card::before {
  background:
    radial-gradient(circle at 53% 58%, rgba(177, 196, 148, 0.34), transparent 26%),
    linear-gradient(115deg, rgba(67, 112, 92, 0.68), rgba(67, 94, 92, 0.44));
  opacity: 1;
}

.script-card::after {
  background:
    radial-gradient(circle at 58% 55%, rgba(174, 190, 143, 0.3), transparent 28%),
    linear-gradient(115deg, rgba(98, 81, 72, 0.35), rgba(94, 127, 124, 0.5));
  opacity: 0;
}

.script-card.mode-prompt::before,
.script-card.mode-script::after {
  opacity: 1;
}

.script-card.mode-script::before {
  opacity: 0;
}

.script-card > .creator-tabs {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 4;
  display: grid;
  height: 52px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.script-card > .creator-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 52px;
  border-radius: 0 17px 0 0;
  background: rgba(15, 22, 22, 0.18);
  box-shadow: inset 0 -1px 0 rgba(229, 240, 244, 0.4);
  pointer-events: none;
  transition: left 0.2s ease, right 0.2s ease;
}

.script-card.mode-script > .creator-tabs::before {
  left: 0;
  right: auto;
  border-radius: 17px 0 0 0;
}

.script-card > .creator-tabs::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 22px);
  z-index: 3;
  width: 44px;
  height: 52px;
  border-right: 1px solid rgba(229, 240, 244, 0.5);
  border-bottom: 1px solid rgba(229, 240, 244, 0.5);
  border-radius: 0 0 24px 0;
  pointer-events: none;
}

.script-card.mode-script > .creator-tabs::after {
  left: auto;
  right: calc(50% - 22px);
  border-right: 0;
  border-left: 1px solid rgba(229, 240, 244, 0.5);
  border-radius: 0 0 0 24px;
}

.script-card > .creator-tabs button {
  position: relative;
  z-index: 2;
  outline: none;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 17px;
  font-weight: 850;
  text-align: center;
}

.script-card > .creator-tabs button:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(229, 240, 244, 0.18);
}

.script-card > .creator-tabs button.active {
  color: #fff;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.18);
}

.script-card > .creator-tabs button.active .tab-icon {
  opacity: 1;
}

.script-card > .creator-tabs .prompt-tab {
  border-radius: 18px 0 0 0;
}

.script-card > .creator-tabs .script-tab {
  border-radius: 0 16px 0 0;
  background: transparent;
}

.script-card.mode-script .prompt-tab,
.script-card.mode-prompt .script-tab {
  background: transparent;
}

.script-card .tab-icon {
  margin-right: 8px;
  font-size: 16px;
  opacity: 0.82;
}

.script-card > .prompt-pane,
.script-card > .upload-pane {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding-top: 52px;
}

.script-card > .prompt-pane {
  display: block;
}

.script-card > .upload-pane {
  display: none;
  padding: 70px 20px 18px;
}

.script-card.mode-script .prompt-pane {
  display: none;
}

.script-card.mode-script .upload-pane {
  display: block;
}

.script-card textarea {
  display: block;
  width: 100%;
  height: 100%;
  padding: 17px 20px 58px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.script-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 700;
}

.script-card .prompt-actions {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.prompt-actions span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 800;
}

.asset-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 22px;
}

.create-btn {
  position: static;
  z-index: 2;
  min-width: 114px;
  height: 38px;
  border-radius: 999px;
  color: #15412a;
  background: #5fc66b;
  font-size: 16px;
  font-weight: 850;
}

.create-btn:hover {
  background: #6fdb85;
}

.upload-drop {
  display: grid;
  height: 100%;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.upload-drop p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.upload-drop div {
  display: flex;
  gap: 12px;
  transform: translateY(-15px);
}

.upload-drop button {
  min-width: 140px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 850;
}

.upload-drop .upload-green {
  border-color: rgba(94, 215, 116, 0.36);
  color: #62e27b;
}

.nami-dialog {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: block;
  width: 800px;
  height: 228px;
  margin: 42px auto 0;
  overflow: hidden;
  border: 1px solid rgba(224, 238, 240, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 55%, rgba(170, 188, 142, 0.34), transparent 27%),
    linear-gradient(116deg, rgba(67, 105, 96, 0.72), rgba(73, 78, 80, 0.56)),
    rgba(52, 78, 78, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.nami-dialog.mode-script {
  background:
    radial-gradient(circle at 55% 55%, rgba(176, 190, 145, 0.3), transparent 27%),
    linear-gradient(116deg, rgba(88, 76, 70, 0.5), rgba(88, 124, 122, 0.58)),
    rgba(58, 80, 78, 0.52);
}

.nami-dialog-tabs {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 52px;
  grid-template-columns: 1fr 1fr;
}

.nami-dialog-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 52px;
  border-bottom: 1px solid rgba(224, 238, 240, 0.42);
  background: rgba(13, 24, 25, 0.14);
}

.nami-dialog.mode-script .nami-dialog-tabs::before {
  right: auto;
  left: 0;
}

.nami-dialog-tabs::after {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(50% - 21px);
  width: 42px;
  height: 53px;
  border-right: 1px solid rgba(224, 238, 240, 0.54);
  border-bottom: 1px solid rgba(224, 238, 240, 0.54);
  border-radius: 0 0 24px 0;
}

.nami-dialog.mode-script .nami-dialog-tabs::after {
  right: calc(50% - 21px);
  left: auto;
  border-right: 0;
  border-left: 1px solid rgba(224, 238, 240, 0.54);
  border-radius: 0 0 0 24px;
}

.nami-dialog-tabs button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 17px;
  font-weight: 850;
  outline: 0;
}

.nami-dialog-tabs button.active {
  color: #fff;
}

.nami-prompt-pane,
.nami-upload-pane {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 52px;
}

.nami-dialog textarea {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px 20px 60px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
}

.nami-dialog textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nami-upload-pane {
  display: none;
  padding: 70px 20px 18px;
}

.nami-dialog.mode-script .nami-prompt-pane {
  display: none;
}

.nami-dialog.mode-script .nami-upload-pane {
  display: block;
}

.ScriptInputPanel {
  position: relative;
  z-index: 2;
  width: 800px;
  height: 228px;
  margin: 42px auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 55%, rgba(180, 194, 150, 0.2), transparent 29%),
    linear-gradient(116deg, rgba(70, 102, 95, 0.42), rgba(84, 78, 80, 0.3)),
    rgba(44, 70, 72, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px) saturate(1.18);
}

.ScriptInputPanel.mode-script {
  background:
    radial-gradient(circle at 54% 55%, rgba(180, 194, 150, 0.18), transparent 29%),
    linear-gradient(116deg, rgba(105, 78, 67, 0.26), rgba(88, 125, 122, 0.34)),
    rgba(48, 72, 72, 0.2);
}

.script-panel-border {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
  stroke: rgba(232, 244, 244, 0.58);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ScriptInputPanel .script-border {
  opacity: 0;
}

.ScriptInputPanel.mode-script .prompt-border {
  opacity: 0;
}

.ScriptInputPanel.mode-script .script-border {
  opacity: 1;
}

.script-panel-tabs {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: grid;
  width: 100%;
  height: 52px;
  grid-template-columns: 1fr 1fr;
}

.script-panel-tabs::before {
  display: none;
}

.ScriptInputPanel.mode-script .script-panel-tabs::before {
  display: none;
}

.script-panel-tabs button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 17px;
  font-weight: 850;
}

.script-panel-tabs button.active {
  color: #fff;
}

.ScriptInputPanel .tab-icon {
  font-size: 16px;
  opacity: 0.86;
}

.script-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding-top: 52px;
}

.ScriptInputPanel textarea {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px 20px 60px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
}

.ScriptInputPanel textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.ScriptInputPanel .upload-pane {
  display: none;
  padding: 70px 20px 18px;
}

.ScriptInputPanel.mode-script .prompt-pane {
  display: none;
}

.ScriptInputPanel.mode-script .upload-pane {
  display: block;
}

.ScriptInputPanel .prompt-actions {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.promo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: calc(100vw - var(--sidebar) - 170px);
  margin: 32px auto 0;
}

.promo-card {
  position: relative;
  display: flex;
  width: 250px;
  height: 168px;
  flex: 0 0 auto;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: #223;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.promo-card:nth-child(2),
.promo-card:nth-child(4) {
  transform: translateY(-16px) rotate(-2.5deg);
}

.promo-card:nth-child(3) {
  width: 400px;
  height: 224px;
  transform: translateY(-8px);
}

.promo-card:nth-child(5) {
  transform: translateY(-12px) rotate(1.5deg);
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.promo-card div {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.promo-card strong {
  display: block;
  color: #e6eef9;
  font-size: 22px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.56);
}

.promo-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.promo-one {
  background:
    linear-gradient(145deg, rgba(255, 190, 125, 0.56), transparent 46%),
    radial-gradient(circle at 48% 28%, #e3bb74 0 46px, transparent 47px),
    linear-gradient(135deg, #96bbc1, #464947);
}

.promo-two {
  background:
    radial-gradient(circle at 54% 38%, #111 0 42px, transparent 44px),
    linear-gradient(135deg, #99856e, #3a2c23);
}

.promo-three {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.52)),
    url("assets/hero-card-blue.png") center / cover no-repeat;
}

.promo-four {
  background:
    url("assets/card-blue.png") center / cover no-repeat,
    linear-gradient(135deg, #dfe7e9, #a0a6ad);
}

.promo-five {
  background:
    linear-gradient(145deg, rgba(6, 19, 44, 0.35), rgba(0, 0, 0, 0.36)),
    url("assets/poster-small.jpg") center / cover no-repeat;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dots span {
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.dots .active {
  width: 24px;
  background: #fff;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 16px;
  width: calc(100vw - var(--sidebar) - 48px);
  margin: 36px auto 0;
}

.video-tile {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 10px;
  background: #222;
}

.video-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.72));
}

.video-tile button {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #111;
  font-size: 14px;
}

.tile-one {
  background:
    radial-gradient(circle at 62% 32%, #b28d4a 0 38px, transparent 39px),
    linear-gradient(135deg, #160f0c, #66412a);
}

.tile-two {
  background:
    radial-gradient(circle at 48% 48%, #dd883f 0 32px, transparent 33px),
    linear-gradient(135deg, #d2d5cf, #36566d);
}

.tile-three {
  background:
    linear-gradient(95deg, transparent, rgba(255, 255, 255, 0.68), transparent),
    linear-gradient(135deg, #2d333c, #a35b28);
}

.tile-four {
  background:
    radial-gradient(circle at 55% 36%, #d7d7d7 0 36px, transparent 37px),
    linear-gradient(135deg, #111, #555);
}

.tile-five {
  background:
    radial-gradient(circle at 42% 40%, #c99b72 0 38px, transparent 39px),
    linear-gradient(135deg, #41352b, #9d8467);
}

.tile-six {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(135deg, #e8e8e8, #364156);
}

.page-footer {
  position: fixed;
  left: var(--sidebar);
  right: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1380px) {
  .promo-card {
    width: 220px;
    height: 150px;
  }

  .promo-card:nth-child(3) {
    width: 340px;
    height: 196px;
  }

  .gallery-row {
    margin-top: 26px;
  }
}
