/* Fine Tabletop — the music/sound player (build/cardgame/music.js → window.FTM). Loaded on the catalog,
   the Studio and the table. Uses the shared tokens of build/style.css (--surface, --line, --amber, --tx,
   --mut) so it follows both themes without its own colours. */
.ftm{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:5px 7px;min-height:38px}
.ftm button{display:grid;place-items:center;width:26px;height:26px;border:0;background:none;color:var(--mut);border-radius:5px;flex:none}
.ftm button:hover{color:var(--tx);background:var(--surface2)}
.ftm button svg{width:15px;height:15px}
.ftm .ftm-play{color:var(--tx)}
.ftm[data-on="1"] .ftm-play{color:var(--amber)}
.ftm .ftm-name{font-size:11px;letter-spacing:.04em;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:92px}
.ftm .ftm-vol{width:58px;height:16px;accent-color:var(--amber);flex:none}
.ftm .ftm-sfx[aria-pressed="false"]{color:var(--mut2)}

/* mount points: the catalog toolbar (.bar, build.py catalog_page — after the grid/list switch, the
   red-box spot Den pointed at), the Studio (.advbar, next to the Advanced button) and the table
   (.tbar). All three wrap the player in .musicbox, which drops the track name on narrow viewports so
   the control stays reachable on phones — on the catalog, .bar also hides .mapbtn/.view there
   (style.css ~289) but .musicbox is a different class and keeps showing. */
.musicbox{display:flex}
.musicbox .ftm-name{display:none}
@media (min-width:1040px){.musicbox .ftm-name{display:inline-block}}
@media (max-width:480px){.musicbox .ftm{padding:4px 5px;gap:2px}.musicbox .ftm-vol{display:none}}
.advbar .musicbox,.tbar .musicbox{margin-left:auto}
@media (max-width:620px){.advbar{flex-direction:column;align-items:stretch}.advbar .musicbox{margin-left:0;align-self:flex-start}}
