/* ─── Fonts (self-hosted) ────────────────────────────────────────────────────── */

@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dmserif-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dmserif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dmserif-regular-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dmserif-regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/outfit-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Design Tokens ──────────────────────────────────────────────────────────── */

:root {
  /* Base palette */
  --color-bg: #08080c;
  --color-surface: #131318;
  --color-surface-hover: #1e1e26;
  --color-border: #1e1e28;
  --color-border-hover: #2e2e3a;

  /* Text */
  --color-text: #eeeef0;
  --color-text-secondary: #9d9daa;
  --color-text-muted: #6b6b7a;
  --color-text-dim: #4a4a58;

  /* Content type colors */
  --color-article: #818cf8;
  --color-gallery: #34d399;
  --color-audio: #fbbf24;
  --color-video: #f87171;

  /* Content type glow (for hover effects) */
  --glow-article: rgba(129, 140, 248, 0.12);
  --glow-gallery: rgba(52, 211, 153, 0.12);
  --glow-audio: rgba(251, 191, 36, 0.12);
  --glow-video: rgba(248, 113, 113, 0.12);

  /* Shared */
  --max-width: 1200px;
  --sidebar-width: 240px;
  --nav-height: 64px;

  /* Typography */
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Admin (unchanged for admin pages) */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-muted: #666;
}

/* Admin theme — restore light colors for admin/login pages */
.admin-theme {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-border: #e0e0e0;
  --color-muted: #666;
  background: var(--color-bg);
  color: var(--color-text);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

::selection {
  background: rgba(129, 140, 248, 0.3);
  color: #fff;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-article);
  text-decoration: none;
}

a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.site-logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-logo:hover {
  color: var(--color-text);
  text-decoration: none;
}

.logo-dot {
  color: var(--color-article);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .site-nav a {
    padding: 0.6rem 0.75rem;
    width: 100%;
  }

  .site-nav.open {
    display: flex;
  }
}

/* Main */

.site-main {
  flex: 1;
  padding: 2rem 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}

.footer-nav a:hover {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.footer-copy {
  color: var(--color-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  opacity: 0.6;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero {
  position: relative;
  min-height: calc(55vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -2rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Ambient glow orbs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

/* Noise texture overlay */
.hero > * {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 420px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.12s;
}

.hero-accent {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.24s;
}

.hero-accent a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  text-decoration: none;
}

.hero-accent a:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-accent .accent-article {
  color: var(--color-article);
}
.hero-accent .accent-article:hover {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.08);
}

.hero-accent .accent-gallery {
  color: var(--color-gallery);
}
.hero-accent .accent-gallery:hover {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}

.hero-accent .accent-audio {
  color: var(--color-audio);
}
.hero-accent .accent-audio:hover {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.hero-accent .accent-video {
  color: var(--color-video);
}
.hero-accent .accent-video:hover {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 3.5rem 1.5rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
  }

  .hero::after {
    width: 250px;
    height: 250px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-accent {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ─── Featured Card ──────────────────────────────────────────────────────────── */

.featured-section {
  margin-top: 3.5rem;
}

.featured-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(129, 140, 248, 0.03) 100%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  border-color: rgba(129, 140, 248, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.05);
  text-decoration: none;
  color: inherit;
}

.featured-card-body {
  flex: 1;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.35;
}

.featured-card-summary {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card-date {
  color: var(--color-text-dim);
  font-size: 0.78rem;
  margin-top: auto;
  letter-spacing: 0.02em;
}

.featured-card-cover {
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-card:hover .featured-card-cover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .featured-card {
    flex-direction: column-reverse;
  }

  .featured-card-cover {
    width: 100%;
    height: 200px;
  }

  .featured-card-body {
    padding: 1.5rem;
  }

  .featured-card-title {
    font-size: 1.35rem;
  }
}

/* ─── Feed / Sections ────────────────────────────────────────────────────────── */

.feed-section {
  margin-top: 4rem;
}

.section-heading {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-border), transparent);
}

/* ─── Content Grid ───────────────────────────────────────────────────────────── */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Type Labels ────────────────────────────────────────────────────────────── */

.type-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.type-article { color: var(--color-article); }
.type-image { color: var(--color-gallery); }
.type-audio { color: var(--color-audio); }
.type-video { color: var(--color-video); }

/* ─── Visual Card (Gallery, Video) ───────────────────────────────────────────── */

.card-visual {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card-visual:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* Content-type-aware glow on hover */
.card-visual:has(.type-image):hover {
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(52, 211, 153, 0.06);
}

.card-visual:has(.type-video):hover {
  border-color: rgba(248, 113, 113, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(248, 113, 113, 0.06);
}

.card-visual-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-visual-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-visual:hover .card-visual-cover img {
  transform: scale(1.04);
}

.card-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-visual-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.card-visual-footer {
  padding: 0.55rem 1rem;
}

.card-visual-footer time {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

/* ─── Cover Card (Article/Audio with cover image) ──────────────────────────── */

.card-cover {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card-cover:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.card-cover:has(.type-article):hover {
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(129, 140, 248, 0.06);
}

.card-cover:has(.type-audio):hover {
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.06);
}

.card-cover-image {
  height: 140px;
  overflow: hidden;
}

.card-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-cover:hover .card-cover-image img {
  transform: scale(1.04);
}

.card-cover-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.15rem 1.15rem;
}

.card-cover-body .card-text-summary {
  -webkit-line-clamp: 2;
}

/* ─── Text Card (Article, Audio) ─────────────────────────────────────────────── */

.card-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card-text:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* Content-type-aware glow on hover */
.card-text:has(.type-article):hover {
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(129, 140, 248, 0.06);
}

.card-text:has(.type-audio):hover {
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.06);
}

.card-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-text-header time {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

.card-text-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card-text-summary {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.audio-icon {
  margin-right: 0.25rem;
  font-size: 0.6em;
}

/* ─── Page Headers ───────────────────────────────────────────────────────────── */

.page-header {
  margin-bottom: 2rem;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-header-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  border-radius: 2px;
}

.page-header-title.type-article::before { background: var(--color-article); }
.page-header-title.type-image::before { background: var(--color-gallery); }
.page-header-title.type-audio::before { background: var(--color-audio); }
.page-header-title.type-video::before { background: var(--color-video); }

/* ─── Article Detail ─────────────────────────────────────────────────────────── */

.article-detail {
  max-width: 720px;
  margin: 0 auto;
}

.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.article-body {
  max-width: 720px;
  line-height: 1.8;
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  border-left: 4px solid var(--color-border);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: var(--color-surface);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-muted);
}

.article-body pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #d4d4d4;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-body code {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: var(--color-text);
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.article-body img {
  border-radius: 8px;
  margin: 1.25rem 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.article-body th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.article-body a {
  color: var(--color-article);
}

.article-body a:hover {
  color: #818cf8;
}

/* ─── Media Detail Pages ─────────────────────────────────────────────────────── */

.media-detail {
  max-width: 960px;
  margin: 0 auto;
}

.media-detail-header {
  margin-bottom: 1.5rem;
}

.media-detail-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.media-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.media-detail-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.media-carousel {
  margin-bottom: 1.5rem;
}

.media-carousel-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #050505;
}

.media-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.media-carousel-track::-webkit-scrollbar {
  display: none;
}

.media-carousel.is-enhanced .media-carousel-track {
  overflow: visible;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 74vh, 820px);
}

.media-carousel-image {
  width: 100%;
  height: clamp(420px, 74vh, 820px);
  object-fit: contain;
  display: block;
}

.media-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.68);
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.media-carousel-button:hover {
  background: rgba(20, 20, 20, 0.86);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.media-carousel-button-prev {
  left: 1rem;
}

.media-carousel-button-next {
  right: 1rem;
}

.media-carousel-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.7);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.media-carousel-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.85rem 0 0.15rem;
  scrollbar-width: thin;
}

.media-carousel-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.media-carousel-thumb:hover,
.media-carousel-thumb.active {
  opacity: 1;
  border-color: var(--color-gallery);
  transform: translateY(-2px);
}

.media-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-detail-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 720px;
}

.audio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.audio-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audio-hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-hero-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-audio);
}

.audio-hero-type::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.audio-detail-title {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.96;
  text-wrap: balance;
}

.audio-hero-summary {
  margin: 0;
  max-width: 48rem;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.audio-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.audio-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.06));
  color: #fef3c7;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.audio-tags {
  gap: 0.5rem;
}

