/* ============================================================
   Extractly — style.css  |  Monochrome / Clean
   ============================================================ */

:root {
  /* Monochrome grays */
  --bg:   #080808;
  --s1:   #0d0d0d;
  --s2:   #121212;
  --s3:   #181818;
  --s4:   #202020;
  --s5:   #2a2a2a;

  /* Borders */
  --b1: rgba(255,255,255,.05);
  --b2: rgba(255,255,255,.09);
  --b3: rgba(255,255,255,.14);
  --b4: rgba(255,255,255,.20);

  /* Text */
  --w1:  #f5f5f5;
  --w2:  #a0a0a0;
  --w3:  #606060;
  --w4:  #383838;

  /* Status accents (minimal color) */
  --grn: #34d399;
  --red: #f87171;
  --ylw: #fbbf24;
  --blu: #60a5fa;

  /* Radius */
  --r1:  6px;
  --r2:  10px;
  --r3:  14px;
  --r4:  20px;
  --rmax: 9999px;

  --shadow: 0 8px 40px rgba(0,0,0,.6);
  --ease:   cubic-bezier(.4,0,.2,1);
  --dur:    .18s;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: thin; scrollbar-color: var(--s4) var(--bg); }
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--s4); border-radius: var(--rmax); }

body {
  background: var(--bg);
  color: var(--w1);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.d-none  { display: none !important; }

/* ── Background ──────────────────────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%,   rgba(255,255,255,.015), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(255,255,255,.01),  transparent 50%);
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,8,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--b2);
}
.header-inner {
  max-width: 960px; margin: 0 auto;
  padding: .8rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}

.brand {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px;
  color: var(--w1); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.brand .dot { color: var(--w1); opacity: .4; }
.brand .tld { color: var(--w2); font-weight: 500; }

.header-nav { display: flex; gap: .1rem; margin-left: auto; }
.header-nav-link {
  color: var(--w3); font-size: .8rem; font-weight: 500;
  text-decoration: none; padding: .35rem .65rem; border-radius: var(--r1);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header-nav-link:hover    { color: var(--w1); background: var(--s3); }
.header-nav-link.is-active { color: var(--w1); background: var(--s4); }

.status-badge { display: flex; align-items: center; gap: 6px; margin-left: .4rem; flex-shrink: 0; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grn); box-shadow: 0 0 5px var(--grn);
  animation: pulse-g 2.5s infinite;
}
.status-label { font-size: .72rem; color: var(--w3); letter-spacing: .5px; }

@keyframes pulse-g {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
  50%     { box-shadow: 0 0 0 5px rgba(52,211,153,.2); }
}

/* ── Layout ──────────────────────────────────────────────────── */
.main-wrap {
  flex: 1; width: 100%; max-width: 680px;
  margin: 0 auto; padding: 2rem 1rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.docs-wrap { max-width: 920px; }

/* ── Card ────────────────────────────────────────────────────── */
.card-engine {
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: var(--r4);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-engine::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 1.8rem; }
.hero-title {
  font-size: 1.65rem; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: .4rem; line-height: 1.2;
}
.hero-sub { color: var(--w3); font-size: .85rem; margin-bottom: 1.2rem; }

.grad-text {
  background: linear-gradient(135deg, var(--w1) 0%, var(--w2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--rmax); padding: 4px 11px;
  font-size: .73rem; font-weight: 600;
  background: var(--s3); border: 1px solid var(--b2); color: var(--w2);
}
.pill i { font-size: .78rem; }
/* Subtle monochrome tints per pill */
.pill-teal   { border-color: rgba(52,211,153,.2);  color: var(--grn); background: rgba(52,211,153,.06);  }
.pill-gold   { border-color: rgba(251,191,36,.2);  color: var(--ylw); background: rgba(251,191,36,.06);  }
.pill-purple { border-color: rgba(255,255,255,.14); color: var(--w2);  background: var(--s3);             }
.pill-orange { border-color: rgba(248,113,113,.2);  color: var(--red); background: rgba(248,113,113,.06); }

/* ── Input ───────────────────────────────────────────────────── */
.input-zone { position: relative; margin-bottom: .9rem; }
.url-input {
  width: 100%; background: var(--s1);
  border: 1px solid var(--b2); border-radius: var(--r3);
  padding: .95rem 6rem .95rem 1.1rem;
  color: var(--w1); font-size: .92rem; font-family: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.url-input:focus {
  outline: none; border-color: var(--b4);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.url-input::placeholder { color: var(--w4); }
.url-input.textarea     { resize: vertical; min-height: 120px; padding-right: 1.1rem; }

.input-actions {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); display: flex; gap: 5px;
}
.icon-btn {
  width: 33px; height: 33px; border-radius: var(--r1);
  background: var(--s3); border: 1px solid var(--b2);
  color: var(--w3); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .82rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--w1); background: var(--s4); }
.clear-btn      { display: none; }
.clear-btn:hover { color: var(--red); }

/* ── Process button ──────────────────────────────────────────── */
.btn-process {
  width: 100%; padding: .95rem; border-radius: var(--r3); border: none;
  background: var(--w1);
  color: #080808; font-weight: 700; font-size: .9rem; letter-spacing: .3px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-process:hover    { opacity: .9; transform: translateY(-1px); }
.btn-process:active   { transform: translateY(0); }
.btn-process:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.spin {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.15); border-top-color: #080808;
  animation: spin .65s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade in ─────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up .3s var(--ease) both; }

/* ── Author ──────────────────────────────────────────────────── */
.author-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 11px 13px; margin-bottom: .9rem;
}
.author-row img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--b2); flex-shrink: 0; object-fit: cover;
}
.author-info   { overflow: hidden; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.author-name   { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-handle { color: var(--w3); font-size: .75rem; }
.author-region { font-size: .7rem; color: var(--w3); display: flex; align-items: center; gap: 4px; }
.author-region i { font-size: .65rem; }

.music-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 600; color: var(--w2);
  background: var(--s4); border: 1px solid var(--b2);
  border-radius: var(--rmax); padding: 3px 9px; flex-shrink: 0;
}

/* ── Caption ─────────────────────────────────────────────────── */
.caption {
  font-size: .82rem; color: var(--w2); line-height: 1.6;
  max-height: 76px; overflow-y: auto; margin-bottom: .9rem;
}

/* ── Hashtags ────────────────────────────────────────────────── */
.hashtag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: .9rem; }
.hashtag {
  font-size: .7rem; font-weight: 500; color: var(--w2);
  background: var(--s3); border: 1px solid var(--b2);
  border-radius: var(--rmax); padding: 2px 8px;
}

