/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.6;
}
a { color: #e94560; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === CSS Variables === */
:root {
  --bg-secondary: #f1f3f5;
  --max-width: 1200px;
  --text-light: #868e96;
  --text-muted: #495057;
  --border-color: #dee2e6;
  --accent: #e94560;
  --accent-hover: #c0392b;
  --blue: #2b6cb0;
  --blue-bg: #ebf4ff;
  --star-color: #f59e0b;
}

/* === Reading Progress Bar === */
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #f5a623); z-index: 10000; transition: width 0.1s linear; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; white-space: nowrap; }
.logo a { color: #1a1a2e; text-decoration: none; }
.logo span { color: var(--accent); }

/* FIXED: .main-nav styling (was .nav-links in CSS, .main-nav in HTML - mismatch) */
.main-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: #555; font-weight: 500; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Search Box in Header */
.search-box { display: flex; align-items: center; gap: 4px; }
.search-box input {
  width: 200px; padding: 8px 14px; font-size: 0.85rem;
  border: 1px solid var(--border-color); border-radius: 6px; outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.search-box input:focus { border-color: var(--accent); width: 260px; }
.search-box button {
  background: none; border: 1px solid transparent; cursor: pointer;
  font-size: 1.1rem; padding: 4px 8px; border-radius: 4px; transition: background 0.2s;
}
.search-box button:hover { background: #f0f2f5; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #ebf4ff, #f0fff4); padding: 32px 20px; border-bottom: 1px solid var(--border-color); }
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; color: #212529; }
.hero p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ===== Section ===== */
.section { padding: 36px 0; border-top: 1px solid var(--border-color); }
.section:first-of-type { border-top: none; }
.section-title { max-width: var(--max-width); margin: 0 auto 14px; padding: 0 20px; font-size: 1.1rem; font-weight: 700; color: #212529; }
.section-subtitle { max-width: var(--max-width); margin: 0 auto 18px; padding: 0 20px; font-size: 0.82rem; color: var(--text-light); }

/* ===== Breadcrumbs ===== */
.breadcrumbs { max-width: var(--max-width); margin: 16px auto; padding: 0 20px; font-size: 0.85rem; color: #888; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #555; }

/* ===== Grid-3 (kb-card list, guide list, news list) ===== */
.grid-3 {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 0;
}

/* ===== Keyboard Review Cards (Shotkit-style) ===== */
.kb-card {
  background: #fff; border-bottom: 1px solid #e9ecef;
  padding: 20px 0; display: flex; flex-direction: row;
  align-items: flex-start; gap: 20px; transition: background 0.15s;
}
.kb-card:first-child { padding-top: 0; }
.kb-card:hover { background: #f8f9fa; }
.kb-card-thumb {
  width: 260px; min-width: 260px; height: 200px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: #f0f2f5;
  order: 2; margin-left: auto;
}
.kb-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-card-body { flex: 1; min-width: 0; order: 1; }
.kb-card-brand {
  font-size: 0.65rem; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px;
}
.kb-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.kb-card-title a { color: #212529; text-decoration: none; transition: color 0.2s; }
.kb-card-title a:hover { color: var(--blue); text-decoration: none; }
.kb-card-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.kb-card-specs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.kb-card-specs .spec-tag {
  font-size: 0.65rem; background: #f0f2f5; color: var(--text-muted);
  padding: 2px 10px; border-radius: 3px;
}
.kb-card-footer { display: flex; align-items: center; gap: 12px; }

/* Score display */
.kb-score { display: flex; align-items: center; gap: 6px; }
.kb-score-num { font-weight: 800; font-size: 1rem; color: var(--blue); }
.kb-score-stars { color: var(--star-color); font-size: 0.75rem; letter-spacing: 1px; }

/* ===== Guide Card ===== */
.guide-card {
  padding: 18px 0; border-bottom: 1px solid #e9ecef; display: flex; align-items: flex-start; gap: 14px;
}
.guide-card:last-child { border-bottom: none; }
.guide-emoji { font-size: 2rem; flex-shrink: 0; width: 48px; text-align: center; }
.guide-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.guide-card h3 a { color: #212529; }
.guide-card h3 a:hover { color: var(--blue); }
.guide-card p { font-size: 0.78rem; color: var(--text-light); }

/* ===== News Card ===== */
.news-card {
  padding: 18px 0; border-bottom: 1px solid #e9ecef;
}
.news-card:last-child { border-bottom: none; }
.news-date { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.news-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.news-card p { font-size: 0.78rem; color: var(--text-light); }

/* ===== Switch Cards (Grid-4) ===== */
.grid-4 {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.switch-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; background: #fff; border: 1px solid var(--border-color);
  border-radius: 12px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.switch-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.switch-circle { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.switch-card h3 { font-size: 0.85rem; font-weight: 700; color: #212529; margin: 0; }
.switch-card p { font-size: 0.72rem; color: var(--text-light); text-align: center; margin: 0; }

/* ===== Page Header ===== */
.page-header { max-width: var(--max-width); margin: 30px auto 10px; padding: 0 20px; }
.page-header h1 { font-size: 2rem; }

/* ===== Search Page ===== */
.search-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.search-input {
  width: 100%; padding: 14px 20px; font-size: 1.1rem;
  border: 2px solid var(--border-color); border-radius: 12px; outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-results { margin-top: 20px; }
.no-results { text-align: center; padding: 60px 20px; color: #888; font-size: 1.1rem; }

/* ===== Cards Grid (search results, category pages) ===== */
.cards-grid { max-width: var(--max-width); margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-body .card-brand { color: var(--accent); font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.card-body .card-desc { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tag { padding: 3px 10px; background: #f0f4ff; border-radius: 12px; font-size: 0.75rem; color: #555; }

/* ===== Toast ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 10001; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1a1a2e; color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 0.9rem; animation: slideIn 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.toast.success { border-left: 4px solid #2ecc71; }
.toast.error { border-left: 4px solid #e74c3c; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Switch Page ===== */
.switch-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.switch-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.switch-color { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.switch-header h1 { font-size: 2rem; }
.switch-desc { margin-bottom: 24px; }
.switch-desc p { margin-bottom: 12px; }
.char-list { list-style: none; margin: 20px 0; padding: 16px 20px; background: #f0f4ff; border-radius: 8px; }
.char-list li { padding: 6px 0; padding-left: 24px; position: relative; }
.char-list li::before { content: 'âœ“'; position: absolute; left: 0; color: #2ecc71; font-weight: bold; }
.best-for { margin: 24px 0; }
.best-for h2 { margin-bottom: 12px; }
.related-switches { margin: 24px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.related-switch-tag { padding: 6px 14px; background: var(--accent); color: #fff; border-radius: 20px; font-size: 0.85rem; }
.related-switch-tag:hover { background: var(--accent-hover); text-decoration: none; }

/* ===== Article Layout (guides) ===== */
.article-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.article-container h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 12px; }
.article-byline { color: #777; font-size: 0.9rem; margin-bottom: 30px; }
.article-body h2 { font-size: 1.5rem; margin: 32px 0 12px; color: #1a1a2e; }
.article-body h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; color: #333; }
.article-body ul, .article-body ol { margin-bottom: 16px; padding-left: 24px; color: #333; }
.article-body li { margin-bottom: 6px; }

/* ===== FAQ Section (article/guide) ===== */
.faq-section { margin: 40px 0; padding: 24px; background: #f0f4ff; border-radius: 12px; }
.faq-section h2 { margin-bottom: 16px; }
.faq-item { margin-bottom: 16px; }
.faq-item h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 6px; }

/* ===== Related Guides Section ===== */
.related-guides { margin: 40px 0; }
.related-guides h2 { margin-bottom: 16px; }
.related-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card { padding: 16px; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; }
.related-card h3 { font-size: 1rem; margin-bottom: 4px; }
.related-card p { font-size: 0.85rem; color: #666; }

/* ===== Review Page Layout (review-container) ===== */
.review-container {
  max-width: var(--max-width); margin: 0 auto; padding: 20px;
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
}
.review-main { min-width: 0; }
.review-content h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 8px; }
.review-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: #1a1a2e; }
.review-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.review-content p { margin-bottom: 16px; color: #333; line-height: 1.7; }
.review-content ul, .review-content ol { margin-bottom: 16px; padding-left: 24px; color: #333; }
.review-content li { margin-bottom: 6px; }

/* Byline */
.byline { display: flex; align-items: center; gap: 10px; color: #777; font-size: 0.9rem; margin-bottom: 24px; }
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}

/* ===== Review Sidebar ===== */
.review-sidebar { min-width: 0; }
.sidebar-widget {
  background: #fff; border: 1px solid var(--border-color); border-radius: 10px;
  padding: 20px; margin-bottom: 20px;
}
.sidebar-widget h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; color: #212529; }

/* Sidebar buy button */
.btn-buy {
  display: block; width: 100%; padding: 12px; background: #ff9900; color: #111;
  text-align: center; border-radius: 6px; font-weight: 700; font-size: 0.85rem;
  transition: background 0.2s; text-decoration: none;
}
.btn-buy:hover { background: #e68a00; color: #111; text-decoration: none; }

/* Sidebar related keyboards */
.sidebar-kb { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.sidebar-kb:last-child { border-bottom: none; }
.sidebar-kb img { width: 60px; height: 60px !important; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-kb-info { flex: 1; min-width: 0; }
.sidebar-kb-info h5 { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.sidebar-kb-info h5 a { color: #212529; }
.sidebar-kb-info h5 a:hover { color: var(--blue); }
.sidebar-kb-score { font-size: 0.72rem; color: var(--star-color); font-weight: 600; }

/* Sidebar tags */
.sidebar-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sidebar-tag {
  padding: 4px 12px; background: var(--blue-bg); color: var(--blue);
  border-radius: 4px; font-size: 0.75rem; font-weight: 500;
}
.sidebar-tag:hover { background: #d0e0ff; text-decoration: none; }

/* Sidebar keyboard image widget */
.sidebar-kb-img { margin-bottom: 12px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); }
.sidebar-kb-img img { width: 100%; height: auto; display: block; }

/* ===== Product Hero Image ===== */
.product-hero-img { margin: 20px 0 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); background: #f8f9fa; }
.product-hero-img img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.product-hero-img .caption { font-size: 0.72rem; color: var(--text-light); text-align: center; padding: 8px; font-style: italic; }

/* Inline product image */
.product-inline-img { margin: 24px 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); }
.product-inline-img img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ===== Comparison Tables ===== */
.vs-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.85rem; }
.vs-table th, .vs-table td { padding: 10px 14px; border: 1px solid var(--border-color); text-align: left; }
.vs-table th { background: #f8f9fa; font-weight: 700; font-size: 0.8rem; color: var(--text-muted); }
.vs-table th:first-child { background: #f1f3f5; }
.vs-table tr:nth-child(even) { background: #fafbfc; }
.vs-table td:first-child { font-weight: 600; color: #212529; }

.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.85rem; }
.specs-table td { padding: 8px 14px; border-bottom: 1px solid var(--border-color); }
.specs-table td:first-child { font-weight: 600; color: #212529; width: 160px; color: var(--text-muted); }

/* ===== Rating Box ===== */
.rating-box {
  margin: 32px 0; padding: 28px; background: linear-gradient(135deg, #ebf4ff, #f0fff4);
  border-radius: 12px; text-align: center; border: 1px solid #d0e0ff;
}
.rating-big { font-size: 3.5rem; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.rating-stars { font-size: 1.5rem; color: var(--star-color); margin-bottom: 6px; letter-spacing: 2px; }
.rating-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; }
.rating-conclusion { font-size: 0.85rem; color: #333; max-width: 500px; margin: 0 auto; line-height: 1.5; }

/* ===== Teardown Gallery ===== */
.teardown-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0;
}
.teardown-item { border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; background: #f8f9fa; text-align: center; padding: 16px 12px; }
.teardown-item .teardown-icon { font-size: 2.5rem; margin-bottom: 8px; }
.teardown-item .teardown-label { font-size: 0.75rem; color: var(--text-muted); }

/* ===== FAQ (in review) ===== */
.review-content .faq-item {
  margin-bottom: 12px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden;
}
.review-content .faq-q {
  padding: 14px 18px; background: #f8f9fa; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; position: relative; transition: background 0.2s;
}
.review-content .faq-q:hover { background: #f0f2f5; }
.review-content .faq-q::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--text-light); }
.review-content .faq-q.active::after { content: 'âˆ’'; }
.review-content .faq-a {
  padding: 14px 18px; font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.6; display: none; border-top: 1px solid var(--border-color);
}
.review-content .faq-a.open { display: block; }

/* ===== Share Box ===== */
.share-box { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-box .share-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.share-btn { padding: 6px 14px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-decoration: none; color: #fff; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }
.share-btn.reddit { background: #ff4500; }

/* ===== Deal Buttons ===== */
.deal-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.btn-deal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 6px; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s ease;
}
.btn-deal-amazon { background: #ff9900; color: #111; }
.btn-deal-amazon:hover { background: #e68a00; color: #111; transform: translateY(-1px); }
.btn-deal-amazon::before { content: 'ðŸ›’'; }
.btn-deal-bestbuy { background: #0046be; color: #fff; }
.btn-deal-bestbuy:hover { background: #003399; color: #fff; transform: translateY(-1px); }
.btn-compare {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 6px; font-size: 0.85rem; font-weight: 700;
  background: #fff; color: var(--blue); border: 2px solid var(--blue); cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.btn-compare:hover { background: var(--blue-bg); transform: translateY(-1px); }
.btn-compare::before { content: 'ðŸ“Š'; }

/* ===== Price Comparison ===== */
.price-compare { margin: 20px 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.price-compare h3 { padding: 14px 18px; background: #f8f9fa; font-size: 0.9rem; font-weight: 700; margin: 0; border-bottom: 1px solid var(--border-color); }
.price-row { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border-color); gap: 14px; }
.price-row:last-child { border-bottom: none; }
.price-store { width: 120px; font-weight: 600; font-size: 0.82rem; flex-shrink: 0; }
.price-amount { font-size: 1.1rem; font-weight: 800; color: var(--blue); width: 100px; flex-shrink: 0; }
.price-condition { font-size: 0.72rem; color: var(--text-light); flex: 1; }
.price-link a {
  display: inline-block; padding: 6px 16px; background: #ff9900; color: #111;
  border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-decoration: none;
}
.price-link a:hover { background: #e68a00; }

/* ===== Firmware Guide ===== */
.firmware-guide { background: #f8f9fa; border: 1px solid var(--border-color); border-radius: 8px; padding: 24px; margin: 20px 0; }
.firmware-guide ol { margin: 0 0 16px 18px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }
.firmware-guide h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.firmware-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.firmware-table tr { border-bottom: 1px solid var(--border-color); }
.firmware-table td { padding: 6px 0; }
.firmware-table td:first-child { font-weight: 600; }

/* ===== Reader Rating System ===== */
.reader-rating { margin: 24px 0; padding: 20px; background: #f8f9fa; border-radius: 8px; border: 1px solid var(--border-color); }
.reader-rating h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rating-avg { font-size: 2.2rem; font-weight: 900; color: var(--blue); }
.rating-avg-label { font-size: 0.72rem; color: var(--text-light); }
.rating-stars-display { font-size: 1.3rem; color: var(--star-color); }
.rating-count { font-size: 0.78rem; color: var(--text-light); }
.rating-bars { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; }
.rating-bar-label { width: 30px; text-align: right; color: var(--text-light); }
.rating-bar-track { flex: 1; height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--star-color); border-radius: 4px; }
.rating-bar-pct { width: 30px; color: var(--text-light); font-size: 0.65rem; }
.rating-vote { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.rating-vote span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.star-vote { display: flex; gap: 2px; }
.star-vote button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--border-color); transition: color 0.15s; padding: 0 2px; }
.star-vote button:hover, .star-vote button.active, .star-vote button.voted { color: var(--star-color); }
.rating-thanks { font-size: 0.75rem; color: #2b8a3e; margin-top: 6px; display: none; }

/* ===== One-Click Compare ===== */
.compare-check { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-light); cursor: pointer; }
.compare-check input { cursor: pointer; }
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #212529; color: #fff; padding: 14px 24px; z-index: 150; display: none; justify-content: center; align-items: center; gap: 16px; }
.compare-bar.show { display: flex; }
.compare-bar .selected { font-size: 0.82rem; }
.compare-bar .btn-compare-now { padding: 8px 20px; background: #ff9900; color: #111; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; font-size: 0.8rem; }
.compare-bar .btn-compare-now:hover { background: #e68a00; }
.compare-bar .btn-clear { padding: 8px 20px; background: #495057; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }

/* ===== Footer ===== */
.site-footer { background: #1a1a2e; color: #aaa; padding: 40px 20px; margin-top: 60px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.5; color: #888; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; margin-bottom: 4px; font-size: 0.9rem; }
.footer-col a { color: #aaa; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-width); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #333; text-align: center; font-size: 0.82rem; color: #777; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .review-container { grid-template-columns: 1fr 260px; gap: 24px; }
}
@media (max-width: 768px) {
  .main-nav { gap: 12px; justify-content: center; }
  .main-nav a { font-size: 0.85rem; }
  .header-inner { flex-direction: column; gap: 10px; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .search-box input:focus { width: 100%; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-card { flex-direction: column; }
  .kb-card-thumb { width: 100%; min-width: 0; height: 200px; margin-left: 0; order: 1; }
  .kb-card-body { order: 2; }

  .review-container { grid-template-columns: 1fr; gap: 0; }
  .review-sidebar { order: -1; margin-bottom: 24px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .related-cards { grid-template-columns: 1fr; }
  .teardown-gallery { grid-template-columns: repeat(2, 1fr); }

  .price-row { flex-wrap: wrap; }
  .rating-summary { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .teardown-gallery { grid-template-columns: 1fr; }
  .vs-table { font-size: 0.75rem; }
  .vs-table th, .vs-table td { padding: 6px 8px; }
}
