:root {
  --bg: #080808;
  --bg-2: #0c0c0c;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --line: rgba(154, 136, 104, 0.18);
  --ember: #c85e28;
  --ember-glow: rgba(200, 94, 40, 0.5);
  --gold: #9a8868;
  --text: #bfbbb2;
  --text-dim: #7a766f;
  --white: #e8e4dc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ember); color: var(--white); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.08em;
}

a { color: var(--ember); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--gold); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}
.site-nav.scrolled { padding: 14px 40px; background: rgba(8, 8, 8, 0.85); }
.brand {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.45em;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--ember); }
.site-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav ul a {
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.site-nav ul a:hover, .site-nav ul a.active { color: var(--ember); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }
  .site-nav.scrolled { padding: 12px 20px; }
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 8, 0.97);
    padding: 24px 32px;
    gap: 18px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .site-nav ul.open { display: flex; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.95;
  filter: contrast(1.05) saturate(0.9);
  animation: heroPan 28s ease-in-out infinite alternate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 94, 40, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.55) 0%, rgba(8,8,8,0.85) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
}
@keyframes heroPan {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-inner { position: relative; z-index: 3; max-width: 1100px; }
.hero h1 {
  font-size: clamp(1.8rem, 7.5vw, 6.5rem);
  letter-spacing: 0.18em;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  color: var(--white);
  text-shadow: 0 0 40px rgba(200, 94, 40, 0.18);
  animation: fadeUp 1.6s ease-out;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-logo {
  display: block;
  margin: 0 auto;
}
.hero-logo img {
  display: block;
  width: clamp(280px, 60vw, 720px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(200, 94, 40, 0.28))
          drop-shadow(0 0 90px rgba(200, 94, 40, 0.12));
}
.hero .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 18px;
  color: var(--gold);
  opacity: 0.85;
}
.hero .ornament span { letter-spacing: 0.5em; font-size: 0.7rem; font-family: 'Cinzel', serif; }
.hero .ornament .line { flex: 0 0 60px; height: 1px; background: var(--gold); opacity: 0.5; }
.hero .tagline {
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: 0.05em;
  animation: fadeUp 1.8s 0.3s both ease-out;
}
.hero .scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  z-index: 3;
  animation: pulse 2.4s ease-in-out infinite;
}
.hero .scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 12px auto 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* === EMBERS === */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.ember {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--ember-glow), 0 0 12px var(--ember-glow);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: var(--peak, 0.8); }
  90% { opacity: var(--peak, 0.8); }
  100% { transform: translateY(-110vh) translateX(var(--drift, 40px)); opacity: 0; }
}

/* === SECTIONS === */
section.block {
  padding: 120px 24px;
  position: relative;
}
section.block.alt { background: var(--bg-2); }

.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.section-lede {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 48px;
}

/* === ALBUM CARD (homepage) === */
.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .album-grid { grid-template-columns: 1fr; gap: 40px; }
}
.cover-frame {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.cover-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(200,94,40,0.12), transparent 60%);
  pointer-events: none;
}
.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cover-frame:hover img { transform: scale(1.02); }
.cover-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
}

