/* ===========================================================
   WorldSong — global styles (rebuild)
   =========================================================== */

:root {
  /* palette — canonical, from COLOR_REFERENCE.html */
  --bg-deepest: #061616;
  --bg-base: #0A1E1E;
  --bg-card: #0C2424;
  --bg-card-elevated: #112C2C;

  --teal-primary: #2DD4BF;
  --teal-bright: #5EEAD4;
  --teal-soft: #99F6E4;
  --teal-deep: #14B8A6;

  --border-subtle: rgba(45, 212, 191, 0.12);
  --border-default: rgba(45, 212, 191, 0.22);
  --border-strong: rgba(45, 212, 191, 0.4);

  --text-primary: #FFFFFF;
  --text-secondary: #A0B5B5;
  --text-muted: #6B8080;
  --text-on-teal: #061616;

  /* Play buttons, every one on the site, and the player's bars. One disc, the
     same everywhere (the client's ask). It was gold, then a silky white; CJ,
     2026-10-13: "change it back to the original colour it was not the gold not
     the white" - the site's own teal, dark ink on it. */
  --play-disc: var(--teal-primary);
  --play-disc-hi: var(--teal-bright);
  --play-ink: var(--text-on-teal);
  --play-sheen: none;
  --play-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.65);
  --play-shadow-hover: 0 10px 26px -8px rgba(0, 0, 0, 0.7);
  --play-glow: var(--teal-glow);

  --bg-page-gradient: linear-gradient(180deg, #061616 0%, #0A1E1E 100%);

  /* alpha helper for box-shadow / drop-shadow glows
     (translucent rendering of --teal-primary, not a new hue) */
  --teal-glow: rgba(45, 212, 191, 0.32);

  /* type */
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;

  /* layout */
  --container: 1320px;
  --pad-x: clamp(16px, 4vw, 56px);
  --section-gap: clamp(40px, 6vw, 88px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --header-h: 78px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(94, 234, 212, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(45, 212, 191, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-deepest), var(--bg-base));
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--teal-primary); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--f-display); font-weight: 500; margin: 0; line-height: 1.1;
  letter-spacing: -0.01em;
}
p { margin: 0; }

/* anchor scroll offset for each section */
#hero, #browse, #library, #artists, #composers, #studios, #placements, #about, #contact {
  scroll-margin-top: var(--header-h);
}

/* container & section spacing */
.nav-container,
.hero-content,
.browse-section,
.prod-library,
.artists-section,
.three-col,
.spotlight-pair,
.songs-section,
.videos-section,
.sp-section,
.studios-section,
.features-strip,
.footer-top,
.footer-bottom { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* section heading row */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(15px, 1.15vw, 19px);
  letter-spacing: 0.18em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.view-all {
  color: var(--teal-primary); font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
}
.view-all:hover { border-color: var(--teal-primary); }

/* generic buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-ghost { color: var(--text-primary); border-color: rgba(255,255,255,0.5); background: transparent; }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-primary); background: rgba(255,255,255,0.06); }
.btn-teal { background: linear-gradient(180deg, var(--teal-bright), var(--teal-primary)); color: var(--text-on-teal); box-shadow: 0 6px 24px -8px var(--teal-glow); }
.btn-teal:hover { color: var(--text-on-teal); transform: translateY(-1px); box-shadow: 0 10px 32px -8px var(--teal-glow); }
.btn-lg { padding: 14px 24px; font-size: 13px; border-radius: 12px; }

/* ========================= HEADER ========================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,22,22,0.55) 0%, rgba(6,22,22,0.15) 70%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.site-header.scrolled {
  background: rgba(6, 22, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 32px -16px rgba(0,0,0,0.6);
}
.site-header.scrolled::before { opacity: 0; }
.nav-container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img {
  display: block;
  height: 64px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(45, 212, 191, 0.18));
}
.footer-brand .logo-img { height: 56px; }

.nav-main { flex: 1; min-width: 0; }
.nav-main ul { display: flex; align-items: center; justify-content: safe center; gap: clamp(10px, 1.4vw, 22px); flex-wrap: nowrap; }
.nav-link {
  position: relative;
  font-family: var(--f-body); font-weight: 500;
  font-size: clamp(11px, 0.85vw, 12.5px);
  letter-spacing: 0.14em;
  color: var(--text-secondary); text-transform: uppercase;
  padding: 8px 2px; white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal-primary); border-radius: 2px;
}
.has-caret .caret { font-size: 10px; color: var(--teal-primary); margin-left: 2px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* 2026-10-02: one header on every page. Between 821 and 1100px it used to
   hide the page list and the account buttons behind a hamburger drawer; now
   it is the same header, tighter. Below 821px the phone tab bar carries the
   page list (mobile.css). */
@media (max-width: 1100px) {
  .nav-container { gap: 16px; }
  .logo-img { height: 48px; }
  .nav-main ul { gap: 12px; }
}
/* 2026-11-06: with MUSIC LIBRARY added the five page names no longer fit
   below 1024px and the centred row spilled under the logo. There the logo
   is the way home, so HOME steps out; below 960px the logo is a little
   smaller, and up to 1280px the letters sit closer. Measured clear of the
   logo and buttons from 821 to 1280, signed out and signed in. */
@media (max-width: 1280px) {
  .nav-link { letter-spacing: 0.08em; }
}
@media (max-width: 1023px) {
  .nav-main li:first-child { display: none; }
}
@media (min-width: 821px) and (max-width: 959px) {
  .logo-img { height: 40px; }
  .nav-main ul { gap: 8px; }
  .nav-link { letter-spacing: 0.04em; }
}

/* ========================= HERO ========================= */
.hero {
  position: relative; isolation: isolate;
  min-height: 460px;
  max-height: 460px;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(16px, 2vw, 36px));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
  /* 2026-11-30, the client: "the spacing is incorrect". The content box is
     centred, so an unbalanced bottom padding is what pushed the button up
     against the headline and left a hole above the divider. It now matches
     the space the top padding leaves under the header, which puts equal air
     above the headline and below the button at every desktop width. */
  padding-bottom: clamp(16px, 2vw, 36px);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background: url('images/hero-bg.jpg?v=3') center / cover no-repeat;
  filter: saturate(1.05) brightness(0.85);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,22,22,0.15) 0%, rgba(6,22,22,0.35) 60%, rgba(6,22,22,0.7) 100%),
    radial-gradient(60% 60% at 50% 45%, rgba(6,22,22,0.4), transparent 70%);
}

