/* full black theme for this single post page */
:root {
  --bg: #000;
  --card: #000;
  --cream: #000;
  --soft: #000;
  --text: #f5f5f5;
  --text-soft: #bdbdbd;
  --border: #1f1f1f;
}

html,
body {
  background: #000 !important;
  color: var(--text);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vibe-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(2px);
}

.vibe-gate[hidden] {
  display: none;
}

.vibe-gate-card {
  width: min(92vw, 38rem);
  border: 1px solid #323232;
  border-radius: 12px;
  background: #080808;
  color: #f2f2f2;
  padding: 1.1rem 1rem;
}

.vibe-gate-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
}

.vibe-gate-card p {
  margin: 0.35rem 0;
  color: #c9c9c9;
}

.vibe-gate-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.vibe-gate-actions .pill-btn {
  cursor: pointer;
}

body.gate-open {
  overflow: hidden;
}

main#main.container {
  flex: 1 0 auto;
  animation: page-glitch-jitter 1.2s steps(2, end) infinite;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

body::before {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 2px
    );
  opacity: 0.3;
  mix-blend-mode: screen;
  animation: page-glitch-scan 2.2s linear infinite;
}

body::after {
  background:
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0) 42%,
      rgba(0, 170, 255, 0.14) 100%
    );
  opacity: 0.42;
  animation: page-glitch-rgb 120ms steps(2, end) infinite, page-glitch-slice 420ms steps(2, end) infinite;
}

.post.audio-post {
  animation: page-glitch-blackout 2.4s steps(2, end) infinite;
}

@keyframes page-glitch-jitter {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2px, 1px); }
  11% { transform: translate(3px, -1px); }
  24% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 0); }
  26% { transform: translate(2px, 2px); }
  44% { transform: translate(0, 0); }
  45% { transform: translate(0, 3px); }
  46% { transform: translate(0, -3px); }
  60% { transform: translate(2px, 0); }
  61% { transform: translate(-2px, 0); }
  78% { transform: translate(3px, -2px); }
  79% { transform: translate(-3px, 2px); }
}

@keyframes page-glitch-scan {
  0% { transform: translateY(-10%); }
  100% { transform: translateY(10%); }
}

@keyframes page-glitch-rgb {
  0%, 100% { transform: translate(0, 0); opacity: 0.28; }
  20% { transform: translate(-4px, 0); opacity: 0.5; }
  40% { transform: translate(4px, 0); opacity: 0.42; }
  60% { transform: translate(-3px, 1px); opacity: 0.47; }
  80% { transform: translate(3px, -1px); opacity: 0.44; }
}

@keyframes page-glitch-slice {
  0%, 100% {
    clip-path: inset(0 0 0 0);
  }
  12% {
    clip-path: inset(8% 0 74% 0);
  }
  13% {
    clip-path: inset(62% 0 22% 0);
  }
  33% {
    clip-path: inset(22% 0 56% 0);
  }
  34% {
    clip-path: inset(72% 0 12% 0);
  }
  57% {
    clip-path: inset(40% 0 38% 0);
  }
  58% {
    clip-path: inset(16% 0 66% 0);
  }
  82% {
    clip-path: inset(66% 0 14% 0);
  }
  83% {
    clip-path: inset(28% 0 52% 0);
  }
}

@keyframes page-glitch-blackout {
  0%, 100% {
    opacity: 1;
    filter: none;
  }
  7% {
    opacity: 0.96;
    filter: brightness(0.78);
  }
  8% {
    opacity: 0.15;
    filter: brightness(0.35);
  }
  9% {
    opacity: 1;
    filter: none;
  }
  31% {
    opacity: 0.9;
    filter: brightness(0.72);
  }
  32% {
    opacity: 0.22;
    filter: brightness(0.4);
  }
  33% {
    opacity: 1;
    filter: none;
  }
  64% {
    opacity: 0.88;
    filter: brightness(0.7);
  }
  65% {
    opacity: 0.08;
    filter: brightness(0.28);
  }
  66% {
    opacity: 1;
    filter: none;
  }
}

a {
  color: #f5f5f5;
}
.click-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.pill-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0.6rem 1rem;
}

#headPatBtn {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

#headPatBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

#headPatBtn:active {
  transform: translateY(0);
  box-shadow: none;
  border-color: var(--sage);
}

.count-pill {
  background: var(--cream);
  border-color: var(--pink);
}

.featured-photo-section {
  margin: 1rem 0 0.5rem;
}