.album-meta .album-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 14px;
}
.album-meta .album-sub {
  color: var(--gold);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.album-meta p { margin-bottom: 20px; }

.embed-wrap {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
}
.embed-placeholder {
  height: 152px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-align: center;
  padding: 16px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--ember);
  color: var(--ember);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--ember);
  color: var(--bg);
  box-shadow: 0 0 30px var(--ember-glow);
}
.btn.ghost {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.ghost:hover { background: var(--gold); color: var(--bg); box-shadow: 0 0 20px rgba(154, 136, 104, 0.4); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* === LATEST RELEASE === */
.latest-card {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.latest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--ember), transparent);
}
.latest-card .mini-cover {
  flex: 0 0 220px;
  aspect-ratio: 1/1;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.latest-card .mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.latest-card:hover .mini-cover img { transform: scale(1.04); }
.latest-card h3 { font-size: 1.8rem; letter-spacing: 0.06em; margin-bottom: 8px; }
.latest-card .meta { color: var(--gold); font-style: italic; margin-bottom: 12px; }
@media (max-width: 700px) {
  .latest-card { flex-direction: column; align-items: stretch; padding: 28px; }
  .latest-card .mini-cover { flex: 0 0 auto; aspect-ratio: 1/1; max-width: 220px; margin: 0 auto; }
}

/* === SOCIAL === */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
@media (max-width: 760px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .social-grid { grid-template-columns: 1fr; }
}
.social-card {
  display: block;
  padding: 22px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 0;
}
.social-card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(200, 94, 40, 0.1);
}
.social-card .platform {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.social-card .handle {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: var(--white);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* === FOOTER === */
.site-foot {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}
.site-foot .foot-mark {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5em;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.site-foot .foot-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.site-foot .foot-meta span { color: var(--gold); }

/* === ALBUM PAGE === */
.album-hero {
  padding: 180px 24px 80px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.album-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: blur(2px) contrast(1.05);
}
.album-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(200, 94, 40, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(8,8,8,0.45) 0%, rgba(8,8,8,0.85) 70%, var(--bg) 100%);
  pointer-events: none;
}
.album-hero > * { position: relative; z-index: 2; }
.album-hero .album-cover-large {
  width: clamp(220px, 40vw, 380px);
  margin: 0 auto 40px;
}
.album-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: 0.1em;
  line-height: 1;
}
.album-hero .album-credit {
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-top: 16px;
  font-size: 1.1rem;
}
.album-hero .album-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.album-hero .stat {
  text-align: center;
}
.album-hero .stat .num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--ember);
  display: block;
}
.album-hero .stat .label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tracklist {
  max-width: 960px;
  margin: 0 auto;
}
.track {
  display: grid;
  grid-template-columns: 50px 64px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.track {
  position: relative;
  z-index: 1;
}
.track-thumb { transform-origin: center center; }

/* Hover-zoom only fires on devices that actually support hover (desktops, laptops with mouse).
   Touch devices don't trigger this so the artwork doesn't get stuck zoomed after a tap. */
@media (hover: hover) {
  .track:hover {
    background: rgba(200, 94, 40, 0.06);
    z-index: 10;
  }
  .track:hover .track-thumb {
    transform: scale(3.5);
    border-color: var(--ember);
    box-shadow: 0 0 50px rgba(200, 94, 40, 0.55),
                0 18px 60px rgba(0, 0, 0, 0.75);
    z-index: 20;
    position: relative;
  }
}

/* Playable tracks: whole row is clickable, play button glows on hover */
.track.track-playable {
  cursor: pointer;
}
.track.track-playable:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: -1px;
  background: rgba(200, 94, 40, 0.08);
  z-index: 10;
}
.track.track-playable:focus-visible .track-thumb {
  transform: scale(3.5);
  border-color: var(--ember);
  box-shadow: 0 0 50px rgba(200, 94, 40, 0.55),
              0 18px 60px rgba(0, 0, 0, 0.75);
  z-index: 20;
}
.track.track-playable:hover .play-btn:not(:disabled),
.track.track-playable:focus-visible .play-btn:not(:disabled) {
  background: var(--ember);
  color: var(--bg);
  border-color: var(--ember);
  box-shadow: 0 0 20px var(--ember-glow);
}
.track-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.track .num {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.track .info .title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.track .info .sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-style: italic;
}
.track .date {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text);
}
.track .status {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--line);
}
.track .status.released { color: var(--ember); border-color: var(--ember); }
.track .status.upcoming { color: var(--text-dim); }
.track .play-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.track .play-btn:hover:not(:disabled) {
  background: var(--ember);
  color: var(--bg);
  border-color: var(--ember);
  box-shadow: 0 0 20px var(--ember-glow);
}
.track .play-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .track {
    grid-template-columns: 28px 52px 1fr 36px;
    grid-template-areas:
      "num thumb info  play"
      "num thumb meta  meta";
    gap: 4px 10px;
    padding: 14px 6px;
    align-items: center;
  }
  .track .num {
    grid-area: num;
    font-size: 0.85rem;
    align-self: center;
  }
  .track .track-thumb {
    grid-area: thumb;
    width: 52px;
    height: 52px;
    align-self: center;
  }
  .track .info {
    grid-area: info;
    min-width: 0;
    overflow: hidden;
    align-self: end;
  }
  .track .info .title {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
  }
  .track .info .sub {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .track .date,
  .track .status {
    grid-area: meta;
    align-self: start;
    margin-top: 4px;
  }
  .track .date {
    justify-self: start;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .track .status {
    justify-self: end;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    padding: 2px 7px;
    white-space: nowrap;
  }
  .track .play-btn {
    grid-area: play;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    align-self: center;
  }
}

.album-finale {
  margin-top: 60px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--ember);
  background: linear-gradient(180deg, rgba(200,94,40,0.05), transparent);
}
.album-finale h3 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--ember);
}
.album-finale p { color: var(--gold); font-style: italic; margin-top: 8px; }

