/* ============================================================
   CGR Creative — Audio Lab
   style.css  (Redesigned June 2026)
   Black & metallic gold premium dark theme
   Now-Playing Focused Player with Spinning CGR Logo
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --gold:        #c9a962;
  --gold-bright: #fce881;
  --gold-mid:    #cba135;
  --gold-dark:   #8a6512;
  --gold-glow:   rgba(201, 169, 98, 0.4);
  --bg:          #0a0a0a;
  --bg-soft:     #111111;
  --bg-panel:    #141414;
  --text:        #e8e8e8;
  --text-muted:  #9e9e9e;
  --line:        rgba(201, 169, 98, 0.25);
  --nav-height:  72px;
  --player-height: 90px;
  --gap-sm: 0.5rem;
  --gap-md: 1rem;
  --radius-lg: 18px;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 98, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13,13,13,0.85) 0%, rgba(10,10,10,0.92) 100%),
    url("background.png") center center / cover no-repeat fixed;
}

/* Disable heavy background image on small screens for performance */
@media (max-width: 600px) {
  body {
    background: linear-gradient(180deg, rgba(13,13,13,0.85) 0%, rgba(10,10,10,0.92) 100%);
  }
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  gap: 1.5rem;
}

.nav__logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--gold);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 0;
  background: none;
  border: none;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 600px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 0;
  }
  .nav__links--open {
    display: flex;
  }
  .nav__toggle {
    display: flex;
  }
}

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-height) + 3rem) clamp(1rem, 5vw, 3rem) 3rem;
}

.hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  opacity: 0.8;
}

.hero__title {
  text-transform: capitalize;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 480px;
}

.hero__tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--gold-bright);
  line-height: 1.4;
  margin: 0 0 2rem;
  max-width: 480px;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__logo {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 55vh;
  flex-shrink: 0;
  opacity: 0.97;
}

.hero__line {
  margin-top: 3rem;
  border: none;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .hero {
    padding-top: calc(var(--nav-height) + 1.5rem) !important;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero__eyebrow { margin-bottom: 0; }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero__content { display: flex; flex-direction: column; gap: 1.5rem; }
  .hero__title { margin-bottom: 0; }
  .hero__subtitle { margin-bottom: 0; }
  .hero__inner .controls-column { display: flex; width: 100%; align-items: center; }
  .hero__inner .featured-badge { width: 100%; justify-content: center; margin-top: 0; }
  .hero__inner .spotify-btn { display: inline-flex; width: 100%; justify-content: center; }
  .library-header .filters-row { display: none; }
  .library-header { justify-content: center; }
  .buttons-row { justify-content: center; }
}

@media (min-width: 601px) {
  .hero {
    max-width: 1440px;
    margin: 0 auto;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }
}

/* ── Controls column ── */
.controls-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
}

.buttons-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1DB954;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(29, 185, 84, 0.45);
  border-radius: 50px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.spotify-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.spotify-btn:hover { background: rgba(29, 185, 84, 0.12); border-color: rgba(29, 185, 84, 0.75); color: #1fda61; }

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(201, 169, 98, 0.5);
  border-radius: 50px;
  cursor: default;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.featured-badge svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.featured-badge span { color: #e8d5a3; }

@media (max-width: 600px) {
  .hero__inner .spotify-btn,
  .hero__inner .featured-badge { padding: 0.4rem 1rem; font-size: 0.65rem; gap: 0.35rem; }
  .hero__inner .featured-badge { white-space: normal; text-align: center; line-height: 1.3; }
}

/* ── Library / filters ── */
.library { margin-top: 2rem; }

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--line);
}

