/* =========================================================
   GENICOTIK MUSIC — shared design system
   Premium · cinematic · dark · soft gold
   ========================================================= */

:root {
  --bg-deep: #070708;
  --bg: #0b0b0d;
  --bg-elevated: #121214;
  --bg-card: #151518;
  --bg-soft: #1a1a1e;
  --border: rgba(245, 236, 220, 0.08);
  --border-strong: rgba(212, 175, 120, 0.28);
  --text: #f3efe6;
  --text-soft: #c8c2b4;
  --text-muted: #8f897c;
  --gold: #d4af78;
  --gold-soft: #e6d3a8;
  --champagne: #f0e6d0;
  --gold-glow: rgba(212, 175, 120, 0.18);
  --danger: #c96b6b;
  --ok: #7db89a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --player-h: 88px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.gm-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 520px at 12% -10%, rgba(212, 175, 120, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 480px at 90% 8%, rgba(240, 230, 208, 0.04), transparent 55%),
    linear-gradient(180deg, #09090b 0%, var(--bg) 40%, #080809 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

body.gm-body.no-player-pad {
  padding-bottom: 0;
}

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

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.gm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.gm-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Layout ---- */
.gm-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.gm-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

.gm-site-header .gm-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.gm-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-brand strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--champagne);
}

.gm-brand span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.22em;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
}

.gm-nav a {
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid transparent;
}

.gm-nav a[aria-current="page"],
.gm-nav a:hover {
  color: var(--champagne);
  border-bottom-color: rgba(212, 175, 120, 0.45);
}

.gm-nav a.is-soon {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* ---- Hero album ---- */
.gm-hero {
  padding: 3rem 0 2.25rem;
}

.gm-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.gm-cover-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.gm-cover {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #1a1712 0%, #0d0d0f 55%, #16130f 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px var(--gold-glow);
  position: relative;
}

.gm-cover img,
.gm-cover picture,
.gm-cover picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gm-cover picture {
  position: absolute;
  inset: 0;
}

.gm-cover--back {
  max-width: min(100%, 520px);
  width: 100%;
  margin-inline: auto;
}

.gm-back-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.gm-back-wrap[hidden] {
  display: none !important;
}

/* Section dos : titre + image centrés */
#album-back-section .gm-section-head {
  justify-content: center;
  text-align: center;
}

#album-back-section .gm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gm-cover.is-clickable {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gm-cover.is-clickable:hover,
.gm-cover.is-clickable:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(212, 175, 120, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 0 70px var(--gold-glow);
}

.gm-cover.is-clickable:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 30px 80px rgba(0, 0, 0, 0.55);
}

button.gm-cover-hit {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 18px;
  text-align: left;
  color: inherit;
  font: inherit;
}

.gm-back-wrap .gm-cover-hit {
  width: min(100%, 520px);
  margin-inline: auto;
}

.gm-cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(212, 175, 120, 0.12), transparent 45%),
    linear-gradient(160deg, #1c1812, #0c0c0e 70%);
}

.gm-cover-fallback .gm-glyph {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 120, 0.35);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.gm-cover-fallback p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Status badge (coming soon) */
.gm-status-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(212, 175, 120, 0.4);
  border-radius: 999px;
  background: rgba(212, 175, 120, 0.08);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.gm-status-badge[hidden] {
  display: none !important;
}

body.gm-status-coming_soon .gm-hero-copy .gm-actions .gm-btn.is-soon {
  opacity: 0.85;
  pointer-events: none;
}

/* Teaser tracklist */
.gm-tracklist--teaser .gm-track {
  cursor: default;
  grid-template-columns: 56px 2.4rem minmax(0, 1fr) auto;
}

.gm-tracklist--teaser .gm-track:hover {
  background: transparent;
}

.gm-track.is-teaser {
  opacity: 0.88;
}

.gm-track-lock {
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.7;
  padding-inline: 0.35rem;
}

.gm-track-thumb.is-teaser img {
  filter: grayscale(0.25) brightness(0.85);
}

.gm-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--champagne);
}

