/* ==========================================================================
   YouTube Sidebar Premium — marketing site stylesheet
   Self-contained: no CDNs, no external fonts. System font stack, dark theme,
   red/white accents. Shared by index, success, cancel, privacy, terms.
   ========================================================================== */

:root {
  --bg: #0b0b0e;
  --bg-soft: #101015;
  --card: #15151b;
  --card-soft: #1a1a22;
  --border: #26262f;
  --border-strong: #34343f;
  --red: #ff0033;
  --red-bright: #ff2d55;
  --red-dim: rgba(255, 0, 51, 0.12);
  --red-glow: rgba(255, 0, 51, 0.35);
  --text: #f4f4f6;
  --muted: #a5a5b1;
  --faint: #77777f;
  --ok: #3ecf7a;
  --radius: 14px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.main-nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.62rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--faint); background: var(--card); }

.nav-cta { padding: 0.5rem 1rem; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 380px at 18% 20%, rgba(255, 0, 51, 0.14), transparent 70%),
    radial-gradient(700px 420px at 85% 10%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--red-dim);
  color: var(--red-bright);
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero h1 .accent { color: var(--red-bright); }

.hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.8rem;
  max-width: 34rem;
}

/* Per-browser install buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 0.68rem 1.05rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.93rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.store-btn:hover {
  text-decoration: none;
  border-color: var(--red);
  background: var(--card-soft);
  transform: translateY(-1px);
}
.store-btn small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--faint);
  line-height: 1.1;
}
.store-btn .label { line-height: 1.15; }

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}
.dot-chrome { background: conic-gradient(#ea4335 0 33%, #fbbc05 33% 66%, #34a853 66% 100%); border: 2px solid #4285f4; }
.dot-firefox { background: linear-gradient(135deg, #ff9500, #ff1b6b); }
.dot-edge { background: linear-gradient(135deg, #0dd3ff, #0078d7); }
.dot-opera { background: #ff1b2d; box-shadow: inset 0 0 0 3px #0b0b0e, inset 0 0 0 5px #ff1b2d; }

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.88rem;
  margin: 0;
}
.trust-line .check { color: var(--ok); font-weight: 700; }

/* Hero visual: screenshot in a mock browser frame */
.browser-frame {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 0, 51, 0.07);
}
.browser-frame .chrome-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.chrome-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.chrome-bar .dot:nth-child(1) { background: #ff5f57; }
.chrome-bar .dot:nth-child(2) { background: #febc2e; }
.chrome-bar .dot:nth-child(3) { background: #28c840; }
.chrome-bar .url {
  margin-left: 0.6rem;
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--faint);
  font-size: 0.74rem;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 4.2rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.6rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* Demo */
.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 50% 40%, rgba(255, 0, 51, 0.08), transparent 70%),
    var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}
.demo-frame .play-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--red-glow);
}
.demo-frame h3 { margin: 0; font-size: 1.15rem; }
.demo-frame p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 30rem; }

