﻿:root {
  --bg: #f6f8fb;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eaf3f8;
  --text: #172033;
  --text-muted: #5c6b82;
  --heading: #0b1f3a;
  --primary: #0b2a4a;
  --primary-strong: #081f37;
  --accent: #12b8a6;
  --accent-strong: #0f9687;
  --amber: #f5b84b;
  --line: #d6e2ee;
  --line-strong: #bfd1e2;
  --shadow-soft: 0 12px 30px rgba(11, 31, 58, 0.06);
  --shadow-tiny: 0 6px 16px rgba(11, 31, 58, 0.04);
  --radius-card: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  line-height: 1.68;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
main { min-height: 48vh; }
.container { width: min(var(--container), 92%); margin: 0 auto; }
.section { padding: 72px 0; }
.muted { background: var(--surface-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(11, 42, 74, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-wrap { display: inline-flex; align-items: baseline; gap: 10px; }
.logo { font-weight: 800; font-size: 1.26rem; letter-spacing: 0.02em; color: var(--heading); }
.logo-sub { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a.is-active,
.site-nav a:hover {
  background: rgba(18, 184, 166, 0.12);
  color: var(--primary-strong);
  text-decoration: none;
}
.header-cta { margin-left: 6px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
}

.hero {
  padding: 72px 0;
  border-bottom: 1px solid rgba(11, 42, 74, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 243, 248, 0.52) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 42, 74, 0.07);
  border: 1px solid rgba(11, 42, 74, 0.12);
  border-radius: var(--radius-pill);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.25; color: var(--heading); margin-bottom: 14px; }
.hero p { color: var(--text-muted); max-width: 760px; }
.actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

.radar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.radar-card h2 { color: var(--heading); font-size: 1.04rem; margin-bottom: 14px; }
.radar-item { margin-bottom: 12px; }
.radar-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.progress-track { height: 8px; background: #edf2f8; border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%); }
.progress-fill.p88 { width: 88%; }
.progress-fill.p79 { width: 79%; }
.progress-fill.p76 { width: 76%; }
.progress-fill.p86 { width: 86%; }
.progress-fill.p83 { width: 83%; }

h2 { color: var(--heading); font-size: clamp(1.3rem, 2.1vw, 1.9rem); margin-bottom: 12px; }
h3 { color: var(--heading); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--primary); }
.btn-secondary:hover { background: #f4f9fc; }
.btn-ghost { background: transparent; border-color: rgba(11, 42, 74, 0.16); color: var(--primary); }
.btn-text { color: var(--primary); padding: 0; height: auto; border: 0; }
.btn-compact { height: 34px; font-size: 0.86rem; padding: 0 12px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-tiny);
  padding: 20px;
}
.card p { color: var(--text-muted); }

.top3-list { display: grid; gap: 14px; margin-top: 18px; }
.ranking-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-tiny);
  padding: 16px;
}
.rank-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.08rem;
  box-shadow: 0 10px 18px rgba(11, 42, 74, 0.2);
}
.rank-copy h3 { margin-bottom: 6px; }
.rank-copy p { margin-bottom: 4px; color: var(--text-muted); }
.rank-actions { display: flex; flex-direction: column; gap: 8px; }

.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.brand-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-tiny);
  padding: 18px;
}
.brand-item h3 { margin-bottom: 8px; }
.brand-item p { color: var(--text-muted); margin-bottom: 10px; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.brand-tags span {
  font-size: 0.78rem;
  color: var(--primary);
  background: rgba(11, 42, 74, 0.06);
  border: 1px solid rgba(11, 42, 74, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
}

.pill-grid { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-grid span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  color: var(--primary);
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-tiny);
}
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td {
  border-bottom: 1px solid #e7eef5;
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}
th { background: var(--primary); color: #f3f8ff; font-size: 0.92rem; letter-spacing: 0.01em; }
tbody tr:hover td { background: #f6fbff; }

.faq-list { margin-top: 16px; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.is-open { border-color: rgba(18, 184, 166, 0.48); }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
}
.faq-answer { display: none; padding: 0 16px 14px; color: var(--text-muted); }
.faq-item.is-open .faq-answer { display: block; }

.guide-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.topic-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  color: var(--primary);
  font-weight: 700;
}
.guide-list { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-tiny);
  padding: 18px;
}
.guide-card h2 { font-size: 1.14rem; margin-bottom: 8px; }
.guide-card p { color: var(--text-muted); margin-bottom: 8px; }
.guide-card .meta { display: block; color: #6c7b91; font-size: 0.88rem; margin-bottom: 12px; }
.guide-empty {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--text-muted);
  background: #fff;
}
.guide-empty.is-hidden { display: none; }

.pagination-wrap { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-muted); }
.pagination-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--primary);
  padding: 0 10px;
  background: #fff;
}

/* ----- Guides knowledge hub ----- */
.guides-page .guides-hero .editor-summary {
  margin-top: 16px;
  max-width: 860px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 42, 74, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}
