/* ==========================================================================
   SBKKO Next — Production Stylesheet (1400px Live Layout + Modern Glass UI)
   ========================================================================== */
:root {
  --bg-canvas: #F6F8FC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #EFF3FA;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-strong: rgba(255, 255, 255, 0.94);
  --bg-topbar: #0F172A;
  --text-topbar: rgba(248, 250, 252, 0.82);

  --text-primary: #132338;
  --text-secondary: #52647C;
  --text-muted: #8494AA;

  --border-hairline: rgba(19, 35, 56, 0.08);
  --border-strong: rgba(19, 35, 56, 0.14);

  --cta-bg: #111622;
  --cta-text: #FFFFFF;
  --cta-hover: #1E293B;

  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-2: #7C3AED;
  --accent-glow: rgba(99, 102, 241, 0.18);

  --shadow-nav: 0 10px 30px -10px rgba(19, 35, 56, 0.08), 0 1px 3px rgba(19, 35, 56, 0.04);
  --shadow-card: 0 2px 8px rgba(19, 35, 56, 0.04);
  --shadow-card-hover: 0 18px 38px -16px rgba(19, 35, 56, 0.16), 0 4px 12px -4px rgba(19, 35, 56, 0.06);
  --shadow-popover: 0 20px 50px -12px rgba(19, 35, 56, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg-canvas: #0A0E17;
  --bg-surface: #111827;
  --bg-surface-subtle: #182235;
  --bg-glass: rgba(17, 24, 39, 0.84);
  --bg-glass-strong: rgba(17, 24, 39, 0.95);
  --bg-topbar: #060911;
  --text-topbar: rgba(226, 232, 240, 0.78);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --cta-bg: #F8FAFC;
  --cta-text: #0A0E17;
  --cta-hover: #E2E8F0;

  --accent: #60A5FA;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --accent-2: #A78BFA;
  --accent-glow: rgba(129, 140, 248, 0.24);

  --shadow-nav: 0 12px 36px -10px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-card-hover: 0 22px 44px -16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(96, 165, 250, 0.22);
  --shadow-popover: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-out-expo), color 0.35s var(--ease-out-expo);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* 1400px Container & 1024 + 360 Two-Column / 3-Column Circle Grids */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.layout-3col {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 324px;
  gap: 16px;
  align-items: start;
}
.layout-2col > *, .layout-3col > * { min-width: 0; max-width: 100%; }
.sticky-col { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Double-Deck Header (38px Top Utility Bar + 58px Sticky Glass Main Nav)
   ========================================================================== */
.site-topbar {
  background: var(--bg-topbar);
  color: var(--text-topbar);
  height: 38px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { transition: color 0.2s ease; white-space: nowrap; }
.topbar-links a:hover { color: #fff; }

.topbar-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  height: 26px;
  padding: 0 4px 0 10px;
  gap: 6px;
}
.topbar-search select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.topbar-search select option { background: #0F172A; color: #fff; }
.topbar-search input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  width: 160px;
  outline: none;
}
.topbar-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.topbar-search button {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.topbar-search button:hover { background: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
body.admin-bar .site-header { top: 32px; }
.site-header.scrolled { background: var(--bg-glass-strong); box-shadow: var(--shadow-nav); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-left { display: flex; align-items: center; gap: 22px; min-width: 0; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #7C3AED 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
  transition: transform 0.35s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text span { color: var(--accent); font-weight: 600; }

.nav-links { position: relative; display: flex; align-items: center; padding: 4px 0; }
.nav-pill-bg {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0;
  border-radius: var(--radius-pill); background: var(--bg-surface-subtle);
  transition: transform 0.3s var(--ease-out-expo), width 0.3s var(--ease-out-expo), opacity 0.2s ease;
  pointer-events: none; z-index: 0; opacity: 0;
}
.nav-menu-list { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu-list > li { position: relative; list-style: none; }
.nav-menu-list > li > a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-pill);
  transition: color 0.2s ease; white-space: nowrap;
}
.nav-menu-list > li > a:hover,
.nav-menu-list > li > a.active,
.nav-menu-list > li.current-menu-item > a { color: var(--text-primary); font-weight: 600; }
.nav-hot {
  font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: #EF4444; color: #fff; line-height: 1.3; letter-spacing: 0.03em;
}
.nav-menu-list .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 164px; padding: 6px;
  list-style: none; border-radius: var(--radius-md); background: var(--bg-glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline); box-shadow: var(--shadow-popover);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out-expo); z-index: 80;
}
.nav-menu-list > li:hover > .sub-menu, .nav-menu-list > li:focus-within > .sub-menu {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-menu-list .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-secondary); }
.nav-menu-list .sub-menu a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-spring);
}
.icon-btn:hover { background: var(--bg-surface-subtle); color: var(--text-primary); }

.btn-ghost {
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { background: var(--bg-surface-subtle); color: var(--text-primary); }

.btn-primary {
  padding: 7px 17px; border-radius: var(--radius-pill);
  background: var(--cta-bg); color: var(--cta-text);
  font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s ease;
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 12px 3px 3px; border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle); border: 1px solid var(--border-hairline);
  font-size: 13px; font-weight: 600;
}
.user-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ==========================================================================
   Homepage 12-Section Modules
   ========================================================================== */
.hero {
  position: relative;
  min-height: 440px;
  padding: 76px 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-hairline);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 42%, transparent 0%, var(--bg-canvas) 95%);
  pointer-events: none; z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; padding: 0 20px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--bg-glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border-hairline);
  font-size: 12.5px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 18px;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulseDot 2.4s infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px transparent; } }
