:root {
  --bg: #090b0d;
  --panel: #101318;
  --panel-2: #14181e;
  --panel-3: #191e25;
  --border: #242b34;
  --border-soft: #1b2128;
  --text: #f3f5f7;
  --muted: #9ba6b3;
  --muted-2: #6f7a87;
  --accent: #ff74bc;
  --accent-strong: #ff8bc9;
  --accent-soft: rgba(255, 116, 188, .12);
  --positive: #61d286;
  --positive-strong: #79dfa0;
  --positive-soft: rgba(97, 210, 134, .12);
  --warn: #f5c86a;
  --danger: #ff7e86;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(78, 146, 102, .10), transparent 35%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.shell { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: .055;
  z-index: -1;
}
.ambient-a { background: #ff74bc; right: -220px; top: 160px; }
.ambient-b { background: #6a8cff; left: -250px; top: 720px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 11, 13, .84);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  cursor: pointer;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #79ef9f, #3fc978);
  box-shadow: 0 8px 24px rgba(67, 210, 124, .20);
}
.brand-mark svg { width: 22px; fill: #07110a; }
.beta {
  font-size: 9px;
  padding: 3px 6px;
  border: 1px solid #35503f;
  border-radius: 999px;
  color: #9ee7b5;
  letter-spacing: .08em;
}
.nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.nav-item {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-size: 14px;
  cursor: pointer;
  transition: color .16s ease;
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); }
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}
.top-actions { margin-left: auto; }
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: #c7d0d9;
  font-size: 13px;
  background: #0f1216;
  transition: border-color .16s, background .16s;
}
.ghost-button:hover { border-color: #36414d; background: #14181d; }

.hero { padding: 64px 0 38px; }
.hero-copy { max-width: 820px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint, #6f7a87);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(111, 227, 154, .08);
}
.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero h1 span { color: #a6b0bb; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; }
.search-box {
  margin-top: 30px;
  display: flex;
  align-items: center;
  min-height: 58px;
  width: min(900px, 100%);
  padding: 0 14px 0 18px;
  border: 1px solid #2a333d;
  border-radius: 16px;
  background: rgba(17, 21, 26, .94);
  box-shadow: 0 20px 55px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.02);
  transition: border-color .16s, box-shadow .16s;
}
.search-box:focus-within {
  border-color: color-mix(in srgb, var(--accent) 52%, #2a333d);
  box-shadow: 0 20px 55px rgba(0,0,0,.30), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent);
}
.search-icon { width: 22px; height: 22px; margin-right: 12px; color: #7d8996; }
.search-icon svg { width: 100%; fill: currentColor; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.search-box input::placeholder { color: #687380; }
kbd {
  border: 1px solid #2f3842;
  border-bottom-color: #3a4652;
  border-radius: 7px;
  padding: 3px 7px;
  color: #6f7c88;
  background: #0c0f12;
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quick-chip {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #0e1115;
  color: #8994a0;
  padding: 7px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.quick-chip:hover { color: #cfd5db; border-color: #303944; background: #12161a; }

.catalog {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 80px;
}
.filters {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 19px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(15, 18, 22, .80);
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-kicker { color: #66727e; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.filter-heading h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.02em; }
.text-button { border: 0; background: transparent; color: var(--accent-strong); font-size: 11px; cursor: pointer; padding: 5px; }
.text-button:hover { color: color-mix(in srgb, var(--accent) 78%, var(--text)); }
.filter-group { padding: 15px 0; border-top: 1px solid var(--border-soft); }
.filter-label { display: block; margin-bottom: 9px; color: #aeb7c1; font-size: 11px; font-weight: 650; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-55%);
  color: #697480;
  pointer-events: none;
}
select {
  width: 100%;
  appearance: none;
  border: 1px solid #252d36;
  border-radius: 10px;
  outline: none;
  background: #0d1014;
  color: #d5dbe1;
  padding: 9px 30px 9px 10px;
  font-size: 12px;
  cursor: pointer;
}
select:focus { border-color: color-mix(in srgb, var(--accent) 58%, var(--line, #252d36)); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid #252d36; border-radius: 10px; background: #0d1014; }
.segment {
  border: 0;
  border-radius: 7px;
  padding: 7px 3px;
  background: transparent;
  color: #707b87;
  font-size: 10px;
  cursor: pointer;
}
.segment.active { color: #dce3e8; background: #1b2229; box-shadow: inset 0 1px rgba(255,255,255,.03); }
.filter-note {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.filter-note-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
  font-weight: 800;
  font-size: 10px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 16px;
  margin-bottom: 14px;
}
.results-title { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.results-title > span:first-child { font-size: 14px; font-weight: 700; }
.results-sub { color: #66717c; font-size: 11px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.select-wrap.compact select { width: 190px; padding-top: 8px; padding-bottom: 8px; }
.mobile-filter { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 0; margin-bottom: 14px; }
.active-filters:empty { margin: 0; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line, #294433));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: color-mix(in srgb, var(--accent) 66%, var(--text));
  font-size: 10px;
}
.filter-pill button { border: 0; background: transparent; color: color-mix(in srgb, var(--accent) 46%, var(--muted)); cursor: pointer; padding: 0; line-height: 1; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card {
  position: relative;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(18, 22, 27, .97), rgba(14, 17, 21, .97));
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: var(--project-color, rgba(111, 227, 154, .08));
  filter: blur(45px);
  opacity: .16;
  pointer-events: none;
}
.project-card:hover { transform: translateY(-2px); border-color: #34404a; background: linear-gradient(180deg, #151a20, #101419); }
.card-top { display: flex; gap: 13px; }
.project-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #1b2026;
  border: 1px solid #283039;
}
.project-icon.fallback { display: grid; place-items: center; color: #84909b; font-weight: 800; }
.card-main { min-width: 0; flex: 1; }
.card-title-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-title { margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.015em; }
.type-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: #1a2320;
  color: #8cd8a5;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.card-author { margin-top: 3px; color: #697580; font-size: 10px; }
.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 11px 0 12px;
  color: #a1abb5;
  font-size: 12px;
  line-height: 1.48;
  min-height: 35px;
}
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.tag {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 6px;
  border: 1px solid #262f38;
  border-radius: 6px;
  background: #0d1013;
  color: #78838e;
  font-size: 9px;
}
.card-footer { display: flex; align-items: center; gap: 13px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #1d232a; color: #69747f; font-size: 9px; }
.stat { display: inline-flex; align-items: center; gap: 5px; }
.stat svg { width: 12px; height: 12px; fill: currentColor; }
.updated { margin-left: auto; white-space: nowrap; }

.skeleton-card { pointer-events: none; }
.skeleton { background: linear-gradient(90deg, #171c22 25%, #20262d 38%, #171c22 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 7px; }
.sk-icon { width: 58px; height: 58px; border-radius: 12px; }
.sk-title { width: 52%; height: 14px; margin-top: 4px; }
.sk-author { width: 28%; height: 8px; margin-top: 9px; }
.sk-desc { width: 100%; height: 10px; margin-top: 18px; }
.sk-desc.two { width: 83%; margin-top: 7px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.empty-state, .error-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed #26303a;
  border-radius: 16px;
  background: rgba(15, 18, 22, .5);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #171c21;
  color: #7b8792;
  font-size: 22px;
  font-weight: 800;
}
.empty-state h3, .error-state h3 { margin: 0 0 6px; font-size: 16px; }
.empty-state p, .error-state p { margin: 0 auto 17px; max-width: 420px; color: #75808b; font-size: 12px; }
.primary-button {
  border: 1px solid color-mix(in srgb, var(--accent) 64%, var(--line, #4b8a60));
  border-radius: 10px;
  background: var(--accent);
  color: #2b071c;
  font-size: 12px;
  font-weight: 750;
  padding: 9px 13px;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 14%, transparent);
}
.primary-button:hover { filter: brightness(1.05); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.page-numbers { display: flex; gap: 5px; }
.page-button, .page-arrow {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid #232b33;
  border-radius: 9px;
  background: #0f1216;
  color: #78838e;
  font-size: 11px;
  cursor: pointer;
}
.page-button:hover, .page-arrow:hover { border-color: #37414c; color: #cbd2d8; }
.page-button.active { color: #2b071c; border-color: var(--accent); background: var(--accent); font-weight: 800; }
.page-arrow:disabled { opacity: .35; cursor: default; }

.footer { border-top: 1px solid var(--border-soft); background: #090b0d; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; color: #5e6974; font-size: 10px; }
.footer-inner div { display: flex; align-items: baseline; gap: 9px; }
.footer-inner strong { color: #929da8; font-size: 12px; }
.footer-inner p { margin: 0; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(5px);
}
.drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(780px, 100%);
  height: 100vh;
  overflow-y: auto;
  background: #0d1013;
  border-left: 1px solid #29313a;
  box-shadow: -35px 0 100px rgba(0,0,0,.45);
  transform: translateX(102%);
  transition: transform .22s cubic-bezier(.2,.75,.25,1);
}
.drawer.open { transform: translateX(0); }
.drawer-close {
  position: fixed;
  z-index: 2;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #303943;
  border-radius: 11px;
  background: rgba(12,15,18,.87);
  color: #aeb7bf;
  font-size: 23px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.detail-loading { padding: 90px 28px; }
.detail-hero { position: relative; padding: 54px 28px 24px; overflow: hidden; border-bottom: 1px solid #1c232a; }
.detail-glow { position: absolute; inset: -150px 0 auto; height: 320px; opacity: .15; filter: blur(70px); pointer-events: none; }
.detail-head { position: relative; display: flex; gap: 17px; padding-right: 40px; }
.detail-icon { width: 78px; height: 78px; border-radius: 16px; object-fit: cover; border: 1px solid #323b45; background: #171c22; }
.detail-title-wrap { min-width: 0; }
.detail-type { color: #82d59e; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.detail-title { margin: 3px 0 4px; font-size: 27px; line-height: 1.12; letter-spacing: -.035em; }
.detail-author { color: #77838f; font-size: 11px; }
.detail-description { position: relative; margin: 17px 0 0; max-width: 630px; color: #aeb7c0; font-size: 13px; line-height: 1.55; }
.detail-actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid #2b343e;
  border-radius: 10px;
  background: #13171c;
  color: #c4cbd2;
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
}
.detail-action.primary { border-color: color-mix(in srgb, var(--positive) 64%, #234b32); background: var(--positive); color: #071009; font-weight: 800; }
.detail-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 22px; }
.detail-stat { padding: 10px 11px; border: 1px solid #202831; border-radius: 10px; background: rgba(8,10,12,.32); }
.detail-stat span { display: block; color: #66727e; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.detail-stat strong { display: block; margin-top: 2px; font-size: 12px; color: #d4dae0; }
.detail-body { padding: 24px 28px 50px; }
.gallery { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 7px; margin-bottom: 22px; scrollbar-width: thin; }
.gallery img { flex: 0 0 220px; width: 220px; height: 124px; border-radius: 11px; object-fit: cover; border: 1px solid #252e37; background: #151a1f; cursor: zoom-in; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 24px; }
.detail-section h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: -.01em; }
.markdown { color: #abb4bd; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.markdown h1, .markdown h2, .markdown h3 { color: #e7ebef; line-height: 1.3; margin: 22px 0 9px; }
.markdown h1 { font-size: 20px; }.markdown h2 { font-size: 17px; }.markdown h3 { font-size: 14px; }
.markdown p { margin: 0 0 12px; }
.markdown ul, .markdown ol { padding-left: 20px; }
.markdown code { padding: 2px 5px; border-radius: 5px; background: #171c22; color: #cbd5de; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.markdown pre { overflow-x: auto; padding: 12px; border: 1px solid #202832; border-radius: 10px; background: #0a0d10; }
.markdown pre code { padding: 0; background: transparent; }
.markdown a { color: color-mix(in srgb, var(--accent) 76%, var(--text)); text-decoration: none; }.markdown a:hover { text-decoration: underline; }
.markdown blockquote { margin: 12px 0; padding: 4px 0 4px 12px; border-left: 3px solid #355c43; color: #87948f; }
.detail-sidebar { display: flex; flex-direction: column; gap: 12px; }
.info-card { padding: 13px; border: 1px solid #202831; border-radius: 12px; background: #101419; }
.info-card h4 { margin: 0 0 10px; color: #8d98a3; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.info-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #1b2229; font-size: 10px; }
.info-row:first-of-type { border-top: 0; }
.info-row span:first-child { color: #697581; }
.info-row span:last-child { color: #b9c1c8; text-align: right; }
.info-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.info-link { display: block; padding: 7px 0; border-top: 1px solid #1b2229; color: #aeb8c1; text-decoration: none; font-size: 10px; }
.info-link:first-of-type { border-top: 0; }.info-link:hover { color: color-mix(in srgb, var(--accent) 76%, var(--text)); }
.versions-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid #1d242b; }
.versions-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 10px; }
.versions-head h3 { margin: 0; font-size: 14px; }
.versions-head span { color: #697581; font-size: 9px; }
.version-list { display: flex; flex-direction: column; gap: 7px; }
.version-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #202831; border-radius: 11px; background: #101419; }
.version-name { min-width: 0; }
.version-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.version-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; color: #66727d; font-size: 9px; }
.version-download { display: inline-flex; align-items: center; min-height: 31px; padding: 0 9px; border: 1px solid #325f41; border-radius: 8px; background: #15241a; color: #8fdaa7; text-decoration: none; font-size: 10px; }
.version-download:hover { border-color: #4b8d60; background: #193020; }
.show-more { display: block; width: fit-content; margin: 10px auto 0; padding: 7px 11px; border: 1px solid #232c35; border-radius: 8px; background: #101419; color: #7e8994; font-size: 10px; cursor: pointer; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(430px, calc(100% - 28px));
  padding: 10px 13px;
  border: 1px solid #303a44;
  border-radius: 10px;
  background: #14191e;
  color: #bbc4cc;
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .nav { display: none; }
  .catalog { grid-template-columns: 210px minmax(0,1fr); gap: 18px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1220px); }
  .topbar-inner { min-height: 60px; }
  .ghost-button { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 38px; }
  .catalog { display: block; }
  .filters {
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    top: 74px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s, transform .16s;
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
  }
  .filters.mobile-open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-filter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #252e37;
    border-radius: 9px;
    background: #0e1115;
    color: #909ba6;
    padding: 0 10px;
    font-size: 11px;
  }
  .results-title { display: block; }
  .results-sub { display: block; margin-top: 2px; }
  .select-wrap.compact select { width: 150px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { grid-row: 1; }
  .detail-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 13px; }
  .search-box { min-height: 54px; }
  kbd { display: none; }
  .quick-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .quick-chip { white-space: nowrap; }
  .results-toolbar { align-items: flex-end; }
  .toolbar-right { flex-direction: column; align-items: stretch; }
  .select-wrap.compact select { width: 140px; }
  .project-card { padding: 14px; }
  .project-icon { width: 52px; height: 52px; }
  .detail-hero, .detail-body { padding-left: 18px; padding-right: 18px; }
  .detail-head { gap: 12px; }
  .detail-icon { width: 62px; height: 62px; }
  .detail-title { font-size: 22px; }
  .gallery img { flex-basis: 185px; width: 185px; height: 105px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
}


.eyebrow {
  color: #7f8a95;
  letter-spacing: .13em;
}
.hero h1 span { color: #b3bcc5; }
.hero p { max-width: 720px; }

.select-wrap::after {
  content: "";
  width: 14px;
  height: 14px;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.25 6.25 8 10l3.75-3.75' stroke='%237b8793' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
select {
  min-height: 38px;
  padding: 8px 34px 8px 11px;
  line-height: 1.2;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
select:hover { border-color: #333d47; background: #101419; }
select:focus { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 7%, transparent); }
select option { background: #101419; color: #d5dbe1; }

.type-badge,
.detail-type {
  --type-bg: #18221c;
  --type-fg: #8cd8a5;
  --type-border: #274332;
}
.type-badge {
  border: 1px solid var(--type-border);
  background: var(--type-bg);
  color: var(--type-fg);
}
.type-mod { --type-bg: #17231b; --type-fg: #83d99d; --type-border: #294834; }
.type-plugin { --type-bg: #151f2a; --type-fg: #82b9ed; --type-border: #263d55; }
.type-modpack { --type-bg: #21192b; --type-fg: #bd93eb; --type-border: #3d2b53; }
.type-resourcepack { --type-bg: #292016; --type-fg: #e3b173; --type-border: #4a3622; }
.type-shader { --type-bg: #292717; --type-fg: #e4d878; --type-border: #4b4522; }
.type-datapack { --type-bg: #152526; --type-fg: #78d5d7; --type-border: #254648; }
.type-other { --type-bg: #1b2026; --type-fg: #aab4be; --type-border: #303942; }
.detail-type { color: var(--type-fg); }

.card-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.meta-label {
  color: #5f6b76;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-right: 2px;
}
.loader-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 6px;
  border: 1px solid #303843;
  border-radius: 6px;
  background: #14191f;
  color: #a5afb9;
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.loader-fabric { background: #171f21; color: #a9d7d0; border-color: #30484a; }
.loader-forge { background: #271d17; color: #e1a77b; border-color: #4b3427; }
.loader-neoforge { background: #21192c; color: #c69aed; border-color: #3d2b56; }
.loader-quilt { background: #281a22; color: #e6a1bd; border-color: #4b2b3a; }
.loader-paper { background: #16212b; color: #8fbde7; border-color: #2a4056; }
.loader-purpur { background: #24192d; color: #ce93e8; border-color: #452a56; }
.loader-spigot { background: #282117; color: #dcb879; border-color: #4a3b25; }
.loader-bukkit { background: #17222a; color: #8fc5df; border-color: #294251; }
.loader-folia { background: #17251b; color: #8fd09c; border-color: #2a4933; }
.loader-velocity { background: #1c1c2c; color: #aaa6ee; border-color: #323354; }
.loader-bungeecord, .loader-waterfall { background: #282018; color: #deb07d; border-color: #483726; }
.loader-sponge { background: #22231a; color: #cdcb8d; border-color: #3e402a; }
.loader-minecraft { background: #1b241a; color: #9ccc91; border-color: #334731; }
.loader-tags .loader-badge { min-height: 22px; font-size: 9px; }

.pagination-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin: 0 0 12px;
}
.pagination-top .page-arrow { width: 34px; min-width: 34px; height: 34px; }
.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #232b33;
  border-radius: 9px;
  background: #0f1216;
  color: #707c87;
  font-size: 10px;
}
.page-jump input {
  width: 58px;
  height: 25px;
  padding: 0 6px;
  border: 1px solid #2b343d;
  border-radius: 6px;
  outline: none;
  background: #0a0d10;
  color: #d3dae0;
  text-align: center;
  font-size: 10px;
  appearance: textfield;
}
.page-jump input::-webkit-outer-spin-button,
.page-jump input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.page-jump input:focus { border-color: var(--accent); }

.detail-translated-name {
  margin: 1px 0 3px;
  color: #9ca7b1;
  font-size: 11px;
  line-height: 1.35;
}
.translate-action { color: #a7c4dd; border-color: #2a4053; background: #111b24; }
.translate-action:hover { border-color: #3d5d78; background: #142330; }
.translate-action:disabled { opacity: .58; cursor: wait; }
.detail-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.detail-section-title h3 { margin: 0 0 12px; }
.detail-section-title span { color: #596570; font-size: 8px; }
.markdown-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin: 12px 0 16px;
  border: 1px solid #252e37;
  border-radius: 11px;
  object-fit: contain;
  background: #0b0e11;
  cursor: zoom-in;
}

.versions-head > div { min-width: 0; }
.versions-head > div > span { display: block; margin-top: 3px; }
.versions-reset {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  padding: 4px 0;
  font-size: 9px;
  cursor: pointer;
}
.version-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}
.version-filters > label > span {
  display: block;
  margin-bottom: 5px;
  color: #65717c;
  font-size: 8px;
  font-weight: 700;
}
.version-filters select { min-height: 34px; font-size: 10px; }
.version-row { padding: 12px; }
.version-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: #65717c;
  font-size: 8px;
}
.release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid #304735;
  border-radius: 5px;
  background: #17221a;
  color: #84c997;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.release-beta { border-color: #4a3d27; background: #292217; color: #d7b06d; }
.release-alpha { border-color: #4a2b30; background: #29191c; color: #df8e97; }
.version-compat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.version-compat .loader-badge { min-height: 18px; }
.mini-version {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid #29313a;
  border-radius: 5px;
  background: #0e1216;
  color: #7f8a95;
  font-size: 8px;
}
.mini-version.more { color: #63707b; }
.versions-empty {
  padding: 18px 12px;
  border: 1px solid #202831;
  border-radius: 11px;
  background: #101419;
  color: #697581;
  text-align: center;
  font-size: 10px;
}
.game-version-tag { color: #919da8; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background: rgba(3, 5, 7, .92);
  backdrop-filter: blur(14px);
}
.lightbox-figure {
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0,0,0,.58);
}
.lightbox-figure figcaption {
  min-height: 18px;
  margin-top: 10px;
  color: #87929c;
  font-size: 10px;
}
.lightbox-close,
.lightbox-arrow {
  border: 1px solid #303943;
  background: rgba(14, 18, 22, .84);
  color: #bec6cd;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 22px;
}
.lightbox-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
}
.lightbox-prev { justify-self: end; }
.lightbox-next { justify-self: start; }
.lightbox-close:hover, .lightbox-arrow:hover { border-color: #4a5661; background: #171d22; }

@media (max-width: 760px) {
  .pagination-top { justify-content: center; }
  .page-jump { flex: 1; justify-content: center; max-width: 230px; }
  .version-filters { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: 18px 8px; }
  .lightbox-arrow { width: 40px; height: 40px; }
}

@media (max-width: 520px) {
  .card-title-row { align-items: flex-start; }
  .type-badge { margin-top: 1px; }
  .card-platforms .meta-label { flex-basis: 100%; }
  .pagination-top { margin-top: 3px; }
  .page-jump span:first-child { display: none; }
  .version-row { grid-template-columns: 1fr; }
  .version-download { justify-content: center; width: 100%; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-arrow { position: fixed; bottom: 18px; z-index: 2; }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox-figure img { max-height: calc(100vh - 105px); }
}