.guide-intro-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guide-intro-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 14px 16px;
}
.guide-intro-card h3 {
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 8px;
}
.guide-intro-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.58; margin: 0; }

.reading-path .path-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.path-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 16px 18px;
}
.path-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--heading); }
.path-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 10px; }
.text-link { color: var(--primary); font-weight: 700; }

.guides-page .guide-list { margin-top: 14px; }
.guides-page .guide-card h3 { font-size: 1.06rem; margin-bottom: 8px; color: var(--heading); }
.guide-card__meta {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: var(--radius-pill);
  background: rgba(11, 42, 74, 0.08);
  color: var(--primary);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.empty-state {
  margin-top: 14px;
  border: 1px dashed #dccda8;
  border-radius: 12px;
  background: #fff9ef;
  color: #6f5f3e;
  padding: 12px 14px;
}
.article-page--detail .article-hero { border-bottom: 1px solid rgba(11, 42, 74, 0.06); }
.article-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* 僅 guides/article.htm（.article-page--detail） */
.article-page--detail .article-content {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tiny);
  padding: 26px 28px;
  font-size: 16px;
  line-height: 1.9;
}
.article-page--detail .article-content h2,
.article-page--detail .article-content h3 { color: var(--heading); margin: 20px 0 10px; line-height: 1.4; }
.article-page--detail .article-content p { color: var(--text-muted); margin-bottom: 10px; line-height: 1.9; }
.article-page--detail .article-content ul { margin: 8px 0 10px 20px; color: var(--text-muted); }
.article-page--detail .article-content blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 4px solid rgba(18, 184, 166, 0.6);
  background: #f4fbfa;
  border-radius: 8px;
  color: #3f4f67;
}

/* 文章頁：固定目錄／重點提示（不依賴正文 HTML） */
.article-page--detail .article-toc-panel {
  max-width: none;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4fbfa 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tiny);
  padding: 22px 26px;
}
.article-page--detail .article-toc-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--heading);
  line-height: 1.35;
}
.article-page--detail .article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.article-page--detail .article-toc-list li {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 42, 74, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.article-page--detail .article-toc-label {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}
.article-page--detail .article-toc-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* 正文：後台純文字為主，自動留白與行距（可不貼 HTML） */
.article-page--detail .article-content.auto-article {
  letter-spacing: 0.02em;
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.article-page--detail .article-content.auto-article > p {
  margin: 0 0 1.15em;
  line-height: 1.9;
  color: var(--text);
}
.article-page--detail .article-content.auto-article > p:last-child {
  margin-bottom: 0;
}
.article-page--detail .article-content.auto-article > ul,
.article-page--detail .article-content.auto-article > ol {
  margin: 0 0 1.1em 1.35em;
  line-height: 1.9;
  color: var(--text);
}
.article-page--detail .article-content.auto-article > ul:last-child,
.article-page--detail .article-content.auto-article > ol:last-child {
  margin-bottom: 0;
}
/* 僅有文字節點（無區塊子元素）時，保留換行並當成段落間距 */
.article-page--detail .article-content.auto-article:not(:has(> *)) {
  white-space: pre-line;
  color: var(--text);
}
/* 連續換行／雙 br：段落感 */
.article-page--detail .article-content.auto-article br + br {
  display: block;
  margin-top: 0.85em;
}
.article-page--detail .article-content.auto-article::selection {
  background: rgba(18, 184, 166, 0.22);
  color: var(--heading);
}

@media (max-width: 720px) {
  .article-page--detail .article-toc-list {
    grid-template-columns: 1fr;
  }
}

.article-page--detail .article-note { margin-top: 12px; }
.article-related .link-grid,
.article-foot .link-grid { margin-top: 12px; }
.prev-next {
  margin: 18px 0 14px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.static-page { background: transparent; }
.static-hero { padding-top: 68px; padding-bottom: 56px; }
.static-content {
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.static-content h2 { color: var(--heading); margin: 20px 0 10px; }
.static-content p, .static-content li { color: var(--text-muted); }
.static-content ul { margin: 8px 0 8px 22px; }
.notice-box {
  margin-top: 16px;
  border: 1px solid #f0dbb1;
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  background: #fff9ef;
  padding: 14px 16px;
}
.link-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.link-grid span, .link-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: var(--primary);
  font-weight: 600;
}
.inline-links { margin-left: 20px; }

/* ----- Trust pages (about/contact/terms/disclaimer) ----- */
.trust-layout { display: grid; gap: 20px; }
.policy-section h2 { margin: 0 0 10px; }
.policy-list {
  margin: 8px 0 0 20px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}
.trust-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 16px 18px;
}
.trust-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--heading);
}
.trust-card p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}
.trust-card p:last-child { margin-bottom: 0; }
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcff;
  padding: 16px 18px;
}
.link-card { text-decoration: none; }

