/* ============================================================
   THE MUSIC ROOM VOCABULARY.

   The cinematic card rail, the pill filters and the app-style
   track row — the visual language album.html established and the
   listening room now shares, so the two read as one product
   rather than a record and a spreadsheet about records.

   WHERE THESE CAME FROM, AND THE DEBT. Every rule here is lifted
   verbatim from the inline <style> in album.html, which is still
   carrying its own copy. That duplication is deliberate for now:
   album.html is the page the art direction was tuned on, its
   style block runs to four hundred lines with its own cascade
   against css/music-director.css, and cutting it open to dedupe
   was a bigger risk than the listening room was worth. The right
   end state is album.html dropping those rules and linking this
   file instead. Until that happens, a change to a card or a row
   has to be made in BOTH places.

   Loaded after css/style.css and before css/music-director.css,
   which is where album.html's inline block sits, so the
   per-room overrides in music-director.css still win.
   ============================================================ */

/* ---------- the rail: big cards, horizontal, snapping ---------- */
.feat { display: flex; gap: 0.9rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.6rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.feat::-webkit-scrollbar { display: none; }

.feat__card { flex: none; width: min(76vw, 18.5rem); scroll-snap-align: start; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 22px; color: #fff; padding: 1.15rem 1.15rem 1rem; background: #0d0a08;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.24),
    0 26px 56px -20px rgba(0,0,0,0.92);
  text-decoration: none; display: block; }
/* the art sits UNDER the smoke, which is what keeps white type legible
   over a photograph nobody art-directed for type */
.feat__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feat__smoke { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(168deg, rgba(9,7,5,0.28) 0%, rgba(9,7,5,0.58) 52%, rgba(9,7,5,0.85) 100%);
  backdrop-filter: blur(5px) saturate(1.15); -webkit-backdrop-filter: blur(5px) saturate(1.15); }
.feat__card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.16) 44%,
    rgba(255,255,255,0.03) 52%, transparent 62%); }
/* THE REASON, ABOVE THE TITLE. Every recommendation deck worth copying puts
   why an item is in front of you above the item itself — Apple Music's "MADE
   FOR YOU" over the station name. A section heading can only explain a whole
   rail; this explains one card, which is what lets a rail mix sources without
   lying about any of them. */
/* It carries its own backing rather than trusting the scrim. Ruby over the
   darker half of a cover is fine and over a bright one — the silver M on
   Singles, the blue on PRIM3 — it vanishes, and a reason nobody can read is
   the same as no reason. The pill makes contrast a property of the label
   instead of a property of whichever artwork it landed on. */
.feat__why { display: inline-block; max-width: 100%; font-family: var(--ui); font-weight: 800;
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #ff6a6c; background: rgba(9,7,5,0.68); border-radius: 100px;
  padding: 0.22rem 0.52rem; margin-bottom: 0.4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top;
  /* the card is a flex column in this room, so without this the pill is
     stretched to the full width by align-items and stops being a pill */
  align-self: flex-start; }
.feat__card > b { display: block; font-family: var(--ui); font-weight: 800; font-size: 1.3rem;
  line-height: 1.1; text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.feat__card > small { display: block; font-family: var(--ui); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.62);
  margin-top: 0.35rem; min-height: 2.4em; }
.feat__acts { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.8rem; }
.feat__play { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  touch-action: manipulation; width: 48px; height: 48px; border-radius: 50%; color: #fff;
  background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 26px -10px rgba(0,0,0,0.75);
  display: grid; place-items: center; }
.feat__play svg { width: 20px; height: 20px; fill: currentColor; }
.feat__n { font-family: var(--ui); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-left: auto; }

/* ---------- the filters ---------- */
.chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: 2rem 0 0.4rem; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  touch-action: manipulation; font-family: var(--ui); font-weight: 700; font-size: 0.82rem;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13);
  border-radius: 100px; padding: 0.55rem 1.1rem; }