.audio-cover-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  padding: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 46%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.audio-player {
  margin: 0;
}

.audio-player audio {
  width: 100%;
  border-radius: 8px;
  outline: none;
}

.audio-shell {
  position: relative;
  overflow: visible;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(14, 14, 16, 0.98), rgba(8, 8, 10, 0.98));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.audio-shell::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 68%);
  pointer-events: none;
}

.audio-shell-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.audio-shell-kicker {
  margin: 0 0 0.4rem;
  color: var(--color-audio);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.audio-shell-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
}

.audio-shell-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.audio-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.audio-action-link:hover {
  color: #fff8e6;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.audio-player-ready {
  position: relative;
  z-index: 1;
}

.audio-player .plyr {
  --plyr-color-main: var(--color-audio);
  --plyr-audio-controls-background: rgba(18, 18, 22, 0.88);
  --plyr-audio-control-color: #f8fafc;
  --plyr-audio-control-color-hover: #111827;
  --plyr-range-thumb-background: var(--color-audio);
  --plyr-tooltip-background: #fbbf24;
  --plyr-tooltip-color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: visible !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.audio-player .plyr--audio .plyr__controls {
  padding: 1rem 1rem 0.9rem;
  gap: 0.3rem;
  background:
    linear-gradient(180deg, rgba(20, 20, 24, 0.94), rgba(10, 10, 12, 0.94));
  color: var(--color-text);
  border-radius: 20px;
}

.audio-player .plyr__control {
  border-radius: 999px;
}

.audio-player .plyr__control:hover,
.audio-player .plyr__control[aria-expanded="true"] {
  background: rgba(251, 191, 36, 0.92);
}

.audio-player .plyr__progress__container {
  margin-inline: 0.5rem;
}

.audio-player .plyr__menu__container {
  background: rgba(14, 14, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.audio-player .plyr--full-ui input[type="range"] {
  min-height: 1.5rem;
}

.audio-player-fallback audio {
  background: rgba(14, 14, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.4rem;
}

.audio-player-note {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  color: var(--color-text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.video-player {
  margin-bottom: 1.5rem;
}

.video-player video {
  width: 100%;
  border-radius: 12px;
  outline: none;
  background: #000;
}

.audio-cover-image {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin-bottom: 0;
}

.audio-detail-footer {
  margin-top: 1.25rem;
}

/* ─── Audio / Video Players ──────────────────────────────────────────────────── */

audio,
video {
  width: 100%;
  border-radius: 4px;
  outline: none;
}

/* ─── Tags ───────────────────────────────────────────────────────────────────── */

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

.tag {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  border: none;
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s;
}

.tag:hover {
  background: var(--color-border-hover);
  text-decoration: none;
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.pagination a:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
  text-decoration: none;
}

.pagination .active {
  background: rgba(129, 140, 248, 0.1);
  color: var(--color-article);
  border-color: rgba(129, 140, 248, 0.2);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── Admin Layout ───────────────────────────────────────────────────────────── */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
}

.admin-sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #334155;
}

.admin-sidebar-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.admin-sidebar-logo:hover {
  color: #fff;
  text-decoration: none;
}

.admin-sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
}

.admin-nav-group {
  margin-bottom: 0.5rem;
}

.admin-nav-label {
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover {
  background: #334155;
  color: #f1f5f9;
  text-decoration: none;
}

.admin-nav-link.active {
  background: #334155;
  color: #fff;
  font-weight: 600;
}

.admin-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-title {
  font-size: 1rem;
  font-weight: 600;
}

.admin-main {
  flex: 1;
  padding: 1.5rem;
}

/* ─── Admin Toolbar and Filters ──────────────────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ─── Stats Grid ─────────────────────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Media Grid ─────────────────────────────────────────────────────────────── */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.media-grid-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.media-grid-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-grid-thumb {
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
}

.media-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid-info {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.media-grid-name {
  font-weight: 500;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Forms ──────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.3rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: #f5f5f5;
  color: var(--color-text);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  background: #f0f0f0;
  color: var(--color-text);
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ─── Tables ─────────────────────────────────────────────────────────────────── */

.table-wrapper {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8f9fa;
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f9fafb;
}

/* ─── Login Wrapper ──────────────────────────────────────────────────────────── */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 1.5rem;
}

.login-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.6rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ─── Token Display ──────────────────────────────────────────────────────────── */

.token-display {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.6rem 0.875rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--color-text);
}

.token-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.token-row .token-display {
  flex: 1;
}

/* ─── Tags Admin ─────────────────────────────────────────────────────────────── */

.tags-admin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-admin-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f4ff;
  border: 1px solid #c7d8fd;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}

.tag-admin-item .tag-count {
  background: #c7d8fd;
  color: var(--color-primary);
  border-radius: 10px;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-admin-item .tag-delete {
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s;
}

.tag-admin-item .tag-delete:hover {
  color: #ef4444;
}

/* ─── Quick Create Links ─────────────────────────────────────────────────────── */

.quick-create {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-create-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  color: var(--color-muted);
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}

.quick-create-link:hover {
  background: #f0f4ff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.quick-create-link .icon {
  font-size: 1.5rem;
}

/* ─── About Page ─────────────────────────────────────────────────────────────── */

.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.about-page h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.about-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.about-page p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.about-intro {
  font-size: 1.25rem;
  color: var(--color-text);
}

.about-divider {
  border: none;
  border-top: 1px solid var(--color-surface);
  margin: 2.5rem 0;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.about-pillar p {
  margin-bottom: 0;
}

.about-cta {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ─── Utility ────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: #16a34a;
}

.badge-warning {
  background: #fef9c3;
  color: #ca8a04;
}

.badge-info {
  background: #dbeafe;
  color: #2563eb;
}

.badge-muted {
  background: #f3f4f6;
  color: var(--color-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Admin */
  .admin-sidebar {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }

  /* Public */
  .article-title {
    font-size: 1.75rem;
  }

  .featured-card-body {
    padding: 1.25rem;
  }

  .featured-card-title {
    font-size: 1.25rem;
  }

  .media-detail-title {
    font-size: 1.5rem;
  }

  .audio-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .audio-cover-frame {
    justify-self: stretch;
    width: 100%;
  }

  .audio-shell {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .audio-shell-header {
    flex-direction: column;
  }

  .audio-shell-actions {
    justify-content: flex-start;
  }

  .audio-player .plyr--audio .plyr__controls {
    flex-wrap: wrap !important;
    row-gap: 0.75rem;
    column-gap: 0.4rem;
  }

  .audio-player .plyr__controls > .plyr__progress__container {
    order: -1;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 0 0 0.2rem !important;
  }

  .audio-player .plyr__progress {
    flex: 1 1 auto !important;
    margin-right: 0 !important;
  }

  .audio-player .plyr__time--current,
  .audio-player .plyr__time--duration {
    font-size: 0.78rem;
  }

  .audio-player .plyr--full-ui input[type="range"] {
    min-height: 2rem;
  }

  .media-carousel-slide {
    min-height: clamp(320px, 68vh, 620px);
  }

  .media-carousel-image {
    height: clamp(320px, 68vh, 620px);
  }

  .media-carousel-button {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .media-carousel-button-prev {
    left: 0.65rem;
  }

  .media-carousel-button-next {
    right: 0.65rem;
  }

  .media-carousel-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 78px;
  }

  .page-header-title {
    font-size: 1.5rem;
  }
}

/* Hyperstudio public theme override - 2026-06-23 */

:root {
  --color-obsidian-canvas: #101010;
  --color-charcoal-surface: #333333;
  --color-onyx-edge: #212121;
  --color-ash: #5a5a5a;
  --color-frost-text: #f3f3f3;
  --color-silver: #c1c1c1;
  --color-smoke: #949494;
  --color-graphite: #888888;
  --color-fog: #9c9c9c;
  --color-pure-white: #ffffff;
  --color-amber-whisper: #e7c59a;
  --surface-void: #080808;
  --surface-canvas: #101010;
  --surface-surface: #212121;
  --surface-elevated: #333333;

  --color-bg: var(--color-obsidian-canvas);
  --color-surface: var(--surface-surface);
  --color-surface-hover: var(--surface-elevated);
  --color-border: var(--color-onyx-edge);
  --color-border-hover: var(--color-silver);
  --color-text: var(--color-frost-text);
  --color-text-secondary: var(--color-smoke);
  --color-text-muted: var(--color-fog);
  --color-text-dim: var(--color-graphite);
  --color-article: var(--color-amber-whisper);
  --color-gallery: var(--color-amber-whisper);
  --color-audio: var(--color-amber-whisper);
  --color-video: var(--color-amber-whisper);

  --font-display: "Outfit", "Aeonik", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Outfit", "Aeonik", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Input", "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --max-width: 1200px;
  --nav-height: 76px;
  --section-gap: 120px;
}

body:not(.admin-theme) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 220px),
    var(--color-obsidian-canvas);
  color: var(--color-frost-text);
  font-family: var(--font-body);
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body:not(.admin-theme) ::selection {
  background: rgba(231, 197, 154, 0.22);
  color: var(--color-pure-white);
}

body:not(.admin-theme) a {
  color: var(--color-frost-text);
}

body:not(.admin-theme) a:hover {
  color: var(--color-amber-whisper);
  text-decoration: none;
}

body:not(.admin-theme) .container {
  max-width: var(--max-width);
  padding-inline: 24px;
}

body:not(.admin-theme) .site-header {
  background: rgba(16, 16, 16, 0.92);
  border-bottom: 1px solid var(--color-onyx-edge);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body:not(.admin-theme) .site-header .container {
  height: var(--nav-height);
  gap: 20px;
}

body:not(.admin-theme) .site-logo {
  gap: 12px;
  color: var(--color-frost-text);
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.011em;
}

body:not(.admin-theme) .site-logo::after {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--color-silver);
  opacity: 0.55;
}

body:not(.admin-theme) .site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: none;
  filter: grayscale(1) contrast(1.12);
}

body:not(.admin-theme) .logo-dot {
  color: var(--color-amber-whisper);
}

body:not(.admin-theme) .site-nav {
  margin-right: auto;
  gap: 20px;
}

body:not(.admin-theme) .site-nav a,
body:not(.admin-theme) .footer-nav a {
  color: var(--color-frost-text);
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.011em;
  text-transform: uppercase;
}

body:not(.admin-theme) .site-nav a:hover,
body:not(.admin-theme) .site-nav a.active,
body:not(.admin-theme) .footer-nav a:hover {
  color: var(--color-amber-whisper);
  background: transparent;
}

body:not(.admin-theme) .site-chat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--color-pure-white);
  color: var(--color-obsidian-canvas);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.011em;
  text-transform: uppercase;
}

body:not(.admin-theme) .site-chat-pill:hover {
  color: var(--color-obsidian-canvas);
  background: var(--color-amber-whisper);
}

body:not(.admin-theme) .nav-toggle {
  border: 1px solid var(--color-onyx-edge);
  border-radius: 8px;
}

body:not(.admin-theme) .nav-toggle span {
  background: var(--color-frost-text);
}

body:not(.admin-theme) .site-main {
  padding: 0;
}

body:not(.admin-theme) .site-footer {
  margin-top: var(--section-gap);
  padding: 40px 0;
  border-top: 1px solid var(--color-onyx-edge);
}

body:not(.admin-theme) .footer-copy {
  color: var(--color-graphite);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.037em;
}

@keyframes heroMistDrift {
  from { transform: translate3d(-2%, 0, 0); }
  to { transform: translate3d(2%, -1%, 0); }
}

@keyframes heroSignalScan {
  0%, 100% { opacity: 0.28; transform: translateY(18px); }
  45% { opacity: 0.68; transform: translateY(-12px); }
}

@keyframes heroCloudDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1.02);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(-1.8%, 1.2%, 0) scale(1.04);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(-3%, -0.6%, 0) scale(1.03);
    opacity: 0.46;
  }
}

@keyframes heroLightningFlash {
  0%, 78%, 100% { opacity: 0; transform: translate3d(-50%, 0, 0) scaleX(0.86); }
  79% { opacity: 0.78; transform: translate3d(-50%, 0, 0) scaleX(1); }
  80.4% { opacity: 0.22; }
  82% { opacity: 0.92; transform: translate3d(-50%, 0, 0) scaleX(1.08); }
  84% { opacity: 0; }
}

@keyframes heroToolPulse {
  0%, 100% { opacity: 0.55; transform: scaleX(0.46); }
  50% { opacity: 1; transform: scaleX(1); }
}

body:not(.admin-theme) .hero {
  isolation: isolate;
  min-height: calc(100svh - var(--nav-height) - 28px);
  width: auto;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  padding: clamp(96px, 14vh, 156px) 24px clamp(96px, 13vh, 140px);
  border-bottom: 1px solid var(--color-onyx-edge);
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.48) 0%, rgba(16, 16, 16, 0.18) 34%, rgba(16, 16, 16, 0.76) 100%),
    radial-gradient(circle at 50% 20%, rgba(231, 197, 154, 0.18), transparent 36%),
    image-set(
      url("/brand/hero-nature-tech.avif") type("image/avif"),
      url("/brand/hero-nature-tech.webp") type("image/webp"),
      url("/brand/hero-nature-tech.png") type("image/png")
    ) center / cover no-repeat;
  overflow: hidden;
}

