/* =========================================================
   ZARNDER — Shared stylesheet (mobile-first)
   Each page sets data-brand="music|gaming|fitness" on <body>
   to swap accent colors and background art.
   ========================================================= */

:root {
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --text-muted: #a8a8b3;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --accent: #7c5cff;
  --accent-2: #00e0ff;
  --glow: rgba(124, 92, 255, 0.45);
}

body[data-brand="music"] {
  --accent: #7c5cff;
  --accent-2: #00e0ff;
  --glow: rgba(124, 92, 255, 0.5);
}

body[data-brand="gaming"] {
  --accent: #22c55e;
  --accent-2: #ef4444;
  --glow: rgba(34, 197, 94, 0.5);
}

body[data-brand="hub"] {
  --accent: #f5f5f7;
  --accent-2: #a8a8b3;
  --glow: rgba(255, 255, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Animated ambient background blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  transition: background 0.6s ease;
}

body::before {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  animation: drift1 22s ease-in-out infinite alternate;
}

body::after {
  bottom: -30vmax;
  right: -20vmax;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
  animation: drift2 26s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vmax, 4vmax) scale(1.08); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4vmax, -6vmax) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

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

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

/* =========================================================
   Layout
   ========================================================= */

.page {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100dvh;
}

/* =========================================================
   Brand switcher (cross-brand nav — shown on every page)
   ========================================================= */

.brand-switcher {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  align-self: center;
  width: 100%;
  max-width: 360px;
}

.brand-switcher a {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.brand-switcher a:hover {
  color: var(--text);
  background: var(--surface);
}

.brand-switcher a.active {
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px var(--glow);
}

/* =========================================================
   Profile header
   ========================================================= */

.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.avatar {
  --size: 104px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06),
    0 12px 40px var(--glow);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.05em;
  color: #0a0a0f;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 50%;
  display: block;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.brand-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: -4px 0 0;
}

.bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 42ch;
}

/* =========================================================
   Social icon row
   ========================================================= */

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  color: var(--accent-2);
}

.socials svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   Section headings
   ========================================================= */

.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section h2 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 4px 4px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   Link cards
   ========================================================= */

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.link > * {
  position: relative;
  z-index: 1;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 10px 30px var(--glow);
  outline: none;
  color: #0a0a0f;
}

.link:hover::before,
.link:focus-visible::before {
  opacity: 1;
}

.link .icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--icon-bg, rgba(255, 255, 255, 0.08));
  color: var(--icon-color, var(--accent-2));
  transition: filter 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.link:hover .icon,
