/* Taliferro Music (design_handoff_music_leadvault_network 13a–13j). Teal
 * accent; colours from tt/styles/tokens.css. Shared by every page. */

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

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { color-scheme: dark; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

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

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header: shared .ah from app-header.css. Music's logo is a circle. */
.ah-name small { margin-left: 4px; }

.tm-copy::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Shared bits */
.tm-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tm-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--t-teal);
  color: var(--t-teal-fg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.tm-btn:hover { background: var(--surface2); }
.tm-btn--primary { background: var(--text); color: var(--bg); font-weight: 700; }
.tm-btn--primary:hover { background: var(--text); opacity: .88; }

.tm-link { color: var(--t-teal-fg); font-weight: 600; text-decoration: none; }
.tm-link:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.tm-main { flex: 1; width: min(1200px, 100% - 80px); margin: 0 auto; }

/* Footer (13b) */
.tm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 48px;
  padding: 22px 40px;
  border-top: 1px solid var(--surface2);
  font-size: 13px;
  color: var(--muted);
}

.tm-foot a { color: inherit; text-decoration: none; }
.tm-foot a:hover { color: var(--text); }
.tm-foot__left { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tm-foot__left b { color: var(--text); letter-spacing: .06em; }

/* ---------- 13a Player ---------- */
.tm-player-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 12px;
}

.tm-hero { display: grid; justify-items: start; gap: 18px; }
.tm-hero h1 { font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.tm-hero > p { font-size: 18px; color: var(--muted); }

.tm-player {
  display: grid;
  gap: 18px;
  justify-self: stretch;
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
}

.tm-now { display: flex; align-items: center; gap: 20px; }

.tm-cover {
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 22px;
  background: var(--bg);
  object-fit: cover;
}

.tm-now__copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.tm-now__eyebrow { display: flex; gap: 6px; }
.tm-now__eyebrow #tm-status { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.tm-now__eyebrow #tm-status::before { content: "· "; }
.tm-track { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tm-artist { font-size: 17px; color: var(--muted); }
.tm-streams { display: flex; gap: 14px; margin-top: 4px; font-size: 15px; }
.tm-streams:empty { display: none; }

.tm-play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  cursor: pointer;
}

.tm-play:hover { filter: brightness(1.06); }
.tm-play svg { width: 28px; height: 28px; }
.tm-play .icon-pause { display: none; }
.tm-play.is-playing .icon-play { display: none; }
.tm-play.is-playing .icon-pause { display: block; }

/* Autoplay blocked: the play control itself becomes "Tap for sound" (13f). */
.tm-unmute {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--bg);
  font: 700 17px/1 var(--font);
  cursor: pointer;
}

.tm-unmute[hidden] { display: none; }
.tm-unmute svg { width: 20px; height: 20px; }
.tm-player:has(.tm-unmute:not([hidden])) .tm-play { display: none; }

.tm-progress { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.tm-progress > div { width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .5s linear; }

.tm-controls { display: flex; align-items: center; gap: 12px; }

.tm-mood {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
}

.tm-channelBtn {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 15px/1 var(--font);
  text-transform: capitalize;
  cursor: pointer;
}

.tm-channelBtn[aria-selected="true"] { background: var(--t-teal); color: var(--t-teal-fg); font-weight: 700; }

.tm-sleep { position: relative; margin-left: auto; }

.tm-sleepBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: 600 15px/1 var(--font);
  cursor: pointer;
}

.tm-sleepBtn svg { width: 16px; height: 16px; }
.tm-sleepBtn.is-active { background: var(--t-teal); color: var(--t-teal-fg); }

.tm-sleepMenu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: grid;
  min-width: 170px;
  padding: 6px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.tm-sleepMenu[hidden] { display: none; }

.tm-sleepMenu button {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: 500 15px/1 var(--font);
  text-align: left;
  cursor: pointer;
}

.tm-sleepMenu button:hover { background: var(--surface); }
.tm-sleepMenu button[aria-checked="true"] { color: var(--t-teal-fg); font-weight: 700; }