/* === BIBLE PAGE === */
body.bible {
  background: var(--bg);
}
.bible-hero {
  padding: 140px 24px 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.bible-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.1em;
}
.bible-hero .pretitle {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.4em;
  color: var(--ember);
  font-size: 0.75rem;
  margin-bottom: 12px;
  display: block;
}
.bible-hero p {
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 720px;
}

.bible-tabs {
  position: sticky;
  top: 0;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  padding: 14px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.bible-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 18px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.bible-tabs button:hover { border-color: var(--gold); color: var(--white); }
.bible-tabs button.active {
  background: var(--ember);
  color: var(--bg);
  border-color: var(--ember);
}

.bible-section { padding: 60px 24px; max-width: 1200px; margin: 0 auto; display: none; }
.bible-section.active { display: block; }

table.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.schedule th, table.schedule td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.schedule th {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
}
table.schedule tr.urgent { background: rgba(200, 94, 40, 0.12); }
table.schedule tr.urgent td:first-child {
  border-left: 3px solid var(--ember);
}
table.schedule .urgent-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--ember);
  color: var(--bg);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}
table.schedule td.is-soon { color: var(--ember); font-weight: 600; }

.track-block {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}
.track-block h3 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.track-block .track-meta {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.track-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}
.field {
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.field-head .label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--ember);
  color: var(--ember);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-btn:hover { background: var(--ember); color: var(--bg); }
.copy-btn.copied { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.field-body {
  padding: 16px;
  white-space: pre-wrap;
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}
.field-body::-webkit-scrollbar { width: 6px; }
.field-body::-webkit-scrollbar-track { background: var(--bg-2); }
.field-body::-webkit-scrollbar-thumb { background: var(--gold); }

.social-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .social-copy-grid { grid-template-columns: 1fr; }
}

/* === Bible Visuals === */
.visuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.visuals-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.visual {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.visual:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 94, 40, 0.18);
}
.visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.visuals-grid.wide .visual img {
  aspect-ratio: 16 / 9;
}
.visual span {
  display: block;
  padding: 10px 12px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.visual:hover span { color: var(--ember); }

/* === Player Modal === */
body.modal-open { overflow: hidden; }
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalIn 0.25s ease-out;
}
.player-modal[hidden] { display: none; }
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.player-modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  max-height: 90vh;
}
.player-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 60px rgba(200, 94, 40, 0.12);
  overflow: hidden;
}
.player-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-modal-caption {
  margin-top: 14px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.player-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.9);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.player-modal-close:hover {
  border-color: var(--ember);
  color: var(--ember);
  box-shadow: 0 0 24px rgba(200, 94, 40, 0.35);
}

