/* ─── Reset & Root ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:    #a855f7;
  --purple-d:  #7c3aed;
  --cyan:      #06b6d4;
  --cyan-d:    #0891b2;
  --pink:      #ec4899;
  --gold:      #f59e0b;
  --green:     #10b981;
  --red:       #ef4444;

  --bg:        #060612;
  --bg-1:      #0d0d1e;
  --bg-2:      #12122a;
  --glass:     rgba(255,255,255,0.04);
  --glass-b:   rgba(255,255,255,0.08);
  --glass-h:   rgba(255,255,255,0.10);
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(168,85,247,0.4);

  --text:      #f1f5f9;
  --text-2:    #94a3b8;
  --text-3:    #64748b;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow:    0 25px 60px rgba(0,0,0,0.5);
  --shadow-g:  0 0 60px rgba(168,85,247,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Animated Background Orbs ─────────────────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite ease-in-out;
  opacity: 0.35;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -14s;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  bottom: -100px; right: 20%;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(30px, -40px) scale(1.05); }
  50%       { transform: translate(-20px, 30px) scale(0.95); }
  75%       { transform: translate(40px, 20px) scale(1.02); }
}

/* ─── Particles ─────────────────────────────────────────────────────────── */
.particles-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.header {
  position: relative; z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(6,6,18,0.6);
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon svg {
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 12px rgba(168,85,247,0.5));
}

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo-tagline {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Main Layout ───────────────────────────────────────────────────────── */
.main {
  position: relative; z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; gap: 32px; }

.hero-text { text-align: center; }

.hero-title {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer-text 4s linear infinite;
}

@keyframes shimmer-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ─── Glass Card ────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow), var(--shadow-g);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow), 0 0 80px rgba(168,85,247,0.2);
}

/* ─── Input Card ────────────────────────────────────────────────────────── */
.input-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.input-wrapper:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15), 0 0 20px rgba(168,85,247,0.1);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  color: var(--text-3);
}
.input-icon svg { width: 18px; height: 18px; }

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  padding: 16px 0;
  caret-color: var(--purple);
}

.url-input::placeholder { color: var(--text-3); }

.paste-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.paste-btn:hover { color: var(--purple); background: rgba(168,85,247,0.1); }
.paste-btn svg { width: 16px; height: 16px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--purple-d), var(--purple), var(--cyan-d));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 32px rgba(168,85,247,0.4);
  letter-spacing: 0.3px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.6);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer-btn 3s infinite;
}

@keyframes shimmer-btn {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.fetch-btn { width: 100%; }

/* ─── Platform Chips ────────────────────────────────────────────────────── */
.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-2);
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { transform: translateY(-2px); color: white; }