.filters-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter {
  padding: 0.4rem 0.9rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter:hover { color: var(--gold); border-color: rgba(201, 169, 98, 0.5); }
.filter--active { color: #0a0a0a; background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); border-color: var(--gold); }

/* ── Buttons ── */
.btn-shuffle, .btn-random, .btn-add-track {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.4);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.btn-shuffle svg, .btn-random svg, .btn-add-track svg { width: 12px; height: 12px; flex-shrink: 0; }
.btn-shuffle:hover, .btn-random:hover, .btn-add-track:hover { color: #0a0a0a; background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); border-color: var(--gold); }
.btn-shuffle--active { color: #0a0a0a; background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); border-color: var(--gold); }

/* ── Tracklist ── */
.tracklist {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: calc(var(--player-height) + 0.5rem);
}
.tracklist__status { color: var(--text-muted); font-size: 0.875rem; padding: 2rem 0; text-align: center; }

.track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}
.track:hover { background: rgba(201, 169, 98, 0.06); border-color: rgba(201, 169, 98, 0.15); }
.track--active { background: rgba(201, 169, 98, 0.1); border-color: rgba(201, 169, 98, 0.3); }

.track__play {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 28px; height: 28px; padding: 0;
  background: none; border: 1px solid rgba(201, 169, 98, 0.3); color: var(--gold);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.track__play svg { width: 12px; height: 12px; }
.track__play:hover { background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); border-color: var(--gold); color: #0a0a0a; }

.track__number { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; color: var(--text-muted); min-width: 1.75rem; flex-shrink: 0; }

.track__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }

.track__title {
  font-size: 0.875rem; font-weight: 400; color: var(--text);
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s;
}
.track__title:hover { color: var(--gold-bright); }

.track__meta { font-size: 0.6875rem; font-weight: 300; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track__delete {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 32px; height: 32px; padding: 0;
  border: 1px solid rgba(201, 169, 98, 0.2); background: rgba(10, 10, 10, 0.4);
  color: var(--gold); cursor: pointer; opacity: 1;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s, background 0.2s; z-index: 10;
}
.track__delete svg { width: 14px; height: 14px; }
.track:hover .track__delete { opacity: 1; border-color: rgba(201, 169, 98, 0.5); }
.track__delete:hover { color: var(--gold-bright); background: rgba(201, 112, 112, 0.15); border-color: #c97070; }

/* ============================================================
   PLAYER — shared controls (desktop bar + hidden master sync)
   ============================================================ */
@keyframes cgrSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(203,161,53,0.3), 0 0 40px rgba(203,161,53,0.15), 0 0 60px rgba(203,161,53,0.05); }
  50%       { box-shadow: 0 0 30px rgba(252,232,129,0.5), 0 0 60px rgba(203,161,53,0.25), 0 0 90px rgba(203,161,53,0.1); }
}
@keyframes discGlow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.player__disc-wrap { position: relative; width: 40px; height: 40px; flex-shrink: 0; margin-bottom: 0; }
.player__disc-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-bright) 0deg, var(--gold-mid) 60deg, var(--gold-dark) 120deg, var(--gold-mid) 180deg, var(--gold-bright) 240deg, var(--gold-mid) 300deg, var(--gold-bright) 360deg);
  opacity: 0.7; animation: discGlow 3s ease-in-out infinite;
}
.player--playing .player__disc-ring { opacity: 1; animation: goldPulse 2s ease-in-out infinite; }
.player__disc-inner {
  position: absolute; inset: 0; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  box-shadow: 0 0 10px rgba(203,161,53,0.4), 0 0 18px rgba(203,161,53,0.2);
}
.player--playing .player__disc-inner { box-shadow: 0 0 20px rgba(252,232,129,0.6), 0 0 50px rgba(203,161,53,0.3), 0 0 80px rgba(203,161,53,0.15); }
.player__disc-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; animation: cgrSpin 20s linear infinite; animation-play-state: paused; }
.player--playing .player__disc-img { animation-play-state: running; }

.player__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 0 0 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.02em; }
.player__meta { font-size: 0.65rem; font-weight: 300; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.04em; }

.player__progress-wrap { display: flex; align-items: center; gap: 0.5rem; width: 100%; margin: 0; }
.player__time { font-size: 0.6875rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; min-width: 2.5rem; text-align: center; }
.player__progress { flex: 1; height: 4px; appearance: none; border-radius: 999px; background: rgba(201,169,98,0.15); outline: none; cursor: pointer; }
.player__progress::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(201,169,98,0.15); }
.player__progress::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); box-shadow: 0 0 12px rgba(252,232,129,0.7); border: 2px solid var(--bg); cursor: pointer; }
.player__progress::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(201,169,98,0.15); }
.player__progress::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--bg); border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); box-shadow: 0 0 12px rgba(252,232,129,0.7); }
.player__progress:disabled { opacity: 0.4; cursor: default; }