body:not(.admin-theme) .hero::before,
body:not(.admin-theme) .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body:not(.admin-theme) .hero::before {
  background:
    radial-gradient(ellipse at 52% 68%, rgba(231, 197, 154, 0.16), transparent 33%),
    linear-gradient(90deg, rgba(16, 16, 16, 0.76), transparent 24%, transparent 76%, rgba(16, 16, 16, 0.78)),
    linear-gradient(0deg, rgba(16, 16, 16, 0.76), transparent 28%, transparent 64%, rgba(16, 16, 16, 0.36));
  animation: heroMistDrift 12s ease-in-out infinite alternate;
}

body:not(.admin-theme) .hero::after {
  background-image: radial-gradient(circle, rgba(243, 243, 243, 0.25) 1px, transparent 1.6px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, transparent 0 48%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0 48%, black 78%, transparent 100%);
  opacity: 0.34;
  animation: heroSignalScan 7s ease-in-out infinite;
}

body:not(.admin-theme) .hero > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-theme) .hero-signal {
  position: absolute;
  right: -5%;
  top: 8%;
  width: min(64vw, 1120px);
  height: 38%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: normal;
  animation: heroCloudDrift 22s ease-in-out infinite alternate;
}

body:not(.admin-theme) .hero-signal::before,
body:not(.admin-theme) .hero-signal::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}