.gm-artist {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}

.gm-lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.gm-lead p {
  margin: 0 0 0.35rem;
}

.gm-lead p:last-child {
  margin-bottom: 0;
}

/* ---- Buttons / links external ---- */
.gm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.gm-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--champagne);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  text-decoration: none;
}

.gm-btn:hover:not([aria-disabled="true"]):not(:disabled) {
  background: rgba(212, 175, 120, 0.1);
  border-color: rgba(212, 175, 120, 0.55);
  color: #fff;
}

.gm-btn-primary {
  background: linear-gradient(180deg, rgba(212, 175, 120, 0.22), rgba(212, 175, 120, 0.1));
  border-color: rgba(212, 175, 120, 0.5);
}

.gm-btn[aria-disabled="true"],
.gm-btn:disabled,
.gm-btn.is-soon {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.gm-btn .gm-soon-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ---- Sections ---- */
.gm-section {
  padding: 1.25rem 0 2.5rem;
}

.gm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gm-section-title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.gm-section-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---- Tracklist ---- */
.gm-tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 16, 18, 0.72);
  overflow: hidden;
}

.gm-track {
  display: grid;
  grid-template-columns: 3rem 1fr auto auto;
  gap: 0.75rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease, transform 0.15s ease;
}

.gm-tracklist--covers .gm-track {
  grid-template-columns: 56px 2.4rem minmax(0, 1fr) auto auto;
  gap: 0.65rem 0.75rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  user-select: none;
}

.gm-track:last-child {
  border-bottom: 0;
}

.gm-track.is-playable:hover,
.gm-track:focus-within {
  background: rgba(212, 175, 120, 0.07);
}

.gm-track.is-playable:active {
  background: rgba(212, 175, 120, 0.1);
}

.gm-track.is-active {
  background: linear-gradient(90deg, rgba(212, 175, 120, 0.14), transparent 75%);
  box-shadow: inset 3px 0 0 var(--gold);
}

.gm-track.is-deep-linked {
  background: linear-gradient(90deg, rgba(212, 175, 120, 0.18), transparent 82%);
  box-shadow: inset 3px 0 0 var(--gold);
}

.gm-play-prompt {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 3, 4, 0.78);
  backdrop-filter: blur(12px);
}

.gm-play-prompt-card {
  width: min(100%, 460px);
  padding: clamp(1.4rem, 5vw, 2.25rem);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 120, 0.13), transparent 45%),
    #111113;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68), 0 0 60px var(--gold-glow);
  text-align: center;
}

.gm-play-prompt-card .gm-eyebrow { margin-bottom: 0.65rem; }
.gm-play-prompt-card h2 {
  margin: 0;
  color: var(--champagne);
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  line-height: 1.05;
}
.gm-play-prompt-album {
  margin: 0.65rem 0 1.4rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gm-play-prompt-card .gm-actions { justify-content: center; }

@media (max-width: 430px) {
  .gm-play-prompt-card .gm-actions { flex-direction: column; }
  .gm-play-prompt-card .gm-btn { width: 100%; }
}

.gm-track.is-active .gm-track-title {
  color: var(--champagne);
}

.gm-track.is-disabled {
  cursor: default;
  opacity: 0.72;
}

/* Track cover thumb */
.gm-track-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 175, 120, 0.15), transparent 55%),
    #141416;
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.gm-track-thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  z-index: 1;
}

.gm-track-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.2s ease;
}

.gm-track:hover .gm-track-thumb-btn img,
.gm-track.is-active .gm-track-thumb-btn img {
  transform: scale(1.04);
}

.gm-track-thumb-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.gm-track-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--champagne);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

.gm-track-thumb-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.gm-track.is-playable:hover .gm-track-thumb-play,
.gm-track.is-active .gm-track-thumb-play {
  opacity: 1;
}

.gm-track.is-active .gm-track-thumb {
  border-color: rgba(212, 175, 120, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 120, 0.2), 0 8px 22px rgba(0, 0, 0, 0.4);
}

