/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-card: #ffffff;
  --text: #0b0d12;
  --text-muted: #6b7280;
  --text-soft: #9aa0a6;
  --border: #ececee;
  --border-strong: #d9dadd;
  --accent: #ff4d2e;
  --accent-ink: #ffffff;
  --green: #12a150;
  --red:   #d83a2a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 8px 28px rgba(16, 24, 40, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1240px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-display: 'Manrope', var(--font-sans);
}

[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-soft: #12151c;
  --bg-card: #151821;
  --text: #f4f5f7;
  --text-muted: #a1a7b3;
  --text-soft: #6d7380;
  --border: #23262f;
  --border-strong: #2e323c;
  --accent: #ff6a4d;
  --accent-ink: #0b0d12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, .45);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Ticker ===== */
.ticker {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-size: 13px;
  color: var(--text-muted);
}
.ticker-inner {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  padding: 10px 0;
  animation: tick 45s linear infinite;
  will-change: transform;
}
.ticker-item { display: inline-flex; gap: 8px; align-items: center; }
.ticker-item b { color: var(--text); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.ticker-item i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.ticker-item .up   { color: var(--green); background: rgba(18, 161, 80, .1); }
.ticker-item .down { color: var(--red);   background: rgba(216, 58, 42, .1); }

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.logo-footer .logo-img {
  height: 30px;
  max-width: 160px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.logo-footer .logo-text {
  font-size: 16px;
}

.nav-primary {
  display: flex;
  gap: 4px;
  justify-self: center;
}
.nav-primary a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.nav-primary a:hover { color: var(--text); background: var(--bg-soft); }
.nav-primary a.active { color: var(--text); background: var(--bg-soft); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.socials { display: flex; align-items: center; gap: 4px; }
.social {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.social:hover { background: var(--bg-soft); color: var(--text); }

.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background .15s, border-color .15s, color .15s;
}
.theme-toggle:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.subscribe-btn {
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transition: transform .1s ease, opacity .15s ease;
}
.subscribe-btn:hover { opacity: .9; }
.subscribe-btn:active { transform: scale(.98); }

.subnav {
  display: flex;
  gap: 22px;
  padding-top: 10px;
  padding-bottom: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.subnav a:hover { color: var(--text); }

/* ===== Main ===== */
.main { padding: 32px 24px 56px; }

/* ===== Featured ===== */
.featured {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-media.ratio { aspect-ratio: 16 / 10; }
.card-media.ratio-wide { aspect-ratio: 16 / 9; }
.card-featured .card-media { aspect-ratio: 16 / 9.2; }

.img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  color: rgba(255,255,255,.9);
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.img-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(800px 300px at 100% 100%, rgba(0,0,0,.25), transparent 55%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.grad-1  { background: linear-gradient(135deg, #ff5a36 0%, #ff9068 100%); }
.grad-2  { background: linear-gradient(135deg, #2d3436 0%, #636e72 100%); }
.grad-3  { background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%); }
.grad-4  { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.grad-5  { background: linear-gradient(135deg, #12a150 0%, #2ecc71 100%); }
.grad-6  { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.grad-7  { background: linear-gradient(135deg, #ff9a00 0%, #ff5e62 100%); }
.grad-8  { background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); }
.grad-9  { background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%); }
.grad-10 { background: linear-gradient(135deg, #141e30 0%, #243b55 100%); }
.grad-11 { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }
.grad-12 { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); }
.grad-13 { background: linear-gradient(135deg, #f953c6 0%, #b91d73 100%); }
.grad-14 { background: linear-gradient(135deg, #232526 0%, #414345 100%); }
.grad-15 { background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%); }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.card-featured .card-body { padding: 24px 26px 28px; gap: 12px; }

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.meta .time { font-variant-numeric: tabular-nums; }
.meta .category {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11.5px;
}

.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.card-featured .card-title { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.card-wide .card-title { font-size: 22px; }

.card-lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.card-featured .card-lead { font-size: 16px; }

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d2e, #ffb88c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.dot { width: 3px; height: 3px; background: var(--text-soft); border-radius: 50%; display: inline-block; }

.featured-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
.card-side {
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-card);
}
.card-side .card-media.small {
  min-width: 120px;
  width: 120px;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.card-side .card-body { padding: 14px 16px; gap: 6px; justify-content: center; }
.card-side .card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-side .time { font-size: 12px; color: var(--text-soft); }

/* ===== Section ===== */
.section { margin-bottom: 48px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-more {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  transition: opacity .15s;
}
.section-more:hover { opacity: .75; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ===== Banner ===== */
.banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111318 0%, #1f2430 100%);
  color: #fff;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  right: -140px; top: -140px;
  background: radial-gradient(closest-side, rgba(255,77,46,.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.banner-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.banner-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}
.banner-text { margin: 0; color: rgba(255,255,255,.75); font-size: 15.5px; }
.banner-form {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.banner-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.banner-form input::placeholder { color: rgba(255,255,255,.45); }
.banner-form input:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.banner-form button {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .1s, opacity .15s;
}
.banner-form button:hover { opacity: .9; }
.banner-form button:active { transform: scale(.98); }
.banner-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  background: #29a8e8;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.banner-tg-btn:hover  { opacity: .9; }
.banner-tg-btn:active { transform: scale(.98); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 24px 32px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
  color: var(--text);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--text); }
.logo-footer { margin-bottom: 16px; }
.footer-about { color: var(--text-muted); font-size: 14px; line-height: 1.5; max-width: 320px; }
.socials-footer .social {
  width: auto; height: auto; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 13px;
  margin-bottom: 8px;
  display: inline-flex;
}
.socials-footer { flex-wrap: wrap; gap: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-primary { display: none; }
  .banner { padding: 30px; }
}
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .card-featured .card-title { font-size: 24px; }
  .banner { grid-template-columns: 1fr; padding: 28px; }
  .banner-title { font-size: 24px; }
  .section-title { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px 24px 24px; }
  .subnav { overflow-x: auto; white-space: nowrap; }
  .subnav::-webkit-scrollbar { display: none; }
  .subscribe-btn { display: none; }
  .socials { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .card-side .card-media.small { width: 96px; min-width: 96px; }
  .logo-text { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .main { padding: 24px 16px 40px; }
  .container { padding: 0 16px; }
  .card-featured .card-title { font-size: 22px; }
}

/* ===== Burger / Mobile menu ===== */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: .75rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--bg-soft); color: var(--accent); }

@media (max-width: 1080px) {
  .burger-btn { display: flex; }
}

/* ===== Search icon in nav ===== */
.nav-link-search {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color .2s;
  padding: 4px;
}
.nav-link-search:hover { color: var(--accent); }

/* ===== Card variants (engine.js) ===== */
.card-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: .35rem;
}
.card-featured .card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-excerpt { font-size: .9rem; color: var(--text-muted); margin: .4rem 0 .75rem; line-height: 1.5; }
.card-excerpt-sm { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  font-size: .78rem;
  color: var(--text-soft);
}
.card-author { color: var(--text-muted); font-weight: 500; }
.card-title-sm { font-size: .95rem; font-weight: 600; }

/* ── grid card (default) ── */
.card-grid .card-media {
  aspect-ratio: 16/9;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  overflow: hidden;
}
.card-grid .card-body { padding: .85rem 1rem 1rem; }

/* ── card-side ── */
.card-side { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.card-side:last-child { border-bottom: none; }
.card-side .card-media-sm {
  width: 88px;
  min-width: 88px;
  height: 66px;
  border-radius: var(--radius-sm);
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.card-side .card-body { padding: 0; display: flex; flex-direction: column; justify-content: center; gap: .2rem; }

/* ── card-wide ── */
.card-wide { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow); }
.card-wide .card-media {
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
}
.card-wide .card-body { padding: 1rem 1.25rem 1.25rem; }

/* img-fallback as link */
a.img-fallback { text-decoration: none; display: block; }
.img-fallback {
  background: linear-gradient(135deg, var(--grad-a, #667eea), var(--grad-b, #764ba2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ===== Category hero ===== */
.category-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.category-hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 .4rem;
  line-height: 1.15;
}
.category-hero-count {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
}

/* ===== Tag filter ===== */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tag-pill {
  padding: .3rem .85rem;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }
.tag-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Author page ===== */
.author-page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.author-hero-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.avatar-xxl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.author-hero-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 .25rem;
}
.author-hero-role {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 .75rem;
}
.author-hero-bio {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 560px;
}
.author-hero-stats { display: flex; gap: 1rem; font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }
.author-stat strong { color: var(--text); font-weight: 700; }
.author-stat-sep { color: var(--border-strong); }
.author-hero-socials { display: flex; gap: .75rem; }
.author-social-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: .25rem .75rem;
  border-radius: 99px;
  transition: all .18s;
}
.author-social-link:hover { background: var(--accent); color: #fff; }

.author-info-link { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: inherit; }

@media (max-width: 600px) {
  .author-hero-inner { flex-direction: column; gap: 1rem; }
  .avatar-xxl { width: 72px; height: 72px; font-size: 1.5rem; }
  .author-hero-name { font-size: 1.4rem; }
}

/* ===== Search page ===== */
.search-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.search-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
.search-form { max-width: 680px; }
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-soft);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: .85rem 1rem .85rem 3rem;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color .2s;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.search-sort { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--text-muted); }
.sort-btn {
  padding: .25rem .7rem;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s;
}
.sort-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.search-cat-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-filter-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .2rem .6rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: all .18s;
}
.cat-filter-label:hover { border-color: var(--accent); color: var(--accent); }
.cat-checkbox { accent-color: var(--accent); }
.search-count {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.search-list { display: flex; flex-direction: column; gap: 1px; }
.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.search-result-item:hover .search-result-title { color: var(--accent); }
.search-result-img {
  width: 120px;
  min-width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.search-result-body { display: flex; flex-direction: column; gap: .2rem; }
.search-result-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: .15rem 0;
  line-height: 1.35;
  transition: color .15s;
}
.search-result-excerpt { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.search-result-meta { font-size: .78rem; color: var(--text-soft); display: flex; gap: .35rem; }
.search-mark { background: rgba(255, 77, 46, .18); color: var(--accent); border-radius: 2px; padding: 0 1px; }
.search-empty-text { font-size: 1.1rem; color: var(--text); }

@media (max-width: 600px) {
  .search-result-img { width: 80px; min-width: 80px; height: 60px; }
}

/* ===== Author inline (interview cards) ===== */
.author-inline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .82rem;
}
.interview-meta { align-items: center; }

/* ===== Skeleton loaders ===== */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--border) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
  display: block;
}
.card-skeleton { display: flex; flex-direction: column; gap: 0; pointer-events: none; }
.card-skeleton .card-body { display: flex; flex-direction: column; gap: .45rem; padding-top: .85rem; }
.card-skeleton .sk-img    { height: 180px; border-radius: 10px 10px 0 0; }
.card-skeleton .sk-cat    { height: 13px; width: 65px; border-radius: 4px; }
.card-skeleton .sk-title  { height: 18px; width: 88%; border-radius: 4px; }
.card-skeleton .sk-title2 { height: 18px; width: 62%; border-radius: 4px; }
.card-skeleton .sk-exc    { height: 12px; width: 100%; border-radius: 4px; }
.card-skeleton .sk-exc2   { height: 12px; width: 72%; border-radius: 4px; }
.card-skeleton .sk-meta   { height: 11px; width: 48%; border-radius: 4px; margin-top: .1rem; }

/* ===== Back-to-top button ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(255,77,46,.35);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover, #e03e20); }

/* ===== Gradient classes (grad-1 to grad-15) ===== */
.grad-1  { --grad-a:#667eea; --grad-b:#764ba2; }
.grad-2  { --grad-a:#f093fb; --grad-b:#f5576c; }
.grad-3  { --grad-a:#4facfe; --grad-b:#00f2fe; }
.grad-4  { --grad-a:#43e97b; --grad-b:#38f9d7; }
.grad-5  { --grad-a:#fa709a; --grad-b:#fee140; }
.grad-6  { --grad-a:#a18cd1; --grad-b:#fbc2eb; }
.grad-7  { --grad-a:#ffecd2; --grad-b:#fcb69f; }
.grad-8  { --grad-a:#ff9a9e; --grad-b:#fecfef; }
.grad-9  { --grad-a:#a1c4fd; --grad-b:#c2e9fb; }
.grad-10 { --grad-a:#fd7043; --grad-b:#ff8a65; }
.grad-11 { --grad-a:#26a69a; --grad-b:#80cbc4; }
.grad-12 { --grad-a:#7986cb; --grad-b:#5c6bc0; }
.grad-13 { --grad-a:#ef5350; --grad-b:#e53935; }
.grad-14 { --grad-a:#ffca28; --grad-b:#ffa000; }
.grad-15 { --grad-a:#66bb6a; --grad-b:#43a047; }