body:not(.admin-theme) .hero-signal::before {
  z-index: 2;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  background: image-set(
    url("/brand/hero-cloud-layer.avif") type("image/avif"),
    url("/brand/hero-cloud-layer.webp") type("image/webp"),
    url("/brand/hero-cloud-layer.png") type("image/png")
  ) center top / contain no-repeat;
  filter: saturate(0.78) brightness(0.72) contrast(1.18);
}

body:not(.admin-theme) .hero-signal::after {
  z-index: 1;
  top: 62%;
  width: min(34vw, 560px);
  height: 118px;
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scaleX(0.9);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, 0.98) 0 8%, rgba(220, 235, 248, 0.58) 24%, rgba(150, 187, 218, 0.18) 46%, transparent 74%);
  mix-blend-mode: screen;
  filter: saturate(1.2);
  animation: heroLightningFlash 6.8s ease-out infinite;
}

body:not(.admin-theme) .hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.22);
  color: rgba(243, 243, 243, 0.86);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.037em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body:not(.admin-theme) .hero-status span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--color-amber-whisper);
}

body:not(.admin-theme) .hero-title {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 1200px);
  color: var(--color-frost-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(36px, 6.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.011em;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.46);
}

body:not(.admin-theme) .hero-title span {
  align-self: flex-start;
  color: rgba(243, 243, 243, 0.72);
  font-size: clamp(28px, 3.7vw, 54px);
  font-weight: 400;
  transform: translateX(clamp(-28px, -3vw, -12px));
}

