.landing-modern .translation-demo {
  --td-bg: #0d0f10;
  --td-panel: #141719;
  --td-panel-raised: #1a1e20;
  --td-border: rgba(255, 255, 255, .12);
  --td-text: rgba(247, 248, 245, .92);
  --td-muted: #9ba3a5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--td-text);
  background: var(--td-bg);
  font-family: var(--font-sans);
  text-align: left;
}

.landing-modern .translation-demo *,
.landing-modern .translation-demo *::before,
.landing-modern .translation-demo *::after {
  box-sizing: border-box;
}

.landing-modern .translation-demo button,
.landing-modern .translation-demo textarea,
.landing-modern .translation-demo select,
.landing-modern .translation-demo input {
  font: inherit;
}

.landing-modern .translation-demo button,
.landing-modern .translation-demo select,
.landing-modern .translation-demo summary {
  cursor: pointer;
}

.landing-modern .translation-demo button:focus-visible,
.landing-modern .translation-demo textarea:focus-visible,
.landing-modern .translation-demo select:focus-visible,
.landing-modern .translation-demo input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.landing-modern .translation-demo [hidden] {
  display: none !important;
}

.landing-modern .td-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--td-border);
  color: var(--td-muted);
  background: var(--td-panel);
  font-size: 12px;
}

.landing-modern .td-dots {
  display: flex;
  gap: 6px;
}

.landing-modern .td-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3c4244;
}

.landing-modern .td-dots i:first-child {
  background: var(--accent);
}

.landing-modern .td-replay {
  justify-self: end;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--td-muted);
  background: transparent;
  font-size: 12px;
}

.landing-modern .td-replay:hover {
  color: var(--td-text);
  background: var(--td-panel-raised);
}

.landing-modern .td-prompt {
  display: grid;
  place-items: center;
  min-height: 570px;
  padding: 52px 24px;
  background: radial-gradient(circle at 50% 38%, rgba(244, 217, 20, .045), transparent 46%);
}

.landing-modern .td-prompt-inner {
  width: min(820px, 100%);
}

.landing-modern .td-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.landing-modern .td-prompt h3 {
  margin: 0 0 26px;
  color: var(--td-text);
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.landing-modern .td-composer {
  overflow: hidden;
  border: 1px solid var(--td-border);
  border-radius: 8px;
  background: var(--td-panel-raised);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .26);
}

.landing-modern .td-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 20px 0;
  padding: 10px 12px;
  border: 1px solid var(--td-border);
  border-radius: 5px;
  color: var(--td-text);
  background: var(--td-panel);
  font-size: 13px;
}

.landing-modern .td-source-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: var(--accent);
  background: rgba(244, 217, 20, .08);
}

.landing-modern .td-source-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.landing-modern .td-source-copy {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.landing-modern .td-source-copy strong {
  font-weight: 500;
}

.landing-modern .td-source-copy span,
.landing-modern .td-source-ready {
  color: var(--td-muted);
  font-size: 12px;
}

.landing-modern .td-source-ready {
  color: #77bd8b;
}

.landing-modern .td-composer textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 22px 20px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--td-text);
  background: transparent;
  font-size: 16px;
  line-height: 1.8;
}

.landing-modern .td-composer textarea::placeholder {
  color: #747d80;
}

.landing-modern .td-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 16px 20px;
}

.landing-modern .td-composer-footer > span {
  color: var(--td-muted);
  font-size: 12px;
}

.landing-modern .td-primary,
.landing-modern .td-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.landing-modern .td-primary {
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.landing-modern .td-primary:hover {
  background: var(--accent-hover);
}

.landing-modern .td-secondary {
  border: 1px solid var(--td-border);
  color: var(--td-text);
  background: transparent;
}

.landing-modern .td-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-modern .td-prompt-note {
  margin: 16px 0 0;
  color: var(--td-muted);
  font-size: 12px;
  text-align: center;
}

.landing-modern .td-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--td-border);
  background: var(--td-panel);
}

.landing-modern .td-result-title {
  flex: 1;
  min-width: 0;
}

.landing-modern .td-result-title h3 {
  margin: 0;
  color: var(--td-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.landing-modern .td-result-title p {
  margin: 2px 0 0;
  color: var(--td-muted);
  font-size: 11px;
}

.landing-modern .td-save-state {
  color: #77bd8b;
  font-size: 11px;
  white-space: nowrap;
}

.landing-modern .td-result-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 248px;
  min-height: 430px;
}

.landing-modern .td-subtitles,
.landing-modern .td-settings {
  min-width: 0;
  background: var(--td-panel);
}

.landing-modern .td-subtitles {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--td-border);
}

.landing-modern .td-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--td-border);
  color: var(--td-muted);
  font-size: 11px;
  font-weight: 500;
}

.landing-modern .td-cue-list {
  height: 386px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #3a4143 transparent;
}

.landing-modern .td-cue {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--td-border);
  border-left: 2px solid transparent;
}