/* ── Music only ──────────────────────────────────────────────── */
.music-cover-wrap { margin-bottom: 1rem; display: flex; justify-content: center; }
.music-cover {
  width: 180px; height: 180px; border-radius: var(--r3);
  object-fit: cover; border: 1px solid var(--b2);
}
.music-cover-fallback {
  width: 180px; height: 180px; border-radius: var(--r3);
  background: var(--s3); border: 1px solid var(--b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--w3);
}

/* ── Media player ────────────────────────────────────────────── */
.media-player {
  border-radius: var(--r3); overflow: hidden;
  background: #000; border: 1px solid var(--b2); margin-bottom: .9rem;
}
.media-player video { display: block; width: 100%; max-height: 440px; }

/* ── Carousel ────────────────────────────────────────────────── */
.carousel-wrap { position: relative; margin-bottom: .9rem; }
.slide-counter {
  position: absolute; top: 9px; right: 9px; z-index: 10;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: var(--rmax);
  border: 1px solid rgba(255,255,255,.1);
}
.carousel-inner {
  border-radius: var(--r3); overflow: hidden;
  background: #000; height: 400px;
}
.carousel-item { height: 100%; }
.carousel-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-ctrls { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.carousel-ctrls button {
  width: 34px; height: 34px; border-radius: var(--r1);
  background: var(--s3); border: 1px solid var(--b2);
  color: var(--w3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--dur), background var(--dur); font-size: .82rem;
}
.carousel-ctrls button:hover { color: var(--w1); background: var(--s4); }

/* ── Download buttons ────────────────────────────────────────── */
.btn-stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: .4rem; }