/* Spotify embed (inline, below tracks / on home) */
.spotify-embed {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}
.track-spotify {
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(200, 94, 40, 0.025);
}
.track-spotify .spotify-embed { margin-top: -2px; }

/* "Listen on" CTA row */
.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.listen-row .listen-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}
.listen-row .listen-cta:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(154, 136, 104, 0.3);
}
.listen-row .listen-cta.youtube {
  border-color: var(--ember);
  color: var(--ember);
}
.listen-row .listen-cta.youtube:hover {
  background: var(--ember);
  color: var(--bg);
  box-shadow: 0 0 24px var(--ember-glow);
}

/* Track row: enabled play button looks more inviting */
.track .play-btn:not(:disabled) {
  border-color: var(--ember);
  color: var(--ember);
}
.track .play-btn:not(:disabled):hover {
  background: var(--ember);
  color: var(--bg);
  box-shadow: 0 0 20px var(--ember-glow);
}

/* === Admin Pipeline === */
.schedule.pipeline th .th-sub {
  display: block;
  margin-top: 4px;
  font-family: 'Crimson Pro', serif;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: none;
  font-style: italic;
}
.schedule.pipeline td.t-num {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.schedule.pipeline td.t-title {
  font-family: 'Cinzel', serif;
  color: var(--white);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
.task-cell {
  vertical-align: middle;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.task-cell.urgent {
  background: rgba(200, 94, 40, 0.14);
  border-left: 2px solid var(--ember);
}
.task-cell.done .task-date {
  text-decoration: line-through;
  opacity: 0.45;
}
.task-cell.past-not-done {
  background: rgba(255, 80, 80, 0.06);
}
.task-cell.past-not-done .task-date::after {
  content: ' ⚠';
  color: #d05050;
}
.task-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.task-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.task-toggle input[type="checkbox"]:hover {
  border-color: var(--ember);
}
.task-toggle input[type="checkbox"]:checked {
  background: var(--ember);
  border-color: var(--ember);
}
.task-toggle input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}
.task-date {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.reset-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-radius: 50%;
}
.reset-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(-180deg);
}

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-dot.urgent { background: var(--ember); }
.legend-dot.done { background: var(--gold); }
.legend-dot.future { background: var(--line); }

/* Outreach */
.outreach-h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 40px 0 12px;
}
.outreach-p { color: var(--text); margin-bottom: 18px; max-width: 880px; }
.outreach-list {
  margin: 0 0 24px 24px;
  color: var(--text);
}
.outreach-list li { margin-bottom: 10px; }
.outreach-list strong { color: var(--ember); font-weight: 600; }

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.playlist-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playlist-card .pl-name {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  color: var(--white);
  font-size: 0.92rem;
}
.playlist-card .pl-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-style: italic;
}

