/* â”€â”€ Variables â”€â”€ */
:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-card: #141414;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #8a7340;
  --gold-gradient: linear-gradient(
    135deg,
    #8a7340 0%,
    #c9a962 35%,
    #f0e6c8 50%,
    #c9a962 65%,
    #8a7340 100%
  );
  --text: #e8e8e8;
  --text-muted: #888888;
  --border: rgba(201, 169, 98, 0.25);
  --border-strong: rgba(201, 169, 98, 0.5);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --player-height: 72px;
  --bg-image: url("https://pub-8c63da0c0f5a47b182630fb95e2a8cb7.r2.dev/1000033202.jpg");
  --bg-image-opacity: 0.60;
}

/* â”€â”€ Reset & Base â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-color: black;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  
  opacity: var(--bg-image-opacity);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 18%,
    rgba(0, 0, 0, 0.82) 38%,
    rgba(0, 0, 0, 0.45) 52%,
    rgba(0, 0, 0, 0.15) 68%,
    transparent 82%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 18%,
    rgba(0, 0, 0, 0.82) 38%,
    rgba(0, 0, 0, 0.45) 52%,
    rgba(0, 0, 0, 0.15) 68%,
    transparent 82%
  );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    linear-gradient(
      to right,
      #0a0a0a 0%,
      transparent 8%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.08) 0%,
      rgba(10, 10, 10, 0.35) 32%,
      rgba(10, 10, 10, 0.72) 58%,
      rgba(10, 10, 10, 0.92) 78%,
      #0a0a0a 100%
    );
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* â”€â”€ Navigation â”€â”€ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #fce881, #cba135);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.nav__links a:hover {
  color: var(--gold-light);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s ease;
}

/* â”€â”€ Master Player â”€â”€ */
.player {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--player-height);
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.player__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.player__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.player__info {
  min-width: 0;
}

.player__title {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player__time {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 2.25rem;
}

.player__progress {
  flex: 1;
  height: 3px;
  appearance: none;
  background: rgba(201, 169, 98, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.player__progress::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce881, #cba135);
  border: 1px solid var(--gold-dark);
  cursor: pointer;
}

.player__progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce881, #cba135);
  border: 1px solid var(--gold-dark);
  cursor: pointer;
}

.player__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
}

.player__volume {
  width: min(100px, 18vw);
  height: 3px;
  appearance: none;
  background: rgba(201, 169, 98, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.player__volume::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.player__volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.player__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.player__btn:hover:not(:disabled) {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}

.player__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.player__btn--play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.player__icon {
  width: 16px;
  height: 16px;
}

.player__icon--pause,
.player__icon--muted {
  display: none;
}

.player--playing .player__icon--play {
  display: none;
}

.player--playing .player__icon--pause {
  display: block;
}

.player--muted .player__icon--volume {
  display: none;
}

.player--muted .player__icon--muted {
  display: block;
}

#audio-engine {
  display: none;
}

/* â”€â”€ Hero â”€â”€ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + var(--player-height) + clamp(2rem, 5vh, 3rem)) clamp(1.5rem, 5vw, 3rem) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* â”€â”€ Library & Filters â”€â”€ */
.library {
  width: 100%;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--border);
}

.filter {
  padding: 0.5rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter:hover {
  color: var(--gold-light);
  border-color: var(--border-strong);
}

.filter--active {
  color: var(--black);
  background: linear-gradient(135deg, #fce881, #cba135);
  border-color: var(--gold);
}

/* â”€â”€ Tracklist â”€â”€ */
.tracklist {
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.tracklist__status {
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.track {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 1.5vw, 0.875rem);
  padding: 0.5rem 0.375rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.track:hover {
  background: rgba(201, 169, 98, 0.04);
}

.track--active {
  background: rgba(201, 169, 98, 0.08);
}

.track--active .track__number {
  color: var(--gold-light);
}

.track__play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.track__play svg {
  width: 14px;
  height: 14px;
}

.track:hover .track__play,
.track--active .track__play {
  opacity: 1;
}

.track__play:hover {
  color: var(--gold-light);
  transform: scale(1.08);
}

.track__number {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.track__text {
  min-width: 0;
  flex: 1;
}

.track__title {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gold-light);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.track__title:hover {
  color: #fff;
}

.track__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__line {
  position: absolute;
  bottom: 3rem;
  left: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark) 20%,
    var(--gold) 50%,
    var(--gold-dark) 80%,
    transparent
  );
}

/* â”€â”€ Buttons â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--primary {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn--primary:hover {
  color: var(--black);
  border-color: var(--gold-light);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--gold-light);
  border-color: var(--border-strong);
}

/* â”€â”€ Showcase Grid â”€â”€ */
.showcase {
  padding: 6rem clamp(1.5rem, 5vw, 3rem) 8rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.showcase__header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.showcase__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* â”€â”€ Cards â”€â”€ */
.card {
  background: var(--black-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
}

.card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
}

.card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gold-dark);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.card__placeholder svg {
  width: 48px;
  height: 48px;
}

.card:hover .card__placeholder {
  opacity: 0.8;
  color: var(--gold);
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.25s ease;
}

.card__link:hover {
  color: var(--gold-light);
}

/* â”€â”€ Footer â”€â”€ */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: calc(var(--nav-height) + var(--player-height));
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__links a:last-child {
    border-bottom: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero__line {
    bottom: 2rem;
  }

  .player__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .player {
    height: auto;
    min-height: 56px;
  }

  .player__left {
    gap: 0.375rem;
  }

  .player__info {
    flex: 1;
    min-width: 0;
  }

  .player__title {
    font-size: 0.8125rem;
  }

  .player__meta {
    font-size: 0.625rem;
  }

  .player__center {
    order: 3;
    grid-column: 1 / -1;
    gap: 0.5rem;
  }

  .player__time {
    font-size: 0.625rem;
    min-width: 2rem;
  }

  .player__right {
    justify-content: flex-start;
    gap: 0.375rem;
  }

  .player__volume {
    width: 60px;
    flex: 0;
  }

  .player__btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .track__play {
    opacity: 1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}