/* ==========================================================================
   RIDDIM — Components
   ========================================================================== */

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.btn--gold:hover { background: var(--gold-2); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--paper);
}
.btn--ghost:hover { background: var(--ink-800); border-color: var(--line-3); }

.btn--quiet { color: var(--muted); }
.btn--quiet:hover { color: var(--paper); background: var(--ink-800); }

.btn--sm { height: 38px; padding: 0 15px; font-size: 13px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.icon-btn:hover { background: var(--ink-800); color: var(--paper); }
.icon-btn[aria-pressed="true"] { color: var(--gold); }

/* Chips + badges ----------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.chip:hover { color: var(--paper); border-color: var(--line-3); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink-950);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--gold { background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); }
.badge--neutral { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line-2); }
.badge--live { background: rgba(124, 197, 155, 0.1); color: var(--success); border: 1px solid rgba(124, 197, 155, 0.25); }

/* Cover art ---------------------------------------------------------------- */
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  container-type: inline-size;
  background:
    radial-gradient(95% 95% at 16% 10%, var(--c1, #3a3a44) 0%, transparent 62%),
    radial-gradient(105% 105% at 88% 92%, var(--c2, #1a1a20) 0%, transparent 58%),
    linear-gradient(155deg, #1a1a20 0%, #0a0a0d 100%);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-radial-gradient(circle at 74% 24%, transparent 0 17px, rgba(255, 255, 255, 0.045) 17px 18px);
  opacity: 0.65;
  pointer-events: none;
}

.cover__mark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 8%;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

@supports (font-size: 1cqw) {
  .cover__mark { font-size: 30cqw; }
}

.cover__label {
  position: absolute;
  z-index: 1;
  left: 8%;
  bottom: 7%;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@supports (font-size: 1cqw) {
  .cover__label { font-size: clamp(7px, 1.5cqw, 11px); }
}

.cover--round { border-radius: var(--r-full); }
.cover--gold { --c1: #8a6216; --c2: #3b2c0a; }
.cover--violet { --c1: #5b3d8a; --c2: #2a1c45; }
.cover--teal { --c1: #1e6b66; --c2: #0f3331; }
.cover--rust { --c1: #8c4a2a; --c2: #3f1f12; }
.cover--indigo { --c1: #334a8f; --c2: #1a2447; }
.cover--green { --c1: #3f7a4a; --c2: #1c3a23; }
.cover--crimson { --c1: #8f3434; --c2: #411616; }
.cover--blue { --c1: #2f6f9f; --c2: #153448; }
.cover--orange { --c1: #a35a1e; --c2: #47260c; }
.cover--magenta { --c1: #8a3568; --c2: #3f1730; }
.cover--slate { --c1: #4a5568; --c2: #232a36; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  padding-bottom: 2px;
  overflow: hidden;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav a:hover { color: var(--paper); background: var(--ink-800); }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 13px;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.search-trigger:hover { color: var(--paper); border-color: var(--line-2); background: var(--ink-800); }
.search-trigger kbd {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
}

.menu-btn { display: none; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  background: var(--ink-950);
  padding: 20px var(--gutter) 40px;
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 34px);
  letter-spacing: -0.01em;
}
.mobile-menu__cta { display: grid; gap: 10px; margin-top: 28px; }

/* Cards -------------------------------------------------------------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-900);
}

.release-card { position: relative; min-width: 0; }
.release-card__art {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.release-card__art .cover { transition: transform var(--dur-3) var(--ease); }
.release-card:hover .release-card__art .cover { transform: scale(1.035); }

.release-card__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
}
.release-card:hover .release-card__play,
.release-card:focus-within .release-card__play { opacity: 1; transform: none; }
.release-card__play:hover { background: var(--gold-2); }

.release-card__type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.release-card__body { padding-top: 12px; }
.release-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-card__title a:hover { color: var(--gold); }
.release-card__meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-card { text-align: center; }
.artist-card .cover { border-radius: 50%; margin-inline: auto; }
.artist-card__name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}
.artist-card__meta { color: var(--muted); font-size: 12.5px; }

/* Section rails + grids ---------------------------------------------------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }

.newsletter { margin-top: 24px; }
.newsletter label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.newsletter__row {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--ink-900);
}
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 14px;
  outline: none;
}
.newsletter input::placeholder { color: var(--muted-2); }
.newsletter .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.newsletter__note { margin-top: 8px; color: var(--muted-2); font-size: 11px; }

.footer-col h2,
.footer-col h3 {
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color var(--dur-1) var(--ease); }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.footer-legal { display: inline-flex; gap: 2px; }
.footer-legal a { transition: color var(--dur-1) var(--ease); }
.footer-legal a:hover { color: var(--paper); }
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.footer-social a:hover { background: var(--ink-800); color: var(--paper); }

.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; border-radius: inherit; }