.player__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-shrink: 0; }
.player__btn { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; background: none; border: none; color: var(--text-muted); flex-shrink: 0; transition: color 0.2s, transform 0.15s; }
.player__btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.player__btn:hover { color: var(--gold); transform: scale(1.1); }
.player__btn:disabled { opacity: 0.35; pointer-events: none; }
.player__btn--play { width: 36px; height: 36px; border: 2px solid rgba(201,169,98,0.5); border-radius: 50%; color: var(--gold); background: rgba(201,169,98,0.08); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s; }
.player__btn--play svg { width: 12px; height: 12px; }
.player__btn--play:hover { background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid)); border-color: var(--gold); color: #0a0a0a; transform: scale(1.05); box-shadow: 0 0 14px rgba(201,169,98,0.4); }
.player__icon--pause { display: none; }
.player--playing .player__icon--play  { display: none; }
.player--playing .player__icon--pause { display: block; }

.player__volume-wrap { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.player__btn--mute { width: 32px; height: 32px; }
.player__btn--mute svg { width: 16px; height: 16px; }
.player__icon--muted { display: none; }
.player--muted .player__icon--volume { display: none; }
.player--muted .player__icon--muted  { display: block; }
.player__volume { width: 70px; height: 4px; appearance: none; border-radius: 999px; background: rgba(201,169,98,0.15); outline: none; cursor: pointer; }
.player__volume::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(201,169,98,0.15); }
.player__volume::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(201,169,98,0.5); }
.player__volume::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(201,169,98,0.15); }
.player__volume::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(201,169,98,0.5); }

/* Hidden by default; desktop sticky bar shown by default */
.player {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  min-height: var(--player-height);
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid rgba(201, 169, 98, 0.25);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.player__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 1rem;
}

