/* ============================================================
   t03 - Glassmorphism News Template
   Frosted glass cards, gradient backdrop, blur, floating layers
   ============================================================ */

:root {
  --xxf-primary: #6366f1;
  --xxf-accent: #ec4899;
  --xxf-surface: rgba(255, 255, 255, .6);
  --xxf-ink: #1e1b4b;
  --xxf-muted: #64748b;
  --xxf-line: rgba(255, 255, 255, .3);
  --xxf-card: rgba(255, 255, 255, .45);
  --xxf-radius: 20px;
  --xxf-shadow: 0 8px 32px rgba(99, 102, 241, .12);
  --xxf-max: 1200px;

  --xxf-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
  --xxf-gradient-subtle: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #d299c2 100%);
  --xxf-blur: blur(16px);
  --xxf-blur-heavy: blur(24px);
  --xxf-border-glass: 1px solid rgba(255, 255, 255, .35);
  --xxf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --xxf-font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--xxf-font);
  color: var(--xxf-ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Animated Gradient Backdrop ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--xxf-gradient);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, .15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, .12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(253, 216, 227, .2) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Floating Orbs ---- */
.glass-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
  pointer-events: none;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.glass-orb--1 {
  width: 400px;
  height: 400px;
  background: var(--xxf-primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.glass-orb--2 {
  width: 300px;
  height: 300px;
  background: var(--xxf-accent);
  bottom: -80px;
  left: -80px;
  animation-delay: -3s;
}

.glass-orb--3 {
  width: 250px;
  height: 250px;
  background: #a78bfa;
  top: 50%;
  left: 50%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

/* ---- Layout ---- */
.layout-wrap {
  max-width: var(--xxf-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.layout-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 960px) {
  .layout-main--two-col {
    grid-template-columns: 1fr 320px;
  }
}

.layout-content { min-width: 0; }
.layout-sidebar { min-width: 0; }

/* ---- Glass Card Base ---- */
.glass {
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: var(--xxf-radius);
  box-shadow: var(--xxf-shadow);
}

.glass--dense {
  background: rgba(255, 255, 255, .55);
}

.glass--strong {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: var(--xxf-blur-heavy);
  -webkit-backdrop-filter: var(--xxf-blur-heavy);
}

/* ---------- SEO Runtime Garbage Cleanup ---------- */
body[class*="template-"] :is(.layout-wrap,.layout-main,.layout-content,.layout-sidebar,.site-header,.header-inner,.site-footer,.footer-inner,.hero-card,.hero-card__body,.article-card,.article-card__body,.list-card,.list-card__body,.sidebar-block,.show-body,.show-header,.show-nav,.pagination,.article-grid,.article-list,.section-title,.cat-grid,.tag-cloud) > :where(font,ins,small,sup,time,tt,var,area,map,bdo,dfn):not([class]) { display: none !important; }
body[class*="template-"] :is(.header-brand,.header-search,.header-nav,.hero-card__image,.hero-card__overlay,.article-card__image,.list-card__image,.sidebar-list,.sidebar-cats,.ranking-list,.ranking-item,.show-meta,.section-gap) > :where(font,ins,small,sup,time,tt,var,area,map,bdo,dfn):not([class]) { display: none !important; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .35);
  backdrop-filter: var(--xxf-blur-heavy);
  -webkit-backdrop-filter: var(--xxf-blur-heavy);
  border-bottom: var(--xxf-border-glass);
  transition: background .3s, box-shadow .3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 4px 30px rgba(99, 102, 241, .1);
}

.header-inner {
  max-width: var(--xxf-max);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--xxf-ink);
  font-family: var(--xxf-font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header-brand:hover {
  color: var(--xxf-primary);
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--xxf-gradient);
  margin-left: 4px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.3); }
}

/* Search */
.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search form {
  width: 100%;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: var(--xxf-border-glass);
  border-radius: 50px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  font-size: var(--text-sm);
  color: var(--xxf-ink);
  outline: none;
  transition: background .3s, box-shadow .3s;
}

.header-search input::placeholder {
  color: var(--xxf-muted);
}

.header-search input:focus {
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.header-search .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xxf-muted);
  font-size: var(--text-sm);
  pointer-events: none;
}