.link:focus-visible .icon {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.link .icon svg {
  width: 20px;
  height: 20px;
}

.link .text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.link .label {
  font-size: 15px;
  line-height: 1.25;
}

.link .sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link:hover .sub,
.link:focus-visible .sub {
  color: rgba(10, 10, 15, 0.7);
}

.link .chev {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.link:hover .chev,
.link:focus-visible .chev {
  transform: translateX(3px);
  opacity: 1;
}

/* =========================================================
   Download category buttons + modal
   ========================================================= */

.dl-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dl-category {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dl-category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.dl-category > * {
  position: relative;
  z-index: 1;
}

.dl-category:hover,
.dl-category:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 10px 30px var(--glow);
  outline: none;
  color: #0a0a0f;
}

.dl-category:hover::before,
.dl-category:focus-visible::before {
  opacity: 1;
}

.dl-category-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.dl-category:hover .dl-category-icon,
.dl-category:focus-visible .dl-category-icon {
  filter: brightness(1.1);
  transform: scale(1.04);
  background: rgba(10, 10, 15, 0.18);
  color: #0a0a0f;
}

.dl-category-icon svg {
  width: 20px;
  height: 20px;
}

.dl-category-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dl-category-label {
  font-size: 15px;
  line-height: 1.25;
}

.dl-category-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-category:hover .dl-category-sub,
.dl-category:focus-visible .dl-category-sub {
  color: rgba(10, 10, 15, 0.7);
}

.dl-category .chev {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dl-category:hover .chev,
.dl-category:focus-visible .chev {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 400px) {
  .dl-categories {
    grid-template-columns: 1fr;
  }

  .dl-category-sub {
    white-space: normal;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #12121a, #0b0b12);
  border: 1px solid var(--border);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateY(18px);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}

.modal[data-open="true"] .modal-card {
  transform: translateY(0);
}

.modal-card::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.modal-header > div {
  min-width: 0;
  flex: 1;
}

.modal-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-title {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-close {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--surface-hover);
  color: var(--accent-2);
  outline: none;
  transform: scale(1.05);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 2px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
}

/* Inside the modal the link cards should wrap their subtitle
   instead of truncating — there's plenty of vertical space. */
.modal .link {
  padding: 12px 14px;
  align-items: flex-start;
}

.modal .link .icon {
  margin-top: 1px;
}

.modal .link .text {
  gap: 3px;
}

.modal .link .label {
  font-size: 14.5px;
  line-height: 1.3;
  white-space: normal;
}

.modal .link .sub {
  font-size: 12px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

.modal .link .chev {
  margin-top: 10px;
  flex-shrink: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal {
    place-items: center;
    padding: 24px;
  }

  .modal-card {
    border-radius: 22px;
    padding: 22px 22px 22px;
    max-height: min(80dvh, 640px);
    transform: translateY(8px) scale(0.98);
  }

  .modal[data-open="true"] .modal-card {
    transform: translateY(0) scale(1);
  }

  .modal-card::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-card {
    transition: none;
  }
}

/* =========================================================
   Featured release card
   Per-card accent colors via --r1 / --r2 on the anchor.
   ========================================================= */
.featured {
  --r1: var(--accent);
  --r2: var(--accent-2);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.55), rgba(10, 10, 15, 0.7)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

/* Soft color halo pulled from the album art colors */
.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in oklab, var(--r1) 55%, transparent) 0%, transparent 55%),
    radial-gradient(90% 130% at 100% 100%, color-mix(in oklab, var(--r2) 40%, transparent) 0%, transparent 60%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Thin gradient hairline border on top of everything */
.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      color-mix(in oklab, var(--r1) 60%, transparent) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      color-mix(in oklab, var(--r2) 55%, transparent) 100%);
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

/* Blurred album-art backdrop for extra depth */
.featured-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.featured-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) saturate(1.4);
  transform: scale(1.4);
  display: block;
}

@media (hover: hover) {
  .featured:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 26px 60px -22px color-mix(in oklab, var(--r2) 55%, transparent),
      0 12px 30px rgba(0, 0, 0, 0.45);
  }

  .featured:hover::before { opacity: 0.85; }
  .featured:hover::after { opacity: 1; }
  .featured:hover .featured-glow { opacity: 0.55; transform: scale(1.02); }

  .featured:hover .featured-art {
    transform: scale(1.04) rotate(-0.5deg);
  }

  .featured:hover .featured-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .featured:hover .featured-cta {
    background: linear-gradient(135deg, var(--r1), var(--r2));
    color: #0a0a0f;
    box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--r2) 70%, transparent);
  }

  .featured:hover .featured-cta svg:last-child {
    transform: translateX(3px);
  }
}

.featured:focus-visible {
  outline: 2px solid var(--r2);
  outline-offset: 3px;
}

/* Album art */
.featured-art {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--r1), var(--r2));
  display: grid;
  place-items: center;
  color: #0a0a0f;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 40px -12px color-mix(in oklab, var(--r2) 70%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
}

/* Subtle glossy highlight sweep across the cover */
.featured-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 35%,
      rgba(255, 255, 255, 0) 65%,
      rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

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

/* Play-icon reveal on hover */
.featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0a0a0f;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}

.featured-play svg {
  margin-left: 2px;
}

