:root {
  --bg: #0e0f13;
  --panel: #171920;
  --panel-2: #1f222b;
  --line: #2a2e39;
  --text: #e8e9ee;
  --muted: #9298a8;
  --accent: #ff5a36;
  --accent-2: #ffb020;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Hiragino Sans", sans-serif;
}
body.locked { overflow: hidden; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 15, 19, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.5px; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--accent); }
.logo i { font-style: normal; color: var(--accent-2); }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--accent); }
#lang {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 14px;
}

/* Hero & tabs */
.hero { padding: 28px 0 8px; }
.hero h1 { margin: 0 0 4px; font-size: 26px; }
.hero p { margin: 0; color: var(--muted); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.tab:hover { border-color: var(--muted); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Category sections */
.cat { margin: 12px 0 32px; }
.cat-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.cat-icon {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 15px;
}
.cat-head p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.count { color: var(--accent-2); }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s;
}
.card a:hover { border-color: var(--accent); transform: translateY(-1px); }
.rank { flex: none; width: 22px; color: var(--muted); font-weight: 700; font-size: 13px; text-align: center; }
.fav { flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--panel-2); }
.body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.body strong { font-size: 15px; }
.desc { color: var(--muted); font-size: 13px; }
.go { flex: none; color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 5, 8, .96);
}
.age-gate[hidden] { display: none; }
.age-box {
  max-width: 440px; width: 100%; text-align: center; padding: 28px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.age-box .badge {
  display: inline-block; font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 10px;
  border: 2px solid var(--accent); color: var(--accent); margin-bottom: 12px;
}
.age-box h2 { margin: 0 0 8px; }
.age-box p { color: var(--muted); margin: 0 0 20px; }
.age-box button {
  display: block; width: 100%; padding: 12px; border-radius: 10px; font-size: 15px; cursor: pointer; border: 0;
}
#age-yes { background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 8px; }
#age-no { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Legal pages */
.legal { max-width: 760px; padding: 32px 16px 20px; }
.legal h1 { font-size: 26px; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { color: #c9ccd6; }

@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .logo { flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
}

/* Score pill on cards */
.score-pill {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: rgba(255, 176, 32, .14); color: var(--accent-2); vertical-align: 1px;
}
.spacer { flex: 1; }

/* Review page */
.review { max-width: 860px; padding-top: 20px; padding-bottom: 20px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.rv-head { display: flex; align-items: center; gap: 16px; }
.rv-fav { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--panel-2); padding: 8px; }
.rv-title { flex: 1; min-width: 0; }
.rv-title h1 { margin: 0; font-size: 30px; }
.rv-short { margin: 4px 0 0; color: var(--muted); }
.rv-score {
  flex: none; text-align: center; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.rv-score b { display: block; font-size: 26px; line-height: 1; }
.rv-score span { font-size: 11px; opacity: .9; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent-2); text-decoration: none; }
.btn-visit {
  display: block; text-align: center; padding: 14px; border-radius: 12px; margin: 8px 0 26px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-visit:hover { filter: brightness(1.08); }
.rv-body h2 { font-size: 20px; }
.rv-body h2 small { font-size: 12px; font-weight: 400; color: var(--muted); }
.rv-body p { color: #c9ccd6; line-height: 1.7; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.proscons > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; }
.proscons h3 { font-size: 15px; }
.proscons ul { margin: 0; padding-left: 18px; color: #c9ccd6; }
.proscons li { margin: 4px 0; }
.pros h3 { color: #3ecf8e; }
.cons h3 { color: #ff6b6b; }
.bestfor { background: var(--panel-2); border-radius: var(--radius); padding: 12px 16px; }
.related { margin-top: 10px; }
.related h2 { font-size: 18px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Static crawler list is replaced by JS on load */
#list > section.cat > ul:not(.grid) { color: var(--muted); }

@media (max-width: 640px) {
  .rv-title h1 { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .rv-fav { width: 44px; height: 44px; }
}
