/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg:        #080808;
  --surface-1: #111111;
  --surface-2: #191919;
  --surface-3: #232323;
  --border:    #272727;
  --text-1:    #f0ece4;
  --text-2:    #9a9080;
  --text-3:    #504840;
  --accent:    #c4964a;
  --accent-l:  #d4a85a;
  --accent-d:  #8a6428;
  --panel-w:   300px;
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg: 14px;
  --ease: 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   App Layout — two-column split
   ============================================================ */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Player Panel (fixed left)
   ============================================================ */
.player-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.player-panel::-webkit-scrollbar { width: 4px; }
.player-panel::-webkit-scrollbar-track { background: transparent; }
.player-panel::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* ── Panel Header ─────────────────────────────────────────── */


/* ── Vinyl ─────────────────────────────────────────────────── */
.player-visual {
  text-align: center;
}

.vinyl-wrap { margin-bottom: 18px; }

.vinyl {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto;
  background:
    /* center hole + label */
    radial-gradient(
      circle at 50% 50%,
      #060606 0%   4%,
      #c4964a 4%   8%,
      #7a5220 8%   24%,
      #181412 24%  26%,
      transparent  26%
    ),
    /* groove rings */
    repeating-radial-gradient(
      circle at 50% 50%,
      #0c0c0c 0px,
      #1e1e1e 1px,
      #0c0c0c 2px,
      #141414 3px
    );
  box-shadow:
    0 10px 50px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  animation: vinyl-spin 2s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.6s ease;
  will-change: transform;
}

.vinyl.playing {
  animation-play-state: running;
  box-shadow:
    0 10px 50px rgba(0,0,0,0.85),
    0  0   60px rgba(196,150,74,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

.now-playing-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.now-playing-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.35;
  min-height: 1.35em;
}

/* ── Progress bar ─────────────────────────────────────────── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-display {
  font-size: 11px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.progress-track {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.progress-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  pointer-events: none;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease);
}

.progress-track:hover .progress-handle,
.progress-track.seeking .progress-handle {
  opacity: 1;
}

/* ── Playback controls ────────────────────────────────────── */
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-ctrl {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color var(--ease);
}
.btn-ctrl:hover { color: var(--text-1); }

.btn-play {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080400;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  padding-left: 2px;
}
.btn-play:hover {
  background: var(--accent-l);
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(196,150,74,0.35);
}
.btn-play:active { transform: scale(0.96); }
.btn-play.is-playing { padding-left: 0; }

/* ── Volume ───────────────────────────────────────────────── */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vol-icon { color: var(--text-2); flex-shrink: 0; }

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--vol, 80%),
    var(--border) var(--vol, 80%),
    var(--border) 100%
  );
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* ── Tracklist ────────────────────────────────────────────── */
.tracklist-wrap {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  flex: 1;
}

.tracklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tracklist-heading {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* ── Lyrics button ─────────────────────────────────────────── */
.btn-lyrics {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-lyrics:disabled { opacity: 0.3; cursor: default; }
.btn-lyrics.has-lyrics { color: var(--text-2); border-color: var(--border); }
.btn-lyrics.has-lyrics:hover { color: var(--accent); border-color: var(--accent); }
.btn-lyrics.lyrics-active { color: var(--accent); border-color: var(--accent); background: rgba(196,150,74,0.08); }

/* ── Lyrics panel ──────────────────────────────────────────── */
.lyrics-panel {
  position: fixed;
  left: var(--panel-w);
  top: 0;
  bottom: 0;
  width: min(400px, calc(100vw - var(--panel-w)));
  background: #06060a;
  border-right: 1px solid var(--border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(-100% - var(--panel-w)));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.lyrics-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}
.lyrics-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lyrics-label {
  font-size: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.lyrics-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-1);
}
.lyrics-close-btn {
  background: none;
  border: none;
  color: var(--text-3);
  padding: 2px;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.15s;
}
.lyrics-close-btn:hover { color: var(--text-1); }
.lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 40px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  line-height: 2;
  color: var(--text-2);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.lyrics-body p {
  margin: 0 0 1.6em;
  white-space: pre-wrap;
}
.lyrics-body p:last-child { margin-bottom: 0; }

.tracklist {
  display: flex;
  flex-direction: column;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--ease);
}
.track-item:hover { background: var(--surface-2); }
.track-item.active { background: var(--surface-2); }
.track-item.active .track-name { color: var(--accent); }