/* ----- E-E-A-T trust pages ----- */
.trust-page .trust-hero p {
  max-width: 860px;
  color: var(--text-muted);
}
.trust-page .trust-section h2 {
  margin-bottom: 10px;
}
.trust-page .trust-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.trust-page .trust-card h2,
.trust-page .trust-card h3 {
  margin-bottom: 8px;
}
.trust-page .trust-card p {
  margin: 0 0 10px;
}
.trust-page .trust-card p:last-child {
  margin-bottom: 0;
}
.methodology-list {
  margin: 8px 0 0 20px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}
.disclosure-box,
.responsible-gaming-box,
.internal-link-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
}
.disclosure-box {
  background: #fffdf6;
  border-color: #ecd9af;
}
.responsible-gaming-box {
  margin-top: 12px;
  background: #f5fcfb;
  border-left: 4px solid var(--accent);
}
.internal-link-box {
  margin-top: 12px;
}
.author-card {
  min-height: 100%;
}

/* ----- Author page ----- */
.author-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px;
  margin: 32px 0;
}
.author-avatar {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
}
.author-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}
.author-meta {
  flex: 1;
}
.author-meta h2 {
  margin: 0 0 8px;
}
.author-role {
  margin: 0 0 12px;
  font-weight: 600;
  color: #0f766e;
}
.author-meta p {
  color: var(--text-muted);
  margin: 0 0 8px;
}
.author-meta p:last-child {
  margin-bottom: 0;
}
.author-page .author-bio-box {
  min-height: 100%;
}
.author-footer-box {
  margin-top: 0;
}

.review-author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin: 36px 0;
}
.review-author-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}
.review-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-author-content {
  flex: 1;
  min-width: 0;
}
.review-author-label {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: #64748b;
}
.review-author-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.review-author-name a {
  color: inherit;
  text-decoration: none;
}
.review-author-name a:hover {
  text-decoration: underline;
}
.review-author-role {
  margin: 0 0 8px;
  font-weight: 600;
  color: #0f766e;
  font-size: 0.92rem;
}
.review-author-desc {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}
.review-author-updated {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

/* ----- Brand review pages (dedupe: single block) ----- */
.brand-review-page .review-hero {
  border-bottom: 1px solid rgba(11, 42, 74, 0.08);
  background: linear-gradient(180deg, #fff 0%, rgba(234, 243, 248, 0.45) 100%);
}
.brand-review-page .review-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(11, 42, 74, 0.06);
  border: 1px solid rgba(11, 42, 74, 0.1);
}
.brand-review-page .review-hero h1 { margin-bottom: 12px; }
.brand-review-page .review-lead {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.review-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.review-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.review-section h2 { margin-bottom: 10px; }
.section-lead {
  max-width: 900px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.section-soft {
  background: rgba(234, 243, 248, 0.55);
  border-top: 1px solid rgba(11, 42, 74, 0.06);
  border-bottom: 1px solid rgba(11, 42, 74, 0.06);
}
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-tiny);
  padding: 22px 24px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card p { color: var(--text-muted); margin-top: 10px; }
.content-card p:first-of-type { margin-top: 0; }

.brand-review-page .content-card.review-verdict { padding-bottom: 22px; }
.verdict-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.verdict-grid h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin-bottom: 6px;
}
.verdict-grid p { color: var(--text-muted); margin: 0; font-size: 0.96rem; line-height: 1.65; }
.verdict-grid .verdict-span { grid-column: 1 / -1; }

.score-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.score-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}
.score-card h3 { font-size: 0.96rem; margin-bottom: 8px; color: var(--heading); }
.score-card p { color: var(--primary); font-weight: 700; margin: 0; }

.player-notes {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-tiny);
}
.note-card h3 { font-size: 0.95rem; color: var(--heading); margin-bottom: 8px; }
.note-card p { color: var(--text-muted); margin: 0; font-size: 0.92rem; line-height: 1.6; }

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.analysis-grid .content-card h2 { margin-top: 0; }

.info-table table { min-width: 640px; }
.info-table th {
  width: 180px;
  background: #f2f7fb;
  color: var(--heading);
  font-weight: 700;
}
.info-table td { color: var(--text-muted); }

.trust-list { margin-top: 12px; padding-left: 22px; color: var(--text-muted); }
.trust-list li { margin-bottom: 6px; }

.pros-cons { margin-top: 8px; }
.pros-cons .content-card ul { margin: 8px 0 0 20px; color: var(--text-muted); }
.pros-cons .content-card li { margin-bottom: 6px; }

.editor-note {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: #f5fcfb;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.risk-note {
  margin-top: 12px;
  border: 1px solid #f0dbb1;
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  background: #fff9ef;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.related-links ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.related-links li a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 600;
}
.related-links li a:hover { text-decoration: none; background: rgba(18, 184, 166, 0.06); }