/* Nav */
.header-nav {
  width: 100%;
  order: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: var(--space-xs);
}

@media (min-width: 768px) {
  .header-nav {
    width: auto;
    order: 0;
    margin-top: 0;
  }
}

.header-nav a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  color: var(--xxf-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 10px;
  transition: background .25s, color .25s, transform .2s;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a[aria-current] {
  background: rgba(99, 102, 241, .1);
  color: var(--xxf-primary);
  transform: translateY(-1px);
}

.header-sitemap {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border: var(--xxf-border-glass);
  border-radius: 50px;
  transition: color .25s, border-color .25s;
  flex-shrink: 0;
}

.header-sitemap:hover {
  color: var(--xxf-primary);
  border-color: var(--xxf-primary);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0 var(--space-lg);
  background: rgba(255, 255, 255, .2);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border-top: var(--xxf-border-glass);
}

.footer-inner {
  max-width: var(--xxf-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-section {
  margin-bottom: var(--space-lg);
}

.footer-section h3 {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xxf-primary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
}

.footer-links a {
  color: var(--xxf-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  transition: color .25s, background .25s;
}

.footer-links a:hover {
  color: var(--xxf-primary);
  background: rgba(99, 102, 241, .08);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: var(--xxf-muted);
  font-size: var(--text-xs);
  line-height: 1.8;
}

.footer-bottom a {
  color: var(--xxf-muted);
  text-decoration: none;
  transition: color .25s;
}

.footer-bottom a:hover {
  color: var(--xxf-primary);
}

/* ---- Section Headings ---- */
.section-title {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--xxf-ink);
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--xxf-primary), var(--xxf-accent));
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Hero ---- */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--xxf-radius);
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  box-shadow: var(--xxf-shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, .18);
}

.hero-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 27, 75, .75) 0%, rgba(30, 27, 75, .1) 60%, transparent 100%);
  z-index: 1;
}

.hero-card__body {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
  color: #fff;
}

.hero-card__title {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.hero-card__title a {
  color: #fff;
  text-decoration: none;
  transition: opacity .25s;
}

.hero-card__title a:hover {
  opacity: .85;
}

.hero-card__meta {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .8);
}

.hero-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: linear-gradient(135deg, var(--xxf-primary), var(--xxf-accent));
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: var(--space-xs);
}

/* ---- Ranking ---- */
.ranking-list {
  counter-reset: rank;
  list-style: none;
}