.hero-content { position: relative; text-align: center; max-width: 1100px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--text-primary);
  text-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.hero-br { display: none; }
.hero-sub {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(15px, 1.2vw, 19px);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* The one obvious action under the front-page headline (26/11/2026).
   Padding, not margin: sibling margins collapse, so a margin here merged
   with the headline's and the button crept back up under it. */
.hero-ctas--library { padding-top: clamp(10px, 1.6vw, 16px); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(12, 36, 36, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--text-primary);
  font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-cta:hover { color: var(--text-primary); background: rgba(45, 212, 191, 0.12); border-color: var(--teal-primary); transform: translateY(-1px); }
.hero-cta svg { color: var(--teal-primary); }

/* 2026-11-30, the client: "make it more of a button (shadow)". A solid teal
   fill from the palette, a soft drop shadow, and a target tall enough to
   press on a phone. Hover lifts it, active seats it, focus draws a visible
   ring outside the shadow. No gradients. */
.hero-cta--filled {
  min-height: 48px;
  padding: 15px 30px;
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  color: var(--text-on-teal);
  font-weight: 700; font-size: 13px;
  box-shadow:
    0 10px 30px -12px rgba(0, 0, 0, 0.75),
    0 8px 22px -10px var(--teal-glow);
}
.hero-cta--filled:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--text-on-teal);
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px -14px rgba(0, 0, 0, 0.8),
    0 12px 28px -10px var(--teal-glow);
}
.hero-cta--filled:active {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  transform: translateY(1px);
  box-shadow:
    0 4px 14px -8px rgba(0, 0, 0, 0.7),
    0 3px 10px -6px var(--teal-glow);
}
.hero-cta--filled:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}
.hero-cta--filled svg { color: var(--text-on-teal); }

.hero-divider {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--teal-primary) 18%,
    var(--teal-primary) 82%,
    transparent 100%);
  opacity: 0.6;
  filter: drop-shadow(0 0 8px var(--teal-glow));
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero { min-height: 380px; max-height: 380px; }
}
@media (max-width: 900px) {
  .hero-br { display: inline; }
  .hero-ctas .hero-cta { flex: 1 1 auto; justify-content: center; }
  /* A pair of buttons may share the row; a lone one must not become a banner.
     2026-11-30: at 820px this stretched the library button to 523px. */
  .hero-ctas--library .hero-cta { flex: 0 0 auto; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; max-height: none; padding: 60px var(--pad-x); }
}

/* ========================= BROWSE GENRE/MOOD ========================= */
.browse-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 64px; padding-bottom: 0;
}
.browse-col {
  background: rgba(12, 36, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
}
.tile-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 8px; }
.tile-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: color 0.18s ease, transform 0.15s ease;
}
.tile-cell:hover { color: var(--text-primary); transform: translateY(-2px); }
.tile-cell:hover .tile-box { border-color: var(--border-strong); background: linear-gradient(180deg, rgba(17,44,44,0.9), rgba(6,22,22,0.95)); box-shadow: 0 0 16px -4px var(--teal-glow); }
.tile-box {
  width: 100%; aspect-ratio: 1; max-width: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(12,36,36,0.9), rgba(6,22,22,0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.tile-box svg { color: var(--teal-primary); width: 22px; height: 22px; }
.tile-label {
  font-family: var(--f-body); font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.2; text-transform: uppercase;
}

@media (max-width: 1100px) {
  .browse-section { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================= PRODUCTION LIBRARY ========================= */
.prod-library {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 36px;
  margin-top: 64px;
  align-items: center;
  background: rgba(12, 36, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
}
.prod-image {
  position: relative; min-height: 220px; aspect-ratio: 16/10; border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deepest) 0%, var(--bg-card) 50%, var(--bg-deepest) 100%);
}
.prod-image .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.prod-image .slide.is-active { opacity: 1; }
/* Dark gradient overlay removed per design. */
.prod-content { display: flex; flex-direction: column; gap: 14px; padding: 0; align-self: center; min-width: 0; }
.prod-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.prod-stats { font-size: 13px; letter-spacing: 0.12em; color: var(--text-primary); font-weight: 500; }
.prod-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 460px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-primary); }
.pill svg { color: var(--teal-primary); flex-shrink: 0; }

.prod-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; align-self: center; min-width: 220px; }
.prod-tagline { font-size: 13px; color: var(--text-secondary); line-height: 1.55; text-align: right; }

@media (max-width: 1100px) {
  .prod-library { grid-template-columns: 1fr; }
  .prod-pills { grid-template-columns: 1fr 1fr; }
  .prod-side { align-items: flex-start; }
  .prod-tagline { text-align: left; }
  .prod-title { white-space: normal; }
}
@media (max-width: 600px) {
  .prod-pills { grid-template-columns: 1fr; }
}

/* ========================= ARTISTS ========================= */
.artists-section { padding-top: 64px; }
.artist-row {
  display: grid; grid-template-columns: repeat(8, minmax(0,1fr));
  gap: 14px;
}
.artist-card {
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.artist-card:hover { transform: translateY(-3px); }
.artist-thumb {
  position: relative; aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  background-size: cover; background-position: center top;
  background-repeat: no-repeat;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.5);
}
/* Dark gradient overlay removed per design — let the photo speak. */
.artist-card:hover .artist-thumb { box-shadow: 0 12px 40px -10px rgba(0,0,0,0.7); }

/* .artist-play: visuals defined in UNIFIED PLAY BUTTONS section below */
.artist-play {
  position: absolute; left: 10px; bottom: 10px;
  z-index: 1;
}

.artist-meta { padding: 0 2px; }
.artist-name {
  font-family: var(--f-body); font-weight: 600; font-size: 13.5px;
  color: var(--text-primary);
}
.artist-country { font-size: 11.5px; font-weight: 400; color: var(--text-secondary); }

@media (max-width: 1200px) {
  .artist-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .artist-card { scroll-snap-align: start; }
}
/* On touch / narrow viewports the play button overlaps the artist's face on cards
   and the card isn't clickable anyway — hide the overlay there. */