.site-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, #0b2a4a 0%, #081f37 100%);
  color: #dbe8f6;
  padding: 52px 0 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.site-footer h2 { font-size: 1rem; margin-bottom: 9px; color: #fff; }
.site-footer p, .site-footer a { color: #dbe8f6; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.footer-risk {
  margin-top: 22px;
  border-top: 1px solid rgba(219, 232, 246, 0.22);
  padding-top: 14px;
  font-size: 0.9rem;
  color: #c8d9ed;
}

/* ----- Casino reviews listing (.reviews-page) ----- */
.reviews-page .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.reviews-page .reviews-hero-copy > p:not(.hero-badge) {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.72;
}
.review-dimension-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tiny);
  padding: 22px 24px;
}
.review-dimension-card h2 {
  font-size: 1.06rem;
  margin-bottom: 8px;
  color: var(--heading);
}
.dimension-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.dimension-row { margin-bottom: 14px; }
.dimension-row:last-child { margin-bottom: 0; }
.dimension-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dimension-label { font-size: 0.76rem; opacity: 0.88; }

.reviews-page .section-intro,
.recommend-page .section-intro,
.category-page .section-intro {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 800px;
  margin-bottom: 22px;
  line-height: 1.68;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.choice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px 22px;
}
.choice-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--heading); }
.choice-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 10px; line-height: 1.62; }
.choice-card-links {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
}
.choice-card-links a { font-weight: 600; }

.brand-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 4px;
}
.brand-review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.brand-review-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.brand-review-card h3 a {
  color: var(--heading);
  text-decoration: none;
}
.brand-review-card h3 a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}
.brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(11, 42, 74, 0.06);
  border: 1px solid rgba(11, 42, 74, 0.1);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
}
.brand-desc {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.brand-meta,
.brand-warning,
.brand-checked {
  font-size: 0.88rem;
  line-height: 1.58;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.brand-warning { color: #5a4f42; }
.brand-checked { margin-bottom: 14px; }
.brand-review-cta { margin-top: auto; align-self: flex-start; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px 22px;
}
.method-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--heading); }
.method-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.62;
}
.method-card p:last-child { margin-bottom: 0; }

.player-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.player-type-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px 22px;
}
.player-type-card h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--heading); }
.player-type-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.62;
}
.player-type-card p:last-child { margin-bottom: 0; }

.mistake-list {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  counter-reset: mistakes;
  display: grid;
  gap: 14px;
}
.mistake-item {
  counter-increment: mistakes;
  position: relative;
  padding: 16px 18px 16px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.mistake-item::before {
  content: counter(mistakes);
  position: absolute;
  left: 14px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(11, 42, 74, 0.08);
  color: var(--heading);
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
}

.faq-section .faq-list { margin-top: 12px; }

.final-cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.final-cta-inner h2 { margin-bottom: 10px; }
.final-cta-inner > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.68;
  font-size: 0.98rem;
}
.final-cta .actions { justify-content: center; }

/* ----- Casino recommend / ranking page (.recommend-page) ----- */
.recommend-hero .editor-summary {
  margin-top: 18px;
  max-width: 800px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 42, 74, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
}
.recommend-hero .risk-notice {
  margin-top: 14px;
  max-width: 800px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e8d9b8;
  border-left: 4px solid var(--amber);
  background: #fffbf3;
  color: #5a4f42;
  font-size: 0.92rem;
  line-height: 1.65;
}

.ranking-grid {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.ranking-card.featured {
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto auto;
  padding: 22px 22px 20px;
  align-items: start;
  border-color: rgba(18, 184, 166, 0.32);
  background: linear-gradient(165deg, #fff 0%, rgba(234, 243, 248, 0.65) 100%);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.06);
}
.ranking-card.featured .rank-badge {
  grid-row: 1 / span 3;
  align-self: start;
}
.ranking-card.featured .rank-copy {
  grid-column: 2;
  grid-row: 1;
}
.ranking-card.featured .rank-copy h3 {
  font-size: 1.28rem;
  margin-bottom: 0;
}
.ranking-card.featured .reason-block {
  grid-column: 2;
  grid-row: 2;
  margin-top: 4px;
}
.ranking-card.featured .reason-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 8px;
}
.ranking-card.featured .reason-block p:last-child { margin-bottom: 0; }
.ranking-card.featured .rank-actions {
  grid-column: 2;
  grid-row: 3;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 14px;
  gap: 8px;
}

.recommend-page .ranking-card:not(.featured) .rank-angle {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(11, 42, 74, 0.06);
  border: 1px solid rgba(11, 42, 74, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.recommend-page .ranking-card:not(.featured) .rank-copy p {
  font-size: 0.9rem;
  line-height: 1.58;
}
/* Brand logo system */
.brand-logo-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  max-height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: linear-gradient(145deg, #f4f7fb, #eef2f7);
  border: 1px solid rgba(15, 35, 60, 0.08);
  transition: transform 0.2s ease;
}
.brand-logo-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  position: static;
}
.brand-logo-wrap--dark {
  background: linear-gradient(145deg, #0f2238, #1b3555);
  border-color: rgba(255, 255, 255, 0.08);
}
.brand-logo-wrap--dark img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.table-logo-wrap {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  max-height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 35, 60, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.table-logo-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  position: static;
}
.table-logo-wrap--dark {
  background: linear-gradient(145deg, #0f2238, #1b3555);
  border-color: rgba(255, 255, 255, 0.08);
}
.table-brand,
.ranking-brand,
.review-brand-head,
.top-list-brand,
.brand-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-card:hover .brand-logo-wrap,
.brand-review-card:hover .brand-logo-wrap,
.top-list-card:hover .brand-logo-wrap,
.ranking-card:hover .brand-logo-wrap {
  transform: scale(1.04);
}
.review-brand-head h3,
.top-list-brand h3,
.ranking-brand h3 {
  margin: 0;
}
@media (max-width: 768px) {
  .brand-logo-wrap {
    width: 46px;
    height: 46px;
    min-width: 46px;
    max-width: 46px;
    min-height: 46px;
    max-height: 46px;
    flex-basis: 46px;
  }
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.methodology-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px 22px;
}
.methodology-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--heading);
}
.methodology-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.62;
  margin-bottom: 8px;
}
.methodology-card p:last-child { margin-bottom: 0; }

.recommend-page .compare-wrap table { min-width: 1080px; }

.recommend-mistakes .mistake-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.recommend-mistakes .mistake-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 18px 18px 16px;
}
.recommend-mistakes .mistake-card h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--heading);
}
.recommend-mistakes .mistake-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