.track-play-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color var(--ease);
}
.track-item:hover .track-play-btn,
.track-item.active .track-play-btn { color: var(--text-1); }

.track-num {
  font-size: 11px;
  color: var(--text-3);
  min-width: 18px;
  font-variant-numeric: tabular-nums;
}

.track-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--ease);
}

.track-download-btn {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  opacity: 0;
  transition: opacity var(--ease), color var(--ease);
  flex-shrink: 0;
  padding: 0;
}
.track-item:hover .track-download-btn { opacity: 1; }
.track-download-btn:hover { color: var(--accent); }

.tracklist-status {
  padding: 14px 4px;
  color: var(--text-3);
  font-size: 13px;
  font-style: italic;
}

/* ============================================================
   Main Scroll Area (right column)
   ============================================================ */
.main-scroll {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--bg);
}

/* ============================================================
   Content Container
   ============================================================ */
.content-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   Section Title
   ============================================================ */
.section-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--text-1);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,150,74,0.15), transparent 65%);
  top: -200px; left: -200px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(80,50,130,0.10), transparent 65%);
  bottom: -80px; right: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 24px 24px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  line-height: 1;
}

.hero-title-top,
.hero-title-bot {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(64px, 13vw, 130px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
  line-height: 0.95;
}

.hero-title-mid {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 3.2vw, 36px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6;
  padding-left: 0.12em;
}

.hero-tagline {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  margin-bottom: 44px;
}

/* ── VOID warp / singularity effect ────────────────────────── */
.void-filter-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.void-warp {
  display: inline-block;
  filter: url(#void-turbulence);
  animation: void-glow 8s ease-in-out infinite;
  will-change: text-shadow;
}

@keyframes void-glow {
  0%, 100% {
    text-shadow:
      -1px 0 2px rgba(0, 190, 255, 0.3),
      1px 0 2px rgba(180, 0, 255, 0.3),
      0 0 10px rgba(90, 0, 150, 0.18);
  }
  38% {
    text-shadow:
      -5px 0 3px rgba(0, 190, 255, 0.55),
      5px 0 3px rgba(180, 0, 255, 0.55),
      0 0 30px rgba(90, 0, 150, 0.5),
      0 0 70px rgba(40, 0, 70, 0.28);
  }
  65% {
    text-shadow:
      -9px 0 5px rgba(0, 190, 255, 0.65),
      9px 0 5px rgba(180, 0, 255, 0.65),
      0 0 55px rgba(90, 0, 150, 0.72),
      0 0 110px rgba(40, 0, 70, 0.5),
      0 0 180px rgba(10, 0, 25, 0.85);
  }
}

/* ── Human asterisk disclaimer tooltip ──────────────────────── */
.human-asterisk-wrap {
  position: relative;
  display: inline;
}

.human-asterisk {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.72em;
  vertical-align: super;
  margin-left: 1px;
  user-select: none;
  font-style: normal;
  letter-spacing: 0;
  transition: opacity 0.15s;
}

.human-asterisk:hover { opacity: 0.7; }

.human-asterisk:focus-visible {
  outline: 1px dotted var(--accent);
  outline-offset: 2px;
}

.human-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 5, 18, 0.97);
  border: 1px solid var(--accent);
  color: var(--text-1);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 8px;
  width: 240px;
  text-align: center;
  z-index: 400;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  white-space: normal;
  text-transform: none;
}

.human-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--accent);
}

.human-asterisk-wrap.open .human-tooltip {
  display: block;
}

.hero-cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background var(--ease), color var(--ease);
}
.hero-cta:hover {
  background: var(--accent);
  color: #0a0702;
}


/* ============================================================
   Blog / Journal Section
   ============================================================ */
.blog-section {
  padding: 80px 0 80px;
}

