/* ── AGE GATE ────────────────────────────────────────────────── */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-gate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: ageFadeIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.05s;
}
.age-gate-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 2px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.age-gate-logo span { color: var(--accent); }
.age-gate-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
.age-gate-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.age-gate-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.age-gate-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-enter {
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background var(--trans), transform 0.15s ease;
}
.btn-enter:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-leave {
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-leave:hover { color: var(--text); border-color: var(--border-light); }
.age-gate-note {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 20px;
  line-height: 1.6;
}

/* ── SINGLE POST PAGE ────────────────────────────────────────── */
.single-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.single-media {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.single-media img,
.single-media video {
  width: 100%;
  display: block;
}
.single-media .embed-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.single-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.single-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.single-meta a { transition: color var(--trans); }
.single-meta a:hover { color: var(--accent); }
.single-meta .ups { color: var(--accent); font-weight: 700; font-size: 15px; }
.single-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.single-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.single-nav a:hover { color: var(--text); border-color: var(--border-light); }

/* ── UTILITY CLASSES ─────────────────────────────────────────── */
.desktop-only { display: flex !important; }
.mobile-only  { display: none !important; }
.wide-only    { display: none !important; }

/* ── MATERIAL ICONS — font removed, all icons are SVGs.
   This rule is kept as a fallback in case any stray span appears. */
.material-icons {
  display: none;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
/* Desktop: centered column layout */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  text-align: center;
  animation: fadeUp 0.4s ease both;
  position: relative;
}
.empty-state-arrow {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
  animation: emptyArrowLeft 1.6s ease-in-out infinite;
}

/* Filters empty state */
.empty-state--filters {
  grid-column: 1 / -1; /* span all grid columns */
  padding: 80px 20px;
  align-items: center;
  text-align: center;
}
.empty-state--loading {
  justify-content: flex-start;
  min-height: 320px;
  padding-top: 72px;
  padding-bottom: 32px;
}
.empty-state--loading .spinner {
  margin-bottom: 14px;
}
.empty-state--loading .empty-state-sub {
  max-width: none;
}
.empty-state-icon {
  color: var(--text-subtle);
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-state-icon--accent {
  color: var(--accent);
  opacity: 0.72;
}
.empty-state-icon .svg-icon {
  width: 56px;
  height: 56px;
}
.empty-state-clear {
  margin-top: 20px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.empty-state-clear:hover {
  color: var(--text);
  background: var(--border);
}

/* Mobile: arrow pinned top-left, text below it left-aligned */
.empty-state--mobile {
  align-items: flex-start;
  text-align: left;
  padding: 12px 0 80px;
}
.empty-state--mobile .empty-state-arrow {
  animation: emptyArrowUp 1.6s ease-in-out infinite;
  margin-bottom: 12px;
}
.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.empty-state-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}
@keyframes emptyArrowLeft {
  0%, 100% { transform: translateX(0);    opacity: 0.6; }
  50%       { transform: translateX(-8px); opacity: 1;   }
}
@keyframes emptyArrowUp {
  0%, 100% { transform: translateY(0);    opacity: 0.6; }
  50%       { transform: translateY(-8px); opacity: 1;   }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

/* Large screens — show sidebar skyscraper */
@media (min-width: 1400px) {
  .wide-only { display: flex !important; }
  .ad-slot.ad-skyscraper { display: flex; }
}

/* Tablet — sidebar gets slightly narrower but stays visible */
@media (max-width: 1280px) {
  .sidebar { width: 240px; }
  :root { --sidebar-w: 240px; }
}

/* Mobile/small tablet — sidebar collapses to hamburger */
@media (max-width: 1100px) {
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100vh - var(--header-h));
    z-index: 200;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    width: 240px;
    overflow: visible;
  }
  .sidebar .sidebar-scroll { padding-bottom: 80px; }
  .sidebar.open {
    transform: translateX(0);
    /* Shadow on right side only — large negative y-offset pushes it down so it doesn't bleed over the header */
    box-shadow: 20px 40px 40px rgba(0,0,0,0.5);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;        /* full viewport — covers gap when header scrolled away */
    background: rgba(0,0,0,0.5);
    z-index: 99;   /* below header (100) and dropdowns (200) */
  }
  .sidebar-overlay.active { display: block; }
  .menu-btn { display: flex; }
  .main-content { padding: 14px 12px; }
  .gallery-grid { gap: 8px; }
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
  .lightbox-media { padding: 10px 50px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-nav { width: 40px; height: 40px; font-size: 20px; }
  .lb-gal-prev,
  .lb-gal-next { width: 36px; height: 36px; font-size: 16px; }
  .lb-skip-nav { width: 36px; height: 28px; font-size: 14px; top: calc(50% + 40px); }
  .lb-skip-prev { left: 8px; }
  .lb-skip-next { right: 8px; }
  .age-gate-box { padding: 36px 24px; }
  :root { --sidebar-w: 0px; }
}

@media (max-width: 480px) {
  .gallery-grid { gap: 10px; }
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes ageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.post-card { animation: fadeUp 0.3s ease both; }
.post-card:nth-child(1)  { animation-delay: 0.02s; }
.post-card:nth-child(2)  { animation-delay: 0.05s; }
.post-card:nth-child(3)  { animation-delay: 0.08s; }
.post-card:nth-child(4)  { animation-delay: 0.11s; }
.post-card:nth-child(5)  { animation-delay: 0.14s; }
.post-card:nth-child(n+6) { animation-delay: 0.17s; }

/* No animation for AJAX-loaded cards */
.no-anim { animation: none !important; }
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter {
  animation: fadeOnly 0.3s ease both !important;
}
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter:nth-child(1)  { animation-delay: 0.02s; }
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter:nth-child(2)  { animation-delay: 0.05s; }
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter:nth-child(3)  { animation-delay: 0.08s; }
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter:nth-child(4)  { animation-delay: 0.11s; }
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter:nth-child(5)  { animation-delay: 0.14s; }
.post-card.ad-card-natural:not(.ad-strip-row).ad-card-enter:nth-child(n+6) { animation-delay: 0.17s; }

/* ── SUBREDDIT COLOR DOTS ─────────────────────────────────────── */
/* Generates consistent hue from subreddit name via JS data attr */
[data-hue] .sub-dot { background: hsl(attr(data-hue deg), 65%, 55%); }

/* ── SEO H1 — visible to crawlers, hidden from users ─────────── */
.seo-heading {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── FONT FOUC PREVENTION ───────────────────────────────────────────────────
   Hide material-icons spans until the icon font is loaded.
   Without this, slow connections show raw text like "local_fire_department"
   which breaks all button sizes and layout.
   visibility:hidden keeps layout space intact (no reflow on reveal).
   The .fonts-loaded class is added by JS once document.fonts.ready resolves.
   500ms fallback in JS ensures this never blocks indefinitely. */
/* Inline SVG icons — used for first-paint header/sidebar icons only.
   Sized and aligned to match .material-icons font glyphs exactly. */
.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
  fill: currentColor;
}
/* header-sort-icon SVG needs the same explicit font-size sizing as the span did */
.header-sort-icon.svg-icon { font-size: 16px; width: 16px; height: 16px; }

/* .material-icons font-loading handled by the icon font's font-display:block declaration.
   No visibility hiding needed — header icons that matter on first paint are now inline SVGs. */


/* ── LIGHTBOX LOADING SPINNER ────────────────────────────────
   Injected into #lbMedia (which is position:relative and fills the
   lightbox body). Absolutely centred within it — no fixed positioning
   so it's immune to the lightbox's own opacity/transform context. */
.lb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px; /* manual -50% centre: avoids compounding transforms */
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  pointer-events: none;
  z-index: 5;
}

/* ── GRID CARD HOVER SHIMMER (multi-col grids only) ────────
   Applied to .post-thumb when hover-autoplay is slow to start.
   NOT used in grid-1 (full-view) — that uses a spinner instead. */
:not(.grid-cols-1) .card-hover-loading .post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.07) 40%,
    rgba(255,255,255,0.13) 50%,
    rgba(255,255,255,0.07) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
}

/* ── GRID-1 CARD LOADING SPINNER ───────────────────────
   Full-view mode: spinner instead of shimmer, centred in the thumb */
.grid-cols-1 .card-hover-loading .post-thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px; /* manual centre: avoids transform conflict with thumb scale */
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  z-index: 4;
  pointer-events: none;
  /* no background/shimmer — pure spinner */
  background: none;
}