.outreach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.outreach-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-left: 3px solid var(--ember);
}
.outreach-card .card-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  background: var(--bg-2);
}
.outreach-card .card-body {
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* === ENTER splash gate === */
body.gate-active { overflow: hidden; }
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  cursor: pointer;
  transition: opacity 0.85s cubic-bezier(.4,.0,.2,1), visibility 0.85s linear;
  overflow: hidden;
}
.enter-gate.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.enter-gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200, 94, 40, 0.16), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(200, 94, 40, 0.08), transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.014) 0px,
      rgba(255,255,255,0.014) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
  animation: gateBgPulse 6s ease-in-out infinite alternate;
}
@keyframes gateBgPulse {
  from { opacity: 0.9; }
  to   { opacity: 1; }
}
.enter-gate-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 640px;
}
.enter-gate-logo {
  display: block;
  width: clamp(180px, 32vw, 380px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 30px rgba(200, 94, 40, 0.28))
          drop-shadow(0 0 70px rgba(200, 94, 40, 0.12));
  animation: gateFade 1.4s 0.1s both ease-out,
             logoFlicker 7s 1.4s infinite ease-in-out;
}
.enter-gate-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--gold);
  opacity: 0.85;
  animation: gateFade 1.4s 0.35s both ease-out;
}
.enter-gate-orn span {
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  font-family: 'Cinzel', serif;
}
.enter-gate-orn .line {
  flex: 0 0 56px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.enter-gate-btn {
  background: transparent;
  border: 1px solid var(--ember);
  color: var(--ember);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  padding: 18px 56px;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, letter-spacing 0.4s ease;
  margin-bottom: 28px;
  animation: gateFade 1.4s 0.55s both ease-out,
             btnGlowFlicker 5.5s 1.4s infinite ease-in-out,
             btnTextFlicker 6.2s 1.5s infinite ease-in-out;
}
.enter-gate-btn:hover,
.enter-gate-btn:focus-visible {
  background: var(--ember);
  color: var(--bg);
  letter-spacing: 0.75em;
  box-shadow: 0 0 60px rgba(200, 94, 40, 0.55), 0 0 120px rgba(200, 94, 40, 0.22);
  outline: none;
}
.enter-gate-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  animation: gateFade 1.4s 0.75s both ease-out;
}
.enter-gate-hint {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  text-transform: uppercase;
  animation: gateFade 1.4s 0.95s both ease-out, hintPulse 2.4s 2s ease-in-out infinite;
}
@keyframes gateFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Damaged-neon flicker for the button glow. Irregular dips, not a clean sine pulse */
@keyframes btnGlowFlicker {
  0%, 100%  { box-shadow: 0 0 22px rgba(200, 94, 40, 0.30), 0 0 50px rgba(200, 94, 40, 0.14); }
  4%, 5%    { box-shadow: 0 0 6px  rgba(200, 94, 40, 0.10); }
  6%        { box-shadow: 0 0 22px rgba(200, 94, 40, 0.30), 0 0 50px rgba(200, 94, 40, 0.14); }
  29%       { box-shadow: 0 0 30px rgba(200, 94, 40, 0.40), 0 0 64px rgba(200, 94, 40, 0.18); }
  30%, 32%  { box-shadow: 0 0 10px rgba(200, 94, 40, 0.14); }
  33%       { box-shadow: 0 0 30px rgba(200, 94, 40, 0.40), 0 0 64px rgba(200, 94, 40, 0.18); }
  57%       { box-shadow: 0 0 18px rgba(200, 94, 40, 0.24); }
  78%       { box-shadow: 0 0 26px rgba(200, 94, 40, 0.34), 0 0 56px rgba(200, 94, 40, 0.16); }
  79%       { box-shadow: 0 0 8px  rgba(200, 94, 40, 0.10); }
  80%       { box-shadow: 0 0 26px rgba(200, 94, 40, 0.34), 0 0 56px rgba(200, 94, 40, 0.16); }
}

/* Subtle text-glow flicker for the ENTER letters */
@keyframes btnTextFlicker {
  0%, 100%  { text-shadow: 0 0 14px rgba(200, 94, 40, 0.50), 0 0 28px rgba(200, 94, 40, 0.22); }
  4%, 5%    { text-shadow: 0 0 4px  rgba(200, 94, 40, 0.18); }
  6%        { text-shadow: 0 0 14px rgba(200, 94, 40, 0.50), 0 0 28px rgba(200, 94, 40, 0.22); }
  29%       { text-shadow: 0 0 18px rgba(200, 94, 40, 0.60), 0 0 36px rgba(200, 94, 40, 0.28); }
  30%, 32%  { text-shadow: 0 0 5px  rgba(200, 94, 40, 0.22); }
  33%       { text-shadow: 0 0 14px rgba(200, 94, 40, 0.50), 0 0 28px rgba(200, 94, 40, 0.22); }
  78%       { text-shadow: 0 0 16px rgba(200, 94, 40, 0.55); }
  79%       { text-shadow: 0 0 4px  rgba(200, 94, 40, 0.18); }
  80%       { text-shadow: 0 0 14px rgba(200, 94, 40, 0.50), 0 0 28px rgba(200, 94, 40, 0.22); }
}