.recommend-page .player-type-card .player-type-links {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.recommend-page .player-type-card .player-type-links a { font-weight: 600; }

.recommend-faq .faq-list { margin-top: 12px; }


/* ----- Homepage enhancements (.home-page) ----- */
.home-page .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.home-page .editor-summary,
.category-page .editor-summary {
  margin-top: 18px;
  max-width: 780px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 42, 74, 0.1);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  line-height: 1.7;
}
.home-page .risk-notice,
.category-page .risk-notice {
  margin-top: 12px;
  max-width: 780px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e8d9b8;
  border-left: 4px solid var(--amber);
  background: #fffbf3;
  color: #5a4f42;
  font-size: 0.92rem;
  line-height: 1.65;
}

.top-platforms .top-platform-card.featured {
  border-color: rgba(18, 184, 166, 0.3);
  background: linear-gradient(165deg, #fff 0%, rgba(234, 243, 248, 0.62) 100%);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.06);
}

.platform-head {
  margin-bottom: 10px;
}
.platform-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.platform-name {
  margin: 0;
  line-height: 1.28;
}
.brand-card-head {
  margin-bottom: 18px;
}
.brand-card .brand-card-head .brand-tag {
  margin-bottom: 0;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.decision-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px 22px;
}
.decision-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.decision-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.62; margin-bottom: 8px; }
.decision-card p:last-child { margin-bottom: 0; }

.home-page .section-intro {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 860px;
  margin-bottom: 22px;
  line-height: 1.68;
}

/* ----- Category pages: live casino (.category-page) ----- */
.top-list-grid {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.top-list-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px 20px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  border-left: 4px solid rgba(18, 184, 166, 0.42);
}
.top-list-rank {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 16px rgba(11, 42, 74, 0.18);
}
.top-list-body h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--heading); }
.top-list-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 8px;
}
.top-list-body p:last-of-type { margin-bottom: 12px; }
.top-list-body .btn { margin-top: 2px; }

.seo-content h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--heading);
}
.seo-content > .container > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 900px;
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.standard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px 22px;
}
.standard-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--heading); }
.standard-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.62; margin: 0; }

.live-compare .compare-wrap table,
.slot-compare .compare-wrap table,
.sports-compare .compare-wrap table { min-width: 1040px; }

.mistake-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.live-faq .faq-list,
.slot-faq .faq-list,
.sports-faq .faq-list { margin-top: 12px; }

.category-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.category-card,
.guide-grid .guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 20px;
}
.category-card h3,
.guide-grid .guide-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.category-card p,
.guide-grid .guide-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.62; margin-bottom: 10px; }
.category-card p:last-child,
.guide-grid .guide-card p:last-child { margin-bottom: 0; }

