:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-card: #ffffff;
  --fg: #141414;
  --fg-soft: #707070;
  --accent: #141414;
  --accent-strong: #000000;
  --border: #e7e3db;
  --thumb-bg: #f0eee9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-strong); }

/* === Top nav (Cosmos-style: brand left, items right, sticky) =========== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.topnav-brand {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.topnav-brand:hover { color: var(--accent-strong); }
.topnav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-btn {
  font: inherit;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--fg);
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s, color 0.12s;
}
.nav-btn:hover { background: var(--bg-soft); color: var(--accent-strong); }
.nav-btn .caret { display: inline-flex; opacity: 0.55; }
.nav-btn .caret svg { width: 10px; height: 10px; }
.nav-btn .clear-x { display: none; }
.nav-btn.active { color: var(--accent-strong); font-weight: 500; }
.nav-btn.active .caret { display: none; }
.nav-btn.active .clear-x {
  display: inline-flex;
  width: 14px; height: 14px;
  opacity: 0.7;
}
.nav-btn.active .clear-x svg { width: 10px; height: 10px; }
.nav-btn.active .clear-x:hover { opacity: 1; }

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 0 10px;
  margin-left: 4px;
}
.nav-search-icon { display: inline-flex; color: var(--fg-soft); }
.nav-search-icon svg { width: 14px; height: 14px; }
.topnav #search {
  border: none;
  background: transparent;
  padding: 7px 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--fg);
  width: 180px;
  min-width: 0;
}
.topnav #search:focus { outline: none; }
.topnav #search::placeholder { color: var(--fg-soft); }

@media (max-width: 880px) {
  .topnav { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .topnav-brand { flex-basis: 100%; }
  .topnav-right { flex-wrap: wrap; gap: 2px; }
  .topnav #search { width: 140px; }
}

/* === Hero (centered, no mosaic) ======================================== */

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.08;
}
.hero .tagline {
  margin: 0 auto 28px;
  font-size: 0.98rem;
  color: var(--fg);
  max-width: 600px;
  line-height: 1.55;
}
.hero .tagline strong { font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.hero-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

.hero.hero-simple { padding: 48px 32px 32px; }
.hero.hero-simple h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 10px; }