.hero-title {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 14px;
}
.kinetic-slot { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.2em; }
.kinetic-word {
  grid-area: 1 / 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%); opacity: 0;
  transition: transform 0.65s var(--ease-out-expo), opacity 0.45s ease;
}
.kinetic-word.is-active { transform: translateY(0%); opacity: 1; }
.kinetic-word.is-exit { transform: translateY(-110%); opacity: 0; }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 24px; font-weight: 500; }
.hero-corner { position: absolute; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-muted); opacity: 0.7; }
.hero-corner.left { left: 24px; }
.hero-corner.right { right: 24px; }

/* Home Row Wrapper */
.home-row { margin-top: 24px; }
.row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.row-title {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.row-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.row-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-tab {
  padding: 5px 13px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  transition: all 0.2s ease;
}
.row-tab:hover { color: var(--text-primary); border-color: var(--border-strong); }
.row-tab.active { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); font-weight: 600; }
.row-more { font-size: 13px; color: var(--text-muted); padding: 4px 10px; border-radius: var(--radius-pill); transition: color 0.2s ease; }
.row-more:hover { color: var(--accent); }

/* Row 2: Full-width Search & Hot Topics Bar */
.home-search-box {
  padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.search-capsule {
  display: flex; align-items: center; width: 100%; max-width: 720px;
  background: var(--bg-canvas); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 5px 5px 5px 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-capsule:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-input { flex: 1; border: none; background: transparent; font-size: 14.5px; outline: none; min-width: 0; }
.search-btn {
  padding: 9px 22px; border-radius: var(--radius-pill);
  background: var(--cta-bg); color: var(--cta-text);
  font-size: 13.5px; font-weight: 600;
}
.hot-topics { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.topic-pill {
  padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle); color: var(--text-secondary);
  transition: all 0.2s ease;
}
.topic-pill:hover { background: var(--accent-soft); color: var(--accent); }

/* Horizontal Post Card (used in 3-col Random, 2-col Latest/Ganhuo/Tool, 1-col Collection) */
.grid-h3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-h2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-h1 { display: grid; grid-template-columns: 1fr; gap: 14px; }

.h-card {
  display: flex; gap: 14px; padding: 12px;
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.2s ease;
  min-width: 0;
}
.h-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.h-card-thumb {
  width: 148px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; position: relative; background: var(--bg-surface-subtle);
}
.h-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease-out-expo); }
.h-card:hover .h-card-thumb img { transform: scale(1.06); }
.h-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.h-card-cat {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent);
}
.h-card-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h-card:hover .h-card-title { color: var(--accent); }
.h-card-excerpt {
  font-size: 12.5px; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); gap: 8px; font-variant-numeric: tabular-nums; }