.home-page .brand-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.latest-reviews .brand-card--review,
.latest-reviews .brand-card {
  padding: 28px !important;
  box-sizing: border-box;
}
.latest-reviews .brand-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.latest-reviews .brand-card-body {
  padding: 0;
}
.latest-reviews .brand-card-body p {
  margin: 0 0 18px;
  line-height: 1.75;
}
.latest-reviews .brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-reviews .brand-card-footer {
  margin-top: 22px;
  padding-top: 18px;
}
.home-page .brand-card--review {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 35, 60, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 35, 60, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
  padding: 26px;
}
.home-page .brand-card--review::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 184, 166, 0.12), transparent 70%);
  pointer-events: none;
}
.home-page .brand-card--review:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 184, 166, 0.45);
  box-shadow: 0 22px 45px rgba(15, 35, 60, 0.1);
}
.latest-reviews .brand-card--review:hover .brand-logo-wrap {
  transform: scale(1.06);
}
.home-page .brand-card--review .brand-card-head {
  align-items: flex-start;
  margin-bottom: 14px;
}
.home-page .brand-card--review .brand-card-head h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(11, 42, 74, 0.06);
  border: 1px solid rgba(11, 42, 74, 0.1);
  color: #4f5f79;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 9px;
}
.brand-card-body { flex: 1; }
.home-page .brand-card--review .brand-card-body p {
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.75;
}
.home-page .brand-card--review .brand-tags { margin-bottom: 0; }
.home-page .brand-card--review .brand-tags span {
  font-size: 0.75rem;
  color: var(--primary);
  background: #eef4fa;
  border: 1px solid rgba(15, 35, 60, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px 9px;
}
.brand-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 35, 60, 0.06);
}
.brand-card-footer .text-link {
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .latest-reviews .brand-card--review,
  .latest-reviews .brand-card {
    padding: 22px !important;
  }
  .home-page .brand-card--review {
    min-height: auto;
    padding: 22px;
  }
}

.mistake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.mistake-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  padding: 18px;
}
.mistake-card h3 { font-size: 0.98rem; margin-bottom: 8px; }
.mistake-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .reviews-page .hero-grid { grid-template-columns: 1fr; }
  .home-page .hero-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .methodology-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-intro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-path .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: 1fr; }
  .recommend-mistakes .mistake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mistake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mistake-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .standard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 10px 4%;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .header-cta { display: none; }
  .ranking-card { grid-template-columns: 1fr; }
  .recommend-page .ranking-card.featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .recommend-page .ranking-card.featured .rank-badge {
    grid-row: auto;
    grid-column: 1;
    margin-bottom: 4px;
  }
  .recommend-page .ranking-card.featured .rank-copy,
  .recommend-page .ranking-card.featured .reason-block,
  .recommend-page .ranking-card.featured .rank-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .recommend-page .ranking-card.featured .rank-actions { margin-top: 12px; }
  .rank-actions { flex-direction: row; }
  .top-platform-card .rank-actions { flex-wrap: wrap; }
  .guide-topics { grid-template-columns: 1fr; }
  .trust-page .trust-grid { grid-template-columns: 1fr; }
  .author-profile-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .author-avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }
  .review-author-box {
    gap: 12px;
    padding: 16px;
  }
  .review-author-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