.chips button.on { color: #fff; font-weight: 800; background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 24px -10px rgba(229,56,59,0.55); }

/* ---------- the record: app rows with the art up front ---------- */
.tr { list-style: none; padding: 0; margin: 2rem 0 0; }
.tr li { position: relative; display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.65rem;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  border-radius: 14px; }
.tr li:hover { background: rgba(244,239,230,0.05); }
.tr a.row { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0;
  text-decoration: none; color: inherit; }
.tr .th { flex: none; width: 46px; height: 46px; border-radius: 11px;
  background: #1a140f center/cover no-repeat; box-shadow: 0 6px 18px -8px rgba(0,0,0,0.9); }
.tr .n { font-family: var(--ui); font-size: 0.72rem; color: var(--cream-dim); font-weight: 800;
  width: 1.15rem; text-align: right; flex: none; }
.tr .t { font-family: var(--ui); font-weight: 800; font-size: 0.98rem; color: var(--cream);
  flex: 1; line-height: 1.2; min-width: 0; }
.tr .t small { display: block; font-family: var(--ui); font-weight: 600; font-size: 0.74rem;
  color: var(--cream-dim); margin-top: 0.14rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .d { flex: none; font-family: var(--ui); font-size: 0.74rem; color: var(--cream-dim);
  font-variant-numeric: tabular-nums; }
.tr .hrt { flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  display: grid; place-items: center; color: rgba(244,239,230,0.4);
  font-size: 0.95rem; line-height: 1; padding: 0; }
.tr .hrt.on { color: var(--ruby-hot); }

/* ---------- the headings ---------- */
.lib__k { font-family: var(--ui); font-weight: 800; font-size: 1.05rem; color: var(--cream);
  text-transform: none; letter-spacing: 0; margin: 1.4rem 0 0.2rem; }
/* The line under a section heading that says why the section exists. The
   discovery decks all carry one and it is the difference between a shelf
   and a list. */
.lib__why { font-family: var(--ui); font-weight: 600; font-size: 0.8rem; color: var(--cream-dim);
  margin: 0 0 0.8rem; }
.greet { font-family: var(--ui); font-weight: 800; font-size: clamp(1.75rem, 7.4vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.05; }
.greet__sub { font-family: var(--ui); font-weight: 600; color: var(--cream-dim); font-size: 0.9rem;
  margin: 0.35rem 0 1.3rem; }

html[data-theme="light"] .chips button:not(.on),
html[data-theme="light"] .tr .hrt {
  background: linear-gradient(180deg, rgba(26,20,13,0.075), rgba(26,20,13,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65); color: var(--cream); }

/* ARTISTS: the house first, then every creator, round pictures, one swipe
   (js/music-community.js). McCluster opens the house; an artist opens their
   front page and the bar takes their perspective. The M is the supplied
   mark, scaled, on no plate; a creator's circle is their own photo or their
   initial. Phone first: a horizontal rail that never widens the page. */
.artists__row { display: flex; gap: 0.9rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  padding: 0.2rem 0 0.6rem; scrollbar-width: none; }
.artists__row::-webkit-scrollbar { display: none; }
.artist { flex: none; width: 4.6rem; min-width: 0; display: grid; justify-items: center; gap: 0.35rem; text-decoration: none; color: var(--cream);
  scroll-snap-align: start; text-align: center; }
.artist__pic { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; background: rgba(244, 239, 230, 0.08);
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.18); }
.artist__pic--house { border-radius: 0; background: none; box-shadow: none; object-fit: contain; }
.artist__pic--initial { display: grid; place-items: center; font: 800 1.1rem/1 var(--ui); color: var(--cream); }
.artist > b { font-family: var(--ui); font-weight: 800; font-size: 0.72rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist > small { font-family: var(--ui); font-weight: 600; font-size: 0.6rem; color: var(--cream-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist:hover > b, .artist:focus-visible > b { color: var(--ruby-hot, #e5383b); }
.artist:focus-visible { outline: none; }
.artist:focus-visible .artist__pic { box-shadow: 0 0 0 2px var(--ruby-hot, #e5383b); }
html[data-theme="light"] .artist__pic--house { content: url("../assets/img/m-mark-dark.png"); }
@media (min-width: 600px) { .artists__row { gap: 1.1rem; } .artist { width: 5.2rem; } .artist__pic { width: 4rem; height: 4rem; } }