.h-card-meta > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Row 4: 4-Col Compact Title Grid (投稿专栏) */
.grid-compact4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.compact-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.compact-item:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.compact-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.7; }
.compact-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vertical Gallery Grids (4-col & 5-col) */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; transition: opacity 0.25s ease; }
.gallery-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-grid.shuffling { opacity: 0.35; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 48px 0; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-surface-subtle); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover .card-media::after { opacity: 1; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.card:hover .card-img { transform: scale(1.05); }
.card-cover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 14px; color: #fff; font-weight: 700; font-size: 14px; text-align: center; }

.card-badges { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; gap: 5px; }
.badge {
  padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px); background: rgba(15, 23, 42, 0.62); color: #fff;
}
.badge.dl { background: rgba(37, 99, 235, 0.88); }
.badge.credit { background: rgba(124, 58, 237, 0.88); }
.badge.price { background: rgba(239, 68, 68, 0.9); }

.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.52); backdrop-filter: blur(8px); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: scale(0.85);
  transition: all 0.25s var(--ease-spring);
}
.card:hover .fav-btn, .fav-btn.liked { opacity: 1; transform: scale(1); }
.fav-btn.liked { background: #EF4444; }

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-between; }
.card-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.44; min-height: 2.88em; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s ease;
}
.card:hover .card-title { color: var(--accent); }
.card-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.card-sub > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Collection Carousel & 2-Col Index */
.collection-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.collection-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.col-card {
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.col-card-head {
  position: relative; padding: 20px 18px; min-height: 112px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background-size: cover; background-position: center;
}
.col-card-head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.82) 100%);
}
.col-card-head > * { position: relative; z-index: 1; }
.col-card-list { list-style: none; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.col-card-list a {
  display: block; font-size: 13.5px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.col-card-list a:hover { color: var(--accent); }

/* Sidebar Widgets (360px) */
.widget {
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-card);
}
.widget-title {
  font-size: 14.5px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.rank-num {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--bg-surface-subtle); color: var(--text-secondary);
}
.rank-item:nth-child(1) .rank-num { background: #EF4444; color: #fff; }
.rank-item:nth-child(2) .rank-num { background: #F97316; color: #fff; }
.rank-item:nth-child(3) .rank-num { background: #EAB308; color: #fff; }
.rank-link { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.rank-link:hover { color: var(--accent); }
.rank-val { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Bottom SiteCount Stats Banner (Matches live .siteCount with modern glass style) */
.site-count-band {
  margin-top: 36px; padding: 48px 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #312E81 100%);
  color: #fff;
}
.site-count-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px; text-align: center; margin-bottom: 26px;
}
.sc-num { font-size: clamp(24px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sc-label { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.sc-cta { text-align: center; }

/* Prismatic CTA Button */
.prismatic-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-pill);
  background: var(--cta-bg); color: var(--cta-text);
  font-size: 14px; font-weight: 600; transition: transform 0.3s var(--ease-spring);
}
.prismatic-btn::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(90deg, #38BDF8, #818CF8, #C084FC, #38BDF8);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderFlow 4s linear infinite; pointer-events: none;
}
@keyframes borderFlow { to { background-position: 200% 0; } }
.prismatic-btn:hover { transform: translateY(-2px); }

/* ==========================================================================
   Single Post, Archives, Newsflashes, 3-Col Circle, Custom Pages
   ========================================================================== */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 120; }
.page-shell { padding: 24px 0 48px; }
.banner-head {
  padding: 36px 28px; border-radius: var(--radius-lg); margin: 20px 0 22px;
  background: linear-gradient(135deg, #132338 0%, #1E3A8A 60%, #4338CA 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.banner-head h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.banner-head p { opacity: 0.85; font-size: 14.5px; margin-top: 6px; }

.tax-filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 18px;
}

.article-main { padding: 32px 36px; }
.article-h1 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.32; margin-bottom: 14px; }
.article-meta-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border-hairline);
  font-size: 13px; color: var(--text-secondary);
}
.article-meta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.prose { font-size: 15.5px; line-height: 1.85; color: var(--text-primary); word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
.yarpp-related { counter-reset: yarpp; margin-top: 22px; }
.yarpp-related ol { list-style: none !important; padding-left: 0 !important; margin-bottom: 6px !important; }
.yarpp-related ol li { counter-increment: yarpp; display: flex !important; align-items: baseline; gap: 8px; }
.yarpp-related ol li::before { content: counter(yarpp) "."; font-weight: 700; color: var(--accent); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 17.5px; font-weight: 700; margin: 22px 0 10px; scroll-margin-top: 84px; }
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 18px auto; border-radius: var(--radius-md); }
.prose pre { background: var(--bg-canvas); border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin: 18px 0; font-family: var(--font-mono); font-size: 13.5px; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px; border-radius: 5px; background: var(--bg-surface-subtle); color: var(--accent); }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border-hairline); text-align: left; white-space: nowrap; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--bg-canvas); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; color: var(--text-secondary); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; color: var(--text-secondary); }
.prose ol { list-style-type: decimal; }
.prose ul { list-style-type: disc; }
.prose li { display: list-item; margin-bottom: 6px; }

