/* MemeSons — design system */
:root {
  --bg: #0b0d14;
  --bg-soft: #12151f;
  --card: #171b28;
  --card-hover: #1d2233;
  --border: #262c40;
  --text: #eef0f6;
  --text-dim: #9aa3b8;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo .logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.header-search { flex: 1; max-width: 520px; margin-left: auto; }
.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 8px 11px; border-radius: 10px; white-space: nowrap;
  color: var(--text-dim); font-weight: 600; font-size: 0.9rem;
}
/* Seven nav items + search + support button: tighten before anything wraps */
@media (max-width: 1250px) { .header-search { max-width: 240px; } .main-nav a { padding: 8px 8px; font-size: 0.86rem; } }
@media (max-width: 1080px) { .header-search { display: none; } }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--card); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.page-hero { padding: 34px 0 26px; text-align: center; }
.hero h1, .page-hero h1 {
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
  max-width: 820px; margin: 0 auto 14px;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
.page-hero h1 { font-size: clamp(1.65rem, 3.6vw, 2.55rem); }

/* One intro-paragraph style for the whole site. `.lead` is the legacy name
   kept so the home page markup keeps working. */
.lede, .hero p.lead, .page-hero p {
  max-width: 680px; margin: 0 auto;
  color: var(--text-dim); font-size: 1.02rem; line-height: 1.65;
}
.content-page .lede { margin: 0 0 26px; max-width: 100%; }
.hero p.lead { margin-bottom: 28px; }
.hero h1 .grad, .page-hero h1 .grad, .content-page h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-stats {
  display: flex; justify-content: center; gap: 28px; margin-top: 24px;
  color: var(--text-dim); font-size: 0.9rem; flex-wrap: wrap;
}
.hero-stats strong { color: var(--text); font-size: 1.05rem; }

/* Search */
.search-box { position: relative; }
.search-box input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-box .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--text-dim); pointer-events: none;
}
.hero .search-box { max-width: 560px; margin: 0 auto; }
.hero .search-box input { padding: 16px 20px 16px 50px; font-size: 1.05rem; }

/* Category chips */
.chips {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 28px 0 8px;
}
.chip {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-dim); font-weight: 600; font-size: 0.9rem;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.chip.active { background: var(--gradient); border-color: transparent; color: #fff; }

/* Sound grid */
.section-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 36px 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}
/* ---------- Card system ----------
   Every card on the site — sound, category, blog post, soundboard, info box —
   is the same object: same surface, same border, same radius, same lift on
   hover. Only the internal layout changes. */