.footer { padding: 2rem clamp(1rem,5vw,3rem); padding-bottom: calc(var(--player-height) + 0.25rem); border-top: 1px solid var(--line); text-align: center; font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

.toast { position: fixed; bottom: calc(1.5rem + var(--player-height)); right: 1.5rem; z-index: 300; padding: 0.75rem 1.25rem; background: var(--bg-panel); border: 1px solid rgba(201,169,98,0.5); color: #e8d5a3; font-size: 0.8125rem; letter-spacing: 0.05em; box-shadow: 0 8px 24px rgba(0,0,0,0.5); opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.toast--visible { opacity: 1; transform: translateY(0); }

.nav__platforms { display: flex; align-items: center; gap: 1rem; margin-right: 1rem; }
.nav__platforms a { transition: transform 0.2s ease, opacity 0.2s ease; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.nav__platforms svg { width: 22px; height: 22px; }
.nav__platforms a:nth-child(1)       { color: #FFFFFF; }
.nav__platforms a:nth-child(1):hover { color: #FA243C; transform: scale(1.15); }
.nav__platforms a:nth-child(2)       { color: #FF0000; }
.nav__platforms a:nth-child(2):hover { color: #CC0000; transform: scale(1.15); }
.nav__platforms a:nth-child(3)       { color: #C6003B; }
.nav__platforms a:nth-child(3):hover { color: #9E002F; transform: scale(1.15); }
@media (max-width: 480px) { .nav__platforms { gap: 0.75rem; margin-right: 0.5rem; } .nav__platforms svg { width: 18px; height: 18px; } }

/* Consolidated desktop-only layout adjustments moved into the main desktop media query below */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Compact single-row player on phones: slim progress strip across the top */
@media (max-width: 600px) {
  :root { --player-height: 64px; }
  .player {
    display: flex;
    align-items: center;
    padding: 0.4rem 1rem 0.55rem;
  }
  .player__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: auto;
    width: 100%;
    padding: 0;
  }
  .player__disc-wrap { width: 34px; height: 34px; }
  .player__info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding-left: 0;
  }
  .player__progress-wrap {
    position: absolute;
    top: -0.4rem;
    left: -1rem;
    right: -1rem;
    width: auto;
    max-width: none;
  }
  .player__time { display: none; }
  .player__progress { height: 3px; }
  .player__controls { gap: 0.4rem; }
  .player__volume-wrap { display: none; }
}

@media (min-width: 601px) {
  .hero {
    max-width: 1440px;
    margin: 0 auto;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 1fr);
    align-items: center;
    gap: 2.5rem;
  }

  .controls-column {
    align-items: flex-start;
  }

  .library {
    max-width: 1440px;
    margin: 0 auto 2rem;
    padding: 0 clamp(1rem, 5vw, 3rem);
  }

  .library-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .filters-row {
    width: 100%;
  }

  .tracklist {
    padding-bottom: calc(var(--player-height) + 1rem);
  }

  .track {
    padding: 1rem 1rem;
    border-radius: var(--radius-lg);
  }

  .tracklist__status {
    padding: 2rem 0;
  }

  .btn-shuffle,
  .btn-random,
  .btn-add-track,
  .spotify-btn,
  .featured-badge {
    border-radius: 999px;
  }

  .player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--player-height);
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .player__inner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 480px) minmax(140px, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    height: 100%;
    padding: 0 clamp(0.75rem, 3vw, 2rem);
    gap: 0.15rem 1rem;
    position: relative;
  }

  .player__disc-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: start;
    align-self: center;
    z-index: 1;
  }

  .player__info {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: start;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    max-width: 280px;
    padding-left: calc(40px + 0.75rem);
    text-align: left;
  }

  .player__controls {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: end;
  }

  .player__progress-wrap {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    width: 100%;
    max-width: 400px;
  }

  .player__volume-wrap {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .player__disc-img,
  .player__disc-ring,
  .player__disc-inner {
    animation: none !important;
    transition: none !important;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Modal, Forms, Business Card, Focus & Toast
   (merged from inline.css)
   ============================================================ */

/* Focus styles for keyboard users */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(201, 169, 98, 0.35);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
.player__btn:focus-visible,
.track__play:focus-visible,
.track__title:focus-visible,
.nav__toggle:focus-visible,
.modal__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
}

/* ── Modal ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop--open {
  display: flex;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-soft);
  border: 1px solid rgba(201, 169, 98, 0.5);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  padding: 2rem 2rem 1.75rem;
  position: relative;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1.5rem;
}
.modal__close {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}
.modal__close:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 98, 0.6);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 1.125rem;
}
.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.45rem;
}
.form-input,
.form-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(201, 169, 98, 0.25);
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a962' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.form-input:focus,
.form-select:focus {
  border-color: rgba(201, 169, 98, 0.65);
}
.form-input::placeholder {
  color: #444;
}
.form-hint {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: #555;
  letter-spacing: 0.03em;
}
.form-error {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: #c97070;
  letter-spacing: 0.03em;
  display: none;
}
.form-error--visible {
  display: block;
}
.modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-modal-submit {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-modal-submit:hover {
  opacity: 0.88;
}
.btn-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-modal-cancel {
  padding: 0.75rem 1.25rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.25);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-modal-cancel:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 98, 0.5);
}

/* ── Business Card / Contact ── */
.business-card {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(201,169,98,0.07));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.business-card__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.business-card__details {
  flex: 1;
  min-width: 220px;
}
.business-card__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.business-card__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.05;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.business-card__role {
  margin: 0.85rem 0 1.5rem;
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.6;
}
.business-card__info {
  display: grid;
  gap: 0.9rem;
}
.business-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(201, 169, 98, 0.14);
}
.business-card__item span {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.business-card__value {
  font: inherit;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: right;
  width: 100%;
  min-width: 0;
}
.business-card__value:hover,
.business-card__value:focus {
  color: var(--gold);
  outline: none;
  text-decoration: underline;
}
.business-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}
.business-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.business-card__link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .business-card__inner {
    flex-direction: column;
  }
  .business-card__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .business-card__value {
    text-align: left;
  }
  .business-card__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Reduced motion for modal */
@media (prefers-reduced-motion: reduce) {
  .modal {
    animation: none !important;
  }
}

/* ============================================================
   Mobile BROWSE / NOW tab experience (phones only)
   Big circular now-playing view with spinning gold CGR logo.
   ============================================================ */
.mobile-tabs,
.now-view {
  display: none;
}

@media (max-width: 600px) {
  :root { --tabs-height: 64px; }

  /* The bottom tab bar replaces the slim player bar on phones */
  .player { display: none; }

  .mobile-tabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    min-height: var(--tabs-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid rgba(201, 169, 98, 0.25);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.45rem 0 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .mobile-tab svg { width: 24px; height: 24px; }

  .mobile-tab__disc {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 169, 98, 0.35);
    transition: border-color 0.25s, box-shadow 0.25s;
  }

  .mobile-tab__disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: cgrSpin 12s linear infinite;
    animation-play-state: paused;
  }

  .mobile-tab--active { color: var(--gold); }
  .mobile-tab--active .mobile-tab__disc {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(201, 169, 98, 0.55);
  }
  .mobile-tab--playing .mobile-tab__disc img { animation-play-state: running; }

  /* NOW view takes over the page; library + contact hide away */
  body[data-mobile-view="now"] .hero,
  body[data-mobile-view="now"] .business-card,
  body[data-mobile-view="now"] .footer { display: none; }

  body[data-mobile-view="now"] .now-view { display: flex; }

  .now-view {
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    padding: calc(var(--nav-height) + 1rem) 1.5rem calc(var(--tabs-height) + 1.5rem);
    text-align: center;
    background: linear-gradient(180deg, rgba(13,13,13,0.85) 0%, rgba(10,10,10,0.92) 100%);
  }

  .now-view__disc-wrap {
    position: relative;
    width: min(56vw, 250px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin-bottom: 1.25rem;
  }

  .now-view__disc-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold-bright) 0deg, var(--gold-mid) 60deg, var(--gold-dark) 120deg, var(--gold-mid) 180deg, var(--gold-bright) 240deg, var(--gold-mid) 300deg, var(--gold-bright) 360deg);
    opacity: 0.75;
    animation: discGlow 3s ease-in-out infinite;
  }

  .now-view--playing .now-view__disc-ring {
    opacity: 1;
    animation: goldPulse 2s ease-in-out infinite;
  }

  .now-view__disc-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
    box-shadow: 0 0 30px rgba(203, 161, 53, 0.45), 0 0 80px rgba(203, 161, 53, 0.2);
  }

  .now-view__disc-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    animation: cgrSpin 24s linear infinite;
    animation-play-state: paused;
  }

  .now-view--playing .now-view__disc-img { animation-play-state: running; }

  .now-view__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0 0 0.25rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .now-view__meta {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    min-height: 1.25em;
  }

  .now-view__progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.5rem;
  }

  .now-view__time {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 2.75rem;
    font-variant-numeric: tabular-nums;
  }
  .now-view__time--current { text-align: left; }
  .now-view__time--total { text-align: right; }

  .now-view__progress {
    flex: 1;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: rgba(201, 169, 98, 0.18);
    outline: none;
    cursor: pointer;
  }
  .now-view__progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(201, 169, 98, 0.18);
  }
  .now-view__progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
    border: 2px solid #0a0a0a;
    box-shadow: 0 0 12px rgba(252, 232, 129, 0.7);
    cursor: pointer;
  }
  .now-view__progress::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(201, 169, 98, 0.18);
  }
  .now-view__progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #0a0a0a;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
    box-shadow: 0 0 12px rgba(252, 232, 129, 0.7);
    cursor: pointer;
  }
  .now-view__progress:disabled { opacity: 0.4; cursor: default; }

  .now-view__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .now-view__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
  }
  .now-view__btn:hover { color: var(--gold); }
  .now-view__btn:active { transform: scale(0.94); }
  .now-view__btn:disabled { opacity: 0.35; pointer-events: none; }
  .now-view__btn svg { display: block; }

  .now-view__btn--play {
    width: 78px;
    height: 78px;
    border: 2px solid rgba(201, 169, 98, 0.55);
    border-radius: 50%;
    color: var(--gold);
    background: rgba(201, 169, 98, 0.07);
    box-shadow: 0 0 24px rgba(201, 169, 98, 0.25);
  }
  .now-view__btn--play:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
    color: #0a0a0a;
    border-color: var(--gold);
  }

  .now-view__icon--pause { display: none; }
  .now-view--playing .now-view__icon--play { display: none; }
  .now-view--playing .now-view__icon--pause { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .now-view__disc-img,
  .mobile-tab__disc img {
    animation: none !important;
  }
}
