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

:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --bg-hover: #1e1e1e;
  --text: #e0e0e0;
  --text-muted: #777;
  --accent: #c8102e;
  --accent-dim: #8b0a1e;
  --border: #2a2a2a;
  --player-track: #222;
  --player-fill: #c8102e;
  --surface-shadow: rgba(0, 0, 0, 0.34);
  --surface-shadow-soft: rgba(0, 0, 0, 0.18);
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0) 38%),
    radial-gradient(120% 100% at 14% 12%, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 68%),
    radial-gradient(110% 95% at 88% 78%, rgba(200, 16, 46, 0.016), rgba(200, 16, 46, 0) 72%);
  position: relative;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Extremely subtle grain pass for slight material depth. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.014;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}


.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
}

/* ── Header / Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  flex: 1;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #e5e5e5;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero .ep-title {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ── Audio Player ──────────────────────────────────────── */
.player-section {
  padding: 2rem 0 4rem;
}

.player {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow:
    0 10px 24px var(--surface-shadow),
    0 2px 7px var(--surface-shadow-soft);
}

.player-track-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  min-height: 1.6em;
  color: var(--text);
}

.player-track-title .track-number {
  color: var(--accent);
  margin-right: 0.4em;
  font-weight: 700;
}

/* Seek bar */
.player-seek {
  width: 100%;
  margin-bottom: 0.5rem;
}

.seek-bar-wrap {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--player-track);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.seek-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--player-fill);
  border-radius: 3px;
  transition: width 0.1s linear;
  pointer-events: none;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* Transport controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.player-controls button {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.player-controls button:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.btn-play {
  width: 56px !important;
  height: 56px !important;
  font-size: 1.75rem !important;
  border: 2px solid var(--border) !important;
}

.btn-play:hover {
  border-color: var(--accent) !important;
}

/* Volume */
.player-volume {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-mute {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-mute:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--player-track);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* Tracklist */
.tracklist {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tracklist li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 4px;
  gap: 0.75rem;
}

.tracklist li:hover {
  background: var(--bg-hover);
}

.tracklist li.active {
  color: var(--accent);
}

.tracklist .track-num {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 1.5em;
  text-align: center;
  flex-shrink: 0;
}

.tracklist li.active .track-num {
  color: var(--accent);
}

.tracklist .track-name {
  flex: 1;
  position: relative;
  transition: color 0.2s ease;
}

.tracklist .track-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}

.tracklist li:hover .track-name {
  color: #ededed;
}

.tracklist li:hover .track-name::after {
  transform: scaleX(1);
}

.tracklist li.active .track-name::after {
  transform: scaleX(1);
}

/* ── Social Links ──────────────────────────────────────── */
.social-section {
  padding: 3rem 0 5rem;
  text-align: center;
}

.social-section h2 {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #d7d7d7;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-links a:hover {
  border-color: #454545;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.025);
}

.social-links .social-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Visuals Gallery ───────────────────────────────────── */
.gallery-section {
  padding: 4rem 0;
}

.gallery-section h2 {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid .gallery-item {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.gallery-grid .gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for missing images */
.gallery-grid .gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header .container {
    padding: 0.75rem 1rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .hero {
    padding: 4rem 1rem 2.5rem;
  }

  .player {
    padding: 1.25rem;
  }

  .player-controls {
    gap: 1rem;
  }

  .social-links {
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }
}