/* Lock Box, Download Card, Embed Post Card, Prev/Next, Comments */
.lock-box { margin: 22px 0; padding: 20px 22px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-canvas) 100%); }
.lock-box-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lock-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.lock-desc { font-size: 13px; color: var(--text-secondary); }
.lock-unlocked-label { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.lock-secret { padding: 14px 16px; border-radius: 10px; background: var(--bg-surface); border: 1px dashed var(--accent); font-size: 14px; }

.dl-card { padding: 18px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-card); }
.dl-card + .dl-card { margin-top: 12px; }
.dl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.dl-title { font-weight: 700; font-size: 15px; }
.dl-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dl-attr { font-size: 11.5px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--bg-canvas); border: 1px solid var(--border-hairline); color: var(--text-secondary); }
.dl-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
.dl-links { display: flex; flex-direction: column; gap: 8px; }
.dl-link-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-btn { padding: 7px 14px; border-radius: 9px; background: var(--cta-bg); color: var(--cta-text) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.dl-btn:hover { opacity: 0.92; }
.dl-code-btn { padding: 6px 11px; border-radius: 9px; border: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-secondary); }
.dl-code-btn:hover { border-color: var(--accent); color: var(--accent); }
.dl-locked { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--text-secondary); }

.embed-post-card { display: flex; align-items: center; gap: 14px; padding: 12px; margin: 18px 0; border-radius: var(--radius-md); background: var(--bg-canvas); border: 1px solid var(--border-hairline); text-decoration: none !important; }
.embed-post-card:hover { border-color: var(--accent); }
.embed-post-thumb { width: 108px; height: 70px; border-radius: 9px; background-size: cover; background-position: center; flex-shrink: 0; }
.embed-post-body { min-width: 0; flex: 1; }
.embed-post-tag { font-size: 11px; font-weight: 600; color: var(--accent); }
.embed-post-title { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin: 2px 0; }
.embed-post-meta { font-size: 12px; color: var(--text-muted); }

.sbkko-callout { padding: 14px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.sbkko-callout.warn { border-left-color: #F59E0B; background: rgba(245, 158, 11, 0.12); }
.sbkko-details { border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; background: var(--bg-canvas); }
.sbkko-details summary { font-weight: 600; cursor: pointer; }
.sbkko-player video, .sbkko-iframe iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-md); background: #000; margin: 16px 0; display: block; }
.sbkko-copyright { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--bg-canvas); border: 1px solid var(--border-hairline); font-size: 13px; color: var(--text-secondary); line-height: 1.85; }