.dl-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--s1); border: 1px solid var(--b2); border-left-width: 2px;
  border-radius: var(--r2); padding: .78rem .95rem;
  cursor: pointer; width: 100%; color: var(--w1); text-align: left;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dl-btn:hover { background: var(--s3); transform: translateX(2px); }
.dl-left  { display: flex; align-items: center; gap: 10px; }
.dl-left i { font-size: 1rem; }
.dl-text  { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.dl-label { font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl-sub   { font-size: .68rem; color: var(--w3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.dl-badge { font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: .3px; }
.dl-arrow { color: var(--w4); font-size: .9rem; flex-shrink: 0; }

/* Monochrome variants — differentiated by left border brightness */
.dl-hd   { border-left-color: var(--w1); }
.dl-hd   i { color: var(--w1); }
.dl-hd   .dl-badge { background: var(--s4); color: var(--w1); border: 1px solid var(--b3); }

.dl-nowm { border-left-color: var(--w2); }
.dl-nowm i { color: var(--w2); }
.dl-nowm .dl-badge { background: var(--s3); color: var(--w2); border: 1px solid var(--b2); }

.dl-audio { border-left-color: var(--w3); }
.dl-audio i { color: var(--w2); }
.dl-audio .dl-badge { background: var(--s3); color: var(--w3); border: 1px solid var(--b2); }

.dl-slide { border-left-color: var(--w2); }
.dl-slide i { color: var(--w2); }
.dl-slide .dl-badge { background: var(--s3); color: var(--w2); border: 1px solid var(--b2); }

.dl-wm   { border-left-color: var(--w4); }
.dl-wm   i { color: var(--w3); }
.dl-wm   .dl-badge { background: var(--s2); color: var(--w3); border: 1px solid var(--b1); }

/* ── Stats ───────────────────────────────────────────────────── */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--b1);
}
.stat-cell {
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 9px 5px; text-align: center;
  transition: background var(--dur);
}
.stat-cell:hover { background: var(--s3); }
.stat-cell i    { display: block; font-size: .9rem; margin-bottom: 3px; }
.stat-cell span { font-size: .7rem; color: var(--w3); font-weight: 600; }

/* ── Meta row ────────────────────────────────────────────────── */
.meta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: .7rem; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; color: var(--w3); font-weight: 500;
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--rmax); padding: 3px 9px;
}
.meta-pill i { font-size: .65rem; }

