:root {
  --bg: #0e1116;
  --bg2: #151a21;
  --card: #1b222c;
  --card2: #212a36;
  --line: #2b3542;
  --text: #e8edf3;
  --muted: #93a1b3;
  --accent: #4f8cff;
  --accent2: #2f6fe0;
  --ok: #37c26e;
  --warn: #f5a623;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #74a4ff; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,17,22,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; letter-spacing: .3px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  display: grid; place-items: center; font-size: 18px;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
}
.main-nav a:hover { color: #fff; background: var(--card); }
.main-nav a.active { color: #fff; background: var(--card2); }

/* ---------- hero ---------- */
.hero {
  padding: 46px 0 30px;
  background:
    radial-gradient(900px 300px at 15% -20%, rgba(79,140,255,.18), transparent),
    radial-gradient(700px 260px at 90% -30%, rgba(124,92,255,.14), transparent);
}
.hero h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.4px; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; max-width: 640px; }
.region-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.chip.active, .chip:hover { color: #fff; border-color: var(--accent); background: rgba(79,140,255,.12); }

/* ---------- section ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 23px; letter-spacing: -.3px; }
.section-head a { font-size: 14px; }

/* ---------- category bar ---------- */
.cat-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-bar a {
  padding: 7px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.cat-bar a.active, .cat-bar a:hover { color: #fff; border-color: var(--accent); background: rgba(79,140,255,.12); }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: #3a4a5e; }
.card .thumb { aspect-ratio: 16/10; background: var(--card2); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #4a586a; font-size: 40px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card .meta .badge { background: var(--card2); padding: 2px 8px; border-radius: 6px; }
.card h3 { margin: 0; font-size: 16.5px; line-height: 1.3; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card .desc { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-size: 11.5px; font-weight: 700; color: var(--accent); background: rgba(79,140,255,.12); padding: 3px 9px; border-radius: 6px; }
.tag.past { color: var(--muted); background: var(--card2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 10px; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent2); color: #fff; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); background: var(--card2); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.outline-buy { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn.outline-buy:hover { background: rgba(79,140,255,.12); color: #fff; }

/* ---------- search / filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar input, .filter-bar select {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; outline: none;
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--accent); }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; padding: 30px 0 40px; }
.detail .main { min-width: 0; }
.detail .cover { border-radius: var(--radius); overflow: hidden; background: var(--card2); aspect-ratio: 16/9; margin-bottom: 18px; }
.detail .cover img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.4px; line-height: 1.2; }
.detail .sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.detail .content { color: #cfd8e3; font-size: 15.5px; }
.detail .content p { margin: 0 0 14px; }
.aside { display: flex; flex-direction: column; gap: 16px; }
.info-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.info-box h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); }
.info-row .v { text-align: right; font-weight: 600; }
.buy-list { display: flex; flex-direction: column; gap: 10px; }
.buy-list .btn { justify-content: center; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; margin-top: 18px; }
.gallery a { border-radius: 10px; overflow: hidden; background: var(--card2); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; flex-wrap: wrap; }
.footer-inner .brand { font-size: 16px; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); font-size: 14px; }
.footer-inner a:hover { color: #fff; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 13px; border-radius: 9px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.pagination a:hover { color: #fff; border-color: var(--accent); }
.pagination .active { color: #fff; background: var(--accent); border-color: var(--accent); }
.pagination .disabled { opacity: .4; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { font-size: 46px; margin-bottom: 12px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.stat-strip { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; }
.stat .n { font-size: 26px; font-weight: 800; color: #fff; }
.stat .l { font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .main-nav { display: none; }
}
