/* ==========================================================================
   TicoLibre Repo — stylesheet
   Dark, cinematic, zero dependencies.
   ========================================================================== */

:root {
  --bg: #07070d;
  --bg-2: #0b0b14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f8;
  --muted: #9b9bb2;
  --muted-2: #6f6f88;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff5d73;
  --ok: #41e0a3;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --shadow-3: 0 34px 80px -30px rgba(0, 0, 0, 0.95);

  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: #d9d9ea;
}

::selection {
  background: rgba(124, 92, 255, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ------------------------------------------------------------------ */
/* ambient background                                                  */
/* ------------------------------------------------------------------ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora__blob--violet {
  top: -18vh;
  left: -8vw;
  width: 55vw;
  height: 55vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle at 40% 40%, rgba(124, 92, 255, 0.75), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.aurora__blob--cyan {
  top: 6vh;
  right: -12vw;
  width: 48vw;
  height: 48vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle at 60% 40%, rgba(34, 211, 238, 0.5), transparent 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}

.aurora__blob--rose {
  bottom: -22vh;
  left: 24vw;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 93, 115, 0.35), transparent 70%);
  animation: drift-c 38s var(--ease) infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(7vw, 5vh, 0) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-6vw, 8vh, 0) scale(1.08);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(4vw, -6vh, 0) scale(1.15);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

main,
.nav,
.footer {
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------------ */
/* nav                                                                 */
/* ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.is-stuck {
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 70px;
}

.nav__progress {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), #4b32d6 55%, var(--accent-2));
  box-shadow: 0 6px 20px -8px rgba(124, 92, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 19px;
  height: 19px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand__text small {
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.nav__links a {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav__links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.25s,
    opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn .i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, #8f74ff, #6b4dff 45%, #23c9e6);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(124, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(120deg, #9c84ff, #7458ff 45%, #35d5ef);
  box-shadow: 0 20px 44px -14px rgba(124, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  backdrop-filter: blur(10px);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.83rem;
}

.btn--sm .i {
  width: 15px;
  height: 15px;
}

.btn--icon {
  padding: 9px;
  border-radius: 12px;
}

.btn--icon .i {
  width: 18px;
  height: 18px;
}

.btn.is-copied {
  border-color: rgba(65, 224, 163, 0.55);
  background: rgba(65, 224, 163, 0.14);
  color: #b9ffe2;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .brand__text small,
  .nav__actions .btn span {
    display: none;
  }
  .nav__actions .btn {
    padding: 9px 11px;
  }
}

/* ------------------------------------------------------------------ */
/* hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  padding: clamp(56px, 10vw, 132px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(65, 224, 163, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(65, 224, 163, 0.04);
  }
}

.hero__title {
  margin: 26px auto 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.042em;
}

.grad {
  background: linear-gradient(100deg, #a892ff 0%, #7c5cff 32%, #22d3ee 72%, #7c5cff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 220% 0;
  }
}

.hero__lead {
  margin: 24px auto 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 56px auto 0;
  max-width: 760px;
  padding: 1px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 14px;
  background: rgba(10, 10, 18, 0.66);
}

.stats strong {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #a9a9c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 620px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 0.83rem;
  color: var(--muted-2);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ------------------------------------------------------------------ */
/* sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section__head {
  max-width: 68ch;
  margin-bottom: 34px;
}

.section__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section__head h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

.section__sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* install steps                                                       */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.step {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}

.step:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: #c9bcff;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.step strong {
  color: #d5d5e8;
  font-weight: 600;
}

@media (max-width: 940px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* repo url box                                                        */
/* ------------------------------------------------------------------ */

.repo-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.repo-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.repo-box__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.url-list {
  list-style: none;
}

.url-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.url-list li:first-child {
  border-top: none;
}

.url-list__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
  flex-shrink: 0;
}

.url-list__meta > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.url-list__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--accent) 70%, transparent);
  flex-shrink: 0;
}

.url-list__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-list__kind {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.url-list code {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.07);
  color: #b9b9d2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
}

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.18s var(--ease);
}

.copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.copy-btn .i {
  width: 16px;
  height: 16px;
}

.copy-btn.is-copied {
  color: #b9ffe2;
  border-color: rgba(65, 224, 163, 0.5);
  background: rgba(65, 224, 163, 0.14);
}

.url-list__skeleton {
  height: 54px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: shimmer-bg 1.4s linear infinite;
}