/* ── Skeleton ────────────────────────────────────────────────── */
.sk-card { padding: 2rem; }
@keyframes sk-shine {
  0%   { background-position: -500px 0; }
  100% { background-position:  500px 0; }
}
.sk {
  background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%);
  background-size: 500px 100%;
  animation: sk-shine 1.5s infinite linear;
  border-radius: var(--r1);
}
.sk-circle { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.sk-line   { height: 12px; }
.sk-block  { height: 200px; border-radius: var(--r3); margin-top: 12px; }
.sk-author { display: flex; gap: 12px; margin-bottom: 14px; }
.sk-lines  { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.mt-3      { margin-top: 12px; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-box {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10,10,10,.98); backdrop-filter: blur(12px);
  border: 1px solid var(--b2); padding: 11px 16px;
  border-radius: var(--r3); box-shadow: 0 12px 40px rgba(0,0,0,.7);
  z-index: 9999; display: flex; align-items: center; gap: 11px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  min-width: 260px; max-width: 85vw;
}
.toast-box.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-body  { display: flex; flex-direction: column; gap: 1px; }
.toast-title { font-size: .8rem; font-weight: 700; }
.toast-msg   { font-size: .76rem; color: var(--w3); }
.t-success   { color: var(--grn); }
.t-error     { color: var(--red); }
.t-warning   { color: var(--ylw); }
.t-info      { color: var(--w1); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: rgba(8,8,8,.98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--b1);
  padding: 2.2rem 1.2rem 1.6rem;
}
.footer-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-brand   { text-align: center; }
.footer-tagline { color: var(--w3); font-size: .76rem; margin-top: 3px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: .15rem; justify-content: center; }
.footer-nav-link {
  color: var(--w3); font-size: .8rem; text-decoration: none;
  padding: .3rem .6rem; border-radius: var(--r1);
  transition: color var(--dur), background var(--dur);
}
.footer-nav-link:hover    { color: var(--w1); background: var(--s3); }
.footer-nav-link.is-active { color: var(--w1); }

.social-row { display: flex; gap: 7px; justify-content: center; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--r1);
  background: var(--s3); border: 1px solid var(--b2);
  color: var(--w3); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.social-btn:hover { transform: translateY(-2px); color: var(--w1); background: var(--s4); }

.footer-copy {
  font-size: .75rem; color: var(--w3); text-align: center;
  border-top: 1px solid var(--b1); padding-top: 1rem; width: 100%;
}
.footer-copy i { color: var(--w3); font-size: .65rem; }

/* ── Content pages ───────────────────────────────────────────── */
.content-body { line-height: 1.75; color: #c0c0c0; }
.content-body h2 {
  color: var(--w1); font-size: 1rem; font-weight: 700;
  margin: 1.8rem 0 .7rem; padding-left: .8rem;
  border-left: 2px solid var(--w1);
}
.content-body p, .content-body ul { margin-bottom: .85rem; font-size: .88rem; }
.content-body ul  { padding-left: 1.3rem; }
.content-body li  { margin-bottom: .35rem; }
.content-body strong { color: var(--w1); }
.content-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--b1); }

/* ── Form ────────────────────────────────────────────────────── */
.form-field  { margin-bottom: 1rem; }
.field-label { display: block; margin-bottom: .4rem; font-size: .8rem; color: var(--w2); font-weight: 500; }

/* ── Docs ────────────────────────────────────────────────────── */
.docs-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.version-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.2);
  color: var(--grn); font-size: .75rem; font-weight: 700;
  padding: 4px 11px; border-radius: var(--rmax); white-space: nowrap;
}
.doc-divider    { border-color: var(--b1); margin: 1.4rem 0; }
.doc-section    { margin-bottom: 2.2rem; }
.doc-heading    { font-size: .96rem; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: .9rem; }
.doc-heading i  { color: var(--w2); }
.doc-subheading { font-size: .83rem; font-weight: 600; color: var(--w2); margin: 1rem 0 .5rem; }
.doc-footer     { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--b1); }

.code-inline {
  font-family: 'Consolas','Monaco',monospace; font-size: .88rem;
  color: var(--w1); background: var(--s1);
  border: 1px solid var(--b2); border-radius: var(--r2);
  padding: .8rem 1rem; display: block; user-select: all;
}
.doc-alert {
  background: rgba(255,255,255,.02); border: 1px solid var(--b2);
  border-radius: var(--r2); padding: .8rem 1rem;
  font-size: .81rem; color: var(--w2);
  display: flex; align-items: flex-start; gap: 9px; margin-bottom: .9rem;
}
.doc-alert i    { color: var(--w2); margin-top: 2px; flex-shrink: 0; }
.doc-alert code { color: var(--w1); font-size: .78rem; }

.endpoint-card   { background: var(--s1); border: 1px solid var(--b2); border-radius: var(--r3); overflow: hidden; }
.endpoint-header { display: flex; align-items: center; gap: 9px; padding: .8rem 1rem; border-bottom: 1px solid var(--b1); background: var(--s2); }
.endpoint-desc   { font-size: .81rem; color: var(--w3); padding: .75rem 1rem 0; }
.endpoint-card .doc-subheading { padding: 0 1rem; }
.endpoint-card .table-wrap     { padding: 0 1rem 1rem; }

.method-badge {
  background: var(--s4); border: 1px solid var(--b3);
  color: var(--w1); font-size: .72rem; font-weight: 800;
  padding: 2px 9px; border-radius: 4px; letter-spacing: .5px;
}
.endpoint-path { font-family: monospace; font-size: .86rem; color: var(--w1); }