@media (max-width: 768px) {
  .artist-play { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .artist-play { display: none; }
}

/* ========================= 3-COLUMN ROW ========================= */
.three-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 28px;
  padding-top: 64px;
}
.col {
  background: rgba(12,36,36,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* Top Songs (2026-10-03). The list style agreed for My Music
   (mockups/my-music.html): rank, artwork that plays, title over artist, a
   VIDEO tag where there is one, the length; thin rules between rows. CJ: the
   old rows "just look wrong" - a thumbnail, a title and, a screen-width away,
   two big teal buttons, one of which did nothing. */
.song-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.song-row {
  display: grid;
  grid-template-columns: 32px 52px minmax(0, 1fr) 52px;
  align-items: center;
  column-gap: 16px;
  min-height: 70px;
  padding: 8px 12px 8px 4px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}
/* A song with a music video gains a column for its VIDEO tag; the rest have
   no empty one (tests/mobile.spec.mjs counts tracks against children). */
.song-row:has(> button.song-video) { grid-template-columns: 32px 52px minmax(0, 1fr) auto 52px; }
.song-row:hover { background: rgba(45, 212, 191, 0.045); }
.song-row.is-playing { background: rgba(45, 212, 191, 0.08); }
.song-row.is-coming-soon { opacity: 0.45; cursor: not-allowed; }
.song-row.is-coming-soon:hover { background: transparent; }

.song-num {
  font: 500 13px var(--f-body); letter-spacing: 0.04em; text-align: center;
  color: #849898; font-variant-numeric: tabular-nums;
}
.song-row.is-playing .song-num { color: var(--teal-primary); }

.song-art {
  position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 6px;
  overflow: hidden; cursor: pointer;
  background: var(--bg-card) center 22% / cover no-repeat;
}
.song-art:disabled { cursor: not-allowed; }
.song-art__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6, 22, 22, 0.28); color: var(--play-ink); opacity: 0; transition: opacity 0.15s ease;
}
.song-art__icon svg {
  box-sizing: content-box; width: 13px; height: 13px; padding: 7px 6px 7px 8px; border-radius: 50%;
  background: var(--play-sheen), var(--play-disc); box-shadow: var(--play-shadow);
}
.song-row:hover .song-art__icon,
.song-art:focus-visible .song-art__icon { opacity: 1; }
.song-art:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
/* Playing: the artwork carries the equaliser (script.js markNowPlaying). */
.song-art.is-playing .song-art__icon { display: none; }
.song-art .ws-eq {
  position: absolute; inset: 0; width: auto; height: auto; padding: 16px 15px;
  background: rgba(6, 22, 22, 0.55); color: var(--play-disc);
}