.ranking-item {
  counter-increment: rank;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item::before {
  content: counter(rank);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 8px;
  background: rgba(99, 102, 241, .1);
  color: var(--xxf-primary);
  margin-top: 2px;
}

.ranking-item:nth-child(1)::before { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.ranking-item:nth-child(2)::before { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: #fff; }
.ranking-item:nth-child(3)::before { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: #fff; }

.ranking-item a {
  color: var(--xxf-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: color .25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-item a:hover {
  color: var(--xxf-primary);
}

/* ---- Article Grid ---- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 540px) {
  .article-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
  .article-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .article-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .article-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Article Card ---- */
.article-card {
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: var(--xxf-radius);
  box-shadow: var(--xxf-shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, .15);
}

.article-card__image {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.article-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.article-card:hover .article-card__image img {
  transform: scale(1.06);
}

.article-card__body {
  padding: var(--space-md);
}

.article-card__title {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.article-card__title a {
  color: var(--xxf-ink);
  text-decoration: none;
  transition: color .25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__title a:hover {
  color: var(--xxf-primary);
}

.article-card__desc {
  color: var(--xxf-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.article-card__meta {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
}

/* ---- List Card (list page) ---- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.list-card {
  display: flex;
  gap: var(--space-md);
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: var(--xxf-radius);
  box-shadow: var(--xxf-shadow);
  overflow: hidden;
  padding: var(--space-md);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}

.list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, .15);
}

.list-card__image {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
}

.list-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.list-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-card__title {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.list-card__title a {
  color: var(--xxf-ink);
  text-decoration: none;
  transition: color .25s;
}

.list-card__title a:hover {
  color: var(--xxf-primary);
}

.list-card__desc {
  color: var(--xxf-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.list-card__meta {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
}

@media (max-width: 600px) {
  .list-card {
    flex-direction: column;
  }
  .list-card__image {
    width: 100%;
    height: 180px;
  }
}

/* ---- Sidebar ---- */
.sidebar-block {
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: var(--xxf-radius);
  box-shadow: var(--xxf-shadow);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar-block__title {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--xxf-ink);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--xxf-primary), var(--xxf-accent)) 1;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--xxf-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s, padding-left .25s;
}

.sidebar-list a:hover {
  color: var(--xxf-primary);
  padding-left: 4px;
}

.sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-cats a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(99, 102, 241, .08);
  color: var(--xxf-ink);
  text-decoration: none;
  font-size: var(--text-xs);
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, .12);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}

.sidebar-cats a:hover {
  background: linear-gradient(135deg, var(--xxf-primary), var(--xxf-accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ---- Tags / Keywords ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--xxf-border-glass);
  color: var(--xxf-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: 50px;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}

.tag-cloud a:hover {
  background: linear-gradient(135deg, var(--xxf-primary), var(--xxf-accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, .2);
}

/* ---- Category Grid ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.cat-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: 14px;
  color: var(--xxf-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  text-align: center;
  transition: transform .25s, box-shadow .25s, background .25s;
}

.cat-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, .15);
  background: linear-gradient(135deg, var(--xxf-primary), var(--xxf-accent));
  color: #fff;
  border-color: transparent;
}

/* ---- Show / Detail Page ---- */
.show-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.show-header h1 {
  font-family: var(--xxf-font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--xxf-ink);
  margin-bottom: var(--space-sm);
}

.show-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  color: var(--xxf-muted);
  font-size: var(--text-sm);
}

.show-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.show-body {
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: var(--xxf-radius);
  box-shadow: var(--xxf-shadow);
  padding: var(--space-xl);
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--xxf-ink);
  word-break: break-word;
}

.show-body p {
  margin-bottom: var(--space-md);
}

.show-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: var(--space-md) 0;
}

.show-body a {
  color: var(--xxf-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s;
}

.show-body a:hover {
  text-decoration-color: var(--xxf-accent);
}

.show-body h2,
.show-body h3,
.show-body h4 {
  font-family: var(--xxf-font-heading);
  line-height: 1.4;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.show-body h2 { font-size: var(--text-2xl); }
.show-body h3 { font-size: var(--text-xl); }
.show-body h4 { font-size: var(--text-lg); }

.show-body ul, .show-body ol {
  margin: var(--space-sm) 0 var(--space-md) var(--space-md);
}

.show-body blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border-left: 4px solid var(--xxf-primary);
  background: rgba(99, 102, 241, .05);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: var(--xxf-muted);
}

/* ---- Prev / Next Navigation ---- */
.show-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.show-nav a {
  display: block;
  padding: var(--space-md);
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: var(--xxf-radius);
  box-shadow: var(--xxf-shadow);
  color: var(--xxf-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: transform .25s, box-shadow .25s, color .25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-nav a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, .15);
  color: var(--xxf-primary);
}

.show-nav a[rel="prev"] { text-align: left; }
.show-nav a[rel="next"] { text-align: right; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--xxf-card);
  backdrop-filter: var(--xxf-blur);
  -webkit-backdrop-filter: var(--xxf-blur);
  border: var(--xxf-border-glass);
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--xxf-ink);
  text-decoration: none;
  transition: transform .2s, background .25s, color .25s;
}

.pagination a:hover {
  background: linear-gradient(135deg, var(--xxf-primary), var(--xxf-accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(135deg, var(--xxf-primary), var(--xxf-accent));
  color: #fff;
  border-color: transparent;
}

/* ---- Section spacing ---- */
.section-gap {
  margin-top: var(--space-xl);
}

.section-gap--lg {
  margin-top: var(--space-2xl);
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--xxf-muted); }
.text-sm { font-size: var(--text-sm); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .show-header h1 {
    font-size: var(--text-2xl);
  }

  .hero-card__title {
    font-size: var(--text-2xl);
  }

  .show-body {
    padding: var(--space-md);
  }

  .show-nav {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  .header-search {
    order: 20;
    max-width: 100%;
    width: 100%;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
