@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

/* ==============================================================
   Tasteskill Anti-Slop Design System: An Nhu Spa Media Downloader
   Dials: VARIANCE: 6 / MOTION: 6 / DENSITY: 4
   Theme: Cohesive Light Luxury Studio (Zero clashing, WCAG AA verified)
   ============================================================== */

:root {
  --bg-main: #f6f7f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #fafbfc;
  --bg-subtle: #f1f4f8;
  --bg-input: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #1873e8;
  --border-card: #e2e8f0;

  --gold: #b88e4c;
  --gold-dark: #8f6a33;
  --gold-soft: rgba(184, 142, 76, 0.09);
  --gold-border: rgba(184, 142, 76, 0.25);

  --btn-green: #35b52e;
  --btn-green-hover: #2ea44f;
  --btn-blue: #1873e8;
  --btn-blue-hover: #1364ce;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 16px 36px -8px rgba(15, 23, 42, 0.12);

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.12s ease-out;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #d4af37, #967027);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 2px 8px rgba(184, 142, 76, 0.3);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-text span {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 600;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  flex: 1;
}

/* Hero Section (Focal, disciplined: max 2 lines, < 20 words) */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(25px, 3.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(13px, 1.8vw, 14.5px);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Input Card (Omnibox style with tactile buttons) */
.input-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
  transition: var(--transition);
}

.input-card:focus-within {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.09);
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.url-input {
  width: 100%;
  height: 50px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 42px 0 44px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.url-input:focus {
  border-color: var(--btn-blue);
  box-shadow: 0 0 0 3px rgba(24, 115, 232, 0.12);
}

.url-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.platform-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  pointer-events: none;
  transition: var(--transition);
}

.clear-btn {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 13px;
  transition: var(--transition-fast);
}