@keyframes shimmer-bg {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 720px) {
  .url-list li {
    flex-wrap: wrap;
  }
  .url-list code {
    flex-basis: 100%;
    order: 3;
  }
}

/* ------------------------------------------------------------------ */
/* toolbar / segmented / search                                        */
/* ------------------------------------------------------------------ */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
}

.segmented__item {
  padding: 8px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.segmented__item:hover {
  color: var(--text);
}

.segmented__item.is-active {
  color: #fff;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.9), rgba(34, 211, 238, 0.75));
  box-shadow: 0 8px 22px -10px rgba(124, 92, 255, 0.9);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
  flex: 1 1 250px;
  max-width: 340px;
}

.search--wide {
  max-width: 460px;
  margin-bottom: 24px;
}

.search .i {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 11px 15px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

/* ------------------------------------------------------------------ */
/* plugin cards                                                        */
/* ------------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 60%);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
  animation: card-in 0.5s var(--ease) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, transparent), transparent);
  opacity: 0.55;
}

.card::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 70%;
  height: 160%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-3), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.card:hover::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 85%, #fff 8%), color-mix(in srgb, var(--accent) 40%, #000 45%));
  color: #fff;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card__id {
  min-width: 0;
  flex: 1;
}

.card__id h3 {
  font-size: 1.12rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__id h3 a {
  color: inherit;
  transition: color 0.2s;
}

.card__id h3 a:hover {
  color: color-mix(in srgb, var(--accent) 70%, #fff 30%);
}

.card__repo {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__version {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.card__tagline {
  margin-top: 16px;
  font-size: 0.94rem;
  color: #cfcfe2;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.badge--accent {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: color-mix(in srgb, var(--accent) 88%, #fff 12%);
}

.badge--soft {
  color: var(--muted-2);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--mono);
  font-size: 0.71rem;
  color: #b5b5cd;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.chip--more {
  font-family: var(--font);
  font-weight: 600;
  color: var(--muted-2);
  cursor: pointer;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card__foot .btn--primary {
  flex-shrink: 0;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.link-out:hover {
  color: var(--accent-2);
}

.link-out .i {
  width: 14px;
  height: 14px;
}

/* provider table inside a card */

.provider-row__id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-2);
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.tag--lang {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
  color: #9fe9f7;
}

.tag--fmt {
  border-color: rgba(65, 224, 163, 0.28);
  background: rgba(65, 224, 163, 0.1);
  color: #a5f2d1;
}

.tag--off {
  border-color: rgba(255, 93, 115, 0.35);
  background: rgba(255, 93, 115, 0.12);
  color: #ffb3bf;
}

.skeleton-card {
  height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s linear infinite;
}

.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ */
/* catalogue grid                                                      */
/* ------------------------------------------------------------------ */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr));
  gap: 12px;
}

.catalog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
  transition: transform 0.28s var(--ease), border-color 0.25s, background 0.25s;
}

.catalog:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
}

.catalog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog__kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.catalog__kind--movie {
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.38);
  color: #c3b4ff;
}

.catalog__kind--series {
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.36);
  color: #9fe9f7;
}

.catalog__name {
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.catalog__id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* ------------------------------------------------------------------ */
/* providers table                                                     */
/* ------------------------------------------------------------------ */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.table thead th {
  padding: 13px 18px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.table tbody tr:first-child {
  border-top: none;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.table td {
  padding: 13px 18px;
  vertical-align: middle;
}

.table__loading,
.table__none {
  text-align: center;
  color: var(--muted-2);
  padding: 34px 18px;
}

.p-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.p-name strong {
  font-weight: 620;
  font-size: 0.9rem;
}

.p-name span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-2);
}

.p-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.p-flag:hover {
  color: color-mix(in srgb, var(--accent) 70%, #fff 30%);
}

.p-flag .url-list__dot {
  width: 7px;
  height: 7px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

@media (max-width: 900px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    padding: 14px 16px;
  }
  .table td {
    padding: 3px 0;
  }
  .table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 6px;
  }
  .table td.cell-action {
    margin-top: 8px;
  }
}

/* ------------------------------------------------------------------ */
/* footer                                                              */
/* ------------------------------------------------------------------ */

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  padding-block: 52px 34px;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__brand strong {
  font-size: 1rem;
}

.footer__brand p {
  margin-top: 4px;
  max-width: 42ch;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer__label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__nav a:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.footer__nav a .url-list__dot {
  width: 7px;
  height: 7px;
}

.footer__legal {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--muted-2);
}

.footer__legal a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted-2);
}