/* Logo halo flicker. Slower, gentler than the button */
@keyframes logoFlicker {
  0%, 100%  {
    filter: drop-shadow(0 0 28px rgba(200, 94, 40, 0.28))
            drop-shadow(0 0 68px rgba(200, 94, 40, 0.12));
    opacity: 1;
  }
  8%       {
    filter: drop-shadow(0 0 14px rgba(200, 94, 40, 0.16))
            drop-shadow(0 0 40px rgba(200, 94, 40, 0.07));
    opacity: 0.94;
  }
  9%       { opacity: 1; }
  42%      {
    filter: drop-shadow(0 0 34px rgba(200, 94, 40, 0.36))
            drop-shadow(0 0 84px rgba(200, 94, 40, 0.18));
  }
  56%      {
    filter: drop-shadow(0 0 18px rgba(200, 94, 40, 0.20))
            drop-shadow(0 0 50px rgba(200, 94, 40, 0.10));
    opacity: 0.92;
  }
  58%      { opacity: 1; }
  76%      {
    filter: drop-shadow(0 0 24px rgba(200, 94, 40, 0.26))
            drop-shadow(0 0 60px rgba(200, 94, 40, 0.12));
  }
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}
@media (max-width: 600px) {
  .enter-gate-btn {
    font-size: 0.95rem;
    letter-spacing: 0.5em;
    padding: 16px 40px;
  }
}

/* === Blog / Transmissions === */
.blog-hero {
  padding: 220px 24px 120px;
  text-align: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: contrast(1.05) saturate(0.9);
  animation: transmissionsPan 32s ease-in-out infinite alternate;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, transparent 0%, rgba(8, 8, 8, 0.25) 55%, var(--bg-2) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.15) 0%, transparent 30%, transparent 70%, var(--bg-2) 100%);
  pointer-events: none;
}
.blog-hero > .container { position: relative; z-index: 2; }
.blog-hero h1 {
  text-shadow: 0 0 30px rgba(8, 8, 8, 0.85), 0 0 60px rgba(8, 8, 8, 0.5);
}
.blog-hero .blog-lede,
.blog-hero .eyebrow {
  text-shadow: 0 0 20px rgba(8, 8, 8, 0.85);
}
@keyframes transmissionsPan {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1%, -1.5%); }
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.blog-hero .blog-lede {
  color: var(--gold);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.blog-wrap {
  padding: 80px 0 120px;
}
.blog-wrap .container {
  max-width: 760px;
}

.post {
  position: relative;
  padding: 20px 0 40px;
}
.post-date {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.post-orn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--gold);
  opacity: 0.7;
}
.post-orn span { letter-spacing: 0.5em; font-size: 0.7rem; font-family: 'Cinzel', serif; }
.post-orn .line { flex: 0 0 60px; height: 1px; background: var(--gold); opacity: 0.45; }

.post-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}
.post-body p { margin-bottom: 1.1em; }
.post-body p:last-child { margin-bottom: 0; }
.post-body em { color: var(--gold); font-style: italic; }
.post-body strong { color: var(--white); font-weight: 500; }
.post-body a {
  color: var(--ember);
  border-bottom: 1px solid rgba(200, 94, 40, 0.4);
}
.post-body a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.post-sig {
  margin-top: 40px;
}
.post-sig img {
  display: block;
  width: clamp(100px, 16vw, 180px);
  height: auto;
  opacity: 0.75;
}

