@font-face {
  font-family: 'VCR OSD Mono';
  src: url('fonts/VCR_OSD_MONO.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

html {
  overflow-y: scroll;
}

body {
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  color: #fff;
  font-family: monospace;
  user-select: none;
  animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.9; }
}

#overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3));
}

main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 48px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.subpage main {
  max-width: 820px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

body.subpage nav.tabs {
  flex-direction: column;
  align-items: stretch;
  width: 150px;
  flex-shrink: 0;
  margin-bottom: 0;
  gap: 8px;
}

body.subpage nav.tabs a {
  text-align: left;
}

body.subpage section.panel {
  flex: 1;
  width: auto;
  min-width: 0;
}

@media (max-width: 640px) {
  body.subpage main {
    flex-direction: column;
    align-items: center;
  }

  body.subpage nav.tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  body.subpage nav.tabs a {
    text-align: center;
  }

  body.subpage section.panel {
    width: 100%;
  }
}

h1 {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  color: #fff;
  text-align: center;
  font-size: clamp(22px, 5vw, 40px);
  letter-spacing: 3px;
  line-height: 1.4;
  margin: 0 0 6px;
  text-shadow: 0 0 8px rgba(255,255,255,0.35);
}

.title-rule {
  width: min(90%, 480px);
  height: 1px;
  background: #fff;
  margin: 0 0 40px;
  opacity: 0.8;
}

nav.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  width: fit-content;
  max-width: 100%;
}

nav.tabs a {
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: lowercase;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav.tabs a:hover {
  background: rgba(255, 255, 255, 0.12);
}

nav.tabs a.active {
  background: #fff;
  color: #000;
}

section.panel {
  width: 100%;
  border: 1px solid #fff;
  padding: 28px 24px;
  min-height: 200px;
  animation: fade 0.3s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

section.panel h2 {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-weight: normal;
  font-size: 16px;
  letter-spacing: 2px;
  margin: 0 0 16px;
  text-transform: lowercase;
}

section.panel p {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e5e5;
  margin: 0 0 12px;
}

section.panel p:last-child {
  margin-bottom: 0;
}

.buzdygan-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -55px;
  margin-left: 65px;
  margin-bottom: -28px;
}

.find-me {
  border: 1px solid #fff;
  padding: 36px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade 0.3s ease;
}

.find-me h2 {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-weight: normal;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: #fff;
  margin: 0 0 28px;
  text-align: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
}

.links a {
  position: relative;
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: #ccc;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.links a:hover {
  color: #fff;
}

.links a:hover::after {
  transform: scaleX(1);
}

footer {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 1px;
  color: #777;
  padding: 20px 0 30px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
    opacity: 0.5;
  }
}

.tracks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.track {
  border: 1px solid #fff;
  padding: 18px 20px;
}

.track-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 0 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.play-btn.playing {
  padding: 0;
}

.play-btn:hover,
.play-btn.playing {
  background: #fff;
  color: #000;
}

.track-name {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #fff;
}

.track-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #ccc;
  margin: 12px 0 0;
}

.music-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.music-tab {
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: lowercase;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.music-tab:hover {
  background: rgba(255, 255, 255, 0.12);
}

.music-tab.active {
  background: #fff;
  color: #000;
}

.music-section {
  width: 100%;
}

.music-section[hidden] {
  display: none;
}

.recs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fold {
  border: 1px solid #fff;
}

.fold summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold summary::after {
  content: '+';
  font-size: 18px;
  color: #ccc;
  flex-shrink: 0;
}

.fold[open] summary::after {
  content: '−';
}

.fold[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.fold-body {
  padding: 20px 20px 24px;
}

.rec-summary-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
}

.rec-summary-title {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #fff;
}

.rec-summary-title .sep {
  color: #777;
  margin: 0 8px;
}

.rec-summary-title .rec-title-text {
  color: #ccc;
}

.rec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.rec-links a {
  position: relative;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #ccc;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.rec-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.rec-links a:hover {
  color: #fff;
}

.rec-links a:hover::after {
  transform: scaleX(1);
}

.rec-genre {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  border: 1px solid #555;
  padding: 3px 9px;
  white-space: nowrap;
}

.rec-embed {
  margin-top: 14px;
  border-radius: 4px;
  overflow: hidden;
}

.rec-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.rec-thoughts {
  font-size: 13px;
  line-height: 1.6;
  color: #e5e5e5;
  margin: 12px 0 0;
}

/* ---- thoughts page ---- */
.thoughts-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-bar[hidden] {
  display: none;
}

.tag-pill {
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  background: transparent;
  color: #777;
  border: 1px solid #333;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag-pill:hover {
  color: #bbb;
  border-color: #555;
}

.tag-pill.active {
  background: transparent;
  color: #fff;
  border-color: #777;
}

.archive-btn {
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  background: transparent;
  color: #777;
  border: 1px solid #333;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.archive-btn:hover {
  color: #bbb;
  border-color: #555;
}

.archive-btn.active {
  background: transparent;
  color: #fff;
  border-color: #777;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.posts[hidden] {
  display: none;
}

.post {
  border: 1px solid #fff;
  padding: 18px 20px;
  animation: fade 0.3s ease;
}

.post-meta {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 10px;
}

.post-body {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e5e5;
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.post-tag {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #999;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.post-tag:hover {
  color: #fff;
}

.post-empty {
  font-size: 13px;
  color: #999;
  font-style: italic;
}

/* ---- wisdom widget (index page) ---- */
.wisdom {
  border: 1px solid #fff;
  padding: 28px 24px 32px;
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fade 0.3s ease;
}

.wisdom[hidden] {
  display: none;
}

.wisdom h2 {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-weight: normal;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: #fff;
  margin: 0 0 18px;
  text-align: center;
}

.wisdom-date {
  font-family: 'VCR OSD Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #999;
  margin: 0 0 10px;
}

.wisdom-body {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e5e5;
  margin: 0;
}

.fandom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
  width: 100%;
}

.fandom-table {
  border: 1px solid #fff;
}

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

.fandom-table th {
  background: #fff;
  color: #000;
  font-family: "VCR OSD Mono", monospace;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: lowercase;
  padding: 11px;
}

.fandom-table td {
  color: #fff;
  padding: 10px 14px;
}

.fandom-table tr + tr td {
  border-top: none;
}

.fandom-table a {
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}

.fandom-table a:hover {
  opacity: .6;
}

.quote-cell {
  font-style: italic;
}

.quote-speaker,
.quote-chapter {
  white-space: nowrap;
  color: #bbb;
}

.table-note {
  color: #888;
  font-size: 13px;
}

@media (max-width:700px){

.fandom-grid{
grid-template-columns:1fr;
}

}