.prev-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.pn-card { padding: 16px 18px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-hairline); transition: border-color 0.2s ease, transform 0.2s ease; }
.pn-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pn-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.pn-title { font-size: 14px; font-weight: 700; }

/* Newsflashes Timeline & Circle Topic Feed */
.news-day-group { margin-bottom: 24px; }
.news-day-label { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); }
.news-item { padding: 18px 20px; margin-bottom: 12px; }
.news-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.news-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }

.circle-topic { padding: 20px; margin-bottom: 14px; }
.circle-topic-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.circle-topic-head img { width: 40px; height: 40px; border-radius: 50%; }

/* Comments & Pagination */
.comments-area { margin-top: 24px; padding: 24px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.comment-list .children { list-style: none; margin-top: 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.comment-body { padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-canvas); border: 1px solid var(--border-hairline); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-author img { width: 30px; height: 30px; border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-canvas); margin-top: 6px; margin-bottom: 12px;
}
.comment-form input[type="submit"] { padding: 9px 22px; border-radius: var(--radius-pill); background: var(--cta-bg); color: var(--cta-text); border: none; font-weight: 600; cursor: pointer; }

.pagination-wrap { display: flex; justify-content: center; gap: 8px; padding: 24px 0 12px; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--text-secondary);
}
.pagination-wrap .page-numbers.current { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); font-weight: 600; }

/* Footer (4-Column Live Layout) */
.footer { border-top: 1px solid var(--border-hairline); background: var(--bg-surface); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border-hairline); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--text-secondary); transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-links-strip { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px 0 0; font-size: 13px; color: var(--text-muted); }
.footer-links-strip a:hover { color: var(--accent); }
.footer-bottom { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); padding-right: 64px; }
.rise-motto { font-weight: 600; color: var(--text-secondary); display: inline-flex; overflow: hidden; }
.rise-char { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 0.6s var(--ease-out-expo), opacity 0.45s ease; transition-delay: calc(var(--ci) * 35ms); }
.rise-motto.in-view .rise-char { transform: translateY(0); opacity: 1; }

/* Desktop Right Floating Dock & Mobile Fixed 6-Button Bottom Bar */
.floating-dock { position: fixed; right: 18px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.dock-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-glass-strong); backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline); box-shadow: var(--shadow-nav);
  color: var(--text-primary); display: grid; place-items: center; transition: all 0.25s var(--ease-spring);
}
.dock-btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.dock-btn.hidden { opacity: 0; transform: translateY(10px) scale(0.85); pointer-events: none; }

.mobile-bottom-bar { display: none; }
.mobile-menu-btn { display: none; }
.mobile-drawer {
  position: fixed; top: 64px; left: 12px; right: 12px; z-index: 98;
  border-radius: var(--radius-lg); background: var(--bg-glass-strong);
  backdrop-filter: blur(20px); border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-popover); padding: 14px;
  opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out-expo);
}
.mobile-drawer.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mobile-nav-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-nav-list a { display: block; padding: 10px; border-radius: var(--radius-sm); background: var(--bg-canvas); font-size: 14px; font-weight: 600; text-align: center; }

