:root {
  --bg-main: #070b14;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-solid: #0f172a;
  --bg-elevated: rgba(30, 41, 59, 0.72);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-focus: rgba(56, 189, 248, 0.55);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-indigo: #6366f1;
  --accent-sky: #0ea5e9;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-lg: 0 22px 50px -12px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 72px;
  overflow-x: hidden;
  position: relative;
}

.bg-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(135px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.bg-glow-2 {
  top: 220px;
  right: -160px;
  background: radial-gradient(circle, #0ea5e9 0%, #10b981 70%);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: rgba(99, 102, 241, 0.14);
  color: #7dd3fc;
  padding: 2px 6px;
  border-radius: 5px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-sky), var(--accent-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name small {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.brand-accent {
  background: linear-gradient(90deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-pill:hover,
.nav-pill.active {
  color: #fff;
  border-color: var(--accent-sky);
  background: rgba(14, 165, 233, 0.18);
}

.nav-pill-highlight {
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Ad Containers (CLS-Safe) */
.ad-container {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.68);
  border: 1px dashed rgba(148, 163, 184, 0.24);
  padding: 12px 16px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-leaderboard {
  min-height: 92px;
}

.ad-mid-banner {
  min-height: 96px;
  margin: 28px 0;
}

.ad-in-studio {
  min-height: 105px;
  margin-top: 14px;
  margin-bottom: 0;
  background: rgba(15, 23, 42, 0.9);
}

.ad-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.8);
  padding: 1px 6px;
  border-radius: 4px;
}

.ad-slot-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-promo,
.ad-placeholder-box {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.ad-promo-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.14);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
}

/* Hero Section */
.hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.hero-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.hero-header h1 {
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

/* Search Input Bar */
.search-form {
  max-width: 920px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 11, 20, 0.9);
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 8px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.detected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.detected-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
}

#videoUrlInput {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  padding: 10px 6px;
}

#videoUrlInput::placeholder {
  color: #64748b;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.9);
}

.btn-icon {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-muted);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-icon:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.25);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -6px rgba(14, 165, 233, 0.55);
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.input-helper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.supported-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.helper-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plat-chip {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.plat-chip:hover {
  color: #fff;
  border-color: var(--accent-sky);
}

.auto-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auto-preview-toggle input {
  accent-color: var(--accent-sky);
  width: 15px;
  height: 15px;
}

/* Alert Box */
.alert-box {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.alert-close {
  background: transparent;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  font-size: 1rem;
}

/* Studio Section */
.studio-section {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.preview-header {
  margin-bottom: 12px;
}

.video-meta-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.plat-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
}

.duration-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(30, 41, 59, 0.9);
  color: #7dd3fc;
}

.studio-video-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}

.studio-video-uploader {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

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

.player-loading-overlay,
.player-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.78);
  padding: 20px;
  text-align: center;
  z-index: 5;
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  z-index: -1;
}

.btn-load-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 12px 25px -5px rgba(16, 185, 129, 0.5);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Timeline Controls */
.timeline-controls {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.timeline-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-time-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
}

.timeline-quick-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-chip {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-chip:hover {
  color: #fff;
  border-color: var(--accent-sky);
}

.btn-chip-accent {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.dual-range-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.dual-range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(51, 65, 85, 0.8);
  border-radius: 99px;
}

.dual-range-fill {
  position: absolute;
  height: 6px;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  border-radius: 99px;
  left: 0%;
  width: 100%;
}

.dual-range-wrap input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: none;
  height: 6px;
}

.dual-range-wrap input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #fff;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Right Column Controls */
.control-block {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.label-hint {
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 600;
}

.control-select {
  width: 100%;
  background: #0f172a;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}

.control-select:focus {
  border-color: var(--accent-sky);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.mode-tab small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mode-tab.active {
  border-color: var(--accent-sky);
  background: rgba(14, 165, 233, 0.14);
}

.mode-icon {
  font-size: 1.3rem;
}

.segment-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.time-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.time-field label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

.mono-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  padding: 9px 11px;
  color: #38bdf8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
}

.segment-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preset-caption {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.preset-btn {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 0.74rem;
  cursor: pointer;
}

.preset-btn:hover {
  color: #fff;
  border-color: var(--accent-sky);
}

.segment-summary {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #6ee7b7;
}

.btn-download-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981, #0ea5e9, #6366f1);
  color: #fff;
  border: none;
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 1.04rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.5);
  transition: transform 0.15s ease;
}

.btn-download-cta:hover {
  transform: translateY(-2px);
}

/* Downloads Queue & Ready MP4 Cards */
.downloads-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 26px;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-bar h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.jobs-counter {
  font-size: 0.8rem;
  background: rgba(30, 41, 59, 0.8);
  padding: 4px 12px;
  border-radius: 99px;
  color: var(--text-secondary);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
}

.job-thumb {
  width: 96px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #1e293b;
}

.job-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-phase {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  transition: width 0.25s ease;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save-mp4 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 18px -4px rgba(16, 185, 129, 0.5);
}

/* SEO & AI Content Sections */
.seo-section {
  margin: 42px 0;
}

.seo-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 26px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 6px;
}

.seo-section-header h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.seo-section-header p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platform-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.platform-seo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-seo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.plat-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.plat-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.plat-tw-bg { background: #1da1f2; }
.plat-fb-bg { background: #1877f2; }
.plat-ig-bg { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.plat-tt-bg { background: #0f172a; border: 1px solid #00f2fe; color: #00f2fe; }
.plat-yt-bg { background: #ff0033; }
.plat-bsky-bg { background: #0085ff; }
.plat-twitch-bg { background: #9146ff; }
.plat-threads-bg { background: #0f172a; border: 1px solid #94a3b8; color: #f8fafc; }
.plat-pinterest-bg { background: #e60023; }
.plat-vimeo-bg { background: #1ab7ea; }
.plat-dm-bg { background: #0066dc; }
.plat-web-bg { background: #10b981; }

.plat-card-top h3 {
  font-size: 1.02rem;
}

.plat-card-top h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.plat-card-top h3 a:hover {
  color: #38bdf8;
}

.platform-seo-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.seo-table th,
.seo-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-table th {
  background: rgba(30, 41, 59, 0.7);
  color: #38bdf8;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-item p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-item a {
  color: #38bdf8;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-desc {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 6px 18px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sticky Bottom Ad Bar */
.sticky-ad-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(56, 189, 248, 0.35);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.sticky-ad-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-badge-inline {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.sticky-ad-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .studio-grid,
  .steps-grid,
  .platform-seo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-wrap: wrap;
  }

  #videoUrlInput {
    width: 100%;
    order: -1;
  }

  .btn-primary {
    flex: 1;
    justify-content: center;
  }

  .job-card {
    grid-template-columns: 1fr;
  }
}