@media (max-width: 720px) {
  .section { padding: 42px 0; }
  .hero { padding: 42px 0; }
  .card-grid, .brand-grid, .guide-list, .footer-grid, .link-grid { grid-template-columns: 1fr; }
  .static-content { padding: 20px; }
  .article-page--detail .article-content { padding: 20px; }
  .score-grid, .related-links ul { grid-template-columns: 1fr; }
  .verdict-grid { grid-template-columns: 1fr; }
  .player-notes { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .choice-grid,
  .brand-review-grid,
  .method-grid,
  .guide-intro-grid,
  .reading-path .path-grid,
  .decision-grid,
  .category-grid,
  .guide-grid { grid-template-columns: 1fr; }
  .methodology-grid,
  .recommend-mistakes .mistake-grid,
  .mistake-grid,
  .mistake-grid--5 { grid-template-columns: 1fr; }
  .standard-grid { grid-template-columns: 1fr; }
  .top-list-card { grid-template-columns: 1fr; }
  .top-list-rank { justify-self: flex-start; }
  .top-platform-card .platform-title-row {
    gap: 10px;
    margin-bottom: 8px;
  }
  .top-platform-card .rank-actions {
    width: 100%;
    gap: 8px;
  }
  .home-page .brand-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* guides/article.htm：外層寬度、麵包屑與 article.css 並用 */
.article-page--detail .container,
.article-page--detail .article-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.article-page--detail .breadcrumb-wrap.section {
  padding-top: 40px;
  padding-bottom: 20px;
}

@media (max-width: 900px) {
  .article-page--detail .container,
  .article-page--detail .article-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== HKW Homepage Card Optimization ===== */

body {
  background: #f5f8fb;
  color: #0b2b4c;
  line-height: 1.8;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5edf5;
  padding: 18px 0 10px;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
  color: #082848;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
}

.site-header nav a {
  color: #17466f;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.home-hero,
.page-hero {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 6px 18px rgba(8, 40, 72, 0.06);
}

.home-hero h2,
.page-hero h1 {
  margin-top: 0;
  font-size: 28px;
  color: #06294a;
}

.home-hero p,
.page-hero p {
  margin-bottom: 0;
  color: #35546e;
}

main section {
  margin: 28px 0;
}

main section > h2 {
  font-size: 26px;
  margin-bottom: 18px;
  color: #082848;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(8, 40, 72, 0.05);
}

.article-card h2,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.45;
}

.article-card h2 a,
.article-card h3 a {
  color: #06294a;
  text-decoration: none;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  text-decoration: underline;
}

.article-card p {
  color: #425d76;
  margin: 0 0 12px;
}

.read-more,
.article-card a[href*=".html"] {
  display: inline-block;
  margin-top: 8px;
  color: #007f7a;
  font-weight: 700;
  text-decoration: none;
}

.read-more:hover,
.article-card a[href*=".html"]:hover {
  text-decoration: underline;
}

.site-footer {
  background: #052a49;
  color: #dcebf7;
  padding: 34px 0;
  margin-top: 48px;
}

.site-footer a {
  color: #dcebf7;
  text-decoration: none;
  margin-right: 12px;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header h1 {
    font-size: 26px;
  }

  .home-hero,
  .page-hero {
    padding: 18px;
    margin: 18px 0;
  }

  .home-hero h2,
  .page-hero h1 {
    font-size: 24px;
  }

  main section > h2 {
    font-size: 23px;
  }

  .article-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-card {
    padding: 17px;
  }

  .article-card h2,
  .article-card h3 {
    font-size: 20px;
  }
}
/* ===== HKW Homepage Visual Upgrade ===== */

.home-section {
  margin: 34px 0;
}

.home-section > h2 {
  position: relative;
  padding-left: 14px;
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.35;
}

.home-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 24px;
  border-radius: 6px;
  background: #009688;
}

.home-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: #b9d7ee;
  box-shadow: 0 10px 24px rgba(8, 40, 72, 0.09);
}

.home-card h3 {
  margin-bottom: 10px;
}

.home-card h3 a {
  color: #082848;
  font-weight: 800;
}

.home-card p {
  font-size: 15px;
  line-height: 1.75;
  color: #3d5872;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #009688;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
}

.card-btn:hover {
  background: #007f7a;
  text-decoration: none !important;
}

.review-section .article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommend-section .article-list,
.guide-section .article-list {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.recommend-section .home-card,
.guide-section .home-card {
  border-left: 5px solid #009688;
}

@media (max-width: 768px) {
  .home-section {
    margin: 28px 0;
  }

  .home-section > h2 {
    font-size: 23px;
    margin-bottom: 14px;
  }

  .home-section > h2::before {
    top: 6px;
    height: 22px;
  }

  .review-section .article-list {
    grid-template-columns: 1fr;
  }

  .home-card p {
    font-size: 15px;
  }

  .card-btn {
    width: 100%;
    padding: 10px 14px;
  }
}
/* ===== HKW Review Ranking Visual ===== */

.review-section {
  counter-reset: reviewRank;
}

.review-card {
  counter-increment: reviewRank;
  padding-top: 52px;
}

.review-card::before {
  content: "#" counter(reviewRank);
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f7f5;
  color: #007f7a;
  font-size: 14px;
  font-weight: 800;
}

.review-card::after {
  content: "平台評測";
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f6fb;
  color: #42627e;
  font-size: 13px;
  font-weight: 700;
}

.review-card h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .review-card {
    padding-top: 50px;
  }

  .review-card::before,
  .review-card::after {
    top: 16px;
  }

  .review-card::before {
    left: 16px;
  }

  .review-card::after {
    right: 16px;
  }
}
/* ===== HKW Top Picks ===== */

.top-picks {
  margin: 30px 0 34px;
}

.section-title-row {
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #082848;
}

.section-title-row p {
  margin: 0;
  color: #48647d;
  font-size: 15px;
}

.top-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.top-pick-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  padding: 22px 18px 18px;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.07);
}

.top-pick-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 16px 16px 0 0;
  background: #009688;
}

.pick-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f7f5;
  color: #007f7a;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.top-pick-card h3 {
  margin: 0 0 8px;
  color: #082848;
  font-size: 22px;
}

.top-pick-card p {
  margin: 0 0 14px;
  color: #3d5872;
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .top-picks {
    margin: 22px 0 28px;
  }

  .top-pick-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    margin-bottom: 12px;
  }

  .section-title-row h2 {
    font-size: 23px;
  }

  .top-pick-card {
    padding: 16px 14px 14px;
  }

  .top-pick-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .top-pick-card p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .pick-rank {
    height: 24px;
    min-width: 38px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .top-pick-card .card-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
/* ===== HKW SEO Note ===== */

.seo-note {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.05);
}

.seo-note h2 {
  margin-top: 0;
}

.seo-note p {
  color: #3d5872;
  font-size: 16px;
  line-height: 1.85;
}

@media (max-width: 768px) {
  .seo-note {
    padding: 18px;
  }

  .seo-note p {
    font-size: 15px;
  }
}
/* ===== HKW Brand Logo Style ===== */