@media (max-width: 700px) {
  .hero { padding: 36px 20px 28px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
}

/* === Buttons =========================================================== */

.btn {
  font: inherit;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { border-color: var(--fg); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { background: transparent; }
.btn.active { border-color: var(--fg); color: var(--fg); font-weight: 500; }
.btn .caret { opacity: 0.55; font-size: 0.8em; margin-left: 2px; }

/* === Explore header (the toolbar above the grid) ====================== */

.explore-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 24px 14px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.explore-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  font-family: ui-serif, Georgia, serif;
}
.explore-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.count {
  font-size: 0.88rem;
  color: var(--fg-soft);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
#shelves.hidden { display: none; }

/* === Dropdowns ========================================================= */

.dropdown { position: relative; display: inline-block; font-family: ui-sans-serif, system-ui, sans-serif; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 60;
  box-shadow: var(--shadow-lg);
}
.dropdown-menu.hidden { display: none; }
.dropdown-menu h4 {
  margin: 12px 6px 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-soft);
  font-weight: 600;
}
.dropdown-menu h4:first-child { margin-top: 6px; }
.dropdown-menu .opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.dropdown-menu .opt:hover { background: var(--bg-soft); }
.dropdown-menu .opt.active { background: var(--accent); color: #fff; font-weight: 500; }
.dropdown-menu .opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dropdown-menu .opt-count {
  color: var(--fg-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.dropdown-menu .opt.active .opt-count { color: rgba(255, 255, 255, 0.7); }
.dropdown-menu .clear-opt {
  font-style: italic;
  color: var(--fg-soft);
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  margin-bottom: 4px;
  padding-bottom: 8px;
}
.dropdown-menu .clear-opt.active { background: transparent; color: var(--fg); font-weight: 500; font-style: normal; }

.filter-search-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
}
.filter-search-input:focus { outline: none; border-color: var(--fg); }
.filter-options { display: flex; flex-direction: column; gap: 2px; }

.filter-btn .clear-x {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background 0.15s;
}
.filter-btn .clear-x:hover { background: rgba(0, 0, 0, 0.18); }
.filter-btn.active .caret { display: none; }
.filter-btn.active .clear-x { display: inline-flex; }
.filter-btn.active .label { font-weight: 500; }

/* === Netflix-style shelves ============================================ */

.shelves {
  padding: 28px 0 8px;
}
.shelf {
  margin: 0 0 40px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.shelf-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  gap: 12px;
}
.shelf-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  font-family: ui-serif, Georgia, serif;
  color: var(--fg);
}
.shelf-header h3 a { color: inherit; text-decoration: none; }
.shelf-header h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.shelf-count {
  font-size: 0.8rem;
  color: var(--fg-soft);
  margin-left: 10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: normal;
  letter-spacing: 0;
}
.shelf-actions { display: flex; gap: 8px; flex-shrink: 0; }
.shelf-actions .btn { padding: 6px 12px; font-size: 0.82rem; }

.shelf-scroller { position: relative; }
.shelf-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--shelf-gutter, 24px);
  scroll-behavior: smooth;
  padding: 4px 0 8px;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  -webkit-overflow-scrolling: touch;
}
.shelf-row::-webkit-scrollbar { display: none; }
/* Spacers driven by the --shelf-gutter custom property updated by JS on resize.
   This matches the centered shelf-header's left edge at any viewport width
   so the first card aligns with the section title, while the row itself spans
   edge to edge so scrolling reveals cards all the way to the viewport's right. */
.shelf-row::before {
  content: "";
  flex: 0 0 var(--shelf-gutter, 24px);
}
.shelf-row::after {
  content: "";
  flex: 0 0 24px;
}
.shelf-header { padding-left: var(--shelf-gutter, 24px); padding-right: var(--shelf-gutter, 24px); }

.shelf-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.shelf-card:hover {
  transform: translateY(-2px);
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.shelf-thumb {
  aspect-ratio: 4/3;
  background: var(--thumb-bg);
  overflow: hidden;
}
.shelf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-meta { padding: 10px 12px 12px; }
.shelf-meta h4 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-meta p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--fg-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-arrow {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.18s, background 0.15s, color 0.15s;
  box-shadow: var(--shadow-md);
}
.shelf-scroller:hover .shelf-arrow { opacity: 1; }
.shelf-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.shelf-arrow-prev { left: 6px; }
.shelf-arrow-next { right: 6px; }

@media (max-width: 700px) {
  .shelf-arrow { display: none; }
  .shelf-card { flex-basis: 170px; }
  .shelf-header { padding: 0 16px 10px; flex-wrap: wrap; gap: 6px; }
  .shelf-header h3 { font-size: 1.1rem; }
  .shelf-row { padding: 4px 0 8px; gap: 10px; scroll-padding-inline-start: 16px; }
  .shelf-row::before { flex-basis: 16px; }
  .shelf-row::after { flex-basis: 16px; }
}

/* === Main grid ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 4px 24px 120px;
  max-width: 1600px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.card .thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--thumb-bg);
  overflow: hidden;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card .meta { padding: 12px 14px 14px; font-family: ui-sans-serif, system-ui, sans-serif; }
.card .meta h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--fg-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.card .check, .shelf-card .check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.card .check svg, .shelf-card .check svg { width: 14px; height: 14px; }
.card:hover .check, .card.selected .check,
.shelf-card:hover .check, .shelf-card.selected .check { opacity: 1; }
.card.selected .check, .shelf-card.selected .check {
  background: var(--accent); border-color: var(--accent); color: #fff;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.card .dl-btn, .shelf-card .dl-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.card .dl-btn svg, .shelf-card .dl-btn svg { width: 16px; height: 16px; }
.card:hover .dl-btn, .shelf-card:hover .dl-btn { opacity: 1; }
.card .dl-btn:hover, .shelf-card .dl-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.shelf-card { position: relative; }
.shelf-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* === Floating selection bar ============================================ */

.floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  animation: floatBarIn 0.18s ease;
}
.floating-bar.hidden { display: none; }
@keyframes floatBarIn {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.sel-info {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  font-weight: 400;
}
.sel-info #selCount { color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
.sel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.65;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: selPulse 2.2s ease-in-out infinite;
}
@keyframes selPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
}
.sel-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.sel-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.88rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sel-clear:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.sel-download {
  background: #fff;
  border: none;
  color: #141414;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s, transform 0.05s;
}
.sel-download:hover { background: rgba(255, 255, 255, 0.92); }
.sel-download:active { transform: scale(0.985); }
.sel-download:disabled { background: rgba(255, 255, 255, 0.72); cursor: wait; }
.sel-download-icon { display: inline-flex; color: inherit; }
.sel-download-icon svg { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .floating-bar { font-size: 0.84rem; padding: 5px 5px 5px 14px; gap: 6px; }
  .sel-divider { height: 16px; }
}

/* === Lightbox (kept dark for image viewing) ============================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.hidden { display: none; }

.lb-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lb-content img {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.lb-info {
  background: #fff;
  color: var(--fg);
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  max-width: 720px;
  padding: 18px 22px;
  border-radius: 12px;
}
.lb-info h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 500; }
.lb-info p { margin: 4px 0; }
.lb-info .muted { color: var(--fg-soft); font-size: 0.88rem; }
#lbArtist { color: var(--fg); text-decoration: none; }
#lbArtist:hover { color: var(--accent-strong); text-decoration: underline; }
.lb-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

.lightbox .close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.lb-nav:hover { background: #fff; color: var(--fg); border-color: #fff; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 600px) {
  .lb-nav { width: 40px; height: 48px; font-size: 24px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

.artist-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,0.2); }
.artist-link:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

/* === Footer ============================================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 40px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--fg-soft);
  max-width: 760px;
  margin: 0 auto;
}
footer a { color: var(--fg); }
footer .muted { color: var(--fg-soft); font-size: 0.85rem; opacity: 0.8; }

/* === Misc states ======================================================= */

.hidden { display: none !important; }

.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-soft);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.skeleton { cursor: default; }
.skeleton:hover { transform: none; border-color: var(--border); box-shadow: none; }
.skeleton .check, .skeleton .dl-btn { display: none; }
.shimmer {
  background: linear-gradient(90deg, var(--bg-soft) 0%, #e8e6e1 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.sk-line { height: 12px; border-radius: 4px; margin-top: 8px; }
.sk-line.w70 { width: 70%; }
.sk-line.w40 { width: 40%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 600px) {
  .explore-header { padding: 18px 16px 12px; }
  .grid { padding: 4px 14px 120px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .floating-bar { font-size: 0.85rem; padding: 10px 14px; }
}