.clear-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-paste {
  height: 50px;
  padding: 0 16px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-paste:hover {
  background: #edf2f7;
  color: var(--text-primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-paste:active {
  transform: scale(0.98);
}

.btn-analyze {
  height: 50px;
  padding: 0 24px;
  background: #0f172a;
  border: 0;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 650;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.btn-analyze:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.btn-analyze:active {
  transform: scale(0.98);
}

.btn-analyze:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Platforms strip */
.platforms-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.platforms-list {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-weight: 500;
}

.platform-badge svg {
  width: 13px;
  height: 13px;
}

.vps-ready-badge {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Skeleton Loading (Tasteskill Section 4.5: real shape instead of generic spinner) */
.loading-skeleton {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
}

.loading-skeleton.show {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.skeleton-header {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.skeleton-thumb {
  width: 160px;
  height: 95px;
  border-radius: var(--radius-md);
  background: #e2e8f0;
  flex-shrink: 0;
}

.skeleton-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skeleton-line {
  background: #e2e8f0;
  border-radius: 4px;
}

.skeleton-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.skeleton-row {
  height: 56px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
}

.skeleton-status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  justify-content: center;
  padding-top: 8px;
}

.shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Result Section */
.result-card {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  animation: slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card.show {
  display: block;
}

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

.media-preview-header {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.thumbnail-container {
  position: relative;
  width: 220px;
  height: 126px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

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

.thumbnail-container:hover .thumbnail-img {
  transform: scale(1.03);
}

.duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.platform-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.media-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.media-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.uploader-name {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==============================================================
   Formats Table (Exact match to demo screenshot, elevated)
   ============================================================== */
.formats {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.formats-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  letter-spacing: 0.01em;
}

.format-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 140px minmax(130px, 1fr) 65px 65px 200px;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.15s ease;
}

.format-row:hover {
  background: #f8fafc;
}

.format-row:last-child {
  border-bottom: 0;
}

/* Quality Badges */
.format-quality {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: #eaf3ff;
  color: #1670df;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.format-quality svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Gray badge for SD / 360P / 540P */
.format-quality.sd {
  background: #e9eaec;
  color: #34383c;
}

/* Light green badge for Audio MP3 */
.format-quality.audio {
  background: #e7f5ec;
  color: #2cae3d;
}

/* Solid Blue badge for 1080P */
.format-quality.best {
  background: #1873e8;
  color: #ffffff;
}

.format-description {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.format-size, .format-ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Download buttons (Strict CTA Wrap Ban: 1 line at desktop) */
.download-format {
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--btn-green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 650;
  padding: 0 16px;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(53, 181, 46, 0.2);
}

.download-format:hover {
  background: var(--btn-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 181, 46, 0.28);
}

.download-format:active {
  transform: scale(0.98);
}

.download-format.render {
  background: var(--btn-blue);
  box-shadow: 0 2px 6px rgba(24, 115, 232, 0.2);
}

.download-format.render:hover {
  background: var(--btn-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 115, 232, 0.28);
}

.download-format.render:active {
  transform: scale(0.98);
}

.download-format.processing {
  background: #94a3b8 !important;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

/* History Section */
.history-section {
  margin-top: 16px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.history-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-header span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-clear-history {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.btn-clear-history:hover {
  color: #ef4444;
  background: #fef2f2;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.history-item:hover {
  background: var(--bg-surface-hover);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.history-thumb {
  width: 62px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #0f172a;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.history-details {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.history-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-actions {
  display: flex;
  gap: 6px;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
}

.btn-icon-action:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.btn-icon-action:active {
  transform: scale(0.95);
}

.empty-history {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #0f172a;
  color: #ffffff;
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #991b1b;
  color: #ffffff;
}

.toast.success {
  background: #14532d;
  color: #ffffff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
}

.footer span {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ==============================================================
   Main Mode Switcher Tabs
   ============================================================== */
.main-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: #cbd5e1;
  background: var(--bg-surface-hover);
}

.tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.tab-btn:active {
  transform: scale(0.98);
}

.tab-badge-new {
  font-size: 10px;
  background: #ef4444;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

/* ==============================================================
   Facebook Private Video Studio Architecture
   ============================================================== */
.private-hero {
  margin-bottom: 20px;
}

/* 3-Step Guided Ribbon */
.private-ribbon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1.5px solid rgba(184, 142, 76, 0.22);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ribbon-step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ribbon-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  font-weight: 800;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.ribbon-step:nth-child(5) .ribbon-step-badge {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #ffffff;
}

.ribbon-step-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ribbon-step-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ribbon-step-info span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ribbon-step-info code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(15, 23, 42, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--text-primary);
  font-size: 10.5px;
}

.ribbon-connector {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  flex-shrink: 0;
}

/* Master Studio Card (Double-Bezel Hardware Enclosure) */
.master-studio-card {
  background: #fbf9f5;
  border: 1.5px solid rgba(184, 142, 76, 0.24);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(184, 142, 76, 0.06);
  margin-bottom: 24px;
  display: grid;
  gap: 14px;
}

.studio-subcard {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.subcard-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-badge-pill {
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}

.step-badge-pill.gold {
  background: rgba(184, 142, 76, 0.14);
  color: var(--gold-dark);
}

.subcard-title-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.subcard-caption {
  font-size: 12px;
  color: var(--text-dim);
}

/* Launcher Input Row */
.launcher-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.launcher-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 42px;
  transition: all 0.2s ease;
}

.launcher-input-wrap:focus-within {
  border-color: #1877f2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12);
}

.launcher-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.launcher-url-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
}

.launcher-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-studio-action {
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.btn-studio-action.primary {
  background: linear-gradient(135deg, #1877f2, #0d5cc7);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
}

.btn-studio-action.primary:hover {
  background: linear-gradient(135deg, #166fe5, #0b4eb0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.32);
}

.btn-studio-action.secondary {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-studio-action.secondary:hover {
  background: var(--bg-surface-hover);
  border-color: #cbd5e1;
  color: var(--text-primary);
}

.btn-studio-action:active {
  transform: scale(0.98);
}

.launcher-note-strip {
  margin-top: 12px;
  background: #fffbf0;
  border: 1px solid #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #78350f;
  line-height: 1.45;
}

.launcher-note-strip strong {
  color: #451a03;
}

.launcher-note-strip code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  color: #92400e;
  font-size: 11px;
}

/* Source Subcard */
.char-count-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 9px;
  border-radius: 9999px;
  font-weight: 500;
}

.source-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-source-tool {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-source-tool.action-paste {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-source-tool.action-paste:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.btn-source-tool.action-clear {
  background: #ffffff;
  color: #64748b;
  border: 1px solid var(--border);
}

.btn-source-tool.action-clear:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-source-tool:active {
  transform: scale(0.97);
}

.textarea-container {
  margin: 4px 0 14px 0;
}

.fb-source-textarea-luxury {
  width: 100%;
  height: 150px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #0f172a;
  background: #fbfbfd;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.fb-source-textarea-luxury:focus {
  outline: none;
  border-color: #1877f2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Submit Bar */
.studio-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.security-assurance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.security-assurance svg {
  color: #10b981;
}

.btn-extract-luxury {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px 0 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1877f2 0%, #0d5cc7 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.btn-icon-bezel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-extract-luxury:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.38);
}

.btn-extract-luxury:active {
  transform: scale(0.98);
}

.btn-extract-luxury:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Diagnostic Troubleshooting Card */
.fb-diagnostic-card {
  margin-top: 18px;
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diag-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.diag-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.diag-title-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 4px;
}

.diag-title-group p {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.45;
}

.diag-steps {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #fef3c7;
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.diag-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #451a03;
  line-height: 1.45;
}

.diag-step-num {
  width: 18px;
  height: 18px;
  background: #f59e0b;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.diag-step-item strong {
  color: #0f172a;
}

.diag-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-diag-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid #d97706;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-diag-retry:hover {
  background: #fef3c7;
}

.btn-diag-retry:active {
  transform: scale(0.98);
}

.btn-diag-reopen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  background: #d97706;
  border: 1px solid #b45309;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-diag-reopen:hover {
  background: #b45309;
}

.btn-diag-reopen:active {
  transform: scale(0.98);
}

/* Private Facebook Result Card */
.private-result-header {
  margin-bottom: 16px;
}

.private-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--btn-green);
  background: rgba(53, 181, 46, 0.08);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.private-result-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.private-player-container {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000000;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.private-player-container video {
  width: 100%;
  max-height: 420px;
  outline: none;
}

/* ==============================================================
   Playlist & Channel View Styles (Option A)
   ============================================================== */
.playlist-hint-banner {
  margin-top: 12px;
  background: rgba(24, 115, 232, 0.06);
  border: 1px solid rgba(24, 115, 232, 0.22);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.playlist-hint-banner .hint-icon {
  font-size: 15px;
}

.btn-hint-playlist {
  background: var(--btn-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-left: auto;
}

.btn-hint-playlist:hover {
  background: var(--btn-blue-hover);
}

.btn-hint-playlist:active {
  transform: scale(0.97);
}

/* Playlist Header */
.playlist-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.playlist-thumb-box {
  width: 140px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #cbd5e1;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.playlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-badge-count {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}

.playlist-type-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.playlist-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.playlist-meta strong {
  color: var(--text-primary);
}

/* Playlist Batch Bar */
.playlist-batch-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}

.custom-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--btn-blue);
  cursor: pointer;
}

.batch-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-batch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #ffffff;
  transition: var(--transition-fast);
}

.btn-batch-mp4 {
  background: var(--btn-green);
  box-shadow: 0 2px 8px rgba(53, 181, 46, 0.28);
}

.btn-batch-mp4:hover {
  background: var(--btn-green-hover);
}

.btn-batch-mp3 {
  background: var(--btn-blue);
  box-shadow: 0 2px 8px rgba(24, 115, 232, 0.28);
}

.btn-batch-mp3:hover {
  background: var(--btn-blue-hover);
}

.btn-batch:active {
  transform: scale(0.98);
}

.btn-batch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Batch Progress Box */
.batch-progress-box {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  animation: fadeIn 0.2s ease-out;
}

.batch-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.batch-progress-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-dot.pulsing {
  background: var(--btn-blue);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.btn-cancel-batch {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cancel-batch:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--btn-green), #10b981);
  transition: width 0.35s ease;
}

/* Playlist Items Container */
.playlist-items-container {
  background: #ffffff;
}

.playlist-items-head {
  display: grid;
  grid-template-columns: 44px 36px 96px 1fr 180px;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.playlist-items-body {
  max-height: 480px;
  overflow-y: auto;
}

.playlist-item-row {
  display: grid;
  grid-template-columns: 44px 36px 96px 1fr 180px;
  padding: 10px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s ease;
}

.playlist-item-row:last-child {
  border-bottom: none;
}

.playlist-item-row:hover {
  background: var(--bg-surface-hover);
}

.playlist-item-row.is-downloading {
  background: rgba(24, 115, 232, 0.05);
}

.playlist-item-row.is-completed {
  background: rgba(53, 181, 46, 0.05);
}

.col-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--btn-blue);
  cursor: pointer;
}

.col-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.item-thumb-box {
  width: 82px;
  height: 48px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background: #cbd5e1;
}

.item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-duration-badge {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
}

.item-title-box {
  padding-right: 16px;
  min-width: 0;
}

.item-title-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.12s ease;
}

.item-title-link:hover {
  color: var(--btn-blue);
}

.item-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
}

.item-status-pill.completed {
  color: var(--btn-green);
  font-weight: 600;
}

.item-status-pill.downloading {
  color: var(--btn-blue);
  font-weight: 600;
}

.col-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-item-dl {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-item-mp4 {
  background: var(--btn-green);
}

.btn-item-mp4:hover {
  background: var(--btn-green-hover);
}

.btn-item-mp3 {
  background: var(--btn-blue);
}

.btn-item-mp3:hover {
  background: var(--btn-blue-hover);
}

.btn-item-dl:active {
  transform: scale(0.96);
}

.btn-item-dl:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 740px) {
  .header {
    padding: 10px 16px;
  }
  .container {
    padding: 20px 14px 60px;
  }
  .input-card {
    padding: 16px;
  }
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-paste {
    display: none;
  }
  .btn-analyze {
    width: 100%;
    justify-content: center;
  }
  .media-preview-header {
    flex-direction: column;
    gap: 14px;
  }
  .thumbnail-container {
    width: 100%;
    height: 180px;
  }
  .format-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 14px;
  }
  .format-quality {
    justify-self: start;
  }
  .format-description {
    grid-column: 1;
    font-size: 12.5px;
  }
  .format-size, .format-ext {
    display: none;
  }
  .download-format {
    grid-column: 2;
    grid-row: 1 / 3;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
  .platforms-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Playlist Mobile Responsiveness */
  .playlist-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .playlist-thumb-box {
    width: 100%;
    height: 160px;
  }
  .playlist-batch-bar {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .batch-action-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-batch {
    width: 100%;
    justify-content: center;
  }
  .playlist-items-head {
    display: none;
  }
  .playlist-item-row {
    grid-template-columns: 28px 68px 1fr;
    grid-template-areas:
      "check thumb title"
      "actions actions actions";
    gap: 10px;
    padding: 12px 14px;
  }
  .col-check {
    grid-area: check;
  }
  .col-idx {
    display: none;
  }
  .item-thumb-box {
    grid-area: thumb;
    width: 68px;
    height: 40px;
  }
  .item-title-box {
    grid-area: title;
    padding-right: 0;
  }
  .col-actions {
    grid-area: actions;
    width: 100%;
  }
  .btn-item-dl {
    flex: 1;
    justify-content: center;
  }

  /* Main Tabs & Private Mode Mobile */
  .main-tabs {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
    height: 40px;
  }
  .private-ribbon-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .ribbon-step {
    width: 100%;
  }
  .ribbon-connector {
    display: none;
  }
  .launcher-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .launcher-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-studio-action {
    width: 100%;
    justify-content: center;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .studio-submit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-extract-luxury {
    width: 100%;
    justify-content: center;
  }
/* -------------------------------------------------------------
   Batch Downloader & Multi-Platform Badges
   ------------------------------------------------------------- */
.hero.batch-hero .hero-pill {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.08);
  color: #0284c7;
}

.item-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
  flex-shrink: 0;
}

.item-platform-badge.tiktok {
  background: rgba(0, 242, 254, 0.12);
  color: #00b4d8;
  border: 1px solid rgba(0, 242, 254, 0.28);
}

.item-platform-badge.facebook {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.28);
}

.item-platform-badge.youtube {
  background: rgba(255, 0, 51, 0.12);
  color: #e60023;
  border: 1px solid rgba(255, 0, 51, 0.28);
}

.item-platform-badge.threads {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.item-status-pill.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.playlist-item-row.is-error {
  opacity: 0.65;
  background: #fffafa;
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