.gm-track-zoom {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 120, 0.35);
  background: rgba(8, 8, 10, 0.75);
  color: var(--champagne);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.gm-track:hover .gm-track-zoom,
.gm-track:focus-within .gm-track-zoom,
.gm-track-zoom:focus-visible {
  opacity: 1;
}

.gm-track-zoom:hover {
  background: rgba(212, 175, 120, 0.25);
}

@media (hover: none) {
  .gm-track-zoom {
    opacity: 0.85;
  }
}

/* Lightbox */
.gm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.gm-lightbox[hidden] {
  display: none !important;
}

.gm-lightbox-inner {
  position: relative;
  max-width: min(92vw, 720px);
  width: 100%;
  text-align: center;
}

.gm-lightbox-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: #0a0a0c;
}

.gm-lightbox-cap {
  margin: 0.85rem 0 0;
  color: var(--champagne);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.gm-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(20, 20, 22, 0.95);
  color: var(--champagne);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.gm-lightbox-close:hover {
  background: rgba(212, 175, 120, 0.15);
}

body.gm-lb-open {
  overflow: hidden;
}

.gm-track-num {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.gm-track.is-active .gm-track-num {
  color: var(--gold);
}

.gm-track-main {
  min-width: 0;
}

.gm-track-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-track-variants {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.28rem;
  flex-wrap: wrap;
}

.gm-chip {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gm-chip:hover:not(:disabled) {
  color: var(--gold-soft);
}

.gm-chip.is-selected {
  color: var(--gold);
  border-color: rgba(212, 175, 120, 0.35);
  background: rgba(212, 175, 120, 0.08);
}

.gm-chip:disabled,
.gm-chip.is-missing {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.gm-track-duration {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 3.2rem;
  text-align: right;
}

.gm-track-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(212, 175, 120, 0.06);
  color: var(--champagne);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  padding: 0;
}

.gm-track-play:hover:not(:disabled) {
  background: rgba(212, 175, 120, 0.16);
  border-color: rgba(212, 175, 120, 0.55);
}

.gm-track-play:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gm-track-play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.gm-track.is-active .gm-track-play {
  background: rgba(212, 175, 120, 0.2);
  border-color: rgba(212, 175, 120, 0.6);
}

/* ---- About ---- */
.gm-about {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(212, 175, 120, 0.07), transparent 55%),
    rgba(14, 14, 16, 0.85);
  padding: 1.75rem 1.5rem;
}

.gm-about h2 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gm-about p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  max-width: 62ch;
}

.gm-signature {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.gm-signature span {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
}

/* ---- Discography index ---- */
.gm-featured {
  padding: 1rem 0 1.5rem;
}

.gm-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 136px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.gm-featured-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 36px var(--gold-glow);
}

.gm-featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.gm-featured-play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding-left: 3px;
  border: 1px solid rgba(240, 230, 208, 0.55); border-radius: 50%;
  background: rgba(7, 7, 8, 0.72); color: var(--champagne); backdrop-filter: blur(8px);
}
.gm-featured-copy .gm-eyebrow { margin-bottom: 0.35rem; }
.gm-featured-copy h1 { margin: 0; color: var(--champagne); font-size: clamp(1.55rem, 7vw, 3.4rem); line-height: 1; letter-spacing: 0.02em; }
.gm-featured-album { margin: 0.45rem 0 0.7rem; color: var(--gold-soft); font-size: clamp(0.72rem, 2.7vw, 1rem); letter-spacing: 0.12em; text-transform: uppercase; }
.gm-featured-text { display: none; margin: 0 0 1.15rem; color: var(--text-soft); }
.gm-featured .gm-actions { gap: 0.45rem; }
.gm-featured .gm-btn { min-height: 38px; padding: 0.55rem 0.75rem; font-size: 0.68rem; }
.gm-featured-all { align-self: center; padding: 0.45rem 0.25rem; color: var(--text-muted); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.gm-index-discography { border-top: 1px solid var(--border); padding-top: 1.75rem; }

@media (min-width: 680px) {
  .gm-featured { padding: 2.25rem 0 2.75rem; }
  .gm-featured-grid { grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.5rem); }
  .gm-featured-text { display: block; }
  .gm-featured .gm-btn { min-height: 42px; padding: 0.72rem 1rem; font-size: 0.78rem; }
  .gm-featured-all { font-size: 0.7rem; }
}