body:not(.admin-theme) .hero-title strong {
  align-self: flex-end;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-wrap: balance;
  transform: translateX(clamp(10px, 3vw, 34px));
}

body:not(.admin-theme) .hero-title em {
  color: var(--color-amber-whisper);
  font-style: normal;
  text-shadow:
    0 0 26px rgba(231, 197, 154, 0.34),
    0 18px 54px rgba(0, 0, 0, 0.5);
}

body:not(.admin-theme) .hero-subtitle {
  max-width: 720px;
  margin-top: 26px;
  color: rgba(243, 243, 243, 0.8);
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -0.011em;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
}

body:not(.admin-theme) .hero-accent {
  display: flex;
  justify-content: center;
  width: auto;
  gap: 10px;
  margin-top: 38px;
}

body:not(.admin-theme) .hero-accent a {
  position: relative;
  display: flex;
  width: 58px;
  min-width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.38);
  color: var(--color-frost-text);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.admin-theme) .hero-accent a:hover {
  transform: translateY(-5px) scale(1.06);
  border-color: rgba(231, 197, 154, 0.56);
  background: rgba(231, 197, 154, 0.14);
  color: var(--color-amber-whisper);
  box-shadow: 0 0 0 1px rgba(231, 197, 154, 0.1), 0 14px 36px rgba(0, 0, 0, 0.26);
}