.footer__built {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ------------------------------------------------------------------ */
/* toast + to-top                                                      */
/* ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(65, 224, 163, 0.4);
  border-radius: 999px;
  background: rgba(12, 24, 20, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
  color: #d8ffee;
  font-size: 0.86rem;
  font-weight: 600;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform 0.32s var(--ease), opacity 0.32s;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast .i {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.toast--warn {
  border-color: rgba(255, 176, 58, 0.45);
  background: rgba(28, 21, 8, 0.92);
  color: #ffe9c2;
}

.toast--warn .i {
  color: #ffb03a;
  transform: rotate(45deg) scale(0.75);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(14, 14, 24, 0.82);
  backdrop-filter: blur(14px);
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform 0.25s var(--ease), color 0.2s, border-color 0.2s;
}

.to-top:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.to-top .i {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ */
/* reveal                                                              */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* repo page                                                           */
/* ------------------------------------------------------------------ */

.page-repo {
  background: var(--bg);
}

.repohead {
  padding: clamp(28px, 5vw, 48px) 0 0;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted-2);
}

.crumbs__link {
  color: var(--accent-2);
  font-weight: 600;
  transition: opacity 0.2s;
}

.crumbs__link:hover {
  opacity: 0.75;
}

.crumbs__sep {
  color: var(--muted-2);
  opacity: 0.6;
}

.crumbs__current {
  color: var(--text);
  font-weight: 700;
}

.pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill--public {
  border: 1px solid rgba(65, 224, 163, 0.35);
  background: rgba(65, 224, 163, 0.1);
  color: #a5f2d1;
}

.repohead__main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.repohead__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 18px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.repohead__text {
  min-width: 0;
  flex: 1;
}

.repohead__text h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 730;
  letter-spacing: -0.032em;
  line-height: 1.15;
}

.repohead__text p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 70ch;
}

.repohead__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.repohead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

@media (max-width: 820px) {
  .repohead__main {
    flex-wrap: wrap;
  }
  .repohead__actions {
    width: 100%;
  }
  .repohead__actions .btn {
    flex: 1;
  }
}

/* tabs ------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.tabs__item .i {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.tabs__item:hover {
  color: var(--text);
}

.tabs__item.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.tabs__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

/* layout ----------------------------------------------------------- */

.repo-body {
  padding-top: 22px;
  padding-bottom: clamp(40px, 6vw, 76px);
}

.repo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 24px;
  align-items: start;
}