.gm-index-hero {
  padding: 3.5rem 0 2rem;
}

.gm-index-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--champagne);
}

.gm-index-hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.gm-release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  padding: 0.5rem 0 3rem;
}

.gm-release-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 16, 18, 0.8);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gm-release-card:hover {
  border-color: rgba(212, 175, 120, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

.gm-release-cover {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 175, 120, 0.12), transparent 50%),
    linear-gradient(160deg, #1a1712, #0c0c0e);
  position: relative;
  overflow: hidden;
}

.gm-release-cover img,
.gm-release-cover picture,
.gm-release-cover picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gm-release-cover picture {
  position: absolute;
  inset: 0;
}

.gm-release-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.gm-release-meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.gm-release-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--champagne);
  line-height: 1.25;
}

.gm-release-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gm-release-cta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Coming soon discography card */
.gm-release-card.is-coming-soon {
  border-color: rgba(212, 175, 120, 0.12);
  background: rgba(10, 10, 12, 0.92);
}

.gm-release-card.is-coming-soon:hover {
  border-color: rgba(212, 175, 120, 0.28);
}

.gm-release-card.is-coming-soon .gm-release-cover {
  filter: saturate(0.75) brightness(0.72);
}

.gm-release-card.is-coming-soon:hover .gm-release-cover {
  filter: saturate(0.85) brightness(0.8);
}

.gm-release-card.is-coming-soon .gm-release-title {
  color: var(--text-soft);
}

.gm-release-badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 120, 0.45);
  background: rgba(8, 8, 10, 0.82);
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.gm-release-cover {
  position: relative;
}

/* ---- Act accents (very subtle) ---- */
body.gm-act-2 {
  --gold: #c9a06a;
  --gold-soft: #dcc29a;
  --gold-glow: rgba(180, 130, 70, 0.16);
  --border-strong: rgba(201, 160, 106, 0.26);
}

body.gm-act-3 {
  --gold: #8fa8a8;
  --gold-soft: #b4c4c2;
  --champagne: #d8e0de;
  --gold-glow: rgba(90, 140, 145, 0.12);
  --border-strong: rgba(120, 150, 150, 0.28);
}

body.gm-act-3 .gm-status-badge {
  border-color: rgba(120, 160, 160, 0.4);
  background: rgba(70, 110, 115, 0.1);
  color: #a8c4c2;
}

.gm-release-card[data-act="3"].is-coming-soon .gm-release-badge,
.gm-release-card.is-coming-soon .gm-release-badge {
  /* keep default gold badge unless card has act class */
}

.gm-empty,
.gm-error {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text-soft);
  background: rgba(16, 16, 18, 0.5);
}

.gm-error {
  border-color: rgba(201, 107, 107, 0.4);
  color: #e8c4c4;
}

/* ---- Footer ---- */
.gm-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.gm-footer .gm-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.gm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.gm-footer-nav a {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-footer-nav a:hover {
  color: var(--gold-soft);
}

/* ---- Credits · Colophon ---- */
.gm-section-credits {
  padding-top: 0.5rem;
}

.gm-credits-head {
  margin-bottom: 0.85rem;
}

.gm-credits-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(212, 175, 120, 0.05), transparent 55%),
    rgba(14, 14, 16, 0.88);
  padding: 1.5rem 1.35rem 1.35rem;
}

.gm-credits-short {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gm-credits-row {
  margin: 0;
  padding: 0;
  border: 0;
}

.gm-credits-name {
  margin: 0 0 0.28rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
}

.gm-credits-roles {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 62ch;
}

.gm-credits-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.gm-credits-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  user-select: none;
  width: fit-content;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}

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

