:root {
  --bg: #0a0a0c;
  --text: #ffffff;
  --muted: #8a8a94;
  --border: rgba(255, 255, 255, 0.08);

  --blue-card: linear-gradient(145deg, #0f1a2e 0%, #0a1220 55%, #060a12 100%);
  --blue-glow: rgba(59, 130, 246, 0.18);
  --blue-accent: #3b82f6;

  --yellow-card: linear-gradient(145deg, #2a2410 0%, #1a1608 55%, #100e06 100%);
  --yellow-glow: rgba(234, 179, 8, 0.18);
  --yellow-accent: #eab308;

  --soon-bg: rgba(255, 255, 255, 0.06);
  --soon-text: #c4c4cc;

  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 40% at 80% 100%, rgba(234, 179, 8, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 28px 18px calc(32px + var(--safe-bottom));
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero__art {
  width: min(220px, 62vw);
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.4rem, 14vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

/* Album cards */
.albums {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.album {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.album--blue {
  background: var(--blue-card);
  box-shadow: 0 0 0 1px var(--blue-glow), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.album--yellow {
  background: var(--yellow-card);
  box-shadow: 0 0 0 1px var(--yellow-glow), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.album--soon {
  opacity: 0.92;
}

.album__inner {
  padding: 16px;
}

.album__head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.album__cover {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

.album__info {
  min-width: 0;
}

.album__title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.album__subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Coming soon badge */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soon-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soon-text);
}

.soon-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.soon-date {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.soon-date strong {
  color: var(--text);
  font-weight: 600;
}

/* Streaming links */
.streaming {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.streaming--disabled {
  pointer-events: none;
  opacity: 0.35;
  filter: grayscale(0.6);
}

.stream-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 4px 2px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.stream-link:active {
  transform: scale(0.94);
}

.stream-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.stream-link__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.stream-link__icon svg {
  width: 22px;
  height: 22px;
}

.stream-link--deezer .stream-link__icon svg,
.stream-link--amazon .stream-link__icon svg {
  width: 24px;
  height: 24px;
}

.stream-link__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Platform colors */
.stream-link--spotify .stream-link__icon {
  background: #1ed760;
  color: #000;
}
.stream-link--apple .stream-link__icon {
  background: #fa2d48;
  color: #fff;
}
.stream-link--youtube .stream-link__icon {
  background: #ff0000;
  color: #fff;
}
.stream-link--deezer .stream-link__icon {
  background: #a238ff;
  color: #fff;
}
.stream-link--amazon .stream-link__icon {
  background: #46c3d0;
  color: #0c1024;
}

/* Tracklist toggle */
.tracklist-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tracklist-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tracklist-toggle__chevron {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.album.is-open .tracklist-toggle__chevron {
  transform: rotate(180deg);
}

/* Tracklist */
.tracklist {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.album.is-open .tracklist {
  grid-template-rows: 1fr;
}

.tracklist__inner {
  overflow: hidden;
}

.tracklist__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.track {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.track:last-child {
  border-bottom: none;
}

.track__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
}

.track__meta {
  min-width: 0;
}

.track__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.track__artists {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track__duration {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Footer */
.footer {
  margin-top: 32px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  opacity: 0.8;
}

/* Slightly wider on tablets — still mobile-first */
@media (min-width: 480px) {
  .page {
    padding-inline: 24px;
  }

  .album__head {
    grid-template-columns: 96px 1fr;
  }

  .album__cover {
    width: 96px;
    height: 96px;
  }
}
