/* Subtitle Time Shifter & Sync Tool — ValSolution */
.sts-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.sts-hero {
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 55%, #0f3d3e 100%);
  color: #f8fafc;
  border-radius: 18px;
  padding: 28px 28px 24px;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.sts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
  margin-bottom: 10px;
}
.sts-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.22;
  color: #ffffff;
}
.sts-hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  max-width: 790px;
  line-height: 1.55;
}

.sts-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sts-input-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  align-items: stretch;
}
.sts-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.sts-dropzone.dragover {
  border-color: #4f46e5;
  background: #eef2ff;
}
.sts-drop-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.sts-drop-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 14px;
}
.sts-paste-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sts-paste-box textarea {
  width: 100%;
  min-height: 138px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  resize: vertical;
  color: #0f172a;
}

.sts-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sts-btn:hover:not(:disabled) { background: #f1f5f9; border-color: #94a3b8; }
.sts-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sts-btn-primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}
.sts-btn-primary:hover:not(:disabled) { background: #4338ca; border-color: #4338ca; }
.sts-btn-dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.sts-btn-dark:hover:not(:disabled) { background: #1e293b; border-color: #1e293b; }
.sts-btn-sm {
  padding: 6px 10px;
  font-size: 0.79rem;
  border-radius: 8px;
}

.sts-status {
  margin-top: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  display: none;
}
.sts-status.show { display: block; }
.sts-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sts-status.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sts-status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.sts-workspace[hidden] { display: none; }

.sts-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.sts-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}
.sts-stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 4px;
}
.sts-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}
.sts-stat-val.indigo { color: #4f46e5; }
.sts-stat-val.teal { color: #0d9488; }

.sts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.sts-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.sts-tab.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.sts-panel[hidden] { display: none; }
.sts-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.sts-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.sts-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}
.sts-field input,
.sts-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #0f172a;
}

.sts-nudges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sts-options-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.sts-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
}
.sts-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.sts-range-inputs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: #334155;
  font-weight: 600;
}
.sts-range-inputs input {
  width: 72px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.83rem;
}

.sts-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sts-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sts-search {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.86rem;
  min-width: 240px;
}

.sts-table-wrap {
  max-height: 400px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.sts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.sts-table th,
.sts-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.sts-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  z-index: 1;
}
.sts-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.79rem;
  white-space: nowrap;
}
.sts-shifted {
  color: #0f766e;
  font-weight: 700;
}
.sts-cue-text {
  width: 100%;
  min-width: 220px;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  color: #0f172a;
  padding: 4px 6px;
  border-radius: 6px;
  resize: vertical;
}
.sts-cue-text:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
}

/* SEO Sections */
.sts-seo {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.sts-seo h2 { margin: 0 0 10px; font-size: 1.24rem; color: #0f172a; }
.sts-seo p, .sts-seo li { color: #334155; line-height: 1.65; font-size: 0.94rem; }
.sts-benefits-grid,
.sts-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.sts-benefit,
.sts-related-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.sts-benefit h3 { margin: 0 0 6px; font-size: 0.95rem; color: #0f172a; }
.sts-benefit p { margin: 0; font-size: 0.86rem; }
.sts-related-card {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sts-related-card:hover { border-color: #4f46e5; transform: translateY(-2px); }
.sts-related-card strong { display: block; color: #0f172a; margin-bottom: 4px; font-size: 0.94rem; }
.sts-related-card span { display: block; color: #64748b; font-size: 0.83rem; line-height: 1.45; }
.sts-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #f8fafc;
}
.sts-faq summary { font-weight: 700; color: #0f172a; cursor: pointer; font-size: 0.93rem; }
.sts-faq details p { margin: 8px 0 0; font-size: 0.89rem; }

@media (max-width: 900px) {
  .sts-input-grid,
  .sts-form-row,
  .sts-benefits-grid,
  .sts-related-grid {
    grid-template-columns: 1fr;
  }
  .sts-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sts-stats { grid-template-columns: 1fr; }
  .sts-hero { padding: 22px 18px; }
}