.sound-card, .cat-card, .post-card, .board-card, .info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.sound-card, .cat-card, .post-card { padding: 18px; }
.board-card { padding: 20px 14px; }
.info-card { padding: 24px; }
.sound-card, .cat-card {
  display: flex; flex-direction: column; gap: 12px;
}
/* Cards that are themselves a link, or contain one, lift on hover */
.sound-card:hover, .cat-card:hover, .post-card:hover, .board-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--card-hover);
}
.sound-card.hidden { display: none; }
.sound-card .card-top { display: flex; align-items: center; gap: 12px; }
.play-btn {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%; border: none;
  background: var(--gradient);
  color: #fff; display: grid; place-items: center;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.play-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45); }
.play-btn:active { transform: scale(0.96); }
.play-btn svg { width: 20px; height: 20px; }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }
.play-btn.playing { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
}
.sound-card h3, .sound-card h2 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.sound-card h3 a:hover, .sound-card h2 a:hover { color: var(--accent); }
.sound-card .card-cat { font-size: 0.78rem; color: var(--text-dim); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-dim);
}
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); font-weight: 600; font-size: 0.85rem;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.primary { background: var(--gradient); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn svg { width: 15px; height: 15px; }
.btn.copied { border-color: #34d399; color: #34d399; }
.card-actions .btn { flex: 1; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-dim);
  display: none;
}
.empty-state.visible { display: block; }
.empty-state .big { font-size: 2.5rem; margin-bottom: 10px; }

/* Sound detail page */
.breadcrumb {
  padding: 20px 0 0; font-size: 0.85rem; color: var(--text-dim);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.sound-hero {
  margin: 20px 0 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sound-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.sound-hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.55rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px;
}
.sound-hero .cat-link { color: var(--text-dim); font-size: 0.95rem; }
.sound-hero .cat-link a { color: var(--accent); font-weight: 600; }
.big-play-wrap { margin: 28px 0 20px; display: flex; justify-content: center; }
.big-play-wrap .play-btn { width: 88px; height: 88px; }
.big-play-wrap .play-btn svg { width: 34px; height: 34px; }
.eq {
  display: flex; gap: 4px; align-items: flex-end; justify-content: center;
  height: 36px; margin-bottom: 22px; opacity: 0.35;
  transition: opacity 0.2s;
}
.eq.playing { opacity: 1; }
.eq span {
  width: 5px; border-radius: 3px; background: var(--gradient);
  height: 30%;
}
.eq.playing span { animation: eq 0.7s ease-in-out infinite alternate; }
.eq span:nth-child(2n) { animation-delay: 0.12s; height: 65%; }
.eq span:nth-child(3n) { animation-delay: 0.25s; height: 45%; }
.eq span:nth-child(5n) { animation-delay: 0.4s; height: 85%; }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.sound-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.sound-hero .actions .btn { padding: 12px 22px; font-size: 0.95rem; }

.sound-body { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
.info-card h2 {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.info-card p { color: var(--text-dim); font-size: 0.95rem; }
.info-card p + p { margin-top: 10px; }
.info-card .meta-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-card .meta-row:last-child { border-bottom: none; }
.info-card .meta-row .k { color: var(--text-dim); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0 32px;
  margin-top: 24px;
}
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 { font-size: 0.9rem; margin-bottom: 12px; }
.site-footer p, .site-footer li { color: var(--text-dim); font-size: 0.88rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  color: var(--text-dim); font-size: 0.82rem; text-align: center;
}

/* Content pages */
.content-page { max-width: 760px; margin: 34px auto 64px; }
.content-page.wide { max-width: 1000px; }
.content-page h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.2rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 16px;
}
.content-page h2 { font-size: 1.3rem; font-weight: 800; margin: 28px 0 10px; }
.content-page p, .content-page li { color: var(--text-dim); margin-bottom: 12px; }
.content-page ul { padding-left: 22px; }

@media (max-width: 720px) {
  .site-header .container { gap: 10px; }
  .header-search { display: none; }
  .hero { padding: 40px 0 28px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .main-nav a { padding: 8px 10px; font-size: 0.85rem; }
}
@media (max-width: 520px) {
  body { overflow-x: clip; }
  .site-header .container {
    height: auto; flex-wrap: wrap; justify-content: center;
    padding-top: 10px; padding-bottom: 10px; row-gap: 2px;
  }
  .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; row-gap: 2px; }
  .main-nav a { padding: 5px 8px; font-size: 0.82rem; white-space: nowrap; }
  .sound-card { min-width: 0; }
}

/* Toolbar: sort + favorites filter */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .chip { cursor: pointer; }
.toolbar .chip.active { background: var(--gradient); border-color: transparent; color: #fff; }
.sort-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.88rem; font-weight: 600;
}
.sort-label select {
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-family: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; outline: none;
}
.sort-label select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.section-head { margin: 36px 0 18px; }
.section-head .section-title { margin: 0; }

/* Like (favorite) buttons */
.like-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text-dim); display: grid; place-items: center;
  transition: all 0.15s;
}
.like-btn svg { width: 17px; height: 17px; }
.like-btn:hover { color: #f472b6; border-color: #f472b6; transform: scale(1.08); }
.like-btn.liked { color: #ec4899; border-color: #ec4899; background: rgba(236, 72, 153, 0.12); }
.like-btn.liked svg { fill: #ec4899; }
.like-btn-inline.liked { color: #ec4899; border-color: #ec4899; }
.like-btn-inline.liked svg { fill: #ec4899; }
.like-btn-inline svg { width: 16px; height: 16px; }

/* Popularity badge */
.pop-badge {
  margin-left: 8px; font-size: 0.74rem; font-weight: 700;
  color: #fbbf24;
}

/* FAQ */
.faq-section, .faq { max-width: 820px; margin: 0 auto; padding-bottom: 56px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px; cursor: pointer; font-weight: 700; font-size: 0.96rem;
  list-style: none; position: relative; padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); color: var(--accent);
  font-size: 1.3rem; font-weight: 400; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 18px 16px; color: var(--text-dim); font-size: 0.92rem; }

/* Keep long titles clear of the corner like button */
.sound-card .card-top { padding-right: 30px; }
.sound-card .card-top > div { min-width: 0; }

/* Unique color per sound: hue pair injected inline via --h1/--h2 */
.play-btn {
  background: linear-gradient(135deg, hsl(var(--h1, 262) 72% 56%), hsl(var(--h2, 330) 72% 56%));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.card-actions .btn { justify-content: center; }

/* ---------- Forms (unified, site-wide) ---------- */
.upload-form {
  position: relative;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(236, 72, 153, 0.55)) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.upload-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim);
}
.upload-form input[type="text"],
.upload-form input[type="password"],
.upload-form select {
  padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 500;
  outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.upload-form input::placeholder { color: var(--text-dim); opacity: 0.6; font-weight: 400; }
.upload-form input:hover, .upload-form select:hover { border-color: #3a4160; }
.upload-form input:focus, .upload-form select:focus {
  border-color: var(--accent);
  background: var(--card-hover);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.upload-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}

/* File drop zone */
.file-drop {
  position: relative; cursor: pointer;
  border: 2px dashed var(--border); border-radius: 16px;
  background: var(--bg-soft);
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  text-transform: none; letter-spacing: 0;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-drop .fd-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 1.4rem; box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.file-drop .fd-text { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.file-drop .fd-text .accent { color: var(--accent); }
.file-drop .fd-hint { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.file-drop .fd-name {
  display: none; margin-top: 4px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399; font-size: 0.85rem; font-weight: 700;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-drop.has-file { border-style: solid; border-color: rgba(52, 211, 153, 0.5); }
.file-drop.has-file .fd-name { display: block; }

/* Submit + status */
.upload-form .btn.primary {
  padding: 14px 22px; font-size: 1rem; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.upload-form .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4); }
.form-status { display: none; font-weight: 600; font-size: 0.92rem; padding: 12px 16px; border-radius: 12px; margin: 0; }
.form-status.ok {
  display: block;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); color: #34d399;
}
.form-status.err {
  display: block;
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.4); color: #f87171;
}
.form-status.busy { display: block; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim); }

/* Inline field rows (e.g. admin token + button) */
.form-row { display: flex; gap: 12px; align-items: stretch; }
.form-row label { flex: 1; }
.form-row .btn { align-self: flex-end; }

.cf-turnstile { min-height: 65px; }
/* Buy Me a Coffee button */
.bmc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #ffdd00; color: #1a1a1a;
  font-weight: 700; font-size: 0.85rem; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bmc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 221, 0, 0.35); }
@media (max-width: 900px) { .bmc-btn span { display: none; } .bmc-btn { padding: 8px 10px; } }

.upload-form label.file-drop { text-transform: none; letter-spacing: 0; }
.file-drop .fd-text { text-transform: none; }

/* Perf: skip rendering offscreen cards */
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags li { margin-bottom: 0 !important; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr !important; } }
.site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* Sponsor page */
.support-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.support-btn { padding: 13px 22px; font-size: 1rem; }
.content-page .info-card { margin-bottom: 20px; }
.content-page .info-card ul { padding-left: 20px; margin-bottom: 10px; }
.content-page .info-card li { margin-bottom: 8px; }

/* ---------- Support gate modal ---------- */
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(6px);
  /* 2026-11-04: a window taller than the screen (the limit window on a
     laptop) scrolls inside the overlay; margin:auto on the box keeps it
     centred when it fits. The page behind stays still while one is open. */
  display: flex; flex-direction: column; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain;
  animation: gateFade 0.18s ease-out;
}
.gate-overlay > .gate-box { margin: auto; flex-shrink: 0; }
html:has(.gate-overlay:not([hidden])) { overflow: hidden; }
.gate-overlay[hidden] { display: none; }
.btn[hidden] { display: none; }
@keyframes gateFade { from { opacity: 0; } to { opacity: 1; } }
.gate-box {
  position: relative; width: 100%; max-width: 460px;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(139,92,246,.7), rgba(236,72,153,.7)) border-box;
  border: 1px solid transparent; border-radius: 22px;
  padding: 32px 28px 24px; text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  animation: gatePop 0.25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes gatePop { from { transform: scale(.9) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.gate-emoji { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.gate-box h2 { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.gate-box p { color: var(--text-dim); font-size: .95rem; margin-bottom: 10px; }
.gate-sub { font-size: .88rem !important; }
.gate-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 14px; }
.gate-buttons .btn { padding: 11px 18px; font-size: .92rem; }
.gate-timer {
  font-weight: 800; color: var(--accent) !important; font-size: 1.05rem !important;
  padding: 10px; border: 1px dashed var(--border); border-radius: 12px;
}
.gate-secondary { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.gate-link {
  background: none; border: none; color: var(--text-dim);
  font-size: .85rem; font-weight: 600; cursor: pointer; padding: 6px;
  text-decoration: underline; text-underline-offset: 3px;
}
.gate-link:hover { color: var(--text); }
.gate-link-soft { color: #f472b6; opacity: .85; }
.gate-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.gate-close:hover { color: var(--text); }

/* ---------- Affiliate block (clearly separated from free content) ----------
   Deliberately a *native* unit, not a display banner: it sits where the reader
   has just got their file and is thinking about the edit, so the copy does the
   selling and the creative only supports it. It is labelled "Sponsored" so
   nobody has to wonder, and it is built from our own markup, which is also why
   it survives the content blockers that erase image-only banners outright. */
.aff-block {
  display: flex; gap: 18px; align-items: flex-start;
  max-width: 780px; margin: 26px auto 6px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(139,92,246,.09), rgba(236,72,153,.07));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.aff-block:hover { border-color: rgba(139,92,246,.45); box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.aff-emoji { font-size: 1.8rem; line-height: 1.2; flex-shrink: 0; }
.aff-body { min-width: 0; }

/* Ad label — quiet, but never ambiguous */
.aff-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.aff-chip {
  font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 8px; line-height: 1; white-space: nowrap;
}
.aff-brand { font-size: .74rem; font-weight: 700; color: var(--text-dim); letter-spacing: .02em; }

.aff-headline { font-weight: 800; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 7px; }
.aff-text { color: var(--text-dim); font-size: .92rem; line-height: 1.55; margin-bottom: 15px; }
.aff-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: .92rem; }
.aff-cta svg { opacity: .75; flex-shrink: 0; }
.aff-note { color: var(--text-dim); font-size: .78rem; margin-top: 11px; }
.aff-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.aff-note a:hover { color: var(--text); }
.aff-block.compact { margin: 22px 0; }

/* Banner format: creative-led, copy demoted to a caption bar. Reach for it
   only with a creative that really is banner-shaped — the height cap keeps a
   portrait unit from turning the page into a tower, at the cost of cropping. */
.aff-block.banner { display: block; padding: 0; overflow: hidden; }
.aff-block.banner .aff-creative { border: 0; border-radius: 0; width: 100%; }
.aff-block.banner .aff-creative img { width: 100%; height: auto; max-height: 240px; object-fit: cover; }
.aff-block.banner .aff-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
.aff-block.banner .aff-bar-copy { min-width: 0; }
.aff-block.banner .aff-headline { margin-bottom: 0; font-size: 1rem; }
.aff-block.banner .aff-cta { flex-shrink: 0; }
.aff-block.banner .aff-note { margin: 0; padding: 0 20px 14px; }
.aff-block.banner .aff-emoji { padding: 22px 20px 0; }

@media (max-width: 560px) {
  .aff-block { flex-direction: column; gap: 12px; padding: 16px; }
  .aff-cta { width: 100%; justify-content: center; }
  .aff-block.banner { padding: 0; gap: 0; }
  .aff-block.banner .aff-bar { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ---------- Soundboard ---------- */
.board-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 6px 0 20px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.board-search { flex: 1 1 220px; min-width: 180px; }
.board-search input { padding-left: 16px; }
.pad-vol { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .9rem; }
.pad-vol input[type=range] { width: 110px; accent-color: var(--accent); }
.pad-hint { color: var(--text-dim); font-size: .82rem; margin-left: auto; }
@media (max-width: 620px) { .pad-hint { display: none; } }

.pad-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.pad { position: relative; }
.pad.hidden { display: none; }
.pad-hit {
  width: 100%; min-height: 86px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px 12px 12px; border-radius: 14px;
  background: linear-gradient(150deg, hsl(var(--h1) 70% 20%), hsl(var(--h2) 65% 15%));
  border: 1px solid var(--border); color: var(--text);
  font-weight: 700; font-size: .9rem; line-height: 1.25;
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.pad-hit:hover { filter: brightness(1.25); border-color: hsl(var(--h1) 70% 45%); }
.pad-hit:active, .pad-hit.hit {
  transform: scale(.95);
  box-shadow: 0 0 0 2px hsl(var(--h1) 80% 60%), 0 8px 26px hsla(var(--h1) 80% 50% / .45);
  filter: brightness(1.45);
}
.pad-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.pad-key {
  position: absolute; top: 6px; left: 8px;
  font-size: .66rem; font-weight: 800; letter-spacing: .04em;
  color: var(--text-dim); background: rgba(0,0,0,.35);
  border-radius: 5px; padding: 1px 5px;
}
.pad-actions {
  position: absolute; top: 5px; right: 5px;
  display: flex; gap: 3px; opacity: 0; transition: opacity .15s ease;
}
.pad:hover .pad-actions, .pad:focus-within .pad-actions { opacity: 1; }
@media (hover: none) { .pad-actions { opacity: .75; } }
.pad-mini {
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 6px; background: rgba(0,0,0,.45); color: var(--text-dim);
  font-size: .72rem; line-height: 1;
}
.pad-mini:hover { background: var(--accent); color: #fff; }
.board-note { color: var(--text-dim); font-size: .88rem; text-align: center; margin: 18px 0 4px; }

.board-grid {
  display: grid; gap: 12px; margin-bottom: 40px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.board-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.board-emoji { font-size: 1.9rem; }
.board-name { font-weight: 800; font-size: .96rem; }
.board-count { color: var(--text-dim); font-size: .8rem; }

/* ---------- Blog ---------- */
.post-grid {
  display: grid; gap: 16px; margin-bottom: 44px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.post-card { display: block; }
.post-card h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; margin: 10px 0 8px; line-height: 1.3; }
.post-card p { color: var(--text-dim); font-size: .88rem; }

.post-card-meta { display: block; margin-top: 12px; color: var(--text-dim); font-size: .78rem; }

.post { max-width: 760px; margin: 0 auto; }
.post-head { text-align: center; padding: 12px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.post-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.18; margin: 14px 0 12px; }
.post-meta { color: var(--text-dim); font-size: .84rem; margin-top: 14px; }
.post-body { font-size: 1.04rem; line-height: 1.75; }
.post-body h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  margin: 40px 0 14px; scroll-margin-top: 90px;
}
.post-body h3 { font-size: 1.12rem; font-weight: 800; margin: 28px 0 10px; scroll-margin-top: 90px; }
.post-body p { margin-bottom: 18px; color: #d7dbe6; }
.post-body ul, .post-body ol { margin: 0 0 20px 22px; color: #d7dbe6; }
.post-body li { margin-bottom: 9px; }
.post-body p a, .post-body li a, .post-body blockquote a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.post-body p a:hover, .post-body li a:hover { color: var(--accent-2); }
/* embedded cards keep their own styling */
.post-body .post-embed a, .post-body .post-cta { text-decoration: none; }
.post-body strong { color: var(--text); }
.post-body code {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; font-size: .88em;
}
.post-body blockquote {
  border-left: 3px solid var(--accent); background: var(--bg-soft);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 20px;
}
.post-body blockquote p { margin: 0; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }
.post-embed { max-width: 420px; margin: 22px auto; }
.post-cta {
  display: flex; align-items: center; gap: 14px; margin: 26px 0;
  padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(236,72,153,.1));
  border: 1px solid var(--border);
  transition: border-color .15s ease, transform .15s ease;
}
.post-cta:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-cta-emoji { font-size: 1.9rem; }
.post-cta-sub { color: var(--text-dim); font-size: .88rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Rendering performance on long grids ----------
   Pages list hundreds of cards. content-visibility lets the browser skip
   layout and paint for anything off-screen, which is most of them on mobile.
   contain-intrinsic-size keeps the scrollbar honest before a card is rendered;
   the `auto` keyword makes the browser remember each card's real size once
   it has been on screen, so scrolling back up never jumps. */
.sound-card { content-visibility: auto; contain-intrinsic-size: auto 186px; }
.pad { content-visibility: auto; contain-intrinsic-size: auto 86px; }
.post-card { content-visibility: auto; contain-intrinsic-size: auto 200px; }

/* ---------- "Show all" + A–Z index ---------- */
.more-wrap { display: flex; justify-content: center; margin: 26px 0 8px; }
.btn-more { padding: 13px 28px; font-size: .98rem; }
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 6px; font-size: .92rem;
}
.pagination a, .pagination .pg-cur, .pagination .pg-gap {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 10px; text-decoration: none; color: var(--text);
}
.pagination a { background: var(--card, rgba(255,255,255,.04)); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--accent); }
.pagination .pg-cur { background: var(--accent); color: #fff; font-weight: 700; }
.pagination .pg-nums { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pg-count { color: var(--muted, #888); font-size: .9rem; align-self: center; }
.az-block { margin-bottom: 26px; }
.az-block h2 {
  font-size: 1.3rem; font-weight: 900; color: var(--accent);
  padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
  scroll-margin-top: 90px;
}
.az-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.az-list li { display: flex; gap: 7px; align-items: baseline; font-size: .93rem; }
.az-emoji { flex-shrink: 0; opacity: .75; }
.az-list a { color: var(--text-dim); }
.az-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Shared page furniture ----------
   Small pieces that used to be inline styles scattered across the templates. */
.collection-intro {
  max-width: 760px; margin: 0 auto 10px;
  color: var(--text-dim);
}
.collection-intro p { margin-bottom: 12px; }
.more-links { text-align: center; padding-bottom: 40px; color: var(--text-dim); }

/* Category cards reuse the card base; only their inner rhythm differs */
.cat-card .cat-emoji { font-size: 2rem; line-height: 1; }
.cat-card h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.cat-card .cat-desc { color: var(--text-dim); font-size: 0.88rem; }

/* One eyebrow style for the small uppercase labels above a card title */
.post-card-cat {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: #c4b5fd;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}

.az-jump { justify-content: flex-start; padding: 4px 0 26px; }
.az-jump .chip { min-width: 42px; justify-content: center; text-align: center; }

/* A card's first child never carries the section spacing meant for prose flow */
.info-card > :first-child, .post-body > :first-child { margin-top: 0; }
.info-card > :last-child { margin-bottom: 0; }

/* Prose links: one rule instead of an inline colour on every anchor */
.content-page p a, .content-page li a,
.info-card p a, .info-card li a,
.collection-intro a, .lede a, .board-note a {
  color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.content-page p a:hover, .content-page li a:hover,
.info-card p a:hover, .info-card li a:hover,
.collection-intro a:hover, .lede a:hover { color: var(--accent-2); }

/* Narrow explanatory card used under the soundboards */
.note-card { max-width: 820px; margin: 30px auto 0; }

/* ---------- Header on small screens ----------
   Logo and support button share the first row; the nav wraps underneath
   instead of leaving the button orphaned on a line of its own. */
@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .site-header .logo { order: 1; margin-right: auto; }
  .site-header .bmc-btn { order: 2; margin-left: auto; }
  .site-header .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; row-gap: 2px; }
}

/* Soundboard entry points — the multi-play session is where dwell time is won */
.hero-cta { margin-top: 18px; }
.hero-cta a {
  color: var(--text-dim); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--border);
}
.hero-cta a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.board-cta { max-width: 760px; margin: 34px auto 44px; }

/* ---------- House ads (our own projects) ----------
   Quiet by design: in the page flow, never fixed, never a pop-up, always
   labelled, and with a reserved min-height so nothing shifts as it paints. */
.pj-card {
  max-width: 760px; margin: 30px auto;
  padding: 14px 18px 16px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.pj-label {
  display: block; margin-bottom: 10px;
  color: var(--text-dim); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.house-body { display: flex; align-items: center; gap: 14px; }
.pj-emoji { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.pj-title { font-weight: 800; font-size: .98rem; margin-bottom: 2px; }
.pj-text { color: var(--text-dim); font-size: .88rem; }
.pj-cta { flex-shrink: 0; margin-left: auto; padding: 9px 16px; font-size: .88rem; }
@media (max-width: 560px) {
  .house-body { flex-wrap: wrap; }
  .pj-cta { margin-left: 0; width: 100%; justify-content: center; }
}

/* House ad runtime additions: logo variant + full-width banner creative */
.house-slot[hidden] { display: none; }
.pj-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pj-banner { padding: 14px 18px 12px; }
.pj-banner a { display: block; border-radius: 12px; overflow: hidden; }
.pj-banner img { display: block; width: 100%; height: auto; }

/* ---------- Display slots (image banners, always overlays or capped) ------
   Three rules keep these from becoming the ads people install blockers for:
   every unit carries an "Ad" chip, nothing ever moves the content (the rail
   and the sticky are overlays, the top banner caps its height), and the
   sticky can be closed — and stays closed for 24h. */
.us-chip {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 7px; line-height: 1; pointer-events: none;
}

/* ATF leaderboard: height-capped so even a mis-sized upload stays a banner */
.us-band { position: relative; max-width: 780px; margin: 6px auto 18px; padding: 0 20px; }
.us-band .us-chip { top: 12px; left: 26px; }
.us-band .us-link { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.us-band img { display: block; width: 100%; height: auto; max-height: 110px; object-fit: cover; }

/* Desktop side rail: fixed in the right gutter, only when the gutter is
   real (≥1600px viewport leaves ≥230px beside the 1140px column). The width
   clamp keeps it off the content at every size in between. */
.us-rail {
  position: fixed; z-index: 40;
  top: 96px; right: 16px;
  width: clamp(180px, calc((100vw - 1204px) / 2), 300px);
}
.us-rail .us-link { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.us-rail img { display: block; width: 100%; height: auto; max-height: 600px; object-fit: contain; }
@media (max-width: 1599px) { .us-rail { display: none; } }

/* Mobile sticky: one thin strip, safe-area aware, dismissible */
.us-sticky {
  position: fixed; z-index: 90;
  left: 8px; right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.us-sticky-inner {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.us-sticky .us-chip { position: static; flex-shrink: 0; }
.us-thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.us-thumb-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--bg); border: 1px solid var(--border); }
.us-line {
  min-width: 0; flex: 1;
  font-size: .82rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.us-cta { flex-shrink: 0; padding: 8px 13px; font-size: .82rem; }
.us-close {
  flex-shrink: 0; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--text-dim); font-size: 1.3rem; line-height: 1;
}
.us-close:hover { color: var(--text); background: var(--bg); }
@media (min-width: 768px) { .us-sticky { display: none; } }

/* Admin ads manager */
.ad-pl { color: var(--text-dim); font-size: .88rem; margin-right: 6px; }
.ad-on { font-weight: 700; color: #4ade80; }
.bo-subhead { margin: 28px 0 4px; font-size: 1.02rem; letter-spacing: -.01em; }

/* ==================== Backoffice ====================
   Same design language as the public site: card surfaces, gradient accents,
   the upload-form input system. Nothing here invents a new visual idiom. */
.bo-wrap { padding: 26px 20px 60px; }
/* display rules on .bo-login/.bo-tab would otherwise defeat the hidden attribute */
.bo-wrap [hidden] { display: none !important; }
.bo-login { display: grid; place-items: center; min-height: 60vh; }
.bo-login .upload-form { width: 100%; max-width: 420px; }
.bo-login-head { text-align: center; margin-bottom: 4px; }
.bo-login-mark { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.bo-login-head h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.bo-login-head p { color: var(--text-dim); font-size: .9rem; margin-top: 6px; text-transform: none; }
.bo-login-err { color: #f87171; font-weight: 700; font-size: .9rem; text-align: center; }

.bo-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.bo-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.03em; }
.bo-head-right { display: flex; align-items: center; gap: 12px; }
.bo-session { color: #4ade80; font-size: .82rem; font-weight: 700; }

.bo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.bo-tabs .chip { cursor: pointer; }
.bo-tabs .chip.active { background: var(--gradient); border-color: transparent; color: #fff; }
.bo-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  margin-left: 6px; padding: 0 5px; border-radius: 999px;
  background: #ec4899; color: #fff; font-size: .7rem; font-weight: 800;
}

.bo-flash { padding: 13px 18px; border-radius: 14px; font-weight: 700; margin-bottom: 16px; }
.bo-flash.ok { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.35); }
.bo-flash.err { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.35); }

.bo-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.bo-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 4px;
}
.bo-tile-v { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.bo-tile-l { color: var(--text-dim); font-size: .8rem; font-weight: 600; }
.bo-tile-l em { display: block; font-style: normal; font-size: .72rem; opacity: .75; }

.bo-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.bo-panel h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.bo-dim { color: var(--text-dim); font-size: .9rem; }

.bo-bars { display: flex; gap: 8px; align-items: flex-end; min-height: 96px; }
.bo-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bo-bar i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--gradient); }
.bo-bar b { color: var(--text-dim); font-size: .68rem; font-weight: 600; }

.bo-tablewrap { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bo-table th { text-align: left; color: var(--text-dim); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.bo-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.bo-table tr:last-child td { border-bottom: none; }

.bo-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-dim); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.bo-badge.live { background: rgba(74,222,128,.14); border-color: rgba(74,222,128,.4); color: #4ade80; }
.bo-badge.warn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.4); color: #fbbf24; }
.bo-badge.fmt { text-transform: none; }

.bo-actions { margin-bottom: 16px; }
.bo-form { max-width: none; margin-bottom: 20px; }
.bo-form h2 { font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.bo-form .req { color: #ec4899; }
.bo-form .opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .7; }
.af-emoji-label { max-width: 90px; }
.bo-field-label { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.bo-checks { display: flex; gap: 10px; flex-wrap: wrap; }
.bo-check {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text-dim); font-weight: 600; font-size: .88rem;
}
.bo-check:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.bo-check input { accent-color: var(--accent); }
.bo-live-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bo-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.bo-switch input { position: absolute; opacity: 0; }
.bo-switch-track {
  width: 44px; height: 24px; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--border); position: relative; transition: background .15s, border-color .15s;
}
.bo-switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--text-dim); transition: transform .15s, background .15s;
}
.bo-switch input:checked + .bo-switch-track { background: var(--gradient); border-color: transparent; }
.bo-switch input:checked + .bo-switch-track::after { transform: translateX(20px); background: #fff; }

.campaign-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.cc-visual { flex-shrink: 0; width: 92px; display: grid; place-items: center; }
.cc-emoji { font-size: 2.2rem; }
.cc-img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.cc-img.wide { width: 160px; height: 40px; margin-top: 8px; }
.cc-main { flex: 1; min-width: 0; }
.cc-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cc-titlerow h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.cc-url { color: var(--accent); font-size: .85rem; word-break: break-all; margin-bottom: 8px; }
.cc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cc-meta { color: var(--text-dim); font-size: .8rem; }
.cc-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cc-actions .btn { padding: 8px 16px; font-size: .85rem; }
@media (max-width: 700px) {
  .campaign-card { flex-wrap: wrap; }
  .cc-actions { flex-direction: row; width: 100%; }
}

.bo-healthgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bo-hrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  font-size: .9rem; font-weight: 600;
}
.bo-links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.bo-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  font-weight: 800; font-size: .95rem;
  transition: border-color .15s, transform .15s;
}
.bo-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.bo-link span { color: var(--text-dim); font-weight: 500; font-size: .78rem; }
.bo-sql {
  display: flex; gap: 10px; align-items: center; margin: 8px 0 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.bo-sql code { flex: 1; font-size: .72rem; word-break: break-all; color: var(--text-dim); }

/* Backoffice form labels: keep the caption and its star/hint on one line,
   and let the chip/switch labels flow horizontally despite the upload-form
   column layout they inherit. */
.bo-form .lab { display: flex; gap: 5px; align-items: baseline; }
.bo-form .lab i { font-style: normal; }
.bo-form label.bo-check, .bo-form label.bo-switch {
  flex-direction: row; align-items: center;
  text-transform: none; letter-spacing: 0;
}
.bo-form label.bo-check { font-size: .88rem; }

/* Affiliate creative: the partner's own visual, clickable, capped so the unit
   reads as a tidy tile, never a takeover. Networks hand out several shapes for
   the same brand — each gets a frame close to its own ratio, so nothing is
   centre-cropped into unreadability. Every variant keeps roughly the same
   footprint, so rotating creatives never shifts the layout. */
.aff-block { align-items: center; }
.aff-creative { flex-shrink: 0; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.aff-creative img { display: block; width: 132px; height: 132px; object-fit: cover; }
.aff-creative.portrait img { width: 122px; height: 152px; }
.aff-creative.wide img { width: 200px; height: 112px; }
.aff-creative:hover { border-color: var(--accent); }
.aff-pixel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .aff-creative { align-self: center; }
  .aff-creative img { width: 168px; height: 168px; }
  .aff-creative.portrait img { width: 168px; height: 210px; }
  .aff-creative.wide img { width: 100%; max-width: 320px; height: 180px; }
}

/* Ad-blocker fallback: blocked creative -> emoji, never a broken image */
.aff-block .aff-emoji-fb { display: none; }
.aff-block.noimg .aff-creative { display: none; }
.aff-block.noimg .aff-emoji-fb { display: block; }

/* Backoffice: campaign selector on the dashboard */
.bo-select {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; font-size: .9rem; font-family: inherit;
}

/* Backoffice: rotation-weight slider */
.bo-range { width: 100%; max-width: 320px; accent-color: var(--accent); }

/* Language switcher: quiet, in the footer, one hop to every locale */
.lang-switch { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 18px 0 4px; }
.lang-switch a { color: var(--text-dim); font-size: .85rem; font-weight: 600; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { color: var(--accent); }

/* Most-downloaded list on the home page — ranked, so the number carries
   information and is not decoration. */
.top-list{list-style:none;counter-reset:tl;margin:18px 0 20px;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px}
.top-list li{counter-increment:tl}
.top-list a{display:flex;align-items:center;gap:12px;padding:10px 14px;
  border:1px solid var(--line,#232838);border-radius:10px;text-decoration:none;
  background:var(--card,#141824);transition:border-color .15s,transform .15s}
.top-list a::before{content:counter(tl);flex:none;width:26px;text-align:right;
  font-variant-numeric:tabular-nums;font-weight:700;opacity:.45;font-size:.95rem}
.top-list a:hover,.top-list a:focus-visible{border-color:#8b5cf6;transform:translateY(-1px)}
.top-list .tl-name{font-weight:600;flex:1;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.top-list .tl-cat{flex:none;font-size:.78rem;opacity:.6}

/* Variants of a sound: same title, different audio, each its own download. */
.variants{margin-top:18px}
.variant-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.variant-list li{display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--line,#232838);border-radius:10px}
.variant-list li>a:first-child{flex:1;min-width:0;font-weight:600;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.variant-list .var-dur{font-variant-numeric:tabular-nums;opacity:.6;font-size:.85rem}
.variant-list .btn.small{padding:6px 10px;font-size:.85rem}
.variant-note{opacity:.75;font-size:.92rem;margin:10px auto 0}

/* Alternate formats under the player: Discord cut, iPhone / Android ringtones. */
.formats{margin:10px 0 0;font-size:.86rem;opacity:.8;line-height:1.7}
.formats a{text-decoration:underline;text-underline-offset:2px}

/* /api/ docs */
.api-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.api-table th, .api-table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.api-table code, .content-page pre code { font-size: .86em; }
.content-page pre { overflow-x: auto; background: var(--card, rgba(255,255,255,.04)); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; }

/* ---------- UseSounds Plus (monetisation step 4) ---------- */
/* Members see no sponsored block; the class is set in <head> from a cookie. */
.plus .aff-block, .plus .house-slot, .plus .ad-slot { display: none !important; }
.quota-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 16px; font-size: .95rem; max-width: calc(100% - 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.quota-toast[hidden] { display: none; }
.quota-toast a { color: var(--accent); font-weight: 700; margin-left: 6px; }
.plus-page .lead { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 20px; }
.plus-msg { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.plus-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.plus-plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.plus-plan.best { border-color: var(--accent); position: relative; }
.plus-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: #fff; }
.plus-plan h2 { font-size: 1.2rem; margin-bottom: 6px; }
.plus-price strong { font-size: 2rem; font-weight: 900; }
.plus-plan .btn { width: 100%; justify-content: center; margin-top: 10px; }
.plus-small { color: var(--text-dim); font-size: .88rem; margin-top: 8px; }
.plus-compare { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.plus-compare th, .plus-compare td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: .95rem; }
.plus-compare th:not(:first-child), .plus-compare td:not(:first-child) { text-align: center; }
.acct-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.acct-form input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: 1rem; }

/* quota modal: the two offers */
.q-box { max-width: 560px; padding: 26px 24px 18px; }
/* The limit window, tighter: everything fits a 768px-high laptop screen */
.q-box h2 { font-size: 1.3rem; margin-bottom: 6px; }
.q-box .q-offers { margin: 12px 0 4px; gap: 10px; }
.q-box .q-offer { padding: 14px 16px; }
.q-box .q-year { padding: 9px 16px; }
.q-box .q-crypto, .q-box .q-make { margin: 8px 0 2px; padding: 9px 14px; }
.q-box .news-box { margin: 10px 0 6px; padding: 10px 12px; }
.q-box .news-title { margin-bottom: 6px; }
.q-box .news-note { display: none; }
.q-box .news-note.ok, .q-box .news-note.err { display: block; }
.q-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.q-offer { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px; border-radius: 16px; background: var(--card);
           border: 2px solid var(--border); color: var(--text); text-decoration: none; }
.q-offer:hover { border-color: var(--accent); }
.q-plus { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card)); }
.q-tag { font-size: .75rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.q-best { color: #f9a8d4; }
.q-name { font-size: 1.15rem; font-weight: 900; }
.q-price { font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.q-price small { font-size: .9rem; font-weight: 700; color: var(--text-dim); }
.q-sub { font-size: .82rem; color: var(--text-dim); }
.q-what { font-size: .88rem; margin: 4px 0 8px; }
.q-launch { font-size: .8rem; font-weight: 800; color: #fbbf24; }
.q-btn { margin-top: auto; justify-content: center; width: 100%; text-align: center; }
@media (max-width: 520px) { .q-offers { grid-template-columns: 1fr; } }
.q-year { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
          color: var(--text); background: var(--card); border: 2px dashed var(--accent); text-align: left; }
.q-year:hover { background: var(--card-hover); }
.q-year-tag { font-size: .75rem; font-weight: 800; color: #93c5fd; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.q-year-main { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.q-year-sub { font-size: .8rem; color: var(--text-dim); }
.q-year-go { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
@media (max-width: 520px) { .q-year { flex-wrap: wrap; } .q-year-tag { width: 100%; } }
.fuzzy-hint { margin: 0 0 12px; color: var(--text-dim); font-size: .9rem; }
/* sponsored sounds (/promote/) */
.sponsored-row { display: grid; gap: 10px; margin: 8px auto 16px; }
.sponsored-slot { position: relative; border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px 10px 10px; }
.sponsored-label { position: absolute; top: 6px; left: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.sponsored-link { display: inline-block; margin-top: 8px; font-size: .85rem; }
.sponsored-how { justify-self: end; font-size: .8rem; color: var(--text-dim); }
.plus .sponsored-row { display: none; }
.promo-where { list-style: none; padding: 0; margin: 10px 0; text-align: left; font-size: .9rem; }
.promo-where li { margin: 4px 0; }
/* weekly e-mail sign-up */
.news-box { margin: 14px 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); text-align: left; }
.news-title { display: block; font-weight: 800; margin-bottom: 8px; }
.news-row { display: flex; gap: 8px; }
.news-row input[type=email] { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; }
.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-note { margin: 6px 0 0; font-size: .8rem; color: var(--text-dim); }
.news-note.ok { color: #86efac; }
.news-note.err { color: #fca5a5; }

.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.moment { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.moment h3 { margin: 0 0 4px; font-size: 1.05rem; }
.moment p { margin: 0 0 10px; color: var(--text-dim); font-size: .9rem; }
.moment .chips { justify-content: flex-start; }

.plus-plans-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 640px; margin-left: auto; margin-right: auto; }

/* video maker (/make/) */
.maker .chip { vertical-align: middle; font-size: .7rem; }
.mk-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 20px; align-items: start; margin: 16px 0; }
.mk-stage { position: sticky; top: 12px; }
.mk-stage canvas { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; display: block; box-shadow: var(--shadow); }
.mk-step { padding: 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.mk-step h2 { font-size: 1.05rem; margin: 0 0 8px; }
.mk-step input[type=search], .mk-step input[type=text] { width: 100%; padding: 10px 12px; margin: 4px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font: inherit; }
.mk-results { justify-content: flex-start; margin-top: 6px; }
.mk-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .9rem; }
.mk-dim { color: var(--text-dim); font-size: .85rem; }
.mk-timeline { position: relative; padding-top: 18px; }
.mk-timeline input { width: 100%; }
.mk-drop-mark { position: absolute; top: 0; transform: translateX(-50%); font-size: .9rem; pointer-events: none; }
.mk-progress { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin: 8px 0; }
#mk-bar { height: 100%; width: 0; background: var(--gradient); }
.mk-result { width: 100%; max-width: 280px; border-radius: 12px; margin: 8px 0; display: block; }
@media (max-width: 700px) { .mk-grid { grid-template-columns: 1fr; } .mk-stage { position: static; max-width: 260px; margin: 0 auto; } }

.q-make { display: block; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft);
          color: var(--text); font-weight: 700; text-decoration: none; text-align: center; }
.q-make:hover { border-color: var(--accent); }
.q-make[hidden] { display: none; }
/* 2026-11-11 — reasons to come back, in the limit window: keep the sound for tomorrow, put the site on the home screen */
.q-later { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.q-later[disabled] { opacity: .8; cursor: default; }
.q-ios { margin: 8px 0 2px; font-size: .85rem; color: var(--text-dim); text-align: center; }
.q-ios[hidden] { display: none; }

.bo-bar-v { font-size: .68rem; font-weight: 800; color: var(--text); }
#bo-plus-bars { overflow-x: auto; }
#bo-plus-bars .bo-bar { min-width: 22px; }
.plus-once{text-align:center;margin:.9rem 0 0;font-size:.95rem;color:var(--text-dim)}
/* /plus/crypto/ — pay a year of Plus in USDC on Solana */
.cp-box{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin:16px 0;max-width:560px}
.cp-box label{display:block;font-weight:600;margin-bottom:8px}
.cp-box input[type=email]{width:100%;box-sizing:border-box;padding:12px;border-radius:10px;border:1px solid var(--border);background:var(--bg-soft);color:var(--text);font-size:1rem;margin-bottom:12px}
.cp-qr{display:flex;justify-content:center;margin:4px 0 14px}
.cp-qr svg,.cp-qr img{width:220px;height:220px;background:#fff;padding:10px;border-radius:12px}
.cp-details{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:center;margin:8px 0}
.cp-details dt{color:var(--text-dim);font-size:.9rem}
.cp-details dd{margin:0;min-width:0}
.cp-details code{word-break:break-all;font-size:.95rem}
.cp .btn.small{padding:4px 10px;font-size:.82rem;margin-left:6px}
.cp-warn{font-size:.9rem;color:var(--text-dim)}
@media (max-width:520px){.cp-details{grid-template-columns:1fr}.cp-details dt{margin-top:6px}}
.q-crypto{display:block;margin:10px 0 4px;padding:11px 14px;border-radius:12px;border:1px dashed var(--border);color:var(--text);text-decoration:none;text-align:center}
.q-crypto:hover{border-color:var(--accent)}
.plus-pay{color:var(--text-dim);font-size:.95rem;margin:-4px 0 12px}
.plus-crypto{display:flex;align-items:center;gap:14px;margin:18px 0 6px;padding:16px 18px;border-radius:var(--radius);border:1px solid var(--border);background:var(--card);color:var(--text);text-decoration:none}
.plus-crypto:hover{border-color:var(--accent)}
.plus-crypto-icon{font-size:2rem;line-height:1}
.plus-crypto-main{flex:1;display:flex;flex-direction:column;gap:4px}
.plus-crypto-main span{color:var(--text-dim);font-size:.92rem}
.plus-crypto-go{white-space:nowrap}
@media (max-width:560px){.plus-crypto{flex-wrap:wrap}.plus-crypto-go{width:100%;text-align:center}}
.q-offers-1 { grid-template-columns: 1fr; }
/* 30 days paid once (plan pass30): a quieter line than the yearly one */
.q-pass30 { border-style: solid; border-color: var(--border); padding: 10px 16px; }
.q-pass30 .q-year-main { font-size: .9rem; }
.plus-pass30 a { font-weight: 700; }

/* TikTok Trends (collection with "trending"): what the first cards are */
.collection-note { margin: 0 0 12px; font-size: .92rem; color: var(--text-dim); }
.wanted-box { margin-top: 28px; padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius); }
.wanted-box h2 { margin: 0 0 6px; font-size: 1.15rem; }
.wanted-box p { margin: 0 0 12px; color: var(--text-dim); font-size: .92rem; }
.wanted-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* AdSense units (2026-11-03): the label sits above the ad, never over it;
   the top band keeps its height while the ad loads (no layout shift). */
.us-adsense .us-chip { position: static; display: inline-block; margin: 0 0 4px; }
.us-adsense[data-house-slot="top"], .us-adsense[data-house-slot="sound-top"] { min-height: 118px; }
.us-adsense[data-house-slot="top"] ins.adsbygoogle, .us-adsense[data-house-slot="sound-top"] ins.adsbygoogle { min-height: 90px; }
/* 2026-11-11 — more slots, asked for only when the reader gets near.
   sound-top: the band under the player, clear of the download links above it.
   us-wait: an in-flow unit shows its label only once Google has filled it.
   feed-slot: a full row between the cards of a list, with air on both sides
   (the cards above end with a Download button, the ones below start with Play). */
.slot-band { min-height: 118px; max-width: 780px; margin: 6px auto 18px; display: flex; flex-direction: column; justify-content: center; }
.slot-band[hidden] { display: none; }
.slot-band.us-adsense .us-chip { align-self: flex-start; }
.us-band .us-sticky-inner { box-shadow: none; }
.us-band .us-sticky-inner .us-chip { position: static; flex-shrink: 0; }
.house-slot[data-house-slot="sound-top"] { margin-top: 28px; margin-bottom: 26px; }
.us-adsense.us-wait .us-chip { display: none; }
.us-adsense.us-wait { margin-top: 0; margin-bottom: 0; }
.feed-slot { grid-column: 1 / -1; }
/* A banner Google places by itself (Auto ads) inside a grid takes a whole row, not the cell of a card or a pad. */
.grid > .google-auto-placed, .pad-grid > .google-auto-placed { grid-column: 1 / -1; }
/* Between the cards the box waits for Google open and empty: the label comes with the ad, not before. */
.feed-slot:has(ins.adsbygoogle:not([data-ad-status="filled"])) .us-chip { visibility: hidden; }
.feed-slot.us-band { max-width: none; width: 100%; margin: 0; padding: 14px 0; text-align: center; }
.feed-fallback { display: flex; align-items: center; justify-content: center; padding: 14px 0; }
/* One of our cards in the room Google's unit had reserved before giving up in front of the reader. */
.kept-room { display: flex; flex-direction: column; justify-content: center; }
.feed-fallback .pj-card { width: 100%; max-width: 560px; margin: 0; }
.grid.filtering .feed-slot { display: none; }
.sound-body > .house-slot.us-band { max-width: none; width: 100%; margin: 0; padding: 0; text-align: center; }
/* Rewarded ad (plus.rewarded): a <button> dressed as the slim offer lines */
.q-reward { width: 100%; font: inherit; cursor: pointer; border-style: solid; border-color: #22c55e; }
.q-reward[disabled] { opacity: .6; cursor: progress; }
.q-reward[hidden] { display: none; }   /* .q-year sets display:flex, which would beat the hidden attribute */
/* Owner's preview of the rewarded ad: what the provider answered. */
.q-test { margin: 6px 0 0; padding: 8px 10px; border: 1px dashed #f59e0b; border-radius: 10px; font-size: .8rem; line-height: 1.35; color: #fbbf24; text-align: left; overflow-wrap: anywhere; }
.q-test[hidden] { display: none; }
.q-test-btn { font: inherit; font-size: .78rem; margin-left: 2px; padding: 2px 8px; border: 1px solid #f59e0b; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
/* Search found nothing → upload it (2026-11-06) */
.empty-state .empty-upload { margin-top: 12px; display: inline-flex; }
.empty-state .empty-upload[hidden] { display: none; }
.upload-asked { padding: 10px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--bg-soft); }

/* AppLixir rewarded video (2026-11-11): the player opens over everything, the limit window included. */
.ax-box{position:fixed;inset:0;z-index:2147483000;background:rgba(5,6,12,.94);display:flex;align-items:center;justify-content:center;padding:16px}
.ax-box[hidden]{display:none}
.ax-box:empty::before{content:"Loading the ad…";color:#c9cbe0;font:600 16px/1.4 system-ui,-apple-system,sans-serif}

/* "Find UseSounds on" (config.json featuredOn, 2026-11-14): the launch directories' badges, bottom of the home page. */
.featured-on{text-align:center;padding:4px 0 40px}
.featured-on h2{margin:0 0 12px;font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim)}
.featured-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 14px}
.featured-row a{color:var(--text-dim);font-size:.88rem}
.featured-row img{display:block;max-height:54px;max-width:250px;width:auto;height:auto}