.tm-listeners { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tm-listeners[hidden] { display: none; }

.tm-app { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.tm-app img { height: 48px; width: auto; }

.tm-made-by { margin: 0 !important; }

.tm-hiddenPlayer { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Recently played */
.tm-recent { padding: 22px 14px 14px; border-radius: 28px; background: var(--surface); }
.tm-recent__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 10px 10px; }
.tm-recent__head span:last-child { font-size: 13px; color: var(--muted); }
.tm-recentEmpty { padding: 10px; font-size: 15px; color: var(--muted); }
.tm-recentEmpty[hidden] { display: none; }
.tm-rows { display: grid; gap: 2px; padding: 0; list-style: none; }

.tm-recentRow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 16px;
}

.tm-recentRow:hover { background: var(--bg); }
.tm-recentArt { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--bg); object-fit: cover; }
.tm-recentBody { display: grid; flex: 1; min-width: 0; gap: 2px; }
.tm-rowHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tm-rowTitle { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-recentTime { flex: none; font-size: 13px; color: var(--muted); }
.tm-recentMeta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
.tm-rowMeta { color: var(--muted); }
.tm-rowLinks { display: inline-flex; gap: 8px; }
.tm-rowLinks a { color: var(--t-teal-fg); font-weight: 600; text-decoration: none; }
.tm-rowLinks a:hover { text-decoration: underline; }

/* ---------- 13c About ---------- */
.tm-about { display: grid; gap: 44px; padding-top: 24px; }
.tm-intro { display: grid; justify-items: start; gap: 18px; max-width: 820px; }
.tm-intro h1 { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.tm-intro p { font-size: 20px; line-height: 1.5; color: var(--muted); }

.tm-about-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.tm-about-copy { display: grid; gap: 16px; font-size: 17px; line-height: 1.6; }
.tm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pills a { height: 40px; padding: 0 16px; font-size: 15px; font-weight: 700; }

.tm-facts {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 28px;
  background: var(--surface);
}

.tm-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; font-size: 15px; }
.tm-facts dt { color: var(--muted); }
.tm-facts dd { margin: 0; overflow-wrap: anywhere; }
.tm-facts a { color: var(--t-teal-fg); font-weight: 600; text-decoration: none; }

.tm-more { display: grid; gap: 16px; }
.tm-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.tm-product {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
}

.tm-product .um-chip { width: 44px; height: 44px; border-radius: 12px; }
.tm-product h3 { margin-top: 8px; font-size: 18px; font-weight: 700; }
.tm-product p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tm-product footer { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 6px; }
.tm-product footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.tm-product footer a:hover { text-decoration: underline; }
.tm-product footer span { font-size: 13px; color: var(--muted); }

/* ---------- 13d Privacy ---------- */
.tm-privacy { display: grid; grid-template-columns: 300px minmax(0, 760px); gap: 56px; padding-top: 24px; }
.tm-privacy aside { position: sticky; top: 24px; display: grid; align-content: start; gap: 14px; }
.tm-privacy h1 { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.tm-privacy aside > p { font-size: 15px; color: var(--muted); }
.tm-sum { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--t-teal); color: var(--t-teal-fg); }
.tm-sum strong { color: var(--text); font-size: 16px; }
.tm-sum span { font-size: 14px; line-height: 1.4; }
.tm-sections { display: grid; gap: 12px; }
.tm-section { display: grid; gap: 10px; padding: 22px 24px; border-radius: 24px; background: var(--surface); font-size: 16px; line-height: 1.6; }
.tm-section h2 { font-size: 18px; font-weight: 700; }
.tm-section a { color: var(--t-teal-fg); font-weight: 600; }
.tm-checks { display: grid; gap: 8px; padding: 0; list-style: none; }
.tm-checks li { display: flex; gap: 10px; }
.tm-checks li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 5px;
  flex: none;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 13e 404 ---------- */
.tm-404 { display: grid; align-content: center; justify-items: start; gap: 20px; min-height: 60vh; max-width: 900px; padding: 0 80px; }
.tm-404 h1 { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.tm-404 p { font-size: 19px; line-height: 1.5; color: var(--muted); }
.tm-404 .tm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 1080px) {
  .tm-player-grid, .tm-about-cols { grid-template-columns: 1fr; }
  .tm-more__grid { grid-template-columns: 1fr 1fr; }
  .tm-privacy { grid-template-columns: 1fr; gap: 28px; }
  .tm-privacy aside { position: static; }
}

/* ---------- iPhone (13f–13j) ---------- */
@media (max-width: 760px) {
  .tm-main { width: calc(100% - 32px); }
  .tm-player-grid { gap: 22px; padding-top: 4px; }
  .tm-hero { gap: 14px; }
  .tm-hero h1, .tm-hero > p { display: none; }
  .tm-tag__long { display: none; }
  .tm-player { gap: 14px; padding: 16px; border-radius: 24px; }
  .tm-now { gap: 14px; }
  .tm-cover { width: 76px; height: 76px; border-radius: 16px; }
  .tm-track { font-size: 22px; }
  .tm-artist { font-size: 15px; }
  .tm-streams { display: none; }
  .tm-play { width: 56px; height: 56px; }
  .tm-play svg { width: 22px; height: 22px; }
  .tm-controls { gap: 8px; }
  .tm-mood { flex: 1; }
  .tm-channelBtn { flex: 1; padding: 0 6px; font-size: 14px; }
  .tm-sleepBtn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .tm-sleepBtn #tm-sleep-label { display: none; }
  .tm-mood-label { display: none; }
  .tm-app { font-size: 14px; }
  .tm-recent { padding: 0; background: none; }
  .tm-recent__head { padding: 0 4px 8px; }
  .tm-recent__head span:last-child { display: none; }
  .tm-recentRow { padding: 8px 4px; }
  .tm-recentRow:nth-child(n+5) { display: none; }
  .tm-recentMeta .tm-rowLinks { display: none; }

  .tm-about { gap: 32px; padding-top: 8px; }
  .tm-intro h1, .tm-404 h1 { font-size: 40px; letter-spacing: -0.04em; }
  .tm-intro p { font-size: 17px; }
  .tm-about-cols { gap: 24px; }
  .tm-facts div { grid-template-columns: 96px 1fr; }
  .tm-more__grid { grid-template-columns: 1fr; }
  .tm-privacy { padding-top: 8px; }
  .tm-privacy h1 { font-size: 36px; }
  .tm-404 { padding: 24px 0; min-height: 50vh; }
  .tm-404 .tm-actions { width: 100%; }
  .tm-404 .tm-actions a { flex: 1 1 100%; }
  .tm-foot { padding: 20px 16px; }
}