/* Login Modal & Toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 23, 0.56); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card { width: 100%; max-width: 660px; border-radius: var(--radius-lg); background: var(--bg-surface); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-popover); display: grid; grid-template-columns: 240px 1fr; overflow: hidden; transform: translateY(14px) scale(0.96); transition: transform 0.35s var(--ease-out-expo); }
.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }
.modal-aside { padding: 28px 22px; background: linear-gradient(155deg, #132A52 0%, #2563EB 60%, #4F46E5 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.modal-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; margin-top: 14px; opacity: 0.92; }
.modal-form { padding: 28px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; color: var(--text-muted); display: grid; place-items: center; }
.auth-tabs { display: flex; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border-hairline); padding-bottom: 8px; }
.auth-tab { font-size: 15px; font-weight: 600; color: var(--text-muted); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.field input { width: 100%; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-canvas); font-size: 14px; outline: none; }

.toast { position: fixed; top: 82px; left: 50%; transform: translate(-50%, -12px); padding: 10px 18px; border-radius: var(--radius-pill); background: var(--cta-bg); color: var(--cta-text); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-popover); z-index: 300; opacity: 0; pointer-events: none; transition: all 0.3s var(--ease-out-expo); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

.mobile-only { display: none; }
@media (hover: none) { .fav-btn { opacity: 0.9; transform: scale(1); } }

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .gallery-grid.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collection-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-compact4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .layout-2col, .layout-3col { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: grid; }
  .gallery-grid, .gallery-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-h3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none !important; }
  .floating-dock > :not(#backToTop) { display: none !important; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .container { padding: 0 14px; }
  .site-topbar { height: 34px; font-size: 11.5px; }
  .topbar-search { display: none; }
  .site-header { height: 52px; }
  body.admin-bar .site-header { top: 46px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 6px 12px; font-size: 12.5px; }
  .hero { min-height: 300px; padding: 48px 0 36px; }
  .hero-corner { display: none; }
  .grid-h2, .grid-h3, .collection-grid-2, .prev-next-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .h-card-thumb { width: 116px; }
  .site-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { padding-right: 0; }
  .article-main { padding: 20px 16px; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-aside { display: none; }
  .floating-dock { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .dock-btn { width: 36px; height: 36px; }
  .search-input, .field input, .comment-form input, .comment-form textarea { font-size: 16px; }

  /* Fixed 6-Button Mobile Bottom Bar (Matches live sbkko.com) */
  .mobile-bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: repeat(6, 1fr);
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-hairline);
  }
  .mobile-bottom-bar a, .mobile-bottom-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 11px; color: var(--text-secondary);
  }
  .mobile-bottom-bar a.active, .mobile-bottom-bar a:hover { color: var(--accent); font-weight: 600; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .h-card-meta, .card-sub { flex-wrap: wrap; gap: 4px 8px; }
  .sbkko-copyright, .embed-post-card { overflow-wrap: anywhere; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   v1.2.0 Craft Polish: SVG Icons, Level Tiers, Circle Community, Timeline, Code Copy
   ========================================================================== */
.sbkko-ico { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.meta-pill { display: inline-flex; align-items: center; gap: 5px; }
@keyframes popBounce { 0% { transform: scale(1); } 45% { transform: scale(1.26); } 100% { transform: scale(1); } }
.is-popping { animation: popBounce 0.36s var(--ease-spring); }

/* Enhanced Banner Head with Subtle Grid Texture */
.banner-head {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.32), transparent 48%),
              linear-gradient(135deg, #0F172A 0%, #1E3A8A 58%, #4338CA 100%);
  box-shadow: 0 18px 42px -18px rgba(15, 23, 42, 0.45);
}
.banner-head::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 28px 28px;
}
.banner-head > * { position: relative; z-index: 1; }

/* User Level Tier Badges */
.lv-badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5;
}
.lv-base { background: var(--bg-surface-subtle); color: var(--text-secondary); }
.lv-mid { background: rgba(37, 99, 235, 0.14); color: #2563EB; }
.lv-high { background: rgba(124, 58, 237, 0.16); color: #7C3AED; }
.lv-vip { background: linear-gradient(135deg, #F59E0B, #EA580C); color: #fff; }
[data-theme="dark"] .lv-mid { color: #60A5FA; }
[data-theme="dark"] .lv-high { color: #C084FC; }

/* Prose H2 Accent & Code Copy Bar */
.prose h2 {
  position: relative; padding-left: 14px;
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 0.22em; bottom: 0.22em; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.code-wrap { position: relative; margin: 18px 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-hairline); background: var(--bg-canvas); }
.code-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 7px 14px;
  background: var(--bg-surface-subtle); border-bottom: 1px solid var(--border-hairline);
  font-size: 11.5px; color: var(--text-muted);
}
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.code-copy-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--bg-surface); border: 1px solid var(--border-hairline); font-size: 11.5px; font-weight: 600; color: var(--text-secondary);
}
.code-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.code-wrap pre { margin: 0 !important; border: none !important; border-radius: 0 !important; }

/* ==========================================================================
   Dedicated Circle Community Discussion System (/circle & single-circle)
   ========================================================================== */
.circle-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary); border-left: 3px solid transparent; transition: all 0.2s ease;
}
.circle-nav-item:hover { background: var(--bg-surface-subtle); color: var(--text-primary); }
.circle-nav-item.active { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.circle-nav-count { font-size: 11.5px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--bg-canvas); color: var(--text-muted); font-variant-numeric: tabular-nums; }

.circle-composer { padding: 18px 20px; margin-bottom: 16px; }
.composer-trigger {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.composer-placeholder {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--bg-canvas); border: 1px solid var(--border-hairline);
  font-size: 13.5px; color: var(--text-muted); transition: border-color 0.2s ease;
}
.composer-placeholder:hover { border-color: var(--accent); }
.composer-body { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-hairline); }
.composer-body.open { display: block; }
.composer-body input, .composer-body textarea, .composer-body select {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-canvas); font-size: 14px; outline: none; margin-bottom: 10px;
}
.composer-body textarea:focus, .composer-body input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.circle-card {
  padding: 20px 22px; margin-bottom: 16px;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.25s ease;
}
.circle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.circle-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.circle-author { display: flex; align-items: center; gap: 11px; min-width: 0; }
.circle-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-hairline); }
.circle-author-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.circle-time { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.circle-tag-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.circle-card-title { font-size: 17px; font-weight: 750; line-height: 1.45; margin-bottom: 8px; transition: color 0.2s ease; }
.circle-card:hover .circle-card-title { color: var(--accent); }
.circle-card-excerpt { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }

.circle-gallery { display: grid; gap: 8px; margin-top: 14px; }
.circle-gallery.imgs-1 { grid-template-columns: minmax(0, 360px); }
.circle-gallery.imgs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.circle-gallery.imgs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.circle-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-hairline); }

