/* ==========================================================================
   CHURCH OF THE TENTACLE - OFFICIAL SACRED THEME
   Palette: Royal Purples & Tentacle Greens, Deep Ocean Blues, with Ornate Gold Trims
   Sacred Geometry: The Seven-Pointed Star (Septagram)
   ========================================================================== */

:root {
  /* Royal Purples (Dominant Primary) */
  --purple-royal: #5e0099;
  --purple-regal: #4b0082;
  --purple-deep: #1a0033;
  --purple-abyss: #0a0117;
  --purple-bright: #8a2be2;
  --purple-amethyst: #a855f7;
  --purple-glow: rgba(138, 43, 226, 0.45);

  /* Tentacle Greens (Dominant Secondary) */
  --green-tentacle: #2d6a4f;
  --green-bio: #00ff87;
  --green-emerald: #10b981;
  --green-moss: #1b4332;
  --green-glow: rgba(0, 255, 135, 0.4);

  /* Deep Celestial Ocean Blues (Atmospheric Sub-Tones) */
  --blue-ocean: #0a1128;
  --blue-deep: #020c1b;
  --blue-cyan: #00f0ff;
  --blue-glow: rgba(0, 240, 255, 0.3);

  /* Celestial Gold Trims */
  --gold-pure: #ffd700;
  --gold-leaf: #d4af37;
  --gold-warm: #f5c518;
  --gold-pale: #fff3b0;
  --gold-glow: rgba(255, 215, 0, 0.5);
  --gold-border: 1px solid var(--gold-leaf);
  --gold-border-double: 3px double var(--gold-leaf);

  /* Card & Window Backdrops */
  --bg-temple-card: rgba(14, 4, 28, 0.94);
  --bg-temple-card-hover: rgba(24, 8, 48, 0.98);

  /* Typography */
  --text-primary: #f5f3ff;
  --text-secondary: #c4b5fd;
  --text-green: #6ee7b7;
  --text-dim: #7c6f9e;
  --text-gold: #fde047;
  --text-link: #38bdf8;
  --text-link-hover: #ffd700;

  --font-retro: "Courier New", Courier, monospace;
  --font-body: "Trebuchet MS", "Lucida Grande", "Segoe UI", system-ui, sans-serif;
  --font-temple: "Georgia", "Palatino", serif;
  --font-display: "Impact", "Arial Black", sans-serif;
}

/* --------------------------------------------------------------------------
   BASE & RESET
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--purple-abyss);
  /* Hero moonlit ocean painting with celestial gradient - scrolls naturally with zero repaints */
  background-image: 
    linear-gradient(180deg, rgba(10, 1, 23, 0.65) 0%, rgba(10, 1, 23, 0.88) 600px, rgba(10, 1, 23, 0.98) 100%),
    url('../images/background.webp');
  background-position: top center, top center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 900px, 100% auto;
  background-attachment: scroll, scroll;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hardware-accelerated fixed starry cosmos layer (stays fixed, zero repaint on scroll) */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(94, 0, 153, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(0, 255, 135, 0.2) 0%, transparent 45%),
    radial-gradient(2px 2px at 50px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 150px 220px, var(--gold-pure), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 350px 140px, var(--green-bio), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 520px 280px, var(--purple-bright), rgba(0,0,0,0)),
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-position: center, center, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 300px 300px, 400px 400px, 350px 350px, 450px 450px, 32px 32px, 32px 32px;
  transform: translateZ(0);
  will-change: transform;
}

/* Subtle CRT scanline overlay - hardware accelerated */
body::before {
  content: " ";
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 5, 30, 0) 50%, rgba(5, 0, 15, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.25;
  transform: translateZ(0);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY & ACCENTS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: 2.3rem;
  font-family: var(--font-temple);
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 1.45rem;
  font-family: var(--font-temple);
  color: var(--gold-pure);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.4rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  color: var(--green-bio);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
  color: var(--gold-pure);
  text-shadow: 0 0 10px var(--gold-glow);
}

code, pre, .mono {
  font-family: var(--font-retro);
  background: rgba(10, 0, 22, 0.75);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 135, 0.3);
  font-size: 0.88em;
  color: var(--green-bio);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   SACRED MARQUEE TICKER
   -------------------------------------------------------------------------- */