.demo-caption {
  text-align: center;
  color: var(--faint);
  font-size: 0.88rem;
  margin: 0.9rem 0 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.shot-grid figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot-grid img { width: 100%; height: auto; }
.shot-grid figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.shot-grid figcaption strong { color: var(--text); }

/* Feature grid: free vs premium */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}
.tier-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
}
.tier-panel.premium {
  border-color: rgba(255, 0, 51, 0.45);
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.06), transparent 45%), var(--card);
}
.tier-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.tier-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.18rem 0.5rem;
}
.tier-tag.free { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.tier-tag.pro { background: var(--red); color: #fff; }
.tier-panel .tier-sub { color: var(--muted); font-size: 0.94rem; margin: 0 0 1.3rem; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.feature-list li { position: relative; padding-left: 1.9rem; font-size: 0.97rem; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.tier-panel.free-tier .feature-list li::before { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.tier-panel.premium .feature-list li::before { background: var(--red-dim); color: var(--red-bright); }
.feature-list li strong { display: block; color: var(--text); }
.feature-list li span { color: var(--muted); font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-card.featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.08), transparent 55%), var(--card);
  box-shadow: 0 12px 50px rgba(255, 0, 51, 0.12);
}
.price-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  white-space: nowrap;
}
.price-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.35rem 0 0.15rem;
}
.price-per { color: var(--faint); font-size: 0.88rem; margin: 0 0 1.2rem; }
.price-note {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.price-card .btn { margin-top: auto; }
.trial-note {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--faint);
}

.pricing-footnote {
  text-align: center;
  color: var(--faint);
  font-size: 0.88rem;
  margin: 2rem 0 0;
}

/* FAQ */
.faq-list { max-width: 46rem; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 0.99rem;
  position: relative;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-bright);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer {
  padding: 0 1.3rem 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-list .answer p { margin: 0 0 0.6rem; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* Bottom CTA band */
.cta-band {
  text-align: center;
  padding: 4.5rem 0;
  background:
    radial-gradient(500px 260px at 50% 100%, rgba(255, 0, 51, 0.12), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 0.7rem; }
.cta-band p { color: var(--muted); margin: 0 0 1.8rem; }
.cta-band .store-buttons { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem 0 2.2rem;
  background: var(--bg);
}
.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem;
  align-items: flex-start;
}
.site-footer .footer-brand { max-width: 22rem; }
.site-footer .footer-brand p { color: var(--faint); font-size: 0.86rem; margin: 0.6rem 0 0; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.8rem;
}
.footer-legal p { margin: 0.25rem 0; }

/* --------------------------------------------------------------------------
   Simple pages (success / cancel) and legal pages (privacy / terms)
   -------------------------------------------------------------------------- */

.page-main { padding: 3.5rem 0 4.5rem; min-height: 55vh; }

.page-head { text-align: center; max-width: 40rem; margin: 0 auto 2.4rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin: 0.4rem 0 0.7rem; }
.page-head .lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
}
.status-icon.ok { background: rgba(62, 207, 122, 0.14); color: var(--ok); border: 1px solid rgba(62, 207, 122, 0.4); }
.status-icon.warn { background: var(--red-dim); color: var(--red-bright); border: 1px solid rgba(255, 0, 51, 0.4); }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 0 auto 2.2rem;
  max-width: 56rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--red-dim);
  color: var(--red-bright);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.step-card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.panel {
  max-width: 56rem;
  margin: 0 auto 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.panel h2 { margin: 0 0 0.8rem; font-size: 1.2rem; }
.panel ol, .panel ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.panel li { margin-bottom: 0.45rem; }

.center-cta { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.status-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.4rem auto;
  max-width: 40rem;
}
.status-text.small { font-size: 0.8rem; color: var(--faint); word-break: break-all; }

/* Legal prose */
.legal { max-width: 50rem; margin: 0 auto; }
.legal .meta { color: var(--faint); font-size: 0.9rem; }
.legal h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.legal section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.4rem;
}
.legal h2 { font-size: 1.22rem; margin: 0 0 0.8rem; color: var(--text); }
.legal h2::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--red); margin-right: 0.6rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.95rem; }
.legal p { margin: 0 0 0.8rem; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.55rem; }
.legal li:last-child { margin-bottom: 0; }
.legal strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero { padding-top: 3rem; }
  .tier-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .price-card.featured { order: -1; }
  .step-grid { grid-template-columns: 1fr; max-width: 26rem; }
}

@media (max-width: 720px) {
  .main-nav .nav-link { display: none; }
  .brand { font-size: 0.92rem; gap: 0.45rem; }
  .brand svg { width: 22px; height: 22px; }
  .nav-cta { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
  .shot-grid { grid-template-columns: 1fr; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
  .section { padding: 3.2rem 0; }
  .site-footer .footer-grid { flex-direction: column; }
}

/* ==========================================================================
   Shared queue viewer (queue.html)
   Appended section: loading spinner, queue video cards, duration badges and
   the sticky "get the extension" conversion bar. Reuses the site's existing
   tokens (--card, --border, --red, radii) so the page reads native.
   ========================================================================== */

/* Reserve room for the fixed CTA bar at the bottom of the viewport */
body.queue-page { padding-bottom: 88px; }

/* --- Page states (loading / not found / error) --- */
.queue-state {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
.queue-state h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0.6rem;
}
.queue-state p { color: var(--muted); margin: 0 0 1.6rem; }
.queue-state .center-cta { margin-bottom: 0; }

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--red);
  animation: queue-spin 0.9s linear infinite;
}
@keyframes queue-spin { to { transform: rotate(360deg); } }

/* --- Queue header --- */
.queue-head h1 { overflow-wrap: anywhere; }
.queue-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.queue-date { color: var(--faint); }
.queue-date::before {
  content: "·";
  margin-right: 0.6rem;
  color: var(--border-strong);
}

/* --- Video card list --- */
.queue-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 56rem;
  display: grid;
  gap: 0.9rem;
}
.queue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.queue-card:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
.queue-card-link {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  color: var(--text);
}
.queue-card-link:hover { text-decoration: none; }

.queue-thumb {
  position: relative;
  flex: 0 0 210px;
  min-height: 118px;
  background: var(--bg-soft);
}
.queue-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.queue-num {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.12rem 0.5rem;
}
.duration-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 5px;
  padding: 0.1rem 0.42rem;
}

.queue-card-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.9rem 1.2rem 0.9rem 0;
  min-width: 0;
}
.queue-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.queue-card-channel {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Sticky conversion CTA bar --- */
.queue-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(11, 11, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}
.queue-cta-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.queue-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  body.queue-page { padding-bottom: 120px; }
  .queue-card-link { flex-direction: column; gap: 0; }
  .queue-thumb {
    flex-basis: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .queue-card-meta { padding: 0.85rem 1.1rem 1rem; }
  .queue-cta-bar .container { justify-content: center; text-align: center; }
  .queue-cta-text { display: none; }
  .queue-cta-bar .btn { width: 100%; }
}