.photo-aside {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.featured-photo-card {
  width: 100%;
  max-width: 17rem;
  margin: 0;
}

.featured-photo-copy {
  min-width: 0;
  padding: 0.05rem 0 0;
}

.featured-photo-copy p {
  margin: 0;
  line-height: 1.65;
}

.featured-photo-copy p + p {
  margin-top: 0.9rem;
}

.featured-photo-section + .click-row {
  margin-top: 0.5rem;
}

.entry-note {
  margin: 0.8rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 75%, var(--soft));
}

.top-gif-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.35rem 0 0.9rem;
  padding: 0;
  border: 0 !important;
}

.top-gif-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #1f1f1f !important;
  border-radius: 10px;
  background: #000 !important;
}

.top-gif-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
}

body.effects-off main#main.container,
body.effects-off .post.audio-post,
body.effects-off::before,
body.effects-off::after {
  animation: none !important;
}

body.effects-off::before,
body.effects-off::after {
  opacity: 0 !important;
  content: none !important;
}

@media (prefers-reduced-motion: reduce) {
  main#main.container,
  body::before,
  body::after,
  .post.audio-post {
    animation: none !important;
  }
}

.audio-toggle-row {
  margin: 0.85rem 0 0.95rem;
}

.audio-credit-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.audio-credit-prefix {
  color: color-mix(in srgb, var(--text-soft) 72%, white);
}

.meta-sep {
  margin: 0 0.35rem;
  color: var(--text-soft);
}

.audio-credit-link {
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.audio-credit-link:hover {
  text-decoration: underline;
}

.audio-toggle-btn {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.2rem;
  border-width: 2px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.audio-toggle-btn:hover {
  transform: translateY(-1px);
}

.audio-toggle-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--soft) 45%, white);
  border-color: var(--sage);
  box-shadow: none;
}

.audio-toggle-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.credit-note {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 55%, white);
}

.credit-note p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.credit-note ul {
  margin: 0.45rem 0 0.6rem 1.1rem;
}

.credit-note li {
  margin: 0.2rem 0;
}

.credit-note .dash {
  list-style: none;
  margin: 0.45rem 0 0.6rem;
  padding: 0;
}

.credit-note .dash li {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.3rem 0;
  line-height: 1.45;
}

.credit-note .dash li::before {
  content: "\2665\FE0E";
  position: static;
  display: inline-block;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--coral) 70%, white);
  font-size: 0.72rem;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  line-height: 1;
  font-variant-emoji: text;
  text-rendering: geometricPrecision;
}

.ts-jump {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ts-jump:hover {
  color: var(--sage);
  text-decoration: underline;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.photo-gallery-section h3 {
  margin: 0.7rem 0 0.2rem;
}

.photo-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-gif-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  main#main.container {
    animation-duration: 2.4s;
  }

  body::before {
    opacity: 0.16;
    animation-duration: 4.2s;
  }

  body::after {
    opacity: 0.2;
    animation-duration: 220ms, 900ms;
  }

  .post.audio-post {
    animation: none;
  }
}

@media (max-width: 700px) {
  .photo-aside {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-photo-card {
    max-width: 16rem;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .featured-photo-card {
    width: min(100%, 16rem);
    margin: 0 auto 1rem;
  }

  .featured-photo-copy {
    padding-top: 0;
  }

  .click-row {
    gap: 0.5rem;
  }

  .pill-btn {
    padding: 0.56rem 0.92rem;
  }
}

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

  .top-gif-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* black-theme polish: force all shared components dark on this post */
body {
  background-color: #000 !important;
  background-image: none !important;
}

.hero-title {
  color: #fff;
}

#nav_menu a {
  color: #cfcfcf;
  background: #121212;
  border-color: #3a3a3a;
  box-shadow: none;
}

#nav_menu a:hover,
#nav_menu a:focus {
  color: #fff;
  background: #181818;
  border-color: #555;
}

#nav_menu .current a {
  color: #fff;
  background: #5a5a5a;
  border-color: #6a6a6a;
}

.post,
section,
.entry-note,
.credit-note,
.photo-card,
.pill-btn,
.site-footer {
  background: #000 !important;
  color: var(--text);
  border-color: #232323 !important;
}

.site-footer {
  color: #a7a7a7;
  box-shadow: none;
  margin-top: auto;
}

.meta {
  color: var(--text-soft);
}

.highlight-link,
a.highlight-link {
  color: #fff;
}

.highlight-link:hover,
a.highlight-link:hover {
  color: #cfcfcf;
}
