/* Full video editor styles */
.hero,
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: 44px;
}

h2 {
  font-size: 20px;
}

p {
  margin: 8px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.carousel-shell {
  display: grid;
  gap: 16px;
}

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

.carousel-head h2,
.carousel-head p {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-controls .icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 28, 37, 0.92);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--shadow);
}

.carousel-controls .icon-button:hover {
  border-color: rgba(37, 244, 238, 0.58);
  color: var(--accent);
}

.blocks {
  display: grid;
  grid-auto-columns: clamp(340px, 58vw, 760px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 4px 18px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}

.admin-list {
  display: grid;
  gap: 16px;
}

.block-card,
.panel,
.admin-block,
.login-panel,
.notice,
.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(22, 30, 46, 0.14);
}

.block-card {
  position: relative;
  min-height: 365px;
  background:
    linear-gradient(135deg, rgba(37, 244, 238, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(254, 44, 85, 0.1), transparent 30%),
    var(--panel);
  scroll-snap-align: start;
}

.block-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  content: "";
  opacity: 0.58;
}

.block-card,
.panel,
.admin-block,
.login-panel,
.notice,
.empty {
  padding: 18px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.block-head h2 {
  font-size: 26px;
}

.badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.badge.required {
  color: #061115;
  background: var(--accent);
}

.badge.optional {
  color: #ffffff;
  background: var(--accent-hot);
}

.upload-form,
.button-row,
.generate-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-form {
  margin-bottom: 16px;
  min-height: 128px;
  padding: 18px;
  border: 1px dashed rgba(154, 166, 181, 0.46);
  border-radius: 8px;
  background: rgba(5, 7, 10, 0.44);
}

input[type="file"] {
  max-width: 320px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(37, 244, 238, 0.36);
  border-radius: 6px;
  background: rgba(37, 244, 238, 0.1);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

input,
textarea,
button {
  font: inherit;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090d13;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: #cfd7e3;
  font-size: 14px;
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.button.success {
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  color: #051015;
  box-shadow: 0 16px 34px rgba(37, 244, 238, 0.18);
}

.button.primary:hover,
.button.success:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.button.danger {
  border-color: #f2b8b5;
  color: var(--danger);
}

.editor {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) 1fr;
  gap: 18px;
  align-items: start;
}

.preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  background: #030406;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #202735;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crop-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #23d3ee;
  background: rgba(35, 211, 238, 0.08);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
  cursor: move;
}

.edit-form,
.stack {
  display: grid;
  gap: 14px;
}

.control-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generate-bar {
  position: static;
  bottom: auto;
  justify-content: flex-end;
  margin-top: 18px;
  padding: 14px;
  background: rgba(5, 7, 10, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}


.admin-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.login-panel {
  width: min(420px, 100%);
  margin: 60px auto;
}

.auth-route {
  min-height: 100vh;
  background: #f7f9fb;
  color: #191c1e;
}

.auth-route .topbar,
.auth-route .site-footer {
  display: none;
}

.auth-page {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: clamp(24px, 6vh, 64px) 20px;
  place-items: center;
}

.auth-shell.login-panel {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-brand-header {
  margin-bottom: 24px;
  text-align: center;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.auth-brand-header h1 {
  color: #191c1e;
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 40px;
}

.auth-brand-header p {
  margin: 4px 0 0;
  color: #3c4a42;
  font-size: 14px;
  line-height: 20px;
}

.auth-card {
  overflow: hidden;
  border: 1px solid #bbcabf;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(22, 30, 46, 0.14);
}

.auth-card-body {
  padding: 28px;
}

.auth-card .notice {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #bbcabf;
  border-radius: 8px;
  background: #f2f4f6;
  color: #3c4a42;
  box-shadow: none;
  font-size: 13px;
  line-height: 18px;
}

.auth-card .auth-error {
  border-color: #ffdad6;
  background: #fff3f1;
  color: #93000a;
}

.auth-social-button,
.auth-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.auth-social-button {
  gap: 10px;
  border: 1px solid #bbcabf;
  background: #ffffff;
  color: #191c1e;
  font-size: 14px;
}

.auth-social-button:hover,
.auth-social-button:focus-visible {
  border-color: #006c49;
  background: #f2f4f6;
  color: #191c1e;
}

.auth-google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #3c4a42;
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: #bbcabf;
  content: "";
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 6px;
  color: #3c4a42;
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-field-row a {
  color: #4648d4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.auth-field-row label {
  color: #3c4a42;
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.auth-field-row a:hover,
.auth-field-row a:focus-visible,
.auth-card-footer a:hover,
.auth-card-footer a:focus-visible {
  text-decoration: underline;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bbcabf;
  border-radius: 6px;
  background: #ffffff;
  color: #191c1e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.auth-field input::placeholder {
  color: rgba(60, 74, 66, 0.58);
}

.auth-field input:focus {
  border-color: #006c49;
  outline: 3px solid rgba(0, 108, 73, 0.16);
  outline-offset: 0;
}

.auth-submit-button {
  gap: 8px;
  margin-top: 2px;
  border: 1px solid #006c49;
  background: #006c49;
  color: #ffffff;
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.auth-submit-button:hover,
.auth-submit-button:focus-visible {
  border-color: #005236;
  background: #005236;
  color: #ffffff;
}

.auth-submit-button .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.auth-card-footer {
  padding: 18px 28px;
  border-top: 1px solid #bbcabf;
  background: #f2f4f6;
  text-align: center;
}

.auth-card-footer p {
  margin: 0;
  color: #3c4a42;
  font-size: 13px;
  line-height: 20px;
}

.auth-card-footer a {
  color: #4648d4;
  font-weight: 700;
  text-decoration: none;
}

.auth-trust-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  color: rgba(60, 74, 66, 0.68);
}

.auth-trust-icons .material-symbols-outlined {
  font-size: 22px;
}

@media (max-width: 780px) {
  .hero,
  .admin-head,
  .block-head,
  .success-row,
  .admin-block {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .editor,
  .control-grid,
  .admin-grid,
  .control-grid.two {
    grid-template-columns: 1fr;
  }

  .blocks {
    grid-auto-columns: minmax(292px, 86vw);
  }

  .carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-panel {
    bottom: auto;
    min-height: 212px;
  }

  .timeline-toolbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 8px;
  }

  .timeline-tool-group {
    justify-content: center;
  }

  .timeline-status {
    order: 3;
  }

  .timeline-ruler {
    grid-template-columns: repeat(7, 92px);
    overflow: hidden;
    padding-left: 76px;
  }

  .timeline-track {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .timeline-track-controls {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-playhead {
    left: 76px;
  }

  .timeline-clips {
    padding: 30px 12px;
  }

  .timeline-clip {
    flex-basis: min(520px, calc(86vw * var(--timeline-zoom)));
  }

  h1 {
    font-size: 32px;
  }
}