.post-permalink {
  position: absolute;
  top: 22px;
  right: 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.post:hover .post-permalink { opacity: 1; }
.post-permalink:hover { color: var(--ember); }

.post-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  margin: 60px 0;
}

/* === Posts manager (admin) === */
.posts-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-text {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 8px 4px;
  margin-left: auto;
}
.btn-text:hover { color: var(--ember); }

.posts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.posts-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding: 12px 14px;
  text-align: left;
}
.posts-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.posts-table tr:hover { background: rgba(200, 94, 40, 0.04); }
.posts-table .row-pos {
  display: inline-block;
  width: 22px;
  font-family: 'Cinzel', serif;
  color: var(--gold);
}
.posts-table .row-up,
.posts-table .row-down {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin: 0 1px;
  font-size: 0.8rem;
  vertical-align: middle;
}
.posts-table .row-up:hover:not(:disabled),
.posts-table .row-down:hover:not(:disabled) {
  border-color: var(--ember);
  color: var(--ember);
}
.posts-table .row-up:disabled,
.posts-table .row-down:disabled { opacity: 0.3; cursor: not-allowed; }

.posts-table .row-edit,
.posts-table .row-dup,
.posts-table .row-del {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.2s ease;
}
.posts-table .row-edit:hover { border-color: var(--gold); color: var(--gold); }
.posts-table .row-dup:hover { border-color: var(--text); color: var(--text); }
.posts-table .row-del:hover { border-color: #d05050; color: #d05050; }
.posts-table small { color: var(--text-dim); font-size: 0.78rem; font-style: italic; }
.posts-table .badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.posts-table .badge-draft {
  background: var(--ember);
  color: var(--bg);
  border-color: var(--ember);
}

/* Editor / image / export modals */
.post-editor,
.image-modal,
.export-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalIn 0.2s ease-out;
}
.post-editor[hidden],
.image-modal[hidden],
.export-modal[hidden] { display: none; }
.post-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.post-editor-panel,
.image-modal-panel,
.export-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(200, 94, 40, 0.06);
}
.image-modal-panel {
  width: min(500px, 92vw);
  padding: 24px;
}
.export-modal-panel {
  padding: 24px;
  width: min(900px, 92vw);
}
.post-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.post-editor-head h3 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.post-editor-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  line-height: 1;
}
.post-editor-close:hover { color: var(--ember); }
.post-editor-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.post-editor-body label {
  display: block;
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}
.post-editor-body input[type="text"],
.post-editor-body input[type="date"],
.post-editor-body textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}
.post-editor-body textarea {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  resize: vertical;
  line-height: 1.5;
}
.post-editor-body input:focus,
.post-editor-body textarea:focus { outline: none; border-color: var(--ember); }

.ed-toolbar {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.ed-toolbar button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: none;
}
.ed-toolbar button:hover {
  border-color: var(--ember);
  color: var(--ember);
}
.ed-toolbar button i { font-style: italic; }

.post-editor-foot,
.export-modal-foot,
.image-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.image-modal-foot {
  border-top: none;
  background: transparent;
  padding: 16px 0 0;
  margin-top: 8px;
}

/* Image modal */
.image-modal-panel h3 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.image-modal-panel label {
  display: block;
  margin-bottom: 12px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.image-modal-panel input[type="text"],
.image-modal-panel input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
}
.im-or {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  margin: 14px 0;
}

/* Export modal */
.export-modal-panel h3 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.export-modal-panel p {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 0.92rem;
}
.export-modal-panel textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  resize: vertical;
  margin-bottom: 14px;
  line-height: 1.5;
}
.export-modal-panel code {
  background: var(--surface);
  padding: 2px 6px;
  font-size: 0.85rem;
  color: var(--ember);
  font-family: 'Courier New', monospace;
}