body:not(.admin-theme) .hero-accent a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  height: 1px;
  background: var(--color-amber-whisper);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body:not(.admin-theme) .hero-accent a:hover::after {
  animation: heroToolPulse 1.3s ease-in-out infinite;
}

body:not(.admin-theme) .hero-tool-icon {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: currentColor;
  transition: transform 0.2s ease, filter 0.2s ease;
}

body:not(.admin-theme) .hero-accent a:hover .hero-tool-icon {
  transform: rotate(-4deg) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(231, 197, 154, 0.38));
}

body:not(.admin-theme) .icon-article {
  border: 1.6px solid currentColor;
}

body:not(.admin-theme) .icon-article::before,
body:not(.admin-theme) .icon-article::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1.5px;
  background: currentColor;
}

body:not(.admin-theme) .icon-article::before { top: 7px; }
body:not(.admin-theme) .icon-article::after { top: 13px; }

body:not(.admin-theme) .icon-gallery {
  border: 1.6px solid currentColor;
}

body:not(.admin-theme) .icon-gallery::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 9px;
  background: linear-gradient(135deg, transparent 0 38%, currentColor 39% 52%, transparent 53%), linear-gradient(45deg, transparent 0 42%, currentColor 43% 56%, transparent 57%);
}

body:not(.admin-theme) .icon-gallery::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
}

body:not(.admin-theme) .icon-audio::before,
body:not(.admin-theme) .icon-audio::after,
body:not(.admin-theme) .icon-video::before,
body:not(.admin-theme) .icon-video::after {
  content: "";
  position: absolute;
}

body:not(.admin-theme) .icon-audio {
  border-left: 2px solid currentColor;
}