/* Text body */
.featured-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: color-mix(in oklab, var(--r1) 80%, #fff);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.featured-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--r1);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--r1) 70%, transparent);
  animation: featuredPulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes featuredPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--r1) 70%, transparent); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.featured-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* Pill-style CTA */
.featured-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    gap 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.featured-cta svg:first-child {
  opacity: 0.95;
}

.featured-cta svg:last-child {
  transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .featured,
  .featured-art,
  .featured-glow,
  .featured-pulse,
  .featured-play,
  .featured-cta,
  .featured-cta svg:last-child { transition: none; animation: none; }
}

/* =========================================================
   Auto-sliding release carousel
   ========================================================= */

.featured-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 2px;
  margin: -2px;
  /* Hide scrollbar but keep scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.featured-track::-webkit-scrollbar {
  display: none;
}

.featured-carousel .featured {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  /* Allow the card to catch pointer events without hijacking
     the whole carousel's gesture handling. */
  text-decoration: none;
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 2px 0 0;
}

.featured-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.featured-dot:hover {
  background: rgba(255, 255, 255, 0.32);
}

.featured-dot[aria-selected="true"] {
  width: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 10px var(--glow);
}

.featured-dot .sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Hub (index.html) brand cards
   ========================================================= */

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hub-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      var(--card-accent, var(--accent)),
      var(--card-accent-2, var(--accent-2)));
  opacity: 0.14;
  transition: opacity 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 18px 40px var(--card-glow, var(--glow));
}

.hub-card:hover::before {
  opacity: 0.28;
}

.hub-card[data-brand="music"] {
  --card-accent: #7c5cff;
  --card-accent-2: #00e0ff;
  --card-glow: rgba(124, 92, 255, 0.45);
}

.hub-card[data-brand="gaming"] {
  --card-accent: #22c55e;
  --card-accent-2: #ef4444;
  --card-glow: rgba(34, 197, 94, 0.45);
}

.hub-card .hub-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,
      var(--card-accent), var(--card-accent-2));
  color: #0a0a0f;
  box-shadow: 0 8px 24px var(--card-glow);
}

.hub-card .hub-icon svg {
  width: 26px;
  height: 26px;
}

.hub-card .hub-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.hub-card .hub-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.hub-card .hub-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.hub-card .chev {
  position: relative;
  z-index: 1;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hub-card:hover .chev {
  transform: translateX(4px);
  opacity: 1;
}

/* =========================================================
   Track funnel pages (releases/*.html)
   ========================================================= */

.track-backdrop {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.3) brightness(0.55);
  transform: scale(1.2);
  opacity: 0.7;
  pointer-events: none;
}

body:has(.track-backdrop)::before,
body:has(.track-backdrop)::after {
  opacity: 0.22;
}

.track-page {
  gap: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: var(--text);
  background: var(--surface-hover);
  transform: translateX(-2px);
}

.track-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.track-cover {
  width: 220px;
  height: 220px;
  max-width: 72vw;
  max-height: 72vw;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px var(--glow);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
  margin-bottom: 10px;
}

.track-cover:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.track-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.track-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.track-artist {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.track-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 36ch;
}