.post-card {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.post-card:last-child {
  border-bottom: 1px solid var(--border);
}

.post-card.post-active {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-left: -22px;
}

.post-date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.post-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 16px;
  line-height: 1.25;
  transition: color var(--ease);
}
.post-card:hover .post-title { color: var(--accent); }
.post-title-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: color var(--ease);
}
.post-title-btn:hover { color: var(--accent); }

.post-excerpt {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* ── Post footer: play button + share buttons ─────────────── */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.post-play-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.post-card.post-active .post-play-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  cursor: pointer;
}
.share-btn:hover {
  color: var(--text-1);
  border-color: var(--border);
}

.blog-empty {
  color: var(--text-3);
  font-size: 14px;
  font-style: italic;
  padding: 16px 0;
}

/* ── Post detail view ─────────────────────────────────────── */
#post-view {
  padding: 60px 48px 100px;
  max-width: 720px;
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 36px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-1);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.post-back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-2);
}

.post-subscribe-wrap {
  margin-bottom: 48px;
}
.post-subscribe-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}

.post-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-1);
  margin-top: 12px;
  margin-bottom: 40px;
}

/* ── Post body (Quill-generated HTML) ─────────────────────── */
.post-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 40px;
}

.post-body-inline {
  margin-bottom: 24px;
}

.post-card-featured {
  padding-bottom: 48px;
}

.post-body p { margin-bottom: 1.2em; }
.post-body p:last-child { margin-bottom: 0; }

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-1);
  margin: 1.8em 0 0.6em;
}

.post-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin: 1.5em 0 0.5em;
  letter-spacing: 0.02em;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.post-body a:hover { color: var(--accent-l); }

.post-body ul, .post-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.post-body li { margin-bottom: 0.4em; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  color: var(--text-2);
  font-style: italic;
}

.post-body pre {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1em 1.2em;
  overflow-x: auto;
  margin-bottom: 1.2em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text-1);
}

.post-body code {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text-1);
}
.post-body pre code { background: none; border: none; padding: 0; }

.post-body img {
  max-width: 100%;
  border-radius: 6px;
  margin: 0.5em 0 1.2em;
}

.post-body iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 6px;
  margin: 0.5em 0 1.2em;
}

/* ── Post detail: play + share row ───────────────────────── */
.post-detail-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  transition: border-color var(--ease), color var(--ease);
}
.post-detail-play-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.post-detail-footer { margin-top: 8px; }

/* ============================================================
   About Section
   ============================================================ */
.about-section {
  padding: 80px 0 100px;
  background: var(--surface-1);
}

.about-inner { max-width: 540px; }

.about-text p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 32px 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  color: var(--text-2);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   Loop & Shuffle buttons
   ============================================================ */
.btn-mode {
  position: relative;
  transition: color var(--ease);
}
.btn-mode-active {
  color: var(--accent) !important;
}
.btn-mode-active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   Waveform SVG (overlays progress track)
   ============================================================ */
.waveform-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 32px;
  pointer-events: none;
  overflow: visible;
}

/* ============================================================
   Track thumbnail (small, in tracklist)
   ============================================================ */