.brand-logo {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 54px;
  object-fit: contain;
  margin: 6px 0 12px;
}

.top-pick-card .brand-logo {
  background: #f7fbff;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  padding: 8px 12px;
}

@media (max-width: 768px) {
  .brand-logo {
    max-width: 132px;
    max-height: 48px;
    margin-bottom: 10px;
  }
}
/* ===== Fix Top Picks Logo Size ===== */

.top-pick-card img.brand-logo {
  display: block !important;
  width: 120px !important;
  height: 52px !important;
  max-width: 120px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 8px 0 12px !important;
  padding: 8px 10px !important;
  background: #f7fbff;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .top-pick-card img.brand-logo {
    width: 118px !important;
    height: 50px !important;
    max-width: 118px !important;
    max-height: 50px !important;
  }
}
/* ===== Review Card Brand Logo ===== */

.review-card .card-brand-logo {
  display: block !important;
  width: 118px !important;
  height: 48px !important;
  max-width: 118px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 0 12px !important;
  padding: 8px 10px !important;
  background: #f7fbff;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .review-card .card-brand-logo {
    width: 112px !important;
    height: 46px !important;
    max-width: 112px !important;
    max-height: 46px !important;
    margin-bottom: 10px !important;
  }
}
/* ===== Logo Box Dark Background Fix ===== */

.top-pick-card img.brand-logo,
.review-card .card-brand-logo {
  background: #082848 !important;
  border: 1px solid #17466f !important;
  box-shadow: 0 4px 10px rgba(8, 40, 72, 0.10) !important;
}
/* ===== Article Brand Logo ===== */

.article-brand-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.article-brand-logo {
  display: block;
  width: 128px;
  height: 58px;
  max-width: 128px;
  max-height: 58px;
  object-fit: contain;
  object-position: center;
  padding: 10px 12px;
  background: #0f3558;
  border: 1px solid #1d4d78;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(8, 40, 72, 0.10);
  box-sizing: border-box;
}

.article-brand-head h1 {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .article-brand-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .article-brand-logo {
    width: 118px;
    height: 52px;
    max-width: 118px;
    max-height: 52px;
  }
}
/* Prevent mobile horizontal page shift */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
/* ===== Home Match Tool ===== */

.home-match-box {
  margin: 34px 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(8, 40, 72, 0.06);
}

.home-match-head h2 {
  margin: 0 0 8px;
  color: #082848;
  font-size: 26px;
  line-height: 1.35;
}

.home-match-head p {
  margin: 0 0 20px;
  color: #4a637a;
  line-height: 1.8;
}

.home-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-match-card {
  padding: 18px;
  background: #f7fbff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  box-sizing: border-box;
}

.home-match-card h3 {
  margin: 0 0 8px;
  color: #007f7a;
  font-size: 20px;
  line-height: 1.4;
}

.home-match-card p {
  margin: 0 0 12px;
  color: #4a637a;
  line-height: 1.75;
}

.home-match-brands {
  margin: 0 0 12px;
  color: #082848;
  line-height: 1.8;
}

.home-match-brands a {
  color: #007f7a;
  font-weight: 800;
  text-decoration: none;
}

.home-match-brands a:hover {
  text-decoration: underline;
}

.home-match-link,
.home-match-more a {
  color: #009688;
  font-weight: 800;
  text-decoration: none;
}

.home-match-link:hover,
.home-match-more a:hover {
  text-decoration: underline;
}

.home-match-more {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dbe8f4;
}

@media (max-width: 768px) {
  .home-match-box {
    padding: 18px;
    margin: 26px 0;
    border-radius: 16px;
  }

  .home-match-head h2 {
    font-size: 22px;
  }

  .home-match-grid {
    grid-template-columns: 1fr;
  }

  .home-match-card {
    padding: 15px;
  }

  .home-match-card h3 {
    font-size: 18px;
  }
}

/* ===== Site Logo ===== */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #082848;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

.site-logo span {
  color: #082848;
}

@media (max-width: 768px) {
  .site-logo {
    font-size: 22px;
  }

  .site-logo img {
    height: 38px;
  }
}

/* ===== Pagination final fix ===== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 18px;
  width: 100%;
}

.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe8f4;
  border-radius: 999px;
  background: #ffffff;
  color: #007f7a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  box-sizing: border-box;
}

.pagination li a,
.pagination li span,
.pagination li strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: transparent !important;
  color: inherit;
  text-decoration: none;
  min-width: auto;
  height: auto;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.pagination li:hover,
.pagination li.thisclass {
  background: #009688;
  border-color: #009688;
  color: #ffffff;
}

.pagination li.thisclass a,
.pagination li.thisclass span,
.pagination li.thisclass strong {
  color: #ffffff;
}

@media (max-width: 768px) {
  .pagination {
    margin: 24px 0 14px;
  }

  .pagination ul {
    gap: 6px;
  }

  .pagination li {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* ===== Back To Top ===== */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #009688;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #007f7a;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}