.chip-yt:hover { border-color: #ff0000; background: rgba(255,0,0,0.12); box-shadow: 0 4px 20px rgba(255,0,0,0.2); color: #ff6b6b; }
.chip-ig:hover { border-color: #e1306c; background: rgba(225,48,108,0.12); box-shadow: 0 4px 20px rgba(225,48,108,0.2); color: #f768a1; }
.chip-fb:hover { border-color: #1877f2; background: rgba(24,119,242,0.12); box-shadow: 0 4px 20px rgba(24,119,242,0.2); color: #60a5fa; }
.chip-tt:hover { border-color: #fe2c55; background: rgba(254,44,85,0.12); box-shadow: 0 4px 20px rgba(254,44,85,0.2); color: #fb7185; }
.chip-li:hover { border-color: #0a66c2; background: rgba(10,102,194,0.12); box-shadow: 0 4px 20px rgba(10,102,194,0.2); color: #7dd3fc; }
.chip-tw:hover { border-color: #1da1f2; background: rgba(29,161,242,0.12); box-shadow: 0 4px 20px rgba(29,161,242,0.2); color: #7dd3fc; }
.chip-vi:hover { border-color: #1ab7ea; background: rgba(26,183,234,0.12); box-shadow: 0 4px 20px rgba(26,183,234,0.2); color: #67e8f9; }
.chip-more:hover { border-color: var(--purple); background: rgba(168,85,247,0.12); box-shadow: 0 4px 20px rgba(168,85,247,0.2); color: #c084fc; }

/* ─── Video Panel ───────────────────────────────────────────────────────── */
.video-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-b);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.back-btn:hover { color: var(--text); background: var(--glass-h); border-color: var(--border-h); }
.back-btn svg { width: 16px; height: 16px; }

.platform-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--purple);
  color: var(--purple);
  background: rgba(168,85,247,0.1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.video-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  flex-shrink: 0;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.thumbnail-wrapper:hover .thumbnail { transform: scale(1.05); }

.thumbnail-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.thumbnail-overlay svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.thumbnail-wrapper:hover .thumbnail-overlay { opacity: 1; }

.duration-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.video-meta { display: flex; flex-direction: column; gap: 12px; }

.video-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Format Grid ───────────────────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-title svg { width: 16px; height: 16px; color: var(--gold); }

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.format-card {
  position: relative;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  color: var(--text-2);
}

.format-card:hover {
  border-color: var(--purple);
  background: rgba(168,85,247,0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.format-card.selected {
  border-color: var(--purple);
  background: rgba(168,85,247,0.15);
  color: var(--text);
  box-shadow: 0 0 20px rgba(168,85,247,0.2);
}

.format-card.selected::before {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 12px;
  color: var(--purple);
  font-weight: 800;
}

.format-label {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.format-detail {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}

.format-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}

.badge-video { background: rgba(168,85,247,0.2); color: var(--purple); }
.badge-audio { background: rgba(6,182,212,0.2); color: var(--cyan); }

/* ─── Download Button ───────────────────────────────────────────────────── */
.download-btn {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  border-radius: var(--radius);
}

/* ─── Downloads Section ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header svg { width: 18px; height: 18px; color: var(--cyan); }

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

.download-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slide-up 0.3s ease;
  backdrop-filter: blur(16px);
}

.download-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.download-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.download-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
}

.status-downloading { background: rgba(168,85,247,0.2); color: var(--purple); }
.status-complete    { background: rgba(16,185,129,0.2); color: var(--green); }
.status-error       { background: rgba(239,68,68,0.2); color: var(--red); }
.status-cancelled   { background: rgba(100,116,139,0.2); color: var(--text-3); }
.status-starting    { background: rgba(245,158,11,0.2); color: var(--gold); }

.progress-bar-wrapper {
  background: rgba(0,0,0,0.3);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

.progress-bar.complete { background: linear-gradient(90deg, var(--green), #34d399); }
.progress-bar.complete::after { display: none; }

.download-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.cancel-btn:hover { border-color: var(--red); color: var(--red); }

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 8px rgba(16,185,129,0.35);
}
.save-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 14px rgba(16,185,129,0.55);
  transform: translateY(-1px);
}


.done-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ─── Stats Bar ─────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Loading Overlay ───────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,6,18,0.8);
  backdrop-filter: blur(12px);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.loading-card {
  padding: 48px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner-ring {
  width: 64px; height: 64px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.loading-sub {
  font-size: 13px;
  color: var(--text-3);
}

/* ─── Toast Notifications ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
  box-shadow: var(--shadow);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-success { background: rgba(16,185,129,0.15); border-color: var(--green); color: #34d399; }
.toast-error   { background: rgba(239,68,68,0.15); border-color: var(--red); color: #f87171; }
.toast-info    { background: rgba(168,85,247,0.15); border-color: var(--purple); color: #c084fc; }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg  { flex: 1; }

/* ─── AI Insights ───────────────────────────────────────────────────────── */
.ai-insights {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.ai-insights::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ai-header svg { width: 18px; height: 18px; }
.ai-header h4 {
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.ai-summary {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header { padding: 16px 20px; }
  .logo-name { font-size: 17px; }
  .header-badge span:last-child { display: none; }

  .main { padding: 32px 16px 80px; gap: 24px; }

  .video-info { grid-template-columns: 1fr; }
  .thumbnail-wrapper { aspect-ratio: 16/9; max-width: 100%; }

  .format-grid { grid-template-columns: 1fr 1fr; }

  .stats-bar { gap: 20px; }
  .stat-number { font-size: 28px; }

  .input-card { padding: 18px; }
}