.circle-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-hairline);
}
.circle-action-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-act-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 500; color: var(--text-secondary); background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.c-act-btn:hover, .c-act-btn.liked { background: var(--bg-surface-subtle); color: var(--accent); }
.c-act-btn.liked { color: #EF4444; }

.circle-comments-preview {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--bg-canvas); border: 1px solid var(--border-hairline);
  display: flex; flex-direction: column; gap: 6px; font-size: 13px;
}
.circle-cp-item { color: var(--text-secondary); line-height: 1.5; }
.circle-cp-item strong { color: var(--text-primary); font-weight: 600; margin-right: 6px; }

/* Newsflashes Vertical Timeline */
.timeline-wrap { position: relative; padding-left: 24px; }
.timeline-wrap::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border-hairline));
}
.timeline-node { position: relative; }
.timeline-node::before {
  content: ""; position: absolute; left: -21px; top: 22px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Author Cards, Link Favicons, Top Medals, Scrollbar Polish */
.author-card-banner { height: 56px; border-radius: 10px 10px 0 0; margin: -18px -18px 0; }
.link-site-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; transition: transform 0.25s var(--ease-out-expo), border-color 0.2s ease; }
.link-site-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.link-favicon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 15px;
  display: grid; place-items: center; overflow: hidden;
}
.link-favicon img { width: 22px; height: 22px; object-fit: contain; }
.top-medal {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}
.top-medal.m-1 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.top-medal.m-2 { background: linear-gradient(135deg, #94A3B8, #64748B); }
.top-medal.m-3 { background: linear-gradient(135deg, #D97706, #9A3412); }
.hot-scroll-card { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.op-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 700; margin-left: 6px; }

/* v1.5.0: Light/Dark Image Logo, Verified User Badge, Ad Slots */
.brand-logo { height: 28px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.verify-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14); color: #059669; font-size: 10.5px; font-weight: 700; line-height: 1.5;
}
[data-theme="dark"] .verify-badge { color: #34D399; }
.sbkko-ad-slot { overflow: hidden; border-radius: var(--radius-md); }
.sbkko-ad-slot img { max-width: 100%; height: auto; border-radius: var(--radius-md); }