.marquee-container {
  background: #070014;
  border-bottom: 2px solid var(--gold-leaf);
  box-shadow: 0 0 14px var(--gold-glow);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-retro);
  font-size: 0.88rem;
  padding: 7px 0;
  color: var(--gold-warm);
  contain: content;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-content span {
  padding-right: 3rem;
}

@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINER
   -------------------------------------------------------------------------- */
.site-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
  flex: 1;
}

/* --------------------------------------------------------------------------
   HEADER & SACRED BANNER
   -------------------------------------------------------------------------- */
.site-header {
  margin-bottom: 1.8rem;
  text-align: center;
  position: relative;
}

.header-banner {
  background: linear-gradient(135deg, #28004d 0%, #15002b 45%, #052618 100%);
  border: 2px solid var(--gold-leaf);
  outline: 1px solid rgba(0, 255, 135, 0.35);
  outline-offset: -5px;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.4), inset 0 0 25px rgba(94, 0, 153, 0.6);
  border-radius: 8px;
  padding: 2.2rem 1.2rem;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.header-banner::before {
  content: "✦ 🐙 ✦ 🐙 ✦ 🐙 ✦";
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 0.85rem;
  color: var(--gold-pure);
  opacity: 0.4;
  letter-spacing: 6px;
}

.header-banner::after {
  content: "★ 7-POINTED STAR SANCTUARY ★";
  position: absolute;
  bottom: 6px;
  left: 15px;
  font-size: 0.72rem;
  font-family: var(--font-retro);
  color: var(--green-bio);
  opacity: 0.55;
  letter-spacing: 2px;
}

.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.header-sigil-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--gold-pure);
  box-shadow: 0 0 15px var(--gold-glow);
  object-fit: cover;
}

.site-title {
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  font-family: var(--font-temple);
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #ffffff 15%, var(--gold-pure) 55%, var(--green-bio) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5));
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  transform: translateZ(0);
}

.site-tagline {
  font-family: var(--font-retro);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--green-bio);
  margin-top: 0.6rem;
  text-shadow: 0 0 10px rgba(0, 255, 135, 0.6);
  letter-spacing: 1px;
}

.site-subtag {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   NAVIGATION BAR
   -------------------------------------------------------------------------- */
.retro-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  background: rgba(14, 3, 30, 0.85);
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--gold-leaf);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.nav-link {
  font-family: var(--font-retro);
  font-size: 0.92rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(0, 255, 135, 0.35);
  border-radius: 4px;
  background: rgba(22, 5, 46, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background: linear-gradient(135deg, var(--purple-royal), var(--green-tentacle));
  color: var(--gold-pure);
  border-color: var(--gold-pure);
  box-shadow: 0 0 14px var(--gold-glow);
  transform: translateY(-2px);
}

.nav-link.active {
  border-color: var(--gold-pure);
  box-shadow: 0 0 14px var(--gold-glow), inset 0 0 8px rgba(0, 255, 135, 0.3);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   MAIN GRID (Sidebar + Content)
   -------------------------------------------------------------------------- */
.main-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

/* --------------------------------------------------------------------------
   TEMPLE WINDOWS & GILDED CARDS
   -------------------------------------------------------------------------- */
.retro-window {
  background: var(--bg-temple-card);
  border: 1px solid var(--gold-leaf);
  border-radius: 6px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.75), 0 0 12px rgba(212, 175, 55, 0.2);
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.retro-window.purple-accent {
  border-color: var(--purple-amethyst);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.75), 0 0 14px var(--purple-glow);
}

.retro-window.green-accent {
  border-color: var(--green-bio);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.75), 0 0 14px var(--green-glow);
}

.window-header {
  background: linear-gradient(90deg, #4b0082 0%, #240046 50%, #1b4332 100%);
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-retro);
  font-size: 0.86rem;
  font-weight: bold;
  color: var(--gold-pure);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gold-leaf);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.window-header.gold-bar {
  background: linear-gradient(90deg, #996515, #d4af37, #f5c518);
  color: #120224;
  text-shadow: none;
  font-weight: 900;
}

.window-header.green-bar {
  background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 60%, #00ff87 100%);
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--gold-pure);
  border-radius: 2px;
  font-size: 10px;
  line-height: 1;
  color: var(--gold-pure);
}

.gold-bar .window-btn {
  background: rgba(0, 0, 0, 0.3);
  border-color: #000;
  color: #000;
}