body:not(.admin-theme) .icon-audio::before {
  inset: 3px 8px 3px 5px;
  border: 1.6px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

body:not(.admin-theme) .icon-audio::after {
  right: 0;
  top: 7px;
  width: 3px;
  height: 9px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: -5px -3px 0 -0.5px currentColor, -5px 3px 0 -0.5px currentColor;
}

body:not(.admin-theme) .icon-video {
  border: 1.6px solid currentColor;
}

body:not(.admin-theme) .icon-video::before {
  left: 8px;
  top: 5px;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

body:not(.admin-theme) .featured-section,
body:not(.admin-theme) .feed-section {
  margin-top: clamp(56px, 8vw, var(--section-gap));
}

body:not(.admin-theme) .hero + .featured-section,
body:not(.admin-theme) .hero + .feed-section {
  margin-top: 0;
}

body:not(.admin-theme) .featured-card,
body:not(.admin-theme) .card-visual,
body:not(.admin-theme) .card-cover,
body:not(.admin-theme) .card-text,
body:not(.admin-theme) .audio-shell,
body:not(.admin-theme) .audio-cover-frame,
body:not(.admin-theme) .media-carousel-stage,
body:not(.admin-theme) .table-wrapper {
  border: 1px solid var(--color-onyx-edge);
  border-radius: 20px;
  background: var(--surface-surface);
  box-shadow: none;
}

body:not(.admin-theme) .featured-card,
body:not(.admin-theme) .card-visual,
body:not(.admin-theme) .card-cover,
body:not(.admin-theme) .card-text,
body:not(.admin-theme) .content-grid,
body:not(.admin-theme) .article-cover,
body:not(.admin-theme) .media-detail-image,
body:not(.admin-theme) .video-player video {
  border-radius: 0;
}

body:not(.admin-theme) .featured-card {
  min-height: 360px;
}

body:not(.admin-theme) .featured-card:hover,
body:not(.admin-theme) .card-visual:hover,
body:not(.admin-theme) .card-cover:hover,
body:not(.admin-theme) .card-text:hover {
  border-color: var(--color-silver);
  box-shadow: none;
  transform: none;
}

body:not(.admin-theme) .featured-card-body {
  padding: 40px;
  gap: 20px;
}

body:not(.admin-theme) .featured-card-title,
body:not(.admin-theme) .card-text-title,
body:not(.admin-theme) .card-visual-title,
body:not(.admin-theme) .page-header-title,
body:not(.admin-theme) .article-title,
body:not(.admin-theme) .media-detail-title,
body:not(.admin-theme) .about-page h1,
body:not(.admin-theme) .about-page h2,
body:not(.admin-theme) .about-pillar h3,
body:not(.admin-theme) .audio-shell-title {
  color: var(--color-frost-text);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.011em;
}

body:not(.admin-theme) .featured-card-title {
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.07;
}

body:not(.admin-theme) .featured-card-summary,
body:not(.admin-theme) .card-text-summary,
body:not(.admin-theme) .about-page p,
body:not(.admin-theme) .audio-player-note {
  color: var(--color-smoke);
}

body:not(.admin-theme) .article-body,
body:not(.admin-theme) .media-detail-description,
body:not(.admin-theme) .audio-hero-summary {
  color: #d0d0d0;
}

body:not(.admin-theme) .featured-card-date,
body:not(.admin-theme) .card-text-header time,
body:not(.admin-theme) .card-visual-footer time,
body:not(.admin-theme) .article-meta,
body:not(.admin-theme) .media-detail-meta,
body:not(.admin-theme) .audio-hero-eyebrow,
body:not(.admin-theme) .media-carousel-counter {
  color: var(--color-graphite);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.037em;
}

body:not(.admin-theme) .section-heading,
body:not(.admin-theme) .type-label,
body:not(.admin-theme) .audio-shell-kicker {
  color: var(--color-amber-whisper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.011em;
  text-transform: uppercase;
}

body:not(.admin-theme) .section-heading::after {
  background: var(--color-onyx-edge);
}

body:not(.admin-theme) .content-grid {
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--color-onyx-edge);
  border-radius: 0;
  overflow: hidden;
}

body:not(.admin-theme) .content-grid > a {
  border-width: 0 1px 1px 0;
  border-color: var(--color-onyx-edge);
  border-radius: 0;
  background: transparent;
}

body:not(.admin-theme) .content-grid > a:nth-child(3n) {
  border-right-width: 0;
}

body:not(.admin-theme) .content-grid > a:last-child {
  border-right-width: 0;
}

body:not(.admin-theme) .content-grid:has(> a:first-child:last-child) {
  grid-template-columns: 1fr;
}

body:not(.admin-theme) .content-grid:has(> a:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

body:not(.admin-theme) .card-text,
body:not(.admin-theme) .card-cover-body {
  padding: 24px;
}

body:not(.admin-theme) .card-cover-image {
  height: 180px;
}

body:not(.admin-theme) .card-visual-overlay {
  background: linear-gradient(transparent, rgba(8, 8, 8, 0.9));
}

body:not(.admin-theme) .card-text-title,
body:not(.admin-theme) .card-visual-title {
  font-size: 18px;
  line-height: 1.34;
}

body:not(.admin-theme) .page-header {
  margin: 72px 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-onyx-edge);
}

body:not(.admin-theme) .page-header-title {
  font-size: clamp(44px, 7vw, 63px);
  line-height: 0.95;
}

body:not(.admin-theme) .page-header-title::before {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--color-amber-whisper) !important;
}

body:not(.admin-theme) .article-detail,
body:not(.admin-theme) .media-detail,
body:not(.admin-theme) .about-page {
  max-width: 760px;
  padding-top: 72px;
}

body:not(.admin-theme) .article-title,
body:not(.admin-theme) .media-detail-title,
body:not(.admin-theme) .about-page h1 {
  font-size: clamp(34px, 6vw, 63px);
  line-height: 0.98;
}

body:not(.admin-theme) .article-title,
body:not(.admin-theme) .media-detail-title,
body:not(.admin-theme) .audio-detail-title {
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body:not(.admin-theme) .article-cover,
body:not(.admin-theme) .media-detail-image,
body:not(.admin-theme) .video-player video {
  border: 1px solid var(--color-onyx-edge);
  border-radius: 0;
}

body:not(.admin-theme) .article-body h1,
body:not(.admin-theme) .article-body h2,
body:not(.admin-theme) .article-body h3,
body:not(.admin-theme) .article-body h4,
body:not(.admin-theme) .article-body h5,
body:not(.admin-theme) .article-body h6 {
  color: var(--color-frost-text);
  font-weight: 400;
  letter-spacing: -0.011em;
}

body:not(.admin-theme) .article-body a {
  color: var(--color-amber-whisper);
  border-bottom: 1px solid rgba(231, 197, 154, 0.45);
}

body:not(.admin-theme) .article-body blockquote,
body:not(.admin-theme) .article-body pre,
body:not(.admin-theme) .article-body code {
  border-color: var(--color-onyx-edge);
  background: var(--surface-surface);
}

body:not(.admin-theme) .tag,
body:not(.admin-theme) .audio-meta-pill,
body:not(.admin-theme) .audio-action-link,
body:not(.admin-theme) .media-carousel-button,
body:not(.admin-theme) .media-carousel-counter,
body:not(.admin-theme) .pagination a,
body:not(.admin-theme) .pagination span {
  border: 1px solid var(--color-onyx-edge);
  border-radius: 8px;
  background: transparent;
  color: var(--color-smoke);
  box-shadow: none;
}

body:not(.admin-theme) .tag:hover,
body:not(.admin-theme) .audio-action-link:hover,
body:not(.admin-theme) .media-carousel-button:hover,
body:not(.admin-theme) .pagination a:hover,
body:not(.admin-theme) .pagination .active {
  border-color: var(--color-silver);
  background: transparent;
  color: var(--color-frost-text);
}

body:not(.admin-theme) .audio-hero {
  margin-top: 72px;
  margin-bottom: 40px;
}

body:not(.admin-theme) .audio-hero-type {
  color: var(--color-amber-whisper);
}

body:not(.admin-theme) .audio-shell {
  background: var(--surface-surface);
  overflow: visible;
}

body:not(.admin-theme) .audio-shell::before {
  display: none;
}

body:not(.admin-theme) .audio-player .plyr {
  --plyr-color-main: var(--color-amber-whisper);
  border-color: var(--color-onyx-edge);
  border-radius: 20px;
  box-shadow: none;
}

body:not(.admin-theme) .audio-player .plyr--audio .plyr__controls {
  background: var(--surface-void);
}

body:not(.admin-theme) .media-carousel-thumb {
  border-width: 1px;
  border-color: var(--color-onyx-edge);
  border-radius: 8px;
  background: var(--surface-surface);
}

body:not(.admin-theme) .media-carousel-thumb:hover,
body:not(.admin-theme) .media-carousel-thumb.active {
  border-color: var(--color-amber-whisper);
  transform: none;
}

body:not(.admin-theme) .about-divider {
  border-top-color: var(--color-onyx-edge);
}

body:not(.admin-theme) .about-pillars {
  gap: 0;
  border: 1px solid var(--color-onyx-edge);
  border-radius: 20px;
  overflow: hidden;
}

body:not(.admin-theme) .about-pillar {
  padding: 24px;
  border-bottom: 1px solid var(--color-onyx-edge);
}

body:not(.admin-theme) .about-pillar:last-child {
  border-bottom: 0;
}

@media (max-width: 768px) {
  body:not(.admin-theme) .container {
    padding-inline: 18px;
  }

  body:not(.admin-theme) .site-chat-pill {
    display: none;
  }

  body:not(.admin-theme) .site-logo::after {
    display: none;
  }

  body:not(.admin-theme) .site-nav {
    top: var(--nav-height);
    gap: 14px;
    padding: 20px 24px;
    background: rgba(16, 16, 16, 0.98);
    border-bottom: 1px solid var(--color-onyx-edge);
  }

  body:not(.admin-theme) .site-nav a {
    padding: 6px 0;
  }

  body:not(.admin-theme) .hero {
    min-height: calc(100svh - var(--nav-height) - 24px);
    padding: 72px 18px 84px;
    background-position: center bottom;
  }

  body:not(.admin-theme) .hero-title {
    width: min(100%, 560px);
    max-width: calc(100vw - 36px);
    font-size: 42px;
    line-height: 1.08;
  }

  body:not(.admin-theme) .hero-title span {
    align-self: center;
    font-size: 26px;
    transform: none;
  }

  body:not(.admin-theme) .hero-title strong {
    align-self: center;
    transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  body:not(.admin-theme) .hero-subtitle {
    font-size: 16px;
  }

  body:not(.admin-theme) .hero-accent {
    flex-wrap: wrap;
    width: min(100%, 360px);
    gap: 8px;
    margin-top: 30px;
  }

  body:not(.admin-theme) .hero-accent a {
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
  }

  body:not(.admin-theme) .featured-section,
  body:not(.admin-theme) .feed-section {
    margin-top: 72px;
  }

  body:not(.admin-theme) .featured-card {
    min-height: 0;
  }

  body:not(.admin-theme) .featured-card-body {
    padding: 24px;
  }

  body:not(.admin-theme) .content-grid > a,
  body:not(.admin-theme) .content-grid > a:nth-child(2n),
  body:not(.admin-theme) .content-grid > a:nth-child(3n) {
    border-right-width: 0;
  }

  body:not(.admin-theme) .content-grid,
  body:not(.admin-theme) .content-grid:has(> a:first-child:last-child),
  body:not(.admin-theme) .content-grid:has(> a:nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }

  body:not(.admin-theme) .article-detail,
  body:not(.admin-theme) .media-detail,
  body:not(.admin-theme) .about-page {
    padding-top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-theme) .hero::before,
  body:not(.admin-theme) .hero::after,
  body:not(.admin-theme) .hero-signal,
  body:not(.admin-theme) .hero-signal::before,
  body:not(.admin-theme) .hero-signal::after {
    animation: none;
  }
}
