/* TYF music player bar (assets/music-player.js). Added Oct 31, 2026. Red/white site style. */
html.tp-on body{padding-bottom:var(--tp-h,72px)}
html.tp-on{scroll-padding-bottom:var(--tp-h,72px)}
.tp{position:fixed;left:0;right:0;bottom:0;z-index:50;font-family:var(--body);color:var(--ink,#111);pointer-events:none}
.tp-bar{pointer-events:auto;position:relative;display:flex;align-items:center;gap:14px 18px;min-height:64px;box-sizing:border-box;
  padding:8px max(16px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  background:#fff;border-top:4px solid var(--red,#b3121f);box-shadow:0 -6px 18px rgba(0,0,0,.12)}
.tp-meta{flex:1 1 260px;min-width:0}
.tp-meta p{margin:0;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-track{font-weight:700;font-size:1rem}
.tp-album{font-size:.82rem;color:var(--muted,#4a4a4a)}
.tp-status{font-family:var(--label);font-weight:600;font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;color:var(--red,#b3121f);white-space:normal!important}
.tp-status:empty{display:none}
.tp-ctrls{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.tp-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:2px solid #000;border-radius:2px;background:#fff;color:#000;cursor:pointer}
.tp-btn svg{width:22px;height:22px;fill:currentColor}
.tp-btn:hover{background:#000;color:#fff}
.tp-btn:disabled{opacity:.35;cursor:default;background:#fff;color:#000}
.tp-play{width:52px;height:52px;background:var(--red,#b3121f);border-color:var(--red,#b3121f);color:#fff}
.tp-play:hover{background:var(--red-dark,#8f0e19);border-color:var(--red-dark,#8f0e19);color:#fff}
.tp-prog{display:flex;align-items:center;gap:8px;flex:1 1 220px;min-width:0;font-size:.8rem;font-variant-numeric:tabular-nums;color:var(--muted,#4a4a4a)}
.tp-seek{flex:1 1 auto;min-width:60px;accent-color:var(--red,#b3121f);height:24px;margin:0}
.tp-side{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.tp-txt{min-height:44px;padding:8px 12px;border:2px solid #000;border-radius:2px;background:#fff;color:#000;cursor:pointer;font-family:var(--label);font-weight:600;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.tp-txt:hover{background:#000;color:#fff}
/* video tile: 200 x 200 (YouTube minimum), above the right end of the bar */
.tp-tile{pointer-events:auto;position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(100% + 8px);width:200px;height:200px;background:#000;border:2px solid #000;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.tp-video,.tp-video iframe,#tp-yt{display:block;width:200px;height:200px;border:0}
.tp>.tp-bar{position:relative}
/* tile collapsed (paused only): moved off-screen, never used for audio-only playback */
.tp-novideo .tp-tile{position:fixed;left:-10000px;top:auto;bottom:0;right:auto;visibility:hidden}
.tp-btn:focus-visible,.tp-txt:focus-visible,.tp-seek:focus-visible{outline:3px solid var(--red,#b3121f);outline-offset:2px}
/* phones: video tile on the left inside the panel, controls on the right */
@media (max-width:720px){
  .tp{display:grid;grid-template-columns:auto minmax(0,1fr);background:#fff;border-top:4px solid var(--red,#b3121f);box-shadow:0 -6px 18px rgba(0,0,0,.12);pointer-events:auto;
    padding-bottom:env(safe-area-inset-bottom)}
  .tp-tile{position:static;grid-column:1;width:200px;height:200px;margin:8px 0 8px max(8px,env(safe-area-inset-left));border:0;box-shadow:none}
  .tp>.tp-bar{grid-column:2;border-top:0;box-shadow:none;flex-wrap:wrap;align-content:center;gap:6px 6px;padding:8px max(8px,env(safe-area-inset-right)) 8px 10px;min-height:0;background:transparent}
  .tp-meta{flex:1 1 100%}
  .tp-meta p.tp-track{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.92rem}
  .tp-ctrls{flex:1 1 100%;justify-content:flex-start;gap:6px}
  .tp-btn{width:42px;height:42px}
  .tp-play{width:48px;height:48px}
  .tp-prog{flex:1 1 100%;gap:4px;font-size:.72rem}
  .tp-side{flex:1 1 100%;gap:6px}
  .tp-txt{flex:1 1 auto;padding:6px 8px;min-height:42px;font-size:.72rem}
  .tp-novideo{display:block}
  .tp-novideo>.tp-bar{flex-wrap:nowrap;align-items:center;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left));gap:8px}
  .tp-novideo .tp-meta{flex:1 1 auto}
  .tp-novideo .tp-meta p.tp-track{-webkit-line-clamp:1}
  .tp-novideo .tp-ctrls{flex:0 0 auto}
  .tp-novideo .tp-prev,.tp-novideo .tp-next,.tp-novideo .tp-prog{display:none}
  .tp-novideo .tp-side{flex:0 0 auto}
  .tp-novideo .tp-txt{flex:0 0 auto}
}

/* Listened marks (Nov 1, 2026): saved on this device only (assets/music-player.js, localStorage "tyf-music-progress-v1") */
.album-heard{grid-column:1 / -1;margin-top:8px!important;font-family:var(--label);font-weight:600;font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.album-heard.is-all,.mx-track .album-heard{color:#1d7a35}
.band-dark .album-heard.is-all,.band-dark .mx-track .album-heard{color:#7ddc93}
.album-heard[hidden]{display:none!important}
.music-heard-note{text-align:center;font-size:.9rem;color:var(--muted);margin:0 auto 18px;max-width:620px}
.music-heard-note .mh-check{color:#1d7a35;font-weight:700}
.band-dark .music-heard-note .mh-check{color:#7ddc93}
.music-heard-reset{background:none;border:0;padding:8px 4px;min-height:44px;font:inherit;font-weight:600;color:var(--black);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:3px;cursor:pointer}
.music-heard-reset[data-armed]{color:#b3121f}
.tp-heard-badge{margin:2px 0 0;font-size:.75rem;font-weight:700;letter-spacing:.04em;color:#1d7a35}
.tp-heard-badge[hidden]{display:none}