.window-body {
  padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   SIDEBAR & SACRED AVATAR
   -------------------------------------------------------------------------- */
.avatar-box {
  text-align: center;
  margin-bottom: 1rem;
}

.avatar-frame {
  width: 155px;
  height: 155px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  border: 3px solid var(--gold-pure);
  outline: 2px dashed var(--green-bio);
  outline-offset: 4px;
  box-shadow: 0 0 20px var(--gold-glow), 0 0 35px var(--purple-glow);
  background: radial-gradient(circle, #38006b 0%, #15002b 70%, #051a10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-caption {
  font-family: var(--font-temple);
  font-size: 1.15rem;
  color: var(--gold-pure);
  font-weight: bold;
}

.avatar-pronouns {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Status Monitor */
.status-list {
  list-style: none;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.status-item {
  background: rgba(12, 2, 28, 0.7);
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold-pure);
  border-right: 1px solid rgba(0, 255, 135, 0.2);
}

.status-label {
  font-family: var(--font-retro);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--green-bio);
  display: block;
  margin-bottom: 0.15rem;
}

.status-value {
  color: var(--text-primary);
}

/* Cosmic Counter */
.counter-box {
  background: #080015;
  border: 2px inset var(--gold-leaf);
  padding: 0.6rem;
  text-align: center;
  margin-top: 1rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.counter-digits {
  font-family: "Courier New", monospace;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 5px;
  background: #140026;
  color: var(--green-bio);
  padding: 0.25rem 0.75rem;
  display: inline-block;
  border: 1px solid var(--gold-leaf);
  text-shadow: 0 0 8px var(--green-bio);
}

/* --------------------------------------------------------------------------
   THE SACRED VIDEO ALTAR (Responsive Video Player)
   -------------------------------------------------------------------------- */
.video-altar {
  margin: 1.5rem 0;
  border: 2px solid var(--gold-leaf);
  outline: 1px solid rgba(0, 255, 135, 0.4);
  outline-offset: -6px;
  border-radius: 8px;
  background: #050010;
  box-shadow: 0 0 25px var(--gold-glow);
  overflow: hidden;
}

.video-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #2e0057 0%, #060112 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-caption-bar {
  background: linear-gradient(90deg, #240046, #0e2a1d);
  border-top: 1px solid var(--gold-leaf);
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   ARTWORK & RELIC SHOWCASE GRID
   -------------------------------------------------------------------------- */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.art-card {
  background: rgba(20, 5, 42, 0.75);
  border: 1px solid var(--gold-leaf);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-bio);
  box-shadow: 0 6px 18px var(--purple-glow);
}

.art-card-img-wrapper {
  width: 100%;
  height: 170px;
  background: #0b0118;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.art-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.art-card:hover .art-card-img-wrapper img {
  transform: scale(1.05);
}

.art-card-info {
  padding: 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-card-title {
  font-family: var(--font-temple);
  font-size: 1rem;
  color: var(--gold-pure);
  margin-bottom: 0.25rem;
}

.art-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   OPINION & SERMON CARDS
   -------------------------------------------------------------------------- */
.opinion-card {
  background: rgba(18, 4, 38, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid var(--gold-pure);
  border-radius: 4px;
  padding: 1.15rem;
  margin-bottom: 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.opinion-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-bio);
  border-left-color: var(--purple-bright);
  box-shadow: 0 4px 18px var(--purple-glow);
}

.opinion-meta {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.opinion-tag {
  background: rgba(94, 0, 153, 0.35);
  color: var(--green-bio);
  border: 1px solid var(--green-bio);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.opinion-title {
  font-size: 1.25rem;
  font-family: var(--font-temple);
  margin-bottom: 0.5rem;
}

.opinion-title a {
  color: #fff;
  text-decoration: none;
}

.opinion-title a:hover {
  color: var(--gold-pure);
}

.read-more-btn {
  font-family: var(--font-retro);
  font-size: 0.84rem;
  color: var(--green-bio);
  text-decoration: none;
  font-weight: bold;
}

.read-more-btn:hover {
  color: var(--gold-pure);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   88x31 BADGES & RELICS
   -------------------------------------------------------------------------- */
.badge-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.2rem 0;
}

.css-badge {
  width: 88px;
  height: 31px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 1px solid var(--gold-leaf);
  box-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  user-select: none;
  text-decoration: none;
  padding: 2px;
}

.badge-church {
  background: linear-gradient(45deg, #38006b, #5e0099);
  color: var(--gold-pure);
  border-color: var(--gold-pure);
}

.badge-7star {
  background: #4b0082;
  color: var(--gold-pure);
  border: 1px solid var(--gold-pure);
  text-shadow: 0 0 3px var(--gold-pure);
}

.badge-green {
  background: #1b4332;
  color: var(--green-bio);
  border-color: var(--green-bio);
}

.badge-gold {
  background: linear-gradient(135deg, #d4af37, #ffd700);
  color: #1a0033;
  font-weight: 900;
  border-color: #ffffff;
}

.badge-html {
  background: #240046;
  color: var(--green-bio);
  border-color: var(--gold-leaf);
}

/* --------------------------------------------------------------------------
   GUESTBOOK FORM
   -------------------------------------------------------------------------- */
.retro-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-retro);
  font-size: 0.85rem;
  color: var(--gold-pure);
}

.retro-input, .retro-textarea {
  background: rgba(12, 2, 28, 0.9);
  border: 1px solid var(--gold-leaf);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.retro-input:focus, .retro-textarea:focus {
  border-color: var(--green-bio);
  box-shadow: 0 0 12px var(--green-glow);
}

.retro-textarea {
  resize: vertical;
  min-height: 95px;
}

.retro-button {
  background: linear-gradient(135deg, var(--purple-royal) 0%, var(--green-tentacle) 100%);
  color: var(--gold-pure);
  font-family: var(--font-retro);
  font-size: 0.95rem;
  font-weight: bold;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--gold-pure);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform 0.1s ease, filter 0.1s ease;
  align-self: flex-start;
}

.retro-button:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.retro-button:active {
  transform: translateY(1px);
}

.guestbook-entry {
  background: rgba(15, 3, 34, 0.7);
  border: 1px dashed var(--gold-leaf);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.entry-header {
  font-family: var(--font-retro);
  font-size: 0.82rem;
  color: var(--gold-pure);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.entry-name {
  color: var(--green-bio);
  font-weight: bold;
}

.entry-body {
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   FOOTER & WEBRING
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 3.5rem;
  padding: 2.2rem 1rem;
  background: rgba(8, 1, 18, 0.96);
  border-top: 2px solid var(--gold-leaf);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.webring-box {
  display: inline-block;
  background: rgba(20, 4, 42, 0.85);
  border: 1px solid var(--gold-pure);
  box-shadow: 0 0 15px var(--gold-glow);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-family: var(--font-retro);
}

.webring-links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
}

.footer-credits {
  margin-top: 1rem;
  font-family: var(--font-retro);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   UTILITY HIGHLIGHTS & SCRIPTURE BOXES
   -------------------------------------------------------------------------- */
.text-gold { color: var(--gold-pure); }
.text-purple { color: var(--purple-amethyst); }
.text-green { color: var(--green-bio); }
.text-cyan { color: var(--blue-cyan); }

.box-highlight {
  background: rgba(94, 0, 153, 0.25);
  border-left: 4px solid var(--gold-pure);
  border-right: 1px solid rgba(0, 255, 135, 0.3);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.quote-box {
  font-style: italic;
  font-family: var(--font-temple);
  color: var(--text-gold);
  background: rgba(18, 3, 38, 0.8);
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--green-bio);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin: 1.2rem 0;
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   MASTER REVIEWS & CRITICAL CATALOG STYLES
   ========================================================================== */
.reviews-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.catalog-tab-btn {
  background: rgba(18, 4, 38, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--gold-leaf);
  font-family: var(--font-temple);
  font-size: 1.05rem;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.catalog-tab-btn:hover {
  color: var(--gold-pure);
  border-color: var(--green-bio);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--purple-glow);
}

.catalog-tab-btn.active {
  background: linear-gradient(135deg, var(--purple-royal) 0%, #15002b 50%, var(--green-tentacle) 100%);
  color: var(--gold-pure);
  border-color: var(--gold-pure);
  box-shadow: 0 0 16px var(--gold-glow), inset 0 0 10px rgba(0, 255, 135, 0.35);
  font-weight: bold;
}

/* Stats Summary Bar */
.catalog-stats-banner {
  background: linear-gradient(135deg, rgba(36, 0, 70, 0.85) 0%, rgba(2, 43, 29, 0.85) 100%);
  border: 1px solid var(--gold-leaf);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.stat-chip {
  text-align: center;
  font-family: var(--font-retro);
}

.stat-chip-num {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-pure);
  display: block;
  text-shadow: 0 0 8px var(--gold-glow);
}

.stat-chip-label {
  font-size: 0.76rem;
  color: var(--green-bio);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filter Toolbar */
.filter-toolbar {
  background: rgba(14, 2, 30, 0.9);
  border: 1px solid var(--gold-leaf);
  border-radius: 6px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 0.8rem;
  align-items: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .filter-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .filter-toolbar {
    grid-template-columns: 1fr;
  }
}

.filter-input, .filter-select {
  background: #090117;
  border: 1px solid var(--gold-leaf);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--green-bio);
  box-shadow: 0 0 10px var(--green-glow);
}

.filter-btn {
  background: linear-gradient(135deg, var(--purple-royal), var(--green-tentacle));
  color: var(--gold-pure);
  border: 1px solid var(--gold-pure);
  font-family: var(--font-retro);
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
}

.filter-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

/* Active Count & Batch Toggles */
.catalog-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-retro);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.meta-count-badge {
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid var(--green-bio);
  color: var(--green-bio);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
}

/* Review Cards */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-bottom: 2rem;
}

.review-item {
  background: rgba(18, 4, 38, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--gold-pure);
  border-radius: 6px;
  padding: 1.3rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.review-item:hover {
  border-color: var(--green-bio);
  border-left-color: var(--green-bio);
  box-shadow: 0 6px 22px var(--purple-glow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.review-title-group {
  flex: 1;
  min-width: 250px;
}

.review-title {
  font-family: var(--font-temple);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.review-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.rating-pill {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(75, 0, 130, 0.4));
  border: 1px solid var(--gold-pure);
  color: var(--gold-pure);
  font-family: var(--font-retro);
  font-size: 0.88rem;
  font-weight: bold;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  text-shadow: 0 0 6px var(--gold-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rating-pill.masterpiece {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #120024;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 0 12px var(--gold-glow);
}

.status-pill {
  font-family: var(--font-retro);
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.status-completed {
  background: rgba(0, 255, 135, 0.15);
  border: 1px solid var(--green-bio);
  color: var(--green-bio);
}

.status-watching {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-pure);
  color: var(--gold-pure);
}

.status-dropped {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.status-planning {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--purple-amethyst);
  color: var(--purple-amethyst);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.genre-tag {
  background: rgba(94, 0, 153, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--text-secondary);
  font-family: var(--font-retro);
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.engine-tag {
  background: rgba(0, 255, 135, 0.15);
  border: 1px solid rgba(0, 255, 135, 0.4);
  color: var(--green-bio);
  font-family: var(--font-retro);
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.intensity-tag {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-family: var(--font-retro);
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

/* Premise / Hook */
.review-hook {
  font-size: 0.94rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

/* Collapsible Detailed Sections */
.review-details {
  display: none;
  margin-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  padding-top: 1rem;
}

.review-details.expanded {
  display: block;
  animation: fadeIn 0.25s ease;
}

.verdict-box {
  background: rgba(5, 38, 24, 0.4);
  border-left: 3px solid var(--green-bio);
  padding: 0.8rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.flaw-box {
  background: rgba(85, 30, 0, 0.3);
  border-left: 3px solid #ff9800;
  padding: 0.7rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: #fed7aa;
}

.notes-box {
  background: rgba(40, 0, 77, 0.45);
  border-left: 3px solid var(--purple-amethyst);
  padding: 0.8rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #e9d5ff;
}

.mechanism-box {
  background: rgba(30, 5, 50, 0.45);
  border-left: 3px solid var(--gold-pure);
  padding: 0.8rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.toggle-details-btn {
  background: transparent;
  border: 1px solid var(--green-bio);
  color: var(--green-bio);
  font-family: var(--font-retro);
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.toggle-details-btn:hover {
  background: var(--green-bio);
  color: #06150e;
  font-weight: bold;
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2rem 0;
  font-family: var(--font-retro);
}

.page-btn {
  background: rgba(18, 4, 38, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--gold-leaf);
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.88rem;
}

.page-btn:hover:not(:disabled) {
  background: var(--purple-royal);
  color: var(--gold-pure);
  border-color: var(--green-bio);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--gold-pure), #ffaa00);
  color: #120224;
  border-color: #fff;
  font-weight: bold;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