.repo-main {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(12px);
  padding: 20px;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panel-in 0.4s var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1040px) {
  .repo-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* file tree -------------------------------------------------------- */

.tree {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tree > * + * {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.tree__row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 14px 10px calc(14px + var(--depth, 0) * 18px);
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.87rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tree__row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.tree__row--dir {
  font-weight: 600;
}

.tree__row--file.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.tree__caret {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease);
}

.tree__caret svg {
  width: 12px;
  height: 12px;
}

.tree__caret.is-open {
  transform: rotate(90deg);
}

.tree__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.tree__size {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}

.tree__more-row,
.tree__empty {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tree__empty {
  color: var(--muted-2);
  cursor: default;
  font-weight: 500;
}

.tree__skeleton {
  height: 40px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s linear infinite;
}

.tree__more {
  display: inline-flex;
  margin-top: 14px;
}

.fi {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fi--folder {
  color: #8f74ff;
}

.fi--json {
  color: #ffb03a;
}

.fi--js {
  color: #f7df1e;
}

.fi--md {
  color: #7aa2f7;
}

.fi--py {
  color: #41e0a3;
}

.fi--html {
  color: #ff7a6b;
}

.fi--file {
  color: var(--muted-2);
}

/* file browser bar ------------------------------------------------- */

.filebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filebar .crumbs {
  font-family: var(--mono);
  font-size: 0.82rem;
}

/* viewer ----------------------------------------------------------- */

.viewer {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(4, 4, 9, 0.7);
  animation: panel-in 0.35s var(--ease) both;
}

.viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.viewer__file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.viewer__path {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.viewer__code {
  max-height: 560px;
  overflow: auto;
}

.viewer__loading,
.viewer__note {
  padding: 16px;
  font-size: 0.84rem;
  color: var(--muted-2);
}

.viewer__note {
  border-bottom: 1px solid var(--line);
  color: #ffd08a;
  background: rgba(255, 176, 58, 0.07);
}

.code {
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  min-width: max-content;
}

.code__line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  white-space: pre;
}

.code__line:hover {
  background: rgba(255, 255, 255, 0.035);
}

.code__num {
  padding-right: 14px;
  text-align: right;
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

.code__text {
  padding-right: 20px;
  color: #cfcfe2;
}

.tk-key {
  color: #a892ff;
}
.tk-str {
  color: #7fe0a8;
}
.tk-num {
  color: #ffb03a;
}
.tk-lit {
  color: #22d3ee;
}
.tk-kw {
  color: #ff7a90;
}
.tk-com {
  color: #63637e;
  font-style: italic;
}

/* readme ----------------------------------------------------------- */

.md {
  margin-top: 22px;
  max-width: 88ch;
  font-size: 0.94rem;
  color: #d3d3e6;
}

.md > * + * {
  margin-top: 14px;
}

.md h1,
.md h2,
.md h3,
.md h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.md h1 {
  font-size: 1.5rem;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.md h2 {
  font-size: 1.2rem;
  margin-top: 26px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.md h3 {
  font-size: 1.02rem;
  margin-top: 20px;
}

.md h4 {
  font-size: 0.94rem;
  margin-top: 16px;
}

.md p {
  line-height: 1.72;
}

.md a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
  text-underline-offset: 3px;
}

.md ul,
.md ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.md li::marker {
  color: var(--muted-2);
}

.md strong {
  color: #fff;
  font-weight: 650;
}

.md hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.md blockquote {
  padding: 4px 0 4px 16px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--muted);
}

.md img {
  border-radius: 12px;
  border: 1px solid var(--line);
  max-width: 100%;
}

.md code {
  font-size: 0.82em;
}

.md__pre {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.65;
}

.md__pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #cfcfe2;
}

.md__tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.md__tablewrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.md__tablewrap th,
.md__tablewrap td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.md__tablewrap thead th {
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.md__tablewrap tbody tr:last-child td {
  border-bottom: 0;
}

.md__skeleton {
  height: 46px;
  margin-top: 12px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s linear infinite;
}

/* items list (providers / catalogues) ------------------------------ */

.items {
  display: flex;
  flex-direction: column;
}

.prow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.prow:first-child {
  border-top: 0;
}

.prow__main {
  min-width: 0;
  flex: 1;
}

.prow__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.prow__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: color-mix(in srgb, var(--accent) 60%, #fff 40%);
  font-size: 0.7rem;
  font-weight: 750;
}

.prow__title strong {
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.prow__title code {
  font-size: 0.72rem;
  color: var(--muted-2);
}

.prow__desc {
  margin-top: 7px;
  font-size: 0.86rem;
  color: var(--muted);
}

.prow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.prow__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.prow__actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 640px) {
  .prow {
    flex-direction: column;
  }
  .prow__side {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* sidebar ---------------------------------------------------------- */

.repo-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 86px;
}

@media (max-width: 1040px) {
  .repo-side {
    position: static;
  }
}

.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px);
}

.side-card__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.side-card__desc {
  margin-top: 12px;
  font-size: 0.87rem;
  color: #c8c8de;
  line-height: 1.62;
}

.side-card__links {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.side-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.side-card__links a:hover {
  color: var(--accent-2);
}

.side-card__links .i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.side-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.topic {
  padding: 4px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: color-mix(in srgb, var(--accent) 55%, #fff 45%);
  font-size: 0.73rem;
  font-weight: 600;
}

.side-card__stats {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.side-card__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.side-card__stat dt {
  color: var(--muted-2);
  flex-shrink: 0;
}

.side-card__stat dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-card__repos {
  margin-top: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-card__repos a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
}

.side-card__repos a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.side-card__repos span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card__repo-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  flex-shrink: 0;
}

/* language bar ----------------------------------------------------- */

.langbar {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.langbar__seg {
  display: block;
  height: 100%;
  min-width: 3px;
}

.langlegend {
  margin-top: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
}

.langlegend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.langlegend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.langlegend__pct {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* install callout -------------------------------------------------- */

.callout {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.callout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.callout__label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.callout__code {
  display: block;
  padding: 15px 16px;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
  color: #b9b9d2;
  word-break: break-all;
}

.callout__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* ------------------------------------------------------------------ */
/* motion preferences                                                   */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* print                                                               */
/* ------------------------------------------------------------------ */

@media print {
  .aurora,
  .grain,
  .nav,
  .toast,
  .to-top,
  .toolbar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