/* === Rich text editor (Visual + HTML) === */
.rt-editor { display: block; margin-top: 6px; }
.rt-toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: none;
}
.rt-toolbar button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: none;
  min-width: 30px;
  line-height: 1;
}
.rt-toolbar button:hover { border-color: var(--ember); color: var(--ember); }
.rt-toolbar button i { font-style: italic; }
.rt-spacer { flex: 1; }
.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
}
.mode-toggle button {
  border: none;
  padding: 6px 12px;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mode-toggle button:hover { color: var(--ember); border: none; }
.mode-toggle button.active {
  background: var(--ember);
  color: var(--bg);
}

.rt-visual,
.rt-html {
  display: block;
  width: 100%;
  min-height: 300px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  outline: none;
  letter-spacing: normal;
  text-transform: none;
}
.rt-visual[hidden],
.rt-html[hidden] {
  display: none;
}
.rt-visual {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
}
.rt-visual:focus { border-color: var(--ember); }
.rt-visual p { margin: 0 0 14px; }
.rt-visual em { color: var(--gold); font-style: italic; }
.rt-visual strong { color: var(--white); font-weight: 600; }
.rt-visual a { color: var(--ember); text-decoration: underline; }
.rt-visual img { max-width: 100%; height: auto; display: block; margin: 14px 0; }
.rt-visual h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 18px 0 14px;
}
.rt-visual ul, .rt-visual ol { margin: 0 0 14px 22px; }
.rt-visual ul li, .rt-visual ol li { margin-bottom: 6px; }
.rt-visual.rt-empty::before {
  content: attr(data-placeholder);
  color: var(--text-dim);
  font-style: italic;
  pointer-events: none;
}
.rt-html {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
}
.rt-html:focus { border-color: var(--ember); }

/* === Posts toast === */
.posts-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  padding: 14px 22px;
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid var(--ember);
  color: var(--ember);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(200, 94, 40, 0.35);
  animation: toastIn 0.3s ease-out;
}
.posts-toast[hidden] { display: none; }
.posts-toast.error {
  border-color: #d05050;
  color: #d05050;
  box-shadow: 0 0 30px rgba(208, 80, 80, 0.4);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === The Receivers (homepage signup form) === */
.receivers-block { max-width: 720px; }
.receivers-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .receivers-form { grid-template-columns: 1fr; }
}
.receivers-form input {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.receivers-form input::placeholder { color: var(--text-dim); font-style: italic; }
.receivers-form input:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 18px rgba(200, 94, 40, 0.12);
}
.receivers-form .btn {
  white-space: nowrap;
  padding: 14px 28px;
}
.receivers-status {
  margin-top: 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.receivers-status.error { color: #d05050; }

/* === The Receivers (admin) === */
.recv-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
@media (max-width: 980px) {
  .recv-grid { grid-template-columns: 1fr; }
}
.recv-count {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-right: auto;
}
.recv-compose-pane {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.recv-label {
  display: block;
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}
.recv-label input,
.recv-label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}
.recv-label textarea {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  resize: vertical;
  line-height: 1.55;
}
.recv-label input:focus,
.recv-label textarea:focus { outline: none; border-color: var(--ember); }

/* === Subtle film grain (global) === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
}

/* === App modal (themed alert / confirm) === */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.app-modal[hidden] { display: none; }
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.app-modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px var(--ember-glow);
  padding: 36px 38px 30px;
  max-width: 480px;
  width: 100%;
  color: var(--white);
  animation: appModalIn 0.22s ease-out;
}
@keyframes appModalIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-modal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.6;
}
.app-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.app-modal-message {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--white);
  margin: 0 0 22px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.app-modal-input {
  display: block;
  width: 100%;
  margin: 0 0 26px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
  transition: border-color 0.2s ease;
}
.app-modal-input[hidden] { display: none; }
.app-modal-input:focus { border-color: var(--ember); }
.app-modal-input::placeholder { color: var(--text-dim); font-style: italic; }
.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.app-modal-actions .btn {
  padding: 11px 22px;
  font-size: 0.72rem;
}