.track-thumb {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================================================
   Track artwork (large, in player visual replacing vinyl)
   ============================================================ */
.track-artwork {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  box-shadow:
    0 10px 50px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  animation: vinyl-spin 20s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.6s ease;
}
.track-artwork.playing {
  animation-play-state: running;
  box-shadow:
    0 10px 50px rgba(0,0,0,0.85),
    0  0   60px rgba(196,150,74,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}


.shortcuts-grid span { color: var(--text-2); }

/* ============================================================
   Player sheet close button (mobile only)
   ============================================================ */
.player-sheet-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  margin-bottom: 8px;
  transition: background var(--ease);
}
.player-sheet-close:hover { background: var(--surface-3); }

/* ============================================================
   Subscribe form (in About section)
   ============================================================ */
.subscribe-block {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.subscribe-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 8px;
}

.subscribe-hint {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.6;
}

.subscribe-form {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 20px 24px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.subscribe-row {
  display: flex;
  gap: 10px;
}

.subscribe-input {
  flex: 1;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--ease);
}
.subscribe-input::placeholder { color: var(--text-3); }
.subscribe-input:focus { border-color: var(--accent); }

.subscribe-btn {
  padding: 11px 20px;
  background: var(--accent);
  color: #080400;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}
.subscribe-btn:hover:not(:disabled) { background: var(--accent-l); }
.subscribe-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.subscribe-message {
  margin-top: 10px;
  font-size: 13px;
  min-height: 1.4em;
}
.subscribe-message.success { color: var(--accent-l); }
.subscribe-message.error   { color: #e07878; }

/* ============================================================
   Related posts (bottom of post detail)
   ============================================================ */
.post-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-related-heading {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.post-related-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: inherit;
  transition: color var(--ease);
}
.post-related-item:first-of-type { border-top: 1px solid var(--border); }
.post-related-item:hover .post-related-title { color: var(--accent); }

.post-related-title {
  font-size: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-1);
  line-height: 1.3;
  transition: color var(--ease);
}

/* ============================================================
   Mobile mini player & bottom sheet
   ============================================================ */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  z-index: 150;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mini-player[hidden] { display: none; }

.mini-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.mini-art {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--surface-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.mini-vinyl {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #060606 0% 20%, #c4964a 20% 35%, #181412 35% 100%);
}

.mini-title {
  font-size: 13px;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-play-btn,
.mini-next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  transition: background var(--ease);
}
.mini-play-btn:hover,
.mini-next-btn:hover { background: var(--surface-3); }
.mini-play-btn { background: var(--accent); color: #080400; }
.mini-play-btn:hover { background: var(--accent-l); }

/* ============================================================
   Responsive — Desktop & Tablet (900px breakpoint keeps existing layout)
   ============================================================ */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  html, body {
    height: auto;
    overflow: auto;
  }
  .player-panel {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 24px 20px;
  }
  .main-scroll {
    height: auto;
    overflow: visible;
  }
  .playback-controls { justify-content: center; }
  .volume-wrap { justify-content: center; }
  .vinyl { width: 160px; height: 160px; }
  .track-artwork { width: 160px; height: 160px; }
  .content-container { padding: 0 24px; }
}

/* ============================================================
   Responsive — Mobile (768px: Spotify-style bottom sheet)
   ============================================================ */
@media (max-width: 768px) {
  /* Lock layout to viewport so mini player doesn't scroll away */
  html, body { height: 100%; overflow: hidden; }

  /* Lyrics panel: full-screen overlay, slides up from below viewport */
  .lyrics-panel {
    left: 0; right: 0;
    top: 0; bottom: auto;
    height: 100vh; /* full height so translateY(100%) = exactly 100vh off-screen */
    padding-bottom: 64px; /* content stays above mini player bar */
    width: 100%;
    border-right: none;
    border-top: none;
    border-radius: 0;
    transform: translateY(100%);
    z-index: 160; /* above player sheet (120) and mini player (150) */
  }
  .lyrics-panel.open { transform: translateY(0); }

  .app-layout { flex-direction: column; height: 100%; overflow: hidden; }

  /* Main content scrolls, with padding for mini player bar */
  .main-scroll {
    flex: 1;
    height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Player panel is a bottom sheet, off-screen by default */
  .player-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80vh;
    max-height: 600px;
    z-index: 120;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 16px 24px 80px; /* bottom pad for mini player */
  }

  /* Reveal sheet when body has class */
  .player-sheet-open .player-panel {
    transform: translateY(0);
  }

  /* Dark backdrop behind sheet */
  .player-sheet-open .main-scroll::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 110;
    pointer-events: none;
  }

  /* Show the close chevron inside the panel */
  .player-sheet-close { display: flex; }

  /* Adjust vinyl/artwork size for mobile panel */
  .vinyl { width: 130px; height: 130px; }
  .track-artwork { width: 130px; height: 130px; }

  /* Mini player always visible at bottom */
  .mini-player { display: flex !important; }
}

@media (max-width: 540px) {
  .hero-title-top, .hero-title-bot { font-size: clamp(48px, 16vw, 80px); }
  .hero-title-mid { font-size: clamp(14px, 4.5vw, 24px); }
  .modal { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
  .subscribe-row { flex-direction: column; }
  .subscribe-btn { width: 100%; }
  #post-view { padding: 40px 24px 80px; }
}
