/* ============================================================
   Arnaud's Music Hall — Stylesheet
   Fonts: Cinzel (display) + EB Garamond (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #080808;
  --surface:     #0f0f0f;
  --card:        #121212;
  --border:      #1c1c1c;
  --border-soft: #161616;

  --accent:      #b08d57;   /* aged brass / gold */
  --accent-dim:  rgba(176, 141, 87, 0.12);
  --accent-glow: rgba(176, 141, 87, 0.06);

  --text:        #cdc3b0;   /* warm off-white, like aged paper */
  --text-dim:    #4a453c;
  --text-muted:  #302c27;

  --green:       #4a7055;
  --orange:      #9a612c;
  --red:         #7a2e2e;

  --player-h:    68px;
  --radius:      2px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: calc(var(--player-h) + 3rem);
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Hidden YouTube container ──────────────────────────────── */
#yt-container {
  position: fixed;
  top: -400px;
  left: -400px;
  width: 320px;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

/* ============================================================
   INDEX PAGE — Header
   ============================================================ */
.main-header {
  padding: 2.2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.main-header h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}

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

/* ── Main Layout ───────────────────────────────────────────── */
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 3.5rem 2rem;
}

section { margin-bottom: 5rem; }

.section-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Tag Filters ───────────────────────────────────────────── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-filter {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tag-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-filter.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Access Legend ─────────────────────────────────────────── */
.access-legend {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.legend-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.legend-dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.green::before  { background: var(--green); }
.legend-dot.orange::before { background: var(--orange); }
.legend-dot.red::before    { background: var(--red); }

/* ── Bands Grid ────────────────────────────────────────────── */
#bands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 196px);
  gap: 1.25rem;
}

/* ── Band Card ─────────────────────────────────────────────── */
.band-card {
  position: relative;
  width: 196px;
  height: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.3s;
}

.band-card:hover {
  transform: translateY(-5px);
  border-color: #2a2a2a;
}

/* Accessibility stripe at top */
.band-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 3;
  transition: height 0.2s;
}

.band-card[data-access="green"]::before  { background: var(--green); }
.band-card[data-access="orange"]::before { background: var(--orange); }
.band-card[data-access="red"]::before    { background: var(--red); }

/* Card background image */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity 0.35s;
}

.band-card:hover .card-bg { opacity: 0.28; }

/* Gradient overlay */
.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.6)  50%,
    rgba(0,0,0,0.1)  100%
  );
}

/* Card content */
.card-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.card-name {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 1px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.4);
}

/* ============================================================
   HALL OF FAME
   ============================================================ */
#hof-list {
  max-width: 680px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hof-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.2s;
}

.hof-item:last-child { border-bottom: none; }

.hof-item:hover    { background: var(--surface); }
.hof-item.playing  { background: var(--accent-glow); }

.hof-num {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.05em;
}

.hof-title {
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.2s;
}

.hof-item.playing .hof-title  { color: var(--accent); }

.hof-artist {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================================
   MUSIC PLAYER (shared — both pages)
   ============================================================ */
#music-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: rgba(5, 5, 5, 0.97);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

/* Song info */
.player-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

#player-title {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-artist {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.player-controls button {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  transition: color 0.2s;
}

.player-controls button:hover { color: var(--text); }

#play-btn {
  color: var(--text);
  transform: scale(1.15);
}

.player-controls button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

#play-btn svg { width: 16px; height: 16px; }

/* Progress */
.player-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: flex-end;
}

.player-progress time {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  width: 30px;
  display: block;
}

#progress-bar {
  width: 180px;
  height: 1px;
  background: var(--border);
  position: relative;
  cursor: pointer;
}

#progress-bar:hover { height: 2px; margin-block: -0.5px; }

#progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  transition: width 0.5s linear;
}

/* Scrubber dot */
#progress-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--pct, 0) * 1%);
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

#progress-bar:hover::after { opacity: 1; }

/* ============================================================
   BAND PAGE
   ============================================================ */
.band-header {
  padding: 1.8rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}

.back-link svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.back-link:hover { color: var(--accent); }

/* Band hero section */
.band-hero {
  position: relative;
  padding: 4rem 3.5rem 3rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.band-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.12) saturate(0.4);
  transform: scale(1.15);
  z-index: 0;
  display: none;
}

.band-hero > *:not(.band-hero-bg) {
  position: relative;
  z-index: 1;
}

.band-page-name {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.band-page-meta {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.25rem;
}

.band-page-meta span {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.band-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* Accessibility badge on band page */
.access-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 1px;
}

.access-badge.access-green  { border: 1px solid var(--green);  color: var(--green);  background: rgba(74,112,85,0.1); }
.access-badge.access-orange { border: 1px solid var(--orange); color: var(--orange); background: rgba(154,97,44,0.1); }
.access-badge.access-red    { border: 1px solid var(--red);    color: var(--red);    background: rgba(122,46,46,0.1); }

/* Song list */
.songs-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 3.5rem;
}

.songs-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.songs-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.song-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.2s;
}

.song-item:last-child { border-bottom: none; }
.song-item:hover      { background: var(--surface); }
.song-item.playing    { background: var(--accent-glow); }

.song-num {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.05em;
}

.song-title {
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.2s;
}

.song-item.playing .song-title { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .main-header  { padding: 1.5rem; }
  main          { padding: 2rem 1.5rem; }
  .band-hero    { padding: 2.5rem 1.5rem 2rem; }
  .songs-container { padding: 2rem 1.5rem; }

  #bands-grid { grid-template-columns: repeat(auto-fill, 160px); }
  .band-card  { width: 160px; height: 220px; }
  .band-page-name { font-size: 1.6rem; }

  #music-player { grid-template-columns: 1fr auto; padding: 0 1.2rem; gap: 1rem; }
  .player-progress { display: none; }

  .access-legend { display: none; }
}