.gm-credits-summary::before {
  content: '+ ';
  color: var(--gold-soft);
  font-weight: 400;
}

.gm-credits-details[open] .gm-credits-summary::before {
  content: '− ';
}

.gm-credits-summary:hover {
  color: var(--champagne);
}

.gm-credits-full {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.gm-credits-block h3 {
  margin: 0 0 0.4rem;
}

.gm-credits-role-list {
  margin: 0;
  padding: 0 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.gm-credits-role-list li {
  margin: 0.15rem 0;
}

.gm-credits-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.85;
  max-width: 68ch;
  font-style: italic;
}

.gm-credits-colophon {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 52ch;
  font-style: italic;
}

@media (max-width: 640px) {
  .gm-credits-card {
    padding: 1.15rem 1rem 1.1rem;
  }

  .gm-credits-name {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .gm-credits-roles {
    font-size: 0.8rem;
  }
}

/* ---- Fixed player ---- */
.gm-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-strong);
  min-height: var(--player-h);
  padding: 0.55rem 0 calc(0.55rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.gm-player[hidden] {
  display: none !important;
}

.gm-player .gm-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(120px, 0.8fr);
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.gm-player-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gm-player-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #151515;
  border: 1px solid var(--border);
}

.gm-player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-player-text {
  min-width: 0;
}

.gm-player-track {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--champagne);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-player-sub {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-player-controls {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.gm-player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.gm-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gm-icon-btn:hover:not(:disabled) {
  background: rgba(212, 175, 120, 0.1);
  border-color: rgba(212, 175, 120, 0.25);
  color: var(--champagne);
}

.gm-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gm-icon-btn.gm-play-main {
  width: 46px;
  height: 46px;
  border-color: rgba(212, 175, 120, 0.4);
  background: rgba(212, 175, 120, 0.12);
  color: var(--champagne);
}

.gm-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gm-progress-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.5rem;
  align-items: center;
}

.gm-time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gm-time:last-child {
  text-align: right;
}

.gm-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 236, 220, 0.12);
  outline: none;
  cursor: pointer;
}

.gm-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  box-shadow: 0 0 0 3px rgba(212, 175, 120, 0.15);
}

.gm-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
}

.gm-player-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.gm-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
  max-width: 140px;
}

.gm-volume .gm-range {
  flex: 1;
}

.gm-viz {
  width: 72px;
  height: 28px;
  opacity: 0.85;
}

.gm-viz[hidden] {
  display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .gm-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .gm-lead {
    margin-inline: auto;
  }

  .gm-actions {
    justify-content: center;
  }

  .gm-player .gm-wrap {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .gm-player-extra {
    justify-content: space-between;
  }

  .gm-volume {
    max-width: none;
  }

  .gm-player-meta {
    justify-content: center;
  }

  .gm-player-text {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .gm-site-header .gm-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.75rem;
    min-height: 0;
  }

  .gm-nav {
    width: 100%;
    gap: 0.35rem 0.85rem;
  }

  .gm-tracklist--covers .gm-track {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb title play"
      "thumb meta play";
    row-gap: 0.25rem;
    column-gap: 0.7rem;
  }

  .gm-tracklist--covers .gm-track-thumb { grid-area: thumb; width: 52px; height: 52px; }
  .gm-tracklist--covers .gm-track-num { display: none; }
  .gm-tracklist--covers .gm-track-main { grid-area: title; }
  .gm-tracklist--covers .gm-track-duration {
    grid-area: meta;
    text-align: left;
    min-width: 0;
    font-size: 0.72rem;
  }
  .gm-tracklist--covers .gm-track-play { grid-area: play; align-self: center; }

  /* Put duration next to chips on mobile: restructure via main */
  .gm-tracklist--covers .gm-track-main .gm-track-variants {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .gm-track {
    grid-template-columns: 2.2rem 1fr auto;
  }

  .gm-title {
    font-size: 1.65rem;
  }

  .gm-about {
    padding: 1.25rem 1rem;
  }

  .gm-btn {
    min-height: 44px;
  }

  .gm-track-thumb-play {
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