.code-block {
  background: #050505; border: 1px solid var(--b2);
  border-radius: var(--r2); padding: 1.1rem 1.3rem;
  font-family: 'Consolas','Monaco',monospace; font-size: .81rem;
  color: #cdd6f4; overflow-x: auto; white-space: pre;
  line-height: 1.65; display: block; margin: 0;
}
.ck { color: #c4b5fd; }
.cv { color: #fca5a5; }
.cs { color: #86efac; }
.cc { color: #555; font-style: italic; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table  { width: 100%; border-collapse: collapse; min-width: 500px; font-size: .83rem; }
.doc-table th {
  color: var(--w1); border-bottom: 1px solid var(--b3);
  padding: 9px 11px; text-align: left; font-weight: 700; white-space: nowrap;
}
.doc-table td     { color: #b0b0b0; border-bottom: 1px solid var(--b1); padding: 9px 11px; vertical-align: top; }
.doc-table tr:last-child td { border-bottom: none; }
.param-name { color: var(--w1); font-family: monospace; font-size: .8rem; }
.required   { color: var(--red); font-weight: 700; }

.type-badge  { font-family: monospace; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.type-string { background: var(--s4); color: var(--w2); border: 1px solid var(--b2); }

.status-ok    { background: rgba(52,211,153,.1);  color: var(--grn); padding: 2px 7px; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.status-warn  { background: rgba(251,191,36,.1);  color: var(--ylw); padding: 2px 7px; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.status-err   { background: rgba(248,113,113,.1); color: var(--red); padding: 2px 7px; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.status-muted { background: var(--s3); color: var(--w3); padding: 2px 7px; border-radius: 4px; font-size: .78rem; font-weight: 700; }

.code-tabs { border-bottom: 1px solid var(--b1); gap: 2px; margin-bottom: 0; flex-wrap: wrap; }
.code-tabs .nav-link {
  color: var(--w3); background: transparent; border: none;
  padding: .45rem .85rem; font-size: .8rem; font-weight: 600;
  border-bottom: 2px solid transparent; border-radius: 0;
  transition: color var(--dur);
}
.code-tabs .nav-link:hover  { color: var(--w1); }
.code-tabs .nav-link.active { color: var(--w1); border-bottom-color: var(--w1); }
.code-tab-content { border: 1px solid var(--b2); border-top: none; border-radius: 0 0 var(--r2) var(--r2); overflow: hidden; }
.code-tab-content .code-block { border: none; border-radius: 0; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .6rem 1.2rem; border-radius: var(--r2);
  border: 1px solid var(--b3); color: var(--w2);
  text-decoration: none; font-size: .83rem; font-weight: 600;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.btn-outline:hover { color: var(--w1); border-color: var(--b4); background: var(--s3); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .card-engine    { padding: 1.4rem; }
  .main-wrap      { padding: 1rem .85rem; }
  .hero-title     { font-size: 1.4rem; }
  .carousel-inner { height: 290px; }
  .stat-cell      { padding: 7px 4px; }
  .stat-cell span { font-size: .66rem; }
  .header-nav     { display: none; }
  .docs-wrap      { max-width: 100%; }
  .docs-header    { flex-direction: column; }
}
@media (max-width: 380px) {
  .pill-row { gap: 5px; }
  .pill     { font-size: .68rem; padding: 3px 9px; }
}

/* ── Type badges ─────────────────────────────────────────────── */
.type-badge-music,
.type-badge-slide {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 600;
  border-radius: var(--rmax); padding: 3px 9px;
  flex-shrink: 0; white-space: nowrap;
}
.type-badge-music {
  color: var(--w2); background: var(--s4); border: 1px solid var(--b2);
}
.type-badge-slide {
  color: var(--w2); background: var(--s4); border: 1px solid var(--b2);
}

/* ── Music-only card ─────────────────────────────────────────── */
.music-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; margin-bottom: 1.2rem;
}
.music-cover-wrap { position: relative; }
.music-cover {
  width: 160px; height: 160px; border-radius: var(--r3);
  object-fit: cover; border: 1px solid var(--b2);
  display: block;
}
.music-cover-fallback {
  width: 160px; height: 160px; border-radius: var(--r3);
  background: var(--s3); border: 1px solid var(--b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--w3);
}
.music-meta { text-align: center; }
.music-title  { font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
.music-artist { font-size: .8rem; color: var(--w3); }

/* ── Stats note (when v1 unavailable) ───────────────────────── */
.stats-note {
  font-size: .7rem; color: var(--w4); margin-top: .5rem;
  display: flex; align-items: center; gap: 5px;
}
.stats-note i { font-size: .65rem; }

/* ── fmt "—" style ───────────────────────────────────────────── */
.stat-cell span:contains("—") { color: var(--w4); }
