@import url('/vendor/icons.css');
/* Catalog layouts use the shared glass and motion tokens. */
.catalog-page {
  --text: #352331;
  --muted: #705969;
  --accent: #c82f78;
  /* Liquid glass — refraction + edge light, not frosted milk. */
  --catalog-glass:
    linear-gradient(145deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.28) 46%, rgba(255,232,246,.4) 100%),
    radial-gradient(120% 80% at 12% 0%, rgba(255,255,255,.52), transparent 52%),
    radial-gradient(95% 80% at 100% 100%, rgba(236,72,153,.14), transparent 56%);
  --catalog-edge: rgba(214,51,132,.22);
  --catalog-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 1px 0 0 rgba(255,255,255,.28),
    inset -1px 0 0 rgba(214,51,132,.08),
    inset 0 -16px 26px rgba(236,72,153,.08),
    0 12px 32px rgba(214,51,132,.12);
  --catalog-blur: blur(1.2px) saturate(188%) contrast(1.12) brightness(1.03);
  letter-spacing: 0;
}
.catalog-page *, .catalog-page *::before, .catalog-page *::after { letter-spacing: 0; }
.catalog-page [hidden] { display: none !important; }
.catalog-page .main { padding: 62px 0 0; }
.catalog-page #kanban-girl { width: 150px; right: 8px; z-index: 5; }
/* Navbar chrome is shared site-wide via styles.css — do not restyle here. */
.catalog-page::after { content: none; }
.catalog-page #page-veil { display: none; }
.catalog-page :focus-visible { outline: 2px solid #a82367; outline-offset: 4px; }
.catalog-container { width: min(100% - 48px, 1128px); margin: 0 auto; }
.catalog-page .lucide { width: 19px; height: 19px; stroke-width: 1.8; flex: 0 0 auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 5000; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.discover-header { padding: 38px 0 26px; border-bottom: 1px solid rgba(255,255,255,.6); }
.eyebrow { font-size: 11px; font-weight: 700; color: #846077; }
.discover-header h1 { font-size: 54px; line-height: 1.15; font-weight: 850; color: #b42667; margin: 8px 0 10px; }
.discover-header h1 span { font-size: 22px; font-weight: 550; color: var(--text); margin-left: 18px; }
.discover-tagline { font-size: 14px; color: #684b60; margin-bottom: 20px; }
.catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 540px);
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--catalog-edge);
  border-radius: 12px;
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
}
.catalog-search:focus-within { border-color: rgba(236,72,153,.45); box-shadow: var(--catalog-shadow), 0 0 0 3px rgba(236,72,153,.1); }
.catalog-search input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 0; outline: 0; }
.catalog-search input::placeholder { color: #806c7a; }
.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--catalog-edge);
  border-radius: 10px;
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
  color: var(--text);
  cursor: pointer;
}
.primary { color: white; background: linear-gradient(145deg,#d14a8a,#b82870); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(184,40,112,.28); }
.icon-button:hover:not(:disabled), .catalog-command:hover { filter: brightness(1.08); }
.icon-button:disabled { opacity: .4; cursor: default; }
.community-stats { display: flex; flex-wrap: wrap; gap: 24px; min-height: 24px; margin-top: 19px; font-size: 12px; color: var(--muted); }
.community-stats strong { font-size: 16px; color: #543047; margin-right: 5px; font-variant-numeric: tabular-nums; }
.destination-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; padding: 22px 0; }
.destination {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--catalog-edge);
  border-radius: 14px;
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
}
.destination-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(24,126,117,.28);
  border-radius: 12px;
  color: #12675f;
  background:
    linear-gradient(145deg, rgba(255,255,255,.85), rgba(220,245,238,.72)),
    radial-gradient(80% 80% at 20% 0%, rgba(255,255,255,.7), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px rgba(24,126,117,.1);
  backdrop-filter: blur(1.2px) saturate(188%) contrast(1.12);
  -webkit-backdrop-filter: blur(1.2px) saturate(188%) contrast(1.12);
}
.destination-icon [data-lucide] { width: 26px; height: 26px; }
.contest-destination .destination-icon {
  color: #aa2863;
  border-color: rgba(177,48,114,.28);
  background:
    linear-gradient(145deg, rgba(255,255,255,.85), rgba(252,224,240,.72)),
    radial-gradient(80% 80% at 20% 0%, rgba(255,255,255,.7), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px rgba(177,48,114,.12);
}
.destination > span:not(.destination-icon) { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.destination strong { font-size: 15px; font-weight: 700; }
.destination small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destination > [data-lucide]:last-child { color: #775669; transition: translate var(--ui-fast) var(--ui-ease); }
@media (hover: hover) { .destination:hover > [data-lucide]:last-child { translate: 2px -2px; } }
.destination:hover strong, .text-link:hover { color: var(--accent); }
.catalog-section { padding: 28px 0; }
.catalog-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-section-heading h2 { font-size: 21px; font-weight: 750; }
.catalog-section-heading > .lucide { color: #8c657d; }
.text-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-size: 13px; color: #80546f; cursor: pointer; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.chart-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--catalog-edge);
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
  transition: border-color .18s, box-shadow .25s var(--ui-ease), translate .25s var(--ui-ease);
}
.chart-card:hover {
  border-color: rgba(236,72,153,.48);
  translate: 0 -2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -16px 26px rgba(236,72,153,.06),
    0 16px 36px rgba(184,40,112,.18);
}
.chart-link { display: block; }
.chart-art { aspect-ratio: 1; width: 100%; position: relative; overflow: hidden; background: rgba(255,255,255,.55); }
.chart-art img { width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); }
.chart-art .chart-category {
  position: absolute;
  bottom: 9px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 6px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(1.2px) saturate(188%) contrast(1.12);
  -webkit-backdrop-filter: blur(1.2px) saturate(188%) contrast(1.12);
  font-size: 11px;
  color: #564050;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.chart-body { padding: 13px 14px 9px; }
.chart-title { font-size: 15px; line-height: 1.45; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-artist, .chart-charter { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); margin-top: 3px; }
.chart-levels { display: flex; gap: 4px; height: 23px; overflow: hidden; margin-top: 9px; }
.chart-levels span {
  display: inline-block;
  white-space: nowrap;
  background:
    linear-gradient(145deg, rgba(255,255,255,.8), rgba(221,247,240,.72));
  border: 1px solid rgba(24,126,117,.14);
  color: #356d62;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 21px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.chart-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 14px 10px; gap: 8px; }
.chart-score { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 650; color: #724a21; }
.chart-score .lucide { width: 14px; height: 14px; color: #ad7627; }
.chart-score small { font-weight: 400; color: var(--muted); }
.chart-bottom .icon-button { width: 30px; height: 30px; flex-basis: 30px; color: #9f3267; }
.chart-bottom .icon-button .lucide { width: 16px; height: 16px; }
.community-columns { display: grid; grid-template-columns: 1.6fr 1fr; column-gap: 52px; border-top: 1px solid rgba(128,68,103,.15); }
.activity-item { display: block; padding: 15px 0; border-bottom: 1px solid rgba(135,70,107,.14); }
.activity-heading { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.activity-heading strong { color: #614154; }
.activity-heading time { margin-left: auto; }
.activity-item p { font-size: 14px; line-height: 1.6; margin-top: 7px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-list { display: grid; gap: 8px; }
.member-item { display: flex; align-items: center; min-width: 0; gap: 12px; padding: 10px 0; }
.member-item img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.member-item div { min-width: 0; }
.member-item strong, .member-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-item strong { font-size: 13px; }
.member-item small { font-size: 12px; color: var(--muted); }
.catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(128,68,103,.15); padding: 24px 0 28px; color: var(--muted); font-size: 12px; }
.catalog-footer > a { display: inline-flex; align-items: center; gap: 5px; }
.catalog-footer > a:first-child { font-size: 22px; font-weight: 800; color: #ad326e; }
.library-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 25px; }
.library-header h1 { font-size: 30px; margin-top: 5px; }
.catalog-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--catalog-edge);
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
}
.catalog-command.primary,
.icon-button.primary {
  color: #fff;
  background: linear-gradient(145deg,#d14a8a,#b82870);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(184,40,112,.28);
}
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.filter-bar .catalog-search { max-width: 600px; }
.sort-control { display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.sort-control select {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  height: 44px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--catalog-edge);
  border-radius: 10px;
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
}
.catalog-genres { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 0; padding-bottom: 16px; border-bottom: 1px solid rgba(128,68,103,.15); }
.catalog-genres button {
  min-height: 36px;
  min-width: 58px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  color: #7d576d;
  cursor: pointer;
  transition: color .16s, background .2s, border-color .16s, box-shadow .22s, translate .18s var(--ui-ease);
}
.catalog-genres button:hover:not([aria-pressed="true"]) {
  color: #c32e78;
  background: rgba(255,255,255,.42);
  border-color: rgba(195,46,120,.18);
  translate: 0 -1px;
}
.catalog-genres button[aria-pressed="true"] {
  color: #a62865;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,232,245,.5));
  border-color: rgba(188,88,139,.28);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(151,47,100,.12);
  font-weight: 700;
}
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; font-size: 12px; color: var(--muted); }
.catalog-status { padding: 48px 16px; text-align: center; color: var(--muted); }
.catalog-status h2 { font-size: 20px; margin: 10px 0; color: var(--text); }
.catalog-status p { margin-bottom: 16px; }
.catalog-status > .lucide { width: 30px; height: 30px; }
.catalog-pagination { min-height: 110px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.catalog-pagination button[aria-current="page"] {
  background: linear-gradient(145deg,#d14a8a,#b82870);
  color: white;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(184,40,112,.28);
}
.catalog-pagination button:not([aria-current="page"]) {
  border: 1px solid var(--catalog-edge);
  background: var(--catalog-glass);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  box-shadow: var(--catalog-shadow);
  color: var(--text);
}
.catalog-skeleton {
  aspect-ratio: .67;
  background: var(--catalog-glass);
  border: 1px solid var(--catalog-edge);
  border-radius: 14px;
  box-shadow: var(--catalog-shadow);
  backdrop-filter: var(--catalog-blur);
  -webkit-backdrop-filter: var(--catalog-blur);
  animation: catalog-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes catalog-pulse { to { opacity: .45; } }
@media (max-width: 1500px) { .catalog-page #kanban-girl { display: none; } }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; } .community-columns { gap: 30px; } }
@media (max-width: 720px) {
  .catalog-container { width: calc(100% - 32px); }
  .discover-header { padding: 24px 0 22px; }
  .discover-header h1 { font-size: 42px; }
  .discover-header h1 span { font-size: 19px; margin-left: 12px; }
  .destination-row { grid-template-columns: 1fr 1fr; padding: 14px 0; row-gap: 10px; }
  .destination { padding: 12px; gap: 8px; min-height: 74px; }
  .destination:first-child { grid-column: 1 / -1; }
  .destination-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 6px; }
  .destination-icon [data-lucide] { width: 22px; height: 22px; }
  .destination:not(:first-child) > [data-lucide]:last-child { display: none; }
  .destination strong { font-size: 13px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .catalog-section { padding: 22px 0; }
  .catalog-section-heading h2 { font-size: 19px; }
  .chart-body { padding: 10px 10px 7px; }
  .chart-title { font-size: 13px; }
  .chart-bottom { padding: 0 10px 9px; }
  .chart-score { gap: 3px; font-size: 11px; }
  .chart-score small { font-size: 10px; }
  .community-columns { grid-template-columns: 1fr; }
  .member-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
  .library-header { margin-top: 22px; }
  .library-header h1 { font-size: 26px; }
  .filter-bar { align-items: stretch; flex-direction: column; gap: 12px; }
  .sort-control { justify-content: flex-end; }
  .catalog-genres { gap: 2px; margin-top: 14px; }
  .catalog-genres button { min-width: 0; padding: 6px 12px; }
  .catalog-footer { flex-wrap: wrap; }
  .catalog-footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-page *, .catalog-page *::before, .catalog-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .destination-row { column-gap: 10px; }
  .destination:not(:first-child) { padding: 10px 8px; gap: 6px; }
  .destination-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .destination strong { font-size: 12px; }
}