.landing-modern .td-cue.is-active {
  border-left-color: var(--accent);
  background: rgba(244, 217, 20, .045);
}

.landing-modern .td-cue-seek {
  align-self: start;
  padding: 2px 0;
  border: 0;
  color: var(--td-muted);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
}

.landing-modern .td-cue-copy {
  min-width: 0;
}

.landing-modern .td-cue-copy textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--td-text);
  background: transparent;
  font-size: 12px;
  line-height: 1.6;
}

.landing-modern .td-cue-copy > span {
  display: block;
  margin-top: 5px;
  color: var(--td-muted);
  font-size: 10px;
  line-height: 1.5;
}

.landing-modern .td-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 22px;
  background: #090b0c;
}

.landing-modern .td-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--td-border);
  border-radius: 3px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.landing-modern .td-player.is-vertical {
  width: min(230px, 70%);
  aspect-ratio: 9 / 16;
}

.landing-modern .td-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-modern .td-playback {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.landing-modern .td-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: 4px;
  color: var(--td-text);
  background: var(--td-panel);
}

.landing-modern .td-icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-modern .td-icon-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.landing-modern .td-time {
  color: var(--td-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.landing-modern .translation-demo input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 3px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.landing-modern .td-settings {
  border-left: 1px solid var(--td-border);
}

.landing-modern .td-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--td-border);
}

.landing-modern .td-settings-tabs button {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--td-muted);
  background: transparent;
  font-size: 11px;
}

.landing-modern .td-settings-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--td-text);
}

.landing-modern .td-settings-panel {
  display: grid;
  gap: 18px;
  padding: 18px 14px;
}

.landing-modern .td-setting {
  display: grid;
  gap: 8px;
}

.landing-modern .td-setting > span,
.landing-modern .td-setting-label {
  color: var(--td-muted);
  font-size: 11px;
}

.landing-modern .td-setting select {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--td-border);
  border-radius: 4px;
  color: var(--td-text);
  background: var(--td-panel-raised);
  font-size: 12px;
}

.landing-modern .td-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--td-border);
  border-radius: 5px;
  background: var(--td-bg);
}

.landing-modern .td-segmented button {
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  color: var(--td-muted);
  background: transparent;
  font-size: 11px;
}

.landing-modern .td-segmented button[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}

.landing-modern .td-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--td-text);
  font-size: 12px;
}

.landing-modern .td-toggle input {
  width: 30px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.landing-modern .td-setting-note {
  margin: 0;
  color: var(--td-muted);
  font-size: 11px;
  line-height: 1.7;
}

.landing-modern .td-timeline {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--td-border);
  background: var(--td-panel);
}

.landing-modern .td-timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--td-muted);
  font-size: 10px;
}

.landing-modern .td-wave {
  position: relative;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--td-border);
  border-radius: 3px;
  background: var(--td-bg);
}

.landing-modern .td-wave img {
  width: 100%;
  height: 100%;
  opacity: .62;
  object-fit: cover;
}

.landing-modern .td-wave input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  opacity: 0;
}

.landing-modern .td-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--accent);
  pointer-events: none;
}

.landing-modern .td-timeline-cues {
  position: relative;
  height: 24px;
  margin-top: 6px;
}

.landing-modern .td-timeline-cues button {
  position: absolute;
  top: 0;
  height: 22px;
  min-width: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--td-border);
  border-radius: 2px;
  color: var(--td-muted);
  background: var(--td-panel-raised);
  font-size: 9px;
}

.landing-modern .td-timeline-cues button.is-active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.landing-modern .td-demo-note {
  margin: 12px 0 0;
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1200px) {
  .landing-modern .td-result-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .landing-modern .td-settings {
    grid-column: 1 / -1;
    border-top: 1px solid var(--td-border);
    border-left: 0;
  }

  .landing-modern .td-settings-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .landing-modern .td-prompt {
    min-height: 500px;
    padding: 34px 14px;
  }

  .landing-modern .td-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-modern .td-composer-footer .td-primary {
    width: 100%;
  }

  .landing-modern .td-result-header {
    flex-wrap: wrap;
  }

  .landing-modern .td-result-title {
    min-width: 150px;
  }

  .landing-modern .td-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-modern .td-preview {
    order: 1;
    padding: 14px;
  }

  .landing-modern .td-subtitles {
    order: 2;
    border-top: 1px solid var(--td-border);
    border-right: 0;
  }

  .landing-modern .td-cue-list {
    height: 250px;
  }

  .landing-modern .td-settings {
    order: 3;
  }

  .landing-modern .td-settings-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-modern .td-secondary {
    padding-inline: 10px;
  }
}

@media (max-width: 480px) {
  .landing-modern .td-result-header .td-save-state {
    display: none;
  }

  .landing-modern .td-result-header .td-secondary {
    font-size: 11px;
  }

  .landing-modern .td-source-ready {
    display: none;
  }
}