/* Call-to-action pill on the right of each link */
.cta-pill {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0f;
  box-shadow: 0 4px 14px var(--glow);
  transition: transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.link:hover .cta-pill,
.link:focus-visible .cta-pill {
  background: #0a0a0f;
  color: #fff;
  box-shadow: none;
  transform: translateX(2px);
}

/* Share row */
.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.share-btn:hover {
  background: var(--surface-hover);
  border-color: transparent;
  transform: translateY(-1px);
}

.share-btn span {
  white-space: nowrap;
}

.copy-hint {
  min-height: 18px;
  margin: 6px 4px 0;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
}

@media (min-width: 640px) {
  .track-title {
    font-size: 40px;
  }

  .track-cover {
    width: 260px;
    height: 260px;
  }
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-enquiries {
  font-size: 13px;
  color: var(--text);
}

.footer-enquiries a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.footer-enquiries a:hover,
.footer-enquiries a:focus-visible {
  text-decoration: underline;
}

footer a {
  color: var(--accent-2);
  font-weight: 600;
}

/* =========================================================
   Breakpoints — small upgrades for larger screens
   ========================================================= */

@media (min-width: 640px) {
  .page {
    padding: 28px 24px 60px;
    gap: 26px;
  }

  .brand-title {
    font-size: 32px;
  }

  .avatar {
    --size: 120px;
    font-size: 40px;
  }

  .bio {
    font-size: 16px;
  }

  /* Featured release card — tablet & up */
  .featured {
    padding: 22px 24px;
    gap: 22px;
    border-radius: 24px;
  }

  .featured-art {
    width: 140px;
    height: 140px;
    border-radius: 18px;
  }

  .featured-play {
    width: 52px;
    height: 52px;
  }

  .featured-play svg {
    width: 22px;
    height: 22px;
  }

  .featured-kicker {
    font-size: 11px;
    letter-spacing: 0.3em;
  }

  .featured-title {
    font-size: 24px;
    letter-spacing: -0.015em;
  }

  .featured-meta {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .featured-cta {
    font-size: 13px;
    padding: 9px 14px 9px 12px;
  }

  .featured-dot {
    width: 26px;
    height: 7px;
  }

  .featured-dot[aria-selected="true"] {
    width: 40px;
  }
}

@media (min-width: 900px) {
  .page {
    max-width: 620px;
  }

  /* Featured release card — desktop */
  .featured {
    padding: 26px 30px;
    gap: 28px;
  }

  .featured-art {
    width: 164px;
    height: 164px;
    border-radius: 20px;
  }

  .featured-title {
    font-size: 28px;
  }

  .featured-cta {
    font-size: 14px;
  }
}

/* =========================================================
   Fade-in on load
   ========================================================= */

.page > *:not(.modal) {
  animation: fadeUp 0.55s ease both;
}

.page > *:nth-child(1) { animation-delay: 0.02s; }
.page > *:nth-child(2) { animation-delay: 0.08s; }
.page > *:nth-child(3) { animation-delay: 0.14s; }
.page > *:nth-child(4) { animation-delay: 0.2s; }
.page > *:nth-child(5) { animation-delay: 0.26s; }
.page > *:nth-child(6) { animation-delay: 0.32s; }
.page > *:nth-child(7) { animation-delay: 0.38s; }
.page > *:nth-child(8) { animation-delay: 0.44s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page > * {
    animation: none;
  }
}

/* =========================================================
   Pre-save modal — STAY (or any future single)
   ========================================================= */

.presave-modal {
  --pr1: #c9a8ff;
  --pr2: #7c5cff;
  place-items: center;
  padding: 16px;
}

.presave-card {
  max-width: 420px;
  width: 100%;
  padding: 32px 22px 22px;
  gap: 0;
  background: linear-gradient(180deg, #16131e 0%, #0b0a12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  max-height: min(92dvh, 760px);
}

.presave-modal[data-open="true"] .presave-card {
  transform: translateY(0) scale(1);
}

@media (min-width: 640px) {
  .presave-modal {
    padding: 24px;
  }

  .presave-card {
    padding: 36px 28px 26px;
  }
}

/* Blurred album-art halo behind the entire card */
.presave-art-glow {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  overflow: hidden;
}

.presave-art-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.3);
  transform: scale(1.2);
  display: block;
}

.presave-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
      rgba(11, 10, 18, 0) 0%,
      rgba(11, 10, 18, 0.55) 45%,
      rgba(11, 10, 18, 0.95) 100%);
  pointer-events: none;
}

/* All real content sits above the halo */
.presave-card > *:not(.presave-art-glow):not(.modal-backdrop) {
  position: relative;
  z-index: 1;
}

