:root {
  --bg: #eef2f7;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-hover: 0 4px 6px rgba(15, 23, 42, .05), 0 16px 32px rgba(15, 23, 42, .1);
  --card-text-h: 7.75rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.logo { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.05rem; }
.site-header nav a { margin-left: 1rem; color: var(--text); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 60px; flex-wrap: wrap; gap: .5rem; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav > a { color: var(--text); font-weight: 500; text-decoration: none; }
.site-nav > a:hover { color: var(--accent); text-decoration: none; }
.lang-dropdown { position: relative; display: inline-block; margin-left: .25rem; }
.lang-dropdown-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .35rem .5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.lang-dropdown-toggle:hover,
.lang-dropdown[open] .lang-dropdown-toggle {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.lang-dropdown-toggle::-webkit-details-marker { display: none; }
.lang-dropdown-toggle::marker { content: ''; }
.lang-current { line-height: 1.2; }
.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transform: translateY(1px);
}
.lang-dropdown[open] .lang-caret { transform: translateY(1px) rotate(180deg); }
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  left: auto;
  width: 8.75rem;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1), 0 2px 6px rgba(15, 23, 42, .05);
  z-index: 50;
  box-sizing: border-box;
  overflow: hidden;
}
.lang-dropdown-menu li {
  margin: 0;
  padding: 0;
  display: block;
}
.lang-dropdown-menu li + li {
  margin-top: .12rem;
}
.lang-dropdown-menu .lang-option {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: .6rem .85rem;
  margin: 0;
  color: #374151;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 8px;
  text-align: center;
  transition: background .12s, color .12s;
}
.lang-dropdown-menu .lang-option:hover {
  background: #f3f4f6;
  text-decoration: none;
  color: #111827;
}
.lang-dropdown-menu .lang-option.is-active {
  background: #eceef1;
  color: #111827;
}
.blogger-links { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.hero { padding: 2rem 0 1rem; }
.hero h1 { margin: 0 0 .5rem; font-size: 2rem; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
  padding: 1rem 0 2rem;
}
.card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-link:hover { text-decoration: none; color: inherit; }
.card-media {
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.card-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  display: block;
  padding: .5rem;
}
.card-body {
  height: var(--card-text-h);
  padding: .9rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
}
.card-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.card-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-link:hover .card-title { color: var(--accent-hover); }
.card-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 0;
}
.card-tags-release {
  margin-bottom: 0;
}
.card-tag {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
}
.detail-cover { max-width: 360px; border-radius: 12px; margin: 1rem 0; box-shadow: var(--shadow); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; background: #fff; border-radius: 12px; overflow: hidden; }
.spec-table caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--border); padding: .55rem .65rem; text-align: left; vertical-align: top; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; background: #f8fafc; }
.filters { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.filters select, .filters input {
  padding: .5rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: .875rem;
  background: rgba(255, 255, 255, .6);
}
article h1 { margin-top: .5rem; font-size: 1.85rem; letter-spacing: -.02em; }
.prose h2 { margin-top: 1.25rem; }
.prose p, .prose ul { line-height: 1.7; }
.list-summary { margin: .35rem 0 0; font-size: .9rem; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1rem;
  padding: .5rem 0 2.5rem;
}
.pagination-info {
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: .55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.pagination-btn:hover {
  border-color: #93c5fd;
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .1);
}
.pagination-btn.is-disabled {
  opacity: .45;
  cursor: default;
  box-shadow: none;
}

/* Home & static pages */
.home-hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.home-hero h1 { margin: 0 0 .75rem; font-size: 2.35rem; letter-spacing: -.03em; }
.home-lead { max-width: 42rem; margin: 0 auto 1.25rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.home-stats-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem;
  max-width: 52rem;
}
.home-stat-card {
  flex: 1 1 9.5rem;
  max-width: 13.5rem;
  min-width: 8.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.home-stat-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}
.home-stat-label {
  display: block;
  font-size: .9rem;
  color: var(--muted);
}
.home-cta { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.home-stats { margin: 0; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.btn-secondary:hover { color: var(--accent); text-decoration: none; border-color: #93c5fd; }
.home-recent { padding: .5rem 0 2rem; }
.home-recent h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.home-more { text-align: center; margin-top: 1rem; }
.static-page { padding: 1rem 0 2rem; max-width: 760px; }
.static-page h1 { margin-top: .25rem; }
.footer-inner { display: flex; flex-direction: column; gap: .65rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { margin: 0; font-size: .8rem; color: #94a3b8; }