/* ── COLLECTIONS — card action menu, popover, lightbox buttons ── */

/* Wrapper — positioned absolute in .post-thumb bottom-right */
.col-menu-wrap {
  position: absolute;
  bottom: 13px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

/* Main collection menu button */
.col-menu-btn {
  width: var(--col-menu-btn-size);
  height: var(--col-menu-btn-size);
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  /* Hidden on desktop until hover — always visible on touch */
  opacity: 0;
  transform: scale(0.85);
}
/* Show on card hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .post-card:hover .col-menu-btn { opacity: 1; transform: scale(1); }
  .col-menu-btn:hover { background: rgba(0,0,0,0.85); color: #fff; }
}
/* Always visible on touch devices */
@media (hover: none) {
  .col-menu-btn { opacity: 1; transform: scale(1); }
}
/* Always visible when active (post is saved to any list) */
.col-menu-btn.col-menu-active { opacity: 1; transform: scale(1); color: var(--accent); }
.col-menu-btn.col-menu-guest {
  opacity: 1;
  transform: scale(1);
  color: rgba(255,255,255,0.68);
}
[data-theme="light"] .col-menu-btn.col-menu-guest {
  color: rgba(0,0,0,0.5);
}
.col-menu-btn .svg-icon {
  width: var(--col-menu-icon-size);
  height: var(--col-menu-icon-size);
}

/* Popover — opens above the collection button */
.col-menu-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  top: auto;
  background: rgba(10,12,16,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px;
  min-width: 150px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  z-index: 9999;
  transform-origin: bottom right;
  animation: colPopIn 0.12s ease both;
}
[data-theme="light"] .col-menu-popover {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.col-menu-popover.col-pop-open { display: block; }

.grid1-audio-wrap {
  position: absolute;
  bottom: 13px;
  left: 8px;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.grid-cols-1 .grid1-audio-wrap {
  display: flex;
}

.grid1-audio-btn {
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.grid1-audio-btn {
  width: var(--col-menu-btn-size);
  height: var(--col-menu-btn-size);
  padding: 0;
  opacity: 0;
  transform: scale(0.85);
}

.grid1-audio-btn .svg-icon {
  width: var(--col-menu-icon-size);
  height: var(--col-menu-icon-size);
}

@media (hover: hover) and (pointer: fine) {
  .post-card:hover .grid1-audio-btn { opacity: 1; transform: scale(1); }
  .grid1-audio-btn:hover { background: rgba(0,0,0,0.85); color: #fff; }
}

@media (hover: none) {
  .grid1-audio-btn { opacity: 1; transform: scale(1); }
}

.grid-cols-1 .grid1-audio-btn {
  opacity: 1;
  transform: scale(1);
}

.grid1-audio-btn.grid1-audio-active,
.grid1-audio-wrap.grid1-audio-open .grid1-audio-btn {
  color: var(--accent);
}

.grid1-audio-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  top: auto;
  background: rgba(10,12,16,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 12px 0;
  width: 44px;
  min-height: 132px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  z-index: 9999;
  transform-origin: bottom left;
  animation: colPopIn 0.12s ease both;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grid1-audio-popover.grid1-audio-open { display: flex; }

.grid1-audio-slider {
  width: 110px;
  height: 28px;
  accent-color: var(--accent);
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: center;
}

[data-theme="light"] .grid1-audio-popover {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@keyframes colPopIn {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes colActionPulse {
  0%   { opacity: 0; transform: scale(0.9); }
  20%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

@keyframes colActionPulseCore {
  0%   { transform: scale(0.82); }
  24%  { transform: scale(1); }
  100% { transform: scale(1.04); }
}

@keyframes colActionPulseOut {
  0%   { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(0.92); }
}

@keyframes colActionPulseCoreOut {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes colActionRing {
  0%   { opacity: 0; transform: scale(0.78); }
  18%  { opacity: 0.28; transform: scale(1); }
  100% { opacity: 0.18; transform: scale(1.18); }
}

@keyframes colActionRingOut {
  0%   { opacity: 0.18; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.34); }
}

.col-action-pulse {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: colActionPulse 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.col-action-pulse::before {
  content: '';
  position: absolute;
  width: var(--media-feedback-halo-size);
  height: var(--media-feedback-halo-size);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.12) 44%, rgba(0,0,0,0) 74%);
  opacity: 0;
  animation: colActionRing 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.col-action-pulse-core {
  position: relative;
  width: var(--media-feedback-circle-size);
  height: var(--media-feedback-circle-size);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.62);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  animation: colActionPulseCore 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.col-action-pulse.is-exiting {
  animation: colActionPulseOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.col-action-pulse.is-exiting::before {
  animation: colActionRingOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.col-action-pulse.is-exiting .col-action-pulse-core {
  animation: colActionPulseCoreOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.col-action-pulse .svg-icon {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.42));
}
[data-theme="light"] .col-action-pulse .svg-icon {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}
.col-action-pulse.is-favorites .col-action-pulse-core { color: var(--accent); }
.col-action-pulse.is-watchlater .col-action-pulse-core { color: #ffcf5a; }
.col-action-pulse.is-hidden .col-action-pulse-core { color: #f5f7fb; }
.col-action-pulse.is-removed .col-action-pulse-core { color: rgba(255,255,255,0.96); }
[data-theme="light"] .col-action-pulse::before {
  background: radial-gradient(circle, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.06) 44%, rgba(0,0,0,0) 74%);
}
[data-theme="light"] .col-action-pulse-core {
  background: rgba(18,20,26,0.58);
}
[data-theme="light"] .col-action-pulse.is-hidden .col-action-pulse-core {
  color: #ffffff;
}
[data-theme="light"] .col-action-pulse.is-removed .col-action-pulse-core {
  color: rgba(16,18,24,0.82);
  background: rgba(255,255,255,0.78);
  border-color: rgba(0,0,0,0.08);
}

/* Popover action buttons */
.col-pop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 7px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease, color 0.1s ease;
  white-space: nowrap;
}
[data-theme="light"] .col-pop-btn { color: rgba(0,0,0,0.75); }
.col-pop-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
[data-theme="light"] .col-pop-btn:hover { background: rgba(0,0,0,0.06); color: #000; }
.col-pop-btn .svg-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.col-pop-btn.col-pop-locked {
  opacity: 0.68;
  color: rgba(255,255,255,0.72);
}
[data-theme="light"] .col-pop-btn.col-pop-locked {
  color: rgba(0,0,0,0.58);
}
.col-pop-btn.col-pop-locked:hover {
  opacity: 0.92;
}
.col-pop-lock {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}
.col-pop-lock .svg-icon {
  width: 13px;
  height: 13px;
  opacity: 1;
}
/* Active state — list is currently saved */
.col-pop-btn.col-pop-active { color: var(--accent); }
.col-pop-btn.col-pop-active .svg-icon { opacity: 1; color: var(--accent); }
.col-pop-btn.col-pop-active:hover { background: var(--accent-glow); }
.col-pop-btn.col-hide-confirm {
  color: #ffcf5a;
  background: rgba(255, 207, 90, 0.14);
}
.col-pop-btn.col-hide-confirm .svg-icon {
  opacity: 1;
  color: #ffcf5a;
}
/* Hide button — slightly dimmer default */
.col-pop-hide { opacity: 0.7; }
.col-pop-hide:hover { opacity: 1; }
.col-pop-hide.col-pop-active { opacity: 1; color: var(--text-muted); }
[data-theme="light"] .col-pop-hide.col-pop-active { color: var(--text-muted); }
/* Divider between save options and hide */
.col-pop-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2px 6px;
}
[data-theme="light"] .col-pop-divider { border-color: rgba(0,0,0,0.08); }

/* Lightbox collection buttons — match existing .lb-ss-btn style */
.lb-col-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 8px;
  position: relative;
}
.lb-col-btn .svg-icon { width: 18px; height: 18px; }
.lb-col-btn.lb-col-active { color: var(--accent); border-color: rgba(255,61,95,0.3); background: var(--accent-glow); }
.lb-col-btn.lb-col-locked {
  color: var(--text-muted);
  opacity: 0.72;
}
.lb-col-btn.lb-col-locked:hover {
  color: var(--text);
  opacity: 0.92;
}
[data-theme="light"] .lb-col-btn.lb-col-locked {
  color: rgba(0,0,0,0.5);
}
.lb-col-btn.col-hide-confirm {
  color: #ffcf5a;
  border-color: rgba(255, 207, 90, 0.34);
  background: rgba(255, 207, 90, 0.14);
}
[data-theme="light"] .lb-col-btn.lb-col-active { color: var(--accent); }
[data-theme="light"] .lb-col-btn.col-hide-confirm { color: #c08900; }
.col-lock-badge {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,12,16,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  pointer-events: none;
}
[data-theme="light"] .col-lock-badge {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.62);
}
.col-lock-badge .svg-icon {
  width: 9px;
  height: 9px;
}
#lbColButtons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 8px;
}
.lb-hidden-blackout {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
}
.lb-col-menu-wrap {
  position: relative;
  flex-shrink: 0;
}
.lb-col-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: none;
  min-width: 176px;
  padding: 6px 0;
  border-radius: 10px;
  background: rgba(10,12,16,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 14px 34px rgba(0,0,0,0.42);
  z-index: 15;
}
.lb-col-menu.open { display: block; }
.lb-col-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.lb-col-menu-item:hover {
  background: rgba(255,255,255,0.06);
}
.lb-col-menu-item .svg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
.lb-col-menu-item-locked {
  color: rgba(255,255,255,0.42);
}
.lb-col-menu-item .col-pop-lock {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.42);
}
.lb-col-menu-item-locked:hover {
  color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.035);
}
.lb-col-menu-item.col-hide-confirm {
    color: #ffcf5a;
    background: rgba(255, 207, 90, 0.08);
  }
.lb-col-menu-divider {
  height: 1px;
  margin: 5px 12px;
  background: rgba(255,255,255,0.08);
}
[data-theme="light"] .lb-col-menu {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}
[data-theme="light"] .lb-col-menu-item:hover {
    background: rgba(0,0,0,0.06);
  }
[data-theme="light"] .lb-col-menu-item-locked,
[data-theme="light"] .lb-col-menu-item .col-pop-lock {
  color: rgba(0,0,0,0.48);
}
[data-theme="light"] .lb-col-menu-item-locked:hover {
  color: rgba(0,0,0,0.48);
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .lb-col-menu-item.col-hide-confirm {
    color: #c08900;
    background: rgba(255, 207, 90, 0.16);
  }
[data-theme="light"] .lb-col-menu-divider {
  background: rgba(0,0,0,0.08);
}

/* ── ADBLOCK FALLBACKS ───────────────────────────────────────── */
.adblock-fallback {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}
.fallback-message,
.adblock-fallback-text {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.lb-ad-leaderboard .adblock-fallback,
.lb-ad-banner .adblock-fallback,
.lb-ad-mobile .adblock-fallback {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.lb-ad-leaderboard .fallback-message,
.lb-ad-banner .fallback-message,
.lb-ad-mobile .fallback-message,
.lb-ad-leaderboard .adblock-fallback-text,
.lb-ad-banner .adblock-fallback-text,
.lb-ad-mobile .adblock-fallback-text {
  color: rgba(255, 255, 255, 0.5);
}