/* Hide the iOS sheet handle on the presave card */
.presave-card::before {
  display: none;
}

.presave-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.presave-close:hover,
.presave-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: none;
  transform: scale(1.05);
}

.presave-form-state,
.presave-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* When success is rendered, replace the form state entirely. */
.presave-card[data-submitted="true"] .presave-form-state {
  display: none;
}

/* Header: kicker → cover → title → artist */
.presave-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.presave-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--pr1) 70%, #fff);
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(201, 168, 255, 0.28);
  border-radius: 999px;
}

.presave-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pr1);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--pr1) 70%, transparent);
  animation: featuredPulse 2s ease-out infinite;
  flex-shrink: 0;
}

.presave-art {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.presave-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 50px -16px color-mix(in oklab, var(--pr2) 70%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

.presave-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

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

.presave-tag {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.5;
}

/* Form */
.presave-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.presave-field {
  position: relative;
  width: 100%;
}

.presave-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.presave-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 38px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.presave-input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.presave-input:focus-visible {
  border-color: color-mix(in oklab, var(--pr2) 60%, transparent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pr2) 22%, transparent);
}

.presave-field:focus-within .presave-field-icon {
  color: color-mix(in oklab, var(--pr1) 60%, #fff);
}

.presave-input.invalid {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.presave-submit {
  position: relative;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--pr1), var(--pr2));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 26px -10px color-mix(in oklab, var(--pr2) 75%, transparent);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.presave-submit:hover,
.presave-submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  outline: none;
  box-shadow: 0 16px 32px -10px color-mix(in oklab, var(--pr2) 85%, transparent);
}

.presave-submit:active {
  transform: translateY(0);
}

.presave-submit[disabled] {
  cursor: progress;
  filter: brightness(0.85);
}

.presave-submit-arrow {
  transition: transform 0.2s ease;
}

.presave-submit:hover .presave-submit-arrow,
.presave-submit:focus-visible .presave-submit-arrow {
  transform: translateX(3px);
}

.presave-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: #0a0a0f;
  animation: presaveSpin 0.7s linear infinite;
}

.presave-submit[data-loading="true"] .presave-submit-label,
.presave-submit[data-loading="true"] .presave-submit-arrow {
  display: none;
}

.presave-submit[data-loading="true"] .presave-submit-spinner {
  display: inline-block;
}

@keyframes presaveSpin {
  to { transform: rotate(360deg); }
}

.presave-status {
  min-height: 16px;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.presave-status[data-state="error"] {
  color: #ff8a8a;
}

.presave-dismiss {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.presave-dismiss:hover,
.presave-dismiss:focus-visible {
  color: var(--text);
  outline: none;
}

/* ---- Success state ---- */

/* The hidden attribute must always win */
.presave-success-state[hidden] {
  display: none !important;
}

.presave-success-state {
  display: flex;
  padding: 6px 4px 0;
  gap: 10px;
  animation: fadeUp 0.4s ease both;
}

.presave-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--pr1), var(--pr2));
  box-shadow: 0 12px 26px -10px color-mix(in oklab, var(--pr2) 75%, transparent);
  margin-bottom: 4px;
}

.presave-success-icon svg {
  width: 26px;
  height: 26px;
}

.presave-success-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}

.presave-success-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.5;
}

.presave-success-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.presave-success-link:hover,
.presave-success-link:focus-visible {
  background: linear-gradient(135deg, var(--pr1), var(--pr2));
  color: #0a0a0f;
  border-color: transparent;
  transform: translateY(-1px);
  outline: none;
}

@media (min-width: 640px) {
  .presave-art {
    width: 144px;
    height: 144px;
  }

  .presave-title {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .presave-pulse,
  .presave-submit-spinner,
  .presave-success-state {
    animation: none;
  }

  .presave-submit,
  .presave-close,
  .presave-success-link,
  .presave-submit-arrow {
    transition: none;
  }
}
