:root {
  --bg: #0e0e12;
  --surface: #1a1a22;
  --text: #ececf1;
  --muted: #a0a0ad;
  --accent: #ff4f81;
  --accent-2: #ffb547;
  --radius: 14px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid #26262f; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--accent); }
.site-nav a { margin-left: 1.25rem; color: var(--muted); font-weight: 600; }

/* Hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: 2rem; margin: 0 0 .5rem; line-height: 1.15; }
.lede { color: var(--muted); font-size: 1.1rem; }

/* Category nav */
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .5rem; }
.cat-nav a {
  padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: var(--surface); border: 1px solid #26262f; color: var(--muted);
}
.cat-nav a:hover { text-decoration: none; color: var(--text); border-color: var(--accent); }
.cat-nav a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Rankings */
.rankings { list-style: none; margin: 1.5rem 0 3rem; padding: 0; display: grid; gap: .9rem; }
.rank-card {
  display: grid;
  grid-template-columns: auto 64px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid #26262f;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.rank-card:has(.rank-img) { grid-template-columns: auto 64px 1fr auto; }
.rank-num { font-size: 1.3rem; font-weight: 800; color: var(--accent-2); width: 1.6rem; text-align: center; }
.rank-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rank-body { min-width: 0; }
.rank-name { margin: 0; font-size: 1.15rem; }
.rank-name a { color: var(--text); }
.rank-name a:hover { color: var(--accent); text-decoration: none; }
.rank-tagline { margin: .15rem 0 .35rem; color: var(--muted); }
.rank-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.price-eur { opacity: .7; font-size: .85em; }
.tag { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; font-size: .75rem; background: #2a2a35; border-radius: 999px; color: var(--text); }
.rank-cta {
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  padding: .55rem .95rem;
  border-radius: 999px;
  font-weight: 700;
}
.rank-cta:hover { text-decoration: none; opacity: .9; }

.empty { background: var(--surface); border: 1px dashed #3a3a45; border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

/* Post / about */
.post { padding: 2rem 0 3rem; }
.post h1 { font-size: 1.9rem; }
.post-meta { color: var(--muted); font-size: .9rem; }

/* Creator profile page */
.profile { padding: 1.5rem 0 3rem; }
.crumb { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.crumb span { color: var(--text); }
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-rank { font-size: 1.6rem; font-weight: 800; color: var(--accent-2); }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.profile-name { margin: 0 0 .2rem; font-size: 1.9rem; }
.profile-tagline { margin: 0 0 .4rem; color: var(--muted); }
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.5rem; }
.profile-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.profile-bio { font-size: 1.05rem; margin: 0 0 1.5rem; }
.profile-stats { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .5rem; }
.profile-stats li { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid #26262f; border-radius: 10px; padding: .65rem .9rem; }
.profile-stats span { color: var(--muted); }
.profile-stats em { font-style: normal; opacity: .7; font-size: .9em; }
.profile-cta {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
}
.profile-cta:hover { text-decoration: none; opacity: .9; }
.profile-back { margin-top: 1.75rem; font-size: .9rem; }

@media (max-width: 560px) {
  .profile-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Footer */
.site-footer { border-top: 1px solid #26262f; color: var(--muted); font-size: .85rem; padding: 2rem 0; }
.site-footer p { margin: .25rem 0; }
.disclaimer { font-size: .8rem; }

@media (max-width: 560px) {
  .rank-card { grid-template-columns: auto 1fr; grid-template-areas: "num body" "cta cta"; }
  .rank-img { display: none; }
  .rank-num { grid-area: num; }
  .rank-body { grid-area: body; }
  .rank-cta { grid-area: cta; text-align: center; }
}