.song-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.song-title {
  font: 500 15px var(--f-body); letter-spacing: 0.01em; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-row.is-playing .song-title { color: var(--teal-bright); }
.song-artist { font: 400 13px var(--f-body); color: #849898; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

button.song-video {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: 4px;
  background: rgba(45, 212, 191, 0.1); color: var(--teal-bright);
  font: 700 10px var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
button.song-video svg { width: 11px; height: 11px; }
button.song-video:hover { background: rgba(45, 212, 191, 0.18); }
button.song-video:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

.song-time { font: 500 13px var(--f-body); text-align: right; color: #849898; font-variant-numeric: tabular-nums; }

/* Coming soon — sourceless tracks: visible but disabled */
.composer-item.is-coming-soon { opacity: 0.45; cursor: not-allowed; }
.composer-item.is-coming-soon:hover { background: transparent; border-color: transparent; }
.composer-item.is-coming-soon .composer-play { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.video-card.is-coming-soon { cursor: not-allowed; filter: saturate(0.5) brightness(0.7); }
.video-card.is-coming-soon:hover { transform: none; }
.video-coming-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: 999px;
  padding: 6px 14px; background: rgba(6, 22, 22, 0.7); backdrop-filter: blur(4px);
}
.video-card.is-coming-soon .video-overlay { background: linear-gradient(180deg, rgba(6,22,22,0.55), rgba(6,22,22,0.85)); }
/* Top Featured Videos */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video-card {
  position: relative; aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; isolation: isolate;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  background-size: cover; background-position: center 22%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -16px rgba(0,0,0,0.6); }
/* Dark overlay removed per design — keep the element so JS renders cleanly,
   but render nothing. */
.video-overlay { display: none; }
/* .video-play: visuals defined in UNIFIED PLAY BUTTONS section below.
   Anchored bottom-right so the artist's face stays visible. */
.video-play {
  position: absolute; right: 14px; bottom: 14px;
  z-index: 2;
}
.video-title {
  position: absolute; left: 12px; right: 68px; bottom: 10px;
  font-size: 11.5px; line-height: 1.3; color: var(--text-primary);
  font-weight: 500; z-index: 1;
  /* Keep readable without a full overlay behind it. */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 2px 6px rgba(0,0,0,0.6);
}

/* Featured Composers */
.composer-list { display: flex; flex-direction: column; gap: 14px; }
.composer-item {
  display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px;
  padding: 6px 4px;
}
.composer-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background-size: cover; background-position: center 18%;
  border: 1px solid var(--border-strong);
}
.composer-meta { min-width: 0; }
.composer-name { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--text-primary); letter-spacing: -0.01em; }
.composer-role { font-size: 11.5px; color: var(--text-secondary); margin-top: 1px; }
.composer-tags { font-size: 11.5px; color: var(--teal-primary); margin-top: 2px; }
/* .composer-play: visuals defined in UNIFIED PLAY BUTTONS section below */

@media (max-width: 1100px) {
  .three-col { grid-template-columns: 1fr; }
}

/* ========================= STUDIOS ========================= */
.studios-section { padding-top: 64px; }
.studio-row {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
}
.studio-card {
  position: relative; aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; isolation: isolate;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  background-size: cover; background-position: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.studio-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -20px rgba(0,0,0,0.7); }
/* Dark gradient overlay removed per design. */
.studio-meta {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 8px;
}
.studio-pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-primary); color: var(--text-on-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.studio-text { line-height: 1.15; }
.studio-city {
  font-family: var(--f-body); font-weight: 700; font-size: 13.5px;
  color: var(--text-primary); letter-spacing: 0.06em; text-transform: uppercase;
}
.studio-country {
  font-size: 10.5px;
  color: #000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
  /* Tight 1px white outline (8 directions) so the black text reads on any
     photo, light or dark. */
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
     0   -1px 0 #fff,
     0    1px 0 #fff,
    -1px  0   0 #fff,
     1px  0   0 #fff;
}

@media (max-width: 1100px) {
  .studio-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .studio-card { scroll-snap-align: start; }
}

/* ========================= FEATURE STRIP ========================= */
.features-strip {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 28px var(--pad-x);
  background: rgba(45,212,191,0.05);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.feature { display: flex; align-items: center; gap: 14px; color: var(--text-primary); }
.feature svg { color: var(--teal-primary); flex-shrink: 0; }
.feature-text h3 {
  font-family: var(--f-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-primary);
}
.feature-text p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

@media (max-width: 1024px) { .features-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-strip { grid-template-columns: 1fr; } }

/* ========================= FOOTER ========================= */
.site-footer {
  margin-top: 64px;
  padding-top: 48px;
  background: linear-gradient(180deg, rgba(6,22,22,0.4), rgba(6,22,22,1));
  border-top: 1px solid var(--border-subtle);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 240px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-tag { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.footer-credit { font-size: 11px; color: var(--text-muted); margin-top: 12px; letter-spacing: 0.04em; }
.footer-credit a { color: var(--text-muted); border-bottom: 1px dotted var(--text-muted); }
.footer-credit a:hover { color: var(--teal-primary); border-color: var(--teal-primary); }

.footer-col h4 {
  font-family: var(--f-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; color: var(--text-primary); margin-bottom: 14px; text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--teal-primary); }
/* A footer item whose page does not exist yet (js/ws-app.js FOOTER): there,
   in the client's words, but plainly not a link. 5.6:1 on the footer. */
.footer-soon { font-size: 13px; color: #7D9393; cursor: default; }

.footer-connect .socials { display: flex; gap: 8px; margin-bottom: 14px; }
.footer-connect .socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(45,212,191,0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.footer-connect .socials a:hover { background: rgba(45,212,191,0.18); color: var(--teal-primary); border-color: var(--border-strong); }
.contact-line { font-size: 13px; color: var(--text-primary); }
.contact-line a { color: var(--text-primary); }
.contact-line a:hover { color: var(--teal-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px var(--pad-x);
  text-align: center;
  font-size: 12px; color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ========================= REVEAL ON SCROLL ========================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========================= SECTION RHYTHM (refinement FIX 3) ========================= */
@media (max-width: 1024px) {
  .browse-section, .artists-section, .three-col, .studios-section { padding-top: 48px; }
  .prod-library, .features-strip, .site-footer { margin-top: 48px; }
}
@media (max-width: 768px) {
  .browse-section, .artists-section, .three-col, .studios-section { padding-top: 36px; }
  .prod-library, .features-strip, .site-footer { margin-top: 36px; }
}

/* ========================= LARGE DESKTOPS ========================= */
@media (min-width: 1900px) { :root { --container: 1480px; } }
@media (min-width: 2400px) {
  :root { --container: 1720px; }
  .hero-title { font-size: 96px; }
}

/* ===========================================================
   PLAY BUTTONS — the teal disc (--play-* in :root), the same on every
   page and in the player. This block owns their colour; the unified
   section below owns their shape, ripple and equaliser.
   =========================================================== */
.play-btn,
.composer-play,
.artist-play,
.spotlight__play,
.sp-card__play,
.video-play {
  background: var(--play-sheen), var(--play-disc);
  color: var(--play-ink);
  border: 0;
  box-shadow: var(--play-shadow);
  transition:
    transform 180ms cubic-bezier(0.2,0.8,0.2,1),
    background 200ms ease,
    color 180ms ease,
    border-color 200ms ease;
  cursor: pointer;
}
.play-btn { width: 32px; height: 32px; }
.composer-play { width: 34px; height: 34px; }
.artist-play  { width: 36px; height: 36px; }
.spotlight__play { width: 46px; height: 46px; }
.sp-card__play { width: 34px; height: 34px; }
.video-play   { width: 52px; height: 52px; }

.play-btn:hover,
.composer-play:hover,
.artist-play:hover,
.spotlight__play:hover,
.sp-card__play:hover,
.video-play:hover {
  background: var(--play-sheen), var(--play-disc-hi);
  color: var(--play-ink);
  box-shadow: var(--play-shadow-hover);
  transform: scale(1.06);
}
.play-btn:active,
.composer-play:active,
.artist-play:active,
.video-play:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}
/* Optical-center the play triangle — the icon is right-pointing, looks off-center otherwise */
.play-btn svg,
.composer-play svg,
.artist-play svg,
.video-play svg {
  margin-left: 2px;
}
.play-btn svg { width: 13px; height: 13px; }
.composer-play svg { width: 13px; height: 13px; }
.artist-play svg { width: 14px; height: 14px; }
.video-play svg { width: 18px; height: 18px; }

/* Disabled (coming soon) state — desaturated, no glow */
.play-btn[disabled],
.song-row.is-coming-soon .play-btn,
.composer-item.is-coming-soon .composer-play {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===========================================================
   MOBILE POLISH — phones (≤768px) and small phones (≤480px)
   Goal: a deliberate, professional read at touch sizes.
   =========================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --pad-x: 18px;
  }

  /* Mobile: keep the lighter teal band from the top extended through the
     entire page so the site doesn't read as a wall of black on a phone.
     Subtle radial highlight at the top for depth. */
  body {
    background:
      radial-gradient(900px 500px at 50% -10%, rgba(94, 234, 212, 0.06), transparent 60%),
      #1F4646;
  }

  /* HEADER — light teal band at top that fades softly at its bottom edge
     so it bleeds into the photo below. Turns solid dark when scrolled. */
  .site-header {
    background: linear-gradient(180deg,
      #1F4646 0%,
      #1F4646 55%,
      rgba(31,70,70,0.8) 80%,
      rgba(31,70,70,0.45) 100%);
  }
  .site-header::before { display: none; }
  .site-header.scrolled {
    background: rgba(6,22,22,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border-subtle);
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.6);
  }
  .logo-img { height: 48px; }
  .nav-container { gap: 12px; }

  /* HERO — full panorama banner BELOW the transparent header so the
     artist isn't ever obscured by the logo. The header stays transparent
     at the very top (showing body bg) and turns solid dark on scroll. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto; max-height: none;
    padding: 0;
    margin-top: 0;
    align-items: stretch;
    overflow: hidden;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3.27 / 1;
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Lift the photo on mobile — no text overlays it, so we don't need the darkening */
    filter: saturate(1.12) brightness(1.08) contrast(1.04);
  }
  /* Soft blend: top fades into header dark, bottom fades into content area below.
     Pseudo-elements layered ON TOP of the photo so the filter on .hero-photo
     does not affect the blend itself. */
  .hero-photo::before,
  .hero-photo::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    pointer-events: none;
    z-index: 1;
  }
  /* Top fade — blends the photo into the light teal header band above.
     Picks up from the header's bottom (which is itself fading) so the two
     gradients meet seamlessly and the bar/photo boundary disappears. */
  .hero-photo::before {
    top: 0; height: 50%;
    background: linear-gradient(180deg,
      rgba(31,70,70,0.92) 0%,
      rgba(31,70,70,0.75) 15%,
      rgba(31,70,70,0.4) 45%,
      rgba(31,70,70,0.0) 100%);
  }
  .hero-photo::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0; height: 45%;
    pointer-events: none;
    z-index: 1;
    /* Fade into the mobile page bg (#1F4646) so the hero blends seamlessly
       into the Browse section below. */
    background: linear-gradient(0deg,
      #1F4646 0%,
      rgba(31,70,70,0.55) 35%,
      rgba(31,70,70,0.0) 100%);
  }
  .hero-overlay { display: none; }
  /* 2026-10-03: the space under the headline was 126px of nothing on a phone
     (22 + 40 here, 64 on the search section). Tightened to about 50. */
  .hero-content {
    padding: 28px var(--pad-x) 20px;
    text-align: center;
    background: #1F4646;
  }
  .hero-title:last-child { margin-bottom: 0; }
  .search-section { padding-top: 32px; }
  .hero-divider { display: none; }
  .hero-title {
    /* 7.4vw, not 8vw: the longer authored line ("Ready to Sync.") measured
       355px at 8vw inside 354px of usable width at 390px, so the hero wrapped
       to three ragged lines on every common phone. 7.4vw keeps the intended
       two lines from 320px up, and the 24px floor keeps it readable there. */
    font-size: clamp(24px, 7.4vw, 38px);
    line-height: 1.05;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
  }
  /* The <br class="hero-br"> below already forces the intended break, so nowrap
     only ever prevented a line from wrapping when it genuinely did not fit. At
     360px the second line measured 328px inside 324px of usable width and the
     hero clipped it (overflow-x: hidden on .hero). Let it wrap instead. */
  .hero-title-line { display: inline-block; }
  .hero-br { display: inline; }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 26px;
    max-width: 320px; margin-left: auto; margin-right: auto;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-cta {
    padding: 13px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    gap: 8px;
    justify-content: center;
    width: 100%;
    flex: none;
  }
  .hero-cta svg { width: 16px; height: 16px; }
  /* One button, so it does not sit in the left half of the old two-column pair.
     2026-11-30: it also sits a little lower under the headline ("move down a
     little for mobile") and keeps a real button's height and padding. */
  .hero-ctas.hero-ctas--library {
    grid-template-columns: minmax(0, 1fr);
    max-width: 320px;
    margin: 0 auto;
    padding-top: 14px;
  }
  .hero-ctas.hero-ctas--library .hero-cta--filled {
    min-height: 50px;
    padding: 15px 16px;
    font-size: 12.5px;
    letter-spacing: 0.07em;
  }

  /* SECTION TITLES — bump for confident read */
  .section-title {
    font-size: 14.5px;
    letter-spacing: 0.13em;
    line-height: 1.2;
    min-width: 0;
  }
  .section-head {
    margin-bottom: 14px;
    gap: 12px;
    align-items: baseline;
  }
  .view-all { font-size: 12px; flex-shrink: 0; white-space: nowrap; }

  /* BROWSE TILES */
  .browse-section { gap: 18px; padding-top: 32px; }
  .browse-col {
    padding: 16px 12px;
    border-radius: 16px;
    /* Lighter panel on the mobile teal bg — matches the production library. */
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
  }
  .tile-grid { gap: 10px 6px; }
  .tile-box {
    max-width: 52px;
    border-radius: 12px;
    /* Replace the dark vertical gradient with a soft lift so tiles sit
       above the lighter panel instead of cutting black holes into it. */
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .tile-cell:hover .tile-box {
    background: rgba(45, 212, 191, 0.18);
    border-color: var(--border-strong);
  }
  .tile-box svg { width: 20px; height: 20px; }
  .tile-label { font-size: 10px; letter-spacing: 0.03em; }

  /* PRODUCTION LIBRARY */
  .prod-library {
    gap: 18px;
    padding: 18px;
    margin-top: 32px;
    border-radius: 16px;
    /* Lighter panel on the mobile teal bg — reads as elevated, not sunken. */
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
  }
  .prod-image {
    min-height: 180px;
    /* Lighter fallback gradient that matches the new mobile bg. */
    background: linear-gradient(135deg, #1F4646 0%, #2A5757 50%, #1F4646 100%);
  }
  .prod-title { font-size: 22px; letter-spacing: 0.04em; }
  .prod-stats { font-size: 11.5px; letter-spacing: 0.1em; line-height: 1.5; }
  .prod-pills { gap: 8px; }
  .pill { font-size: 12px; }
  .prod-side { width: 100%; }
  .prod-side .btn-lg { width: 100%; justify-content: center; padding: 14px 18px; }
  .prod-tagline { font-size: 12.5px; line-height: 1.5; }

  /* ARTISTS / STUDIOS — horizontal scrollers with fade affordance */
  .artists-section,
  .studios-section {
    padding-top: 32px;
    position: relative;
  }
  .artist-row,
  .studio-row {
    grid-auto-columns: 144px;
    gap: 12px;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    margin-left: calc(var(--pad-x) * -1);
    margin-right: calc(var(--pad-x) * -1);
    scroll-padding-left: var(--pad-x);
    -webkit-overflow-scrolling: touch;
  }
  .studio-row { grid-auto-columns: 240px; }
  .artist-name { font-size: 13px; }
  .artist-country { font-size: 11px; }

  /* fade hint at right edge so users know it scrolls — fade to the mobile body bg
     so it disappears into the page instead of reading as a dark overlay. */
  .artists-section::after,
  .studios-section::after {
    content: "";
    position: absolute;
    right: 0; bottom: 8px;
    width: 40px;
    height: calc(100% - 60px);
    background: linear-gradient(90deg, transparent, #1F4646 90%);
    pointer-events: none;
    z-index: 1;
  }

  /* THREE-COL PANELS */
  .three-col { gap: 18px; padding-top: 32px; }
  .col { padding: 16px 14px; border-radius: 16px; }
  /* Phones (2026-10-03): the rank goes, the VIDEO tag keeps its icon and gives
     up its word, so the title keeps its room. One track per visible child:
     tests/mobile.spec.mjs checks it at every phone width. */
  .song-row { grid-template-columns: 48px minmax(0, 1fr) 40px; column-gap: 12px; padding: 8px 2px; min-height: 64px; }
  .song-row:has(> button.song-video) { grid-template-columns: 48px minmax(0, 1fr) auto 40px; }
  .song-num { display: none; }
  .song-art { width: 48px; height: 48px; }
  .song-title { font-size: 14.5px; }
  .song-artist { font-size: 12.5px; }
  button.song-video { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  button.song-video svg { width: 13px; height: 13px; }
  button.song-video span { display: none; }
  .song-time { font-size: 12.5px; }

  .video-grid { gap: 10px; }
  /* Remove the dark overlay on video cards — let the photo show clean */
  .video-overlay { display: none; }
  /* Smaller play button, anchored bottom-right so the artist image stays visible */
  .video-play {
    width: 36px; height: 36px;
    top: auto; left: auto;
    right: 10px; bottom: 10px;
    transform: none;
  }
  .video-play svg { width: 14px; height: 14px; }
  .video-card:hover .video-play { transform: scale(1.08); }
  /* Title shares the bottom row with the play button — pad the right so they don't overlap.
     Strong text-shadow keeps it legible without needing a dark overlay. */
  .video-title {
    font-size: 11px;
    left: 10px;
    right: 56px;     /* leaves room for the 36px play btn + 10px gap + 10px right offset */
    bottom: 12px;
    line-height: 1.25;
    text-shadow:
      0 1px 2px rgba(0,0,0,0.85),
      0 2px 6px rgba(0,0,0,0.7);
  }

  .composer-item { grid-template-columns: 44px 1fr; gap: 11px; padding: 7px 2px; }
  .composer-avatar { width: 44px; height: 44px; }
  .composer-name { font-size: 13.5px; }
  .composer-role,
  .composer-tags { font-size: 11.5px; }

  /* FEATURES STRIP */
  .features-strip { gap: 14px; padding: 22px var(--pad-x); margin-top: 32px; }
  .feature-text h3 { font-size: 12px; letter-spacing: 0.14em; }
  .feature-text p { font-size: 12px; }

  /* FOOTER */
  .site-footer { margin-top: 32px; padding-top: 36px; }
  .footer-top { gap: 24px 20px; padding-bottom: 32px; }
  .footer-brand .logo-img { height: 48px; }
  .footer-col h4 { font-size: 11.5px; margin-bottom: 10px; }
  .footer-col a { font-size: 13px; }
  .footer-bottom { font-size: 11.5px; padding: 16px var(--pad-x); }
}

/* Small phones — extra tightening so 360px Android feels deliberate */
@media (max-width: 400px) {
  .hero-sub { font-size: 14px; margin-bottom: 22px; }
  .hero-cta { padding: 12px 8px; font-size: 10.5px; }
  .hero-cta svg { display: none; }
  .tile-label { font-size: 9.5px; }
  .tile-box { max-width: 48px; }
  .tile-box svg { width: 18px; height: 18px; }
  .prod-pills { grid-template-columns: 1fr; }
  .artist-row { grid-auto-columns: 132px; }
  .studio-row { grid-auto-columns: 220px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =================================================================
   UNIFIED PLAY BUTTONS
   One visual language across every play button on the site:
     - gradient teal fill + inner highlight
     - soft outer glow that deepens on hover
     - ripple ring that expands on hover
     - 1px right-nudge on the play triangle for optical balance
     - cinematic resting pulse on the large video-card play
     - "now playing" 3-bar equalizer that replaces the icon
     - focus-visible ring for keyboard nav
   ================================================================= */

.artist-play,
.spotlight__play,
.sp-card__play,
.video-play,
.composer-play {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition:
    transform 220ms cubic-bezier(0.2,0.8,0.2,1),
    box-shadow 220ms ease,
    filter 220ms ease;
  isolation: isolate;
}

/* Position override for absolutely-positioned variants is preserved by their own rules
   (.artist-play uses absolute bottom-left; .video-play uses absolute center). */

/* Size + position variants — re-assert position:absolute on the variants that
   need it, since the shared base sets position:relative for the pseudo rings. */
.artist-play           { position: absolute; width: 36px; height: 36px; }
.video-play            { position: absolute; width: 44px; height: 44px; }
.composer-play         { width: 32px; height: 32px; }


/* Icon — drop the play triangle 1px to the right of geometric center for optical balance.
   The pause icon stays centered. */
.artist-play svg,
.video-play svg,
.composer-play svg {
  transform: translateX(1px);
}
/* Bigger icon inside the cinematic video play */
.video-play svg { width: 16px; height: 16px; }

/* Ripple ring — appears and expands on hover */
.artist-play::before,
.video-play::before,
.composer-play::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--play-glow);
  opacity: 0;
  transform: scale(0.86);
  transition: transform 280ms cubic-bezier(0.2,0.8,0.2,1), opacity 220ms ease;
  pointer-events: none;
}
.video-play::before { inset: -6px; border-width: 1.5px; }

/* Hover state — applies whether you hover the button itself OR the parent card */
.artist-card:hover .artist-play,
.video-card:hover .video-play,
.composer-item:hover .composer-play {
  background: var(--play-sheen), var(--play-disc-hi);
  box-shadow: var(--play-shadow-hover);
}
.artist-card:hover .artist-play { transform: scale(1.08); }
.composer-item:hover .composer-play { transform: scale(1.07); }
.video-card:hover .video-play { transform: scale(1.08); }

.artist-card:hover .artist-play::before,
.video-card:hover .video-play::before,
.composer-item:hover .composer-play::before {
  opacity: 1;
  transform: scale(1);
}

/* Active press */
.artist-play:active           { transform: scale(0.94); transition-duration: 80ms; }
.composer-play:active { transform: scale(0.94); transition-duration: 80ms; }
.video-play:active            { transform: scale(0.94); transition-duration: 80ms; }

/* Focus-visible — keyboard accessibility */
.artist-play:focus-visible,
.video-play:focus-visible,
.composer-play:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

/* (Resting pulse ring removed — it extended past the play button and read as
   "pieces sticking out of the card". Hover ripple below provides the affordance.) */

/* ================== NOW PLAYING EQUALIZER ==================
   When a card's track is the active one in the bottom player, JS adds .is-playing
   to the corresponding play button and injects <span class="ws-eq"><i><i><i></span>.
   Three bars animate when the player is playing; freeze when paused. */

.artist-play.is-playing > svg,
.video-play.is-playing > svg,
.composer-play.is-playing > svg { display: none; }

.ws-eq {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 42%;
  width: 42%;
}
.ws-eq i {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  height: 100%;
  transform-origin: center bottom;
  animation: ws-eq-bar 900ms ease-in-out infinite;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.18));
}
.ws-eq i:nth-child(1) { animation-duration: 1000ms; animation-delay:   0ms; }
.ws-eq i:nth-child(2) { animation-duration: 1300ms; animation-delay: 180ms; }
.ws-eq i:nth-child(3) { animation-duration:  820ms; animation-delay: 320ms; }

/* Bigger bars inside the large video-card play */
.video-play .ws-eq { gap: 3px; height: 36%; width: 36%; }
.video-play .ws-eq i { width: 3px; border-radius: 1.5px; }

/* Freeze the animation when the player is paused */
.is-playing[data-player-state="paused"] .ws-eq i {
  animation-play-state: paused;
}

@keyframes ws-eq-bar {
  0%, 100% { transform: scaleY(0.30); }
  50%      { transform: scaleY(1.00); }
}

@media (prefers-reduced-motion: reduce) {
  .ws-eq i { animation: none; height: 70%; }
}

/* Artist cards: no play affordance — they're aspirational tiles, not playable.
   Hidden everywhere (desktop + mobile + touch). */
.artist-play { display: none; }

/* Re-assert mobile play-button sizing/positioning. The unified system above
   uses desktop sizes; here we tune them down for phones so they don't
   dominate small cards. */
@media (max-width: 768px) {
  /* Top Featured Videos: shrink the play and anchor bottom-right so the
     artist's face stays visible. */
  .video-play {
    width: 38px; height: 38px;
    top: auto; left: auto;
    right: 10px; bottom: 10px;
    transform: none;
  }
  .video-play svg { width: 14px; height: 14px; transform: translateX(1px); }
  .video-card:hover .video-play { transform: scale(1.06); }
  .video-play:active { transform: scale(0.94); }
  /* Tighter ripple so it never overshoots the small card */
  .video-play::before { inset: -3px; }

  /* Top Ten + Composers: tighten the play buttons too so they feel sized to
     the row, not bigger than the artwork next to them. */

  .composer-play          { width: 30px; height: 30px; }
  
  .composer-play svg { width: 12px; height: 12px; transform: translateX(1px); }

  /* Reserve room for the new bottom-right play and pad the title accordingly. */
  .video-title {
    left: 10px;
    right: 58px;
    bottom: 14px;
    font-size: 11px;
    line-height: 1.25;
    text-shadow:
      0 1px 2px rgba(0,0,0,0.85),
      0 2px 6px rgba(0,0,0,0.7);
  }
}

/* ============ UNIVERSAL SEARCH ============ */
.search-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.search-head { margin-bottom: 26px; }
.search-sub {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-family: var(--f-body);
  font-size: 15px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(45,212,191,0.22);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-bar:focus-within {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}
.search-icon { color: var(--teal-primary); display: flex; flex: 0 0 auto; }
.search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 16px;
  padding: 12px 4px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-submit { flex: 0 0 auto; border-radius: 999px; }

.search-results {
  margin-top: 22px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.search-result:hover { border-color: var(--teal-primary); background: var(--bg-card-elevated); }
.search-result .sr-type {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-primary);
  flex: 0 0 82px;
}
.search-result .sr-label { font-family: var(--f-body); font-weight: 500; font-size: 15px; }
.search-result .sr-meta { color: var(--text-secondary); font-size: 13px; margin-left: auto; text-align: right; }
.search-empty { color: var(--text-muted); padding: 16px; font-family: var(--f-body); }

@media (max-width: 560px) {
  .search-bar { border-radius: 16px; }
  .search-result { flex-wrap: wrap; gap: 6px 14px; }
  .search-result .sr-meta { margin-left: 0; }
}

/* Empty state for a landing section with nothing published in it.

   Written when the front page had every section unpublished and rendered a
   heading with a void underneath — which reads as a broken page rather than an
   empty one, and gives no way to tell a failed fetch from an empty table.

   A line of quiet type, not a dashed wireframe box: this shows on the live
   public site, so a visitor who arrives mid-curation should meet a calm gap,
   not a construction site. The padding is what gives the section enough height
   to keep the shape of the page legible while it is being filled. */
.row-empty {
  margin: 0;
  padding: 34px 0 38px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.01em;

  /* The slots these land in are card rows — flex tracks in the artist and
     studio rows, a grid in the videos. Without these the sentence inherits a
     single card's width and wraps into a three-line column. Both declarations
     are needed because the parents are not all the same kind of layout. */
  flex: 1 1 100%;
  grid-column: 1 / -1;
  width: 100%;
}

/* Skip to content.
   WCAG 2.4.1, Level A: every page here starts with the same header and the same
   nav, so a keyboard or screen-reader user was tabbing through the whole lot on
   every page before reaching anything worth reading. Off-screen until focused,
   so it costs nothing visually and appears the instant it is needed. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--teal-primary);
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===========================================================
   THE CLIENT'S REDRAWN LANDING PAGE          (added 2026-08-27)
   -----------------------------------------------------------
   From his two hand sketches: a "GLOBAL SYNC" title plate, the
   search bar directly beneath it, then ONE large featured
   artist and ONE large studio/producer, then the artist row,
   songs, videos, and the remaining studios and producers.

   The landscape sketch puts the two large blocks side by side;
   the portrait sketch stacks them with the studio at the very
   bottom. Both are honoured: this file does the desktop pairing,
   mobile.css restores his phone order. Nothing here invents a
   palette - every colour is an existing token.
   =========================================================== */

/* ---- The pair of spotlights ------------------------------- */
.spotlight-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  padding-top: 64px;
}
.spot-section { min-width: 0; }

.spotlight {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.spotlight.is-static { cursor: default; }
.spotlight:not(.is-static):hover { transform: translateY(-3px); }

.spotlight__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-default);
  background-color: var(--bg-card);
  background-size: cover;
  /* Not `center`. These are portrait photographs in a 16:10 frame, and centring
     a tall source in a wide window crops the top off - the featured artist was
     rendering without a head. The rest of the site already anchors faces near
     the top of the frame (.song-thumb and .composer-avatar both use this), and
     it works for a landscape studio photograph too. */
  background-position: center 22%;
  background-repeat: no-repeat;
  box-shadow: 0 10px 40px -14px rgba(0, 0, 0, 0.7);
}
.spotlight:not(.is-static):hover .spotlight__media {
  border-color: var(--border-strong);
  box-shadow: 0 18px 56px -16px rgba(0, 0, 0, 0.8);
}
.spotlight__play { position: absolute; left: 14px; bottom: 14px; z-index: 1; }

.spotlight__body { display: flex; flex-direction: column; gap: 4px; }
.spotlight__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.12;
  color: var(--text-primary);
  text-wrap: balance;
}
.spotlight__meta { color: var(--text-secondary); font-size: 14px; }
.spotlight__tags { color: var(--text-muted); font-size: 12.5px; letter-spacing: 0.02em; }

/* ---- Featured artists: the row under the spotlight ---------
   Was a hard repeat(8), which assumed the client would always
   feature exactly eight people and left a hole the moment one of
   them became the spotlight. */
.artist-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* The client draws FEATURED ARTISTS as a thin filmstrip, not the wall of tall
   portraits the 3:4 card produces. Landscape crops, anchored to the top of the
   frame so a head-and-shoulders photograph keeps the head. */
.artist-row .artist-thumb { aspect-ratio: 4 / 3; background-position: center 22%; }

/* ---- Top songs and videos ---------------------------------
   Out of the old three-column card and onto the full width he
   drew them at. */
.songs-section, .videos-section, .sp-section { padding-top: 64px; }
.songs-section .song-list { gap: 2px; }

/* He drew two video columns on the phone. On a 1320px page two
   columns would be 600px each, so the grid opens up rather than
   inflating the cards. */
@media (min-width: 1000px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ---- More studios & producers ----------------------------- */
.sp-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.sp-card {
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  min-width: 0;
}
.sp-card.is-static { cursor: default; }
.sp-card:not(.is-static):hover { transform: translateY(-3px); }
.sp-card__thumb {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  background-size: cover; background-position: center 22%;
  background-repeat: no-repeat;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.5);
}
.sp-card:not(.is-static):hover .sp-card__thumb {
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.7);
}
.sp-card__play { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.sp-card__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-card__name {
  font-family: var(--f-display); font-weight: 500; font-size: 14.5px;
  color: var(--text-primary);
}
.sp-card__role { color: var(--text-secondary); font-size: 12.5px; }
.sp-card__tags { color: var(--text-muted); font-size: 11.5px; }

/* ---- Videos: the picture, then the caption (2026-10-13) ----
   CJ, on the front page: "there is still that black play button
   overlay ... they dont look as clean as everything else". The
   caption sat over the photograph on a dark scrim (added for
   contrast at phone size), and it read as a black band across
   every card. Every other card on the page - artists, studios -
   puts its name under the picture, so the videos do too: the
   frame is the video's own, untouched, and the text is on the
   page background, where contrast is never in question.

   The frame is 16:9, a video's shape. It also crops the black
   bars YouTube bakes into its hqdefault image, the fallback when
   a video has no maxres frame. */
.video-card {
  display: flex; flex-direction: column; gap: 10px;
  aspect-ratio: auto; overflow: visible;
  border: 0; border-radius: 0;
  background: none;
  min-width: 0;
}
.video-card:hover { box-shadow: none; }
.video-card__frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.18s ease;
}
.video-card:hover .video-card__frame { box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.7); }
.video-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* script.js (trimBars) sized it so the picture inside the black bars covers the frame. */
.video-card__img.is-trimmed { inset: auto; max-width: none; object-fit: fill; }
.video-card.is-coming-soon .video-card__frame { filter: saturate(0.5) brightness(0.7); }
.video-card.is-coming-soon { filter: none; }

.video-card__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.video-card .video-title {
  position: static; inset: auto; padding: 0; background: none; text-shadow: none;
  font: 500 14.5px/1.3 var(--f-display); color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-artist {
  font-size: 12.5px; color: var(--text-secondary); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.video-artist:hover, a.song-artist:hover { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 3px; }
a.video-artist:focus-visible, a.song-artist:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; border-radius: 2px; }
a.song-artist { text-decoration: none; align-self: flex-start; max-width: 100%; }

/* Whole rows on a desktop: four are one row of four, one or two sit on a
   two-column grid, the rest keep the three. */
@media (min-width: 1000px) {
  .video-grid[data-count="1"], .video-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .video-card .video-play { top: auto; left: auto; right: 8px; bottom: 8px; width: 34px; height: 34px; }
  .video-card .video-title { font-size: 13.5px; }
  .video-card__meta { gap: 1px; }
}

/* ---- The featured artist's spotlight (2026-10-13) ---------
   Its picture and its name are links to the member's profile;
   the play button, when they have a song, sits beside them. */
.spotlight--artist .spotlight__cover { position: absolute; inset: 0; z-index: 0; }
.spotlight--artist .spotlight__play { z-index: 1; }
.spotlight__name-link { color: inherit; text-decoration: none; }
.spotlight__name-link:hover, .spotlight--artist:not(.is-static):hover .spotlight__name-link { color: var(--teal-bright); }
.spotlight__name-link:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 4px; border-radius: 4px; }

/* ---- Featured artists: name, then country, every card ------
   The country followed the name in brackets, so a long name
   pushed it onto a second line and the row's captions stopped
   lining up. Wide screens: the cards share out the row instead
   of leaving the right of it empty. */
.artist-country { display: block; margin-top: 2px; }
@media (min-width: 1201px) {
  .artist-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}

/* ---- Client-managed front page (js/ws-page-content.js, 2026-11-04) ---------
   The banner: one line under the headline, in the hero's own type, led by a
   short teal rule. A link adds an arrow. */
.page-banner {
  display: block; width: fit-content; max-width: min(560px, 100%);
  margin: 22px auto 0; padding: 0 4px;
  font-family: var(--f-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.6;
  color: var(--teal-soft); text-decoration: none; text-align: center; text-wrap: balance;
}
.page-banner::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 22px; height: 2px; margin: -2px 12px 0 0; background: var(--teal-primary);
}
a.page-banner::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform .2s ease; }
a.page-banner:hover::after, a.page-banner:focus-visible::after { transform: translateX(4px); }
a.page-banner:hover { color: var(--text-primary); }
/* One spotlight hidden: the other takes the row. */
.spotlight-pair.is-single { grid-template-columns: minmax(0, 1fr); }
