/* [1.5.1038] Catálogo de faixas da distribuição em Material 3 Expressive (includes/admin/admin-tracks-catalog-m3.php).
   Por cima do desenho comum do painel (panel-m3.css): as cores são as do painel (--m3-*) e os tons vêm das classes
   m3-tone-*. Tudo começa por “.tcat”. A família é a da “Fila de aprovação”: barra com pílulas e menu nossos, linhas
   em cartão e cantos que apertam ao passar o rato. As colunas são uma grelha: num ecrã estreito cada faixa passa a
   um cartão com os nomes das colunas por cima dos valores. */

/* ============ 1. Base e movimento ============ */
body.rmbz-m3 .tcat{--cols:minmax(0,2.3fr) minmax(0,1.3fr) minmax(0,1fr) 150px 150px 92px 108px;color:var(--m3-t1);font-family:var(--m3-font)}
body.rmbz-m3 .tcat *,body.rmbz-m3 .tcat *::before,body.rmbz-m3 .tcat *::after{box-sizing:border-box}
body.rmbz-m3 .tcat :is(p,ol,ul,li){margin:0;padding:0;letter-spacing:0}
body.rmbz-m3 .tcat :is(ol,ul){list-style:none}
body.rmbz-m3 .tcat a{text-decoration:none}
body.rmbz-m3 .tcat :is(a,button,summary,input):focus{outline:0;box-shadow:none}
body.rmbz-m3 #wpbody-content .tcat :is(a,button,summary):focus-visible{outline:2px solid var(--m3-pri);outline-offset:2px}
body.rmbz-m3 .tcat summary{list-style:none;cursor:pointer}
body.rmbz-m3 .tcat summary::-webkit-details-marker{display:none}
body.rmbz-m3 .tcat [hidden]{display:none!important}
body.rmbz-m3 .tcat .tcat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes tcatIn{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@keyframes tcatMenu{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
@keyframes tcatSpin{to{transform:rotate(360deg)}}
@keyframes tcatTip{from{opacity:0;transform:translate(-50%,4px)}to{opacity:1;transform:translate(-50%,0)}}

/* ============ 2. O topo e os números ============ */
body.rmbz-m3 .tcat .tcat-head{margin:0 0 14px}
body.rmbz-m3 .tcat .tcat-head .m3-section-head{margin:0}
body.rmbz-m3 .tcat .tcat-tiles{margin:0 0 14px}

/* ============ 3. Botões e a barra ============ */
body.rmbz-m3 #wpbody-content .tcat .tcat-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;margin:0;padding:0 16px;border:0;border-radius:20px;background:var(--m3-s3);color:var(--m3-t1);font:700 13.5px/1 var(--m3-font);white-space:nowrap;cursor:pointer;transition:border-radius .4s var(--m3-spring),background .2s,color .2s,box-shadow .2s,transform .2s var(--m3-spring)}
body.rmbz-m3 #wpbody-content .tcat a.tcat-btn:hover,body.rmbz-m3 #wpbody-content .tcat button.tcat-btn:hover{border-radius:12px;background:var(--m3-s4);color:var(--m3-t1)}
body.rmbz-m3 #wpbody-content .tcat .tcat-btn:active{transform:scale(.96)}
body.rmbz-m3 .tcat .tcat-btn .ms{font-size:19px}
body.rmbz-m3 #wpbody-content .tcat .tcat-btn--ink{background:var(--m3-t1);color:var(--m3-brand)}
body.rmbz-m3 #wpbody-content .tcat a.tcat-btn--ink:hover,body.rmbz-m3 #wpbody-content .tcat button.tcat-btn--ink:hover{background:#000;color:var(--m3-brand);box-shadow:0 8px 20px -8px rgba(31,27,19,.55)}
body.rmbz-m3 #wpbody-content .tcat .tcat-btn.is-off{opacity:.45;cursor:default}
body.rmbz-m3 #wpbody-content .tcat .tcat-btn:disabled{opacity:.5;cursor:default}
body.rmbz-m3 #wpbody-content .tcat .tcat-icon-btn{display:grid;place-items:center;flex:none;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:18px;background:var(--m3-s3);color:var(--m3-t1);cursor:pointer;transition:border-radius .4s var(--m3-spring),background .2s,transform .2s var(--m3-spring)}
body.rmbz-m3 #wpbody-content .tcat .tcat-icon-btn:hover{border-radius:11px;background:var(--m3-s4)}
body.rmbz-m3 .tcat .tcat-icon-btn .ms{font-size:19px}

body.rmbz-m3 .tcat .tcat-bar{position:relative;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px;padding:8px;border-radius:30px;background:var(--m3-s3)}
body.rmbz-m3 .tcat .tcat-search{display:flex;align-items:center;gap:6px;flex:1 1 320px;min-width:0;padding:4px;border-radius:24px;background:var(--m3-card)}
body.rmbz-m3 .tcat .tcat-search>.ms{flex:none;margin-left:10px;color:var(--m3-t3);font-size:20px}
body.rmbz-m3 #wpbody-content .tcat .tcat-search input[type=text]{flex:1;min-width:0;min-height:38px;margin:0;padding:0 4px;border:0;border-radius:12px;background:transparent;box-shadow:none;color:var(--m3-t1);font:500 14px/1.4 var(--m3-font)}
body.rmbz-m3 .tcat input::placeholder{color:var(--m3-t3);opacity:1}
body.rmbz-m3 .tcat .tcat-seg{display:flex;gap:4px;flex-wrap:wrap;padding:4px;border-radius:24px;background:var(--m3-card)}
body.rmbz-m3 .tcat .tcat-seg-item{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px 0 10px;border-radius:19px;color:var(--m3-t2);font-size:13px;font-weight:700;white-space:nowrap;transition:border-radius .35s var(--m3-spring-soft),background .2s,color .2s,transform .25s var(--m3-spring)}
body.rmbz-m3 .tcat .tcat-seg-item .ms{font-size:18px}
body.rmbz-m3 .tcat .tcat-seg-item:hover{border-radius:11px;background:var(--m3-s3);color:var(--m3-t1)}
body.rmbz-m3 .tcat .tcat-seg-item:active{transform:scale(.96)}
body.rmbz-m3 .tcat .tcat-seg-item.is-on,body.rmbz-m3 .tcat .tcat-seg-item.is-on:hover{padding-right:8px;border-radius:11px;background:var(--m3-t1);color:var(--m3-brand)}
body.rmbz-m3 .tcat .tcat-dir{transition:transform .4s var(--m3-spring)}
body.rmbz-m3 .tcat .tcat-seg-item.is-asc .tcat-dir{transform:rotate(180deg)}
body.rmbz-m3 .tcat .tcat-menu{position:relative}
body.rmbz-m3 .tcat .tcat-pill{display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 10px 0 16px;border-radius:23px;background:var(--m3-card);color:var(--m3-t2);font-size:13px;font-weight:650;white-space:nowrap;transition:border-radius .35s var(--m3-spring-soft),background .2s}
body.rmbz-m3 .tcat .tcat-pill strong{color:var(--m3-t1);font-weight:780;font-variant-numeric:tabular-nums}
body.rmbz-m3 .tcat .tcat-pill:hover,body.rmbz-m3 .tcat .tcat-menu[open]>.tcat-pill{border-radius:13px;background:#fff}
body.rmbz-m3 .tcat .tcat-chev{font-size:20px;transition:transform .4s var(--m3-spring)}
body.rmbz-m3 .tcat details[open]>summary .tcat-chev,body.rmbz-m3 .tcat [aria-expanded=true] .tcat-chev{transform:rotate(180deg)}
body.rmbz-m3 .tcat .tcat-menu-list{position:absolute;top:calc(100% + 6px);right:0;z-index:30;display:grid;gap:2px;min-width:170px;padding:6px;border-radius:22px;background:var(--m3-card);box-shadow:var(--m3-shadow-lift);transform-origin:top right;animation:tcatMenu .22s var(--m3-enter) both}
body.rmbz-m3 .tcat .tcat-menu-item{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 14px 0 10px;border-radius:16px;color:var(--m3-t1);font-size:13.5px;font-weight:650;transition:border-radius .3s var(--m3-spring-soft),background .2s}
body.rmbz-m3 .tcat .tcat-menu-item .ms{flex:none;color:transparent;font-size:18px}
body.rmbz-m3 .tcat .tcat-menu-item:hover{border-radius:10px;background:var(--m3-s3);color:var(--m3-t1)}
body.rmbz-m3 .tcat .tcat-menu-item.is-on{background:var(--m3-s3);font-weight:780}
body.rmbz-m3 .tcat .tcat-menu-item.is-on .ms{color:var(--m3-pri)}
body.rmbz-m3 .tcat .tcat-total{margin:0 8px 10px;color:var(--m3-t2);font-size:13px;font-weight:650}
body.rmbz-m3 .tcat .tcat-total strong{color:var(--m3-t1);font-variant-numeric:tabular-nums}

/* ============ 4. As faixas ============ */
body.rmbz-m3 .tcat .tcat-table{padding:8px;border-radius:32px;background:var(--m3-s2)}
body.rmbz-m3 .tcat .tcat-cols{display:grid;grid-template-columns:var(--cols);gap:14px;padding:6px 16px 10px;color:var(--m3-t3);font-size:12px;font-weight:700}
body.rmbz-m3 .tcat .tcat-cols .is-num{text-align:right}
body.rmbz-m3 .tcat .tcat-list{display:grid;gap:4px}
body.rmbz-m3 .tcat .tcat-item{border-radius:22px;background:var(--m3-card);animation:tcatIn .4s var(--m3-enter) backwards;animation-delay:calc(var(--i,0)*22ms);transition:border-radius .4s var(--m3-spring),box-shadow .2s}
body.rmbz-m3 .tcat .tcat-item:hover{border-radius:14px;box-shadow:var(--m3-shadow-lift)}
body.rmbz-m3 .tcat .tcat-item.is-open{border-radius:22px;box-shadow:0 0 0 2px var(--m3-t1)}
body.rmbz-m3 .tcat .tcat-row{display:grid;grid-template-columns:var(--cols);align-items:center;gap:14px;min-height:60px;padding:6px 16px 6px 8px}
body.rmbz-m3 .tcat .tcat-cell{min-width:0}
body.rmbz-m3 .tcat .tcat-label{display:none;color:var(--m3-t3);font-size:11.5px;font-weight:700}
body.rmbz-m3 .tcat .tcat-track{display:flex;align-items:center;gap:12px}
body.rmbz-m3 .tcat .tcat-cover{display:grid;place-items:center;flex:none;width:46px;height:46px;overflow:hidden;border-radius:14px;background:var(--m3-s3);color:var(--m3-t3);transition:border-radius .45s var(--m3-spring)}
body.rmbz-m3 .tcat .tcat-item:hover .tcat-cover{border-radius:9px}
body.rmbz-m3 .tcat .tcat-cover img{display:block;width:100%;height:100%;object-fit:cover}
body.rmbz-m3 .tcat .tcat-cover .ms{font-size:22px}
body.rmbz-m3 .tcat .tcat-track-id{display:grid;min-width:0}
body.rmbz-m3 .tcat .tcat-track-id strong{overflow:hidden;color:var(--m3-t1);font-size:14.5px;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
body.rmbz-m3 .tcat .tcat-track-id small{overflow:hidden;color:var(--m3-t3);font-size:12px;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
body.rmbz-m3 .tcat :is(.tcat-release,.tcat-artist)>:not(.tcat-label){display:block;overflow:hidden;font-size:13.5px;text-overflow:ellipsis;white-space:nowrap}
body.rmbz-m3 .tcat .tcat-release a{color:var(--m3-t1);font-weight:650;transition:color .2s}
body.rmbz-m3 .tcat .tcat-release a:hover{color:var(--m3-pri)}
body.rmbz-m3 .tcat .tcat-artist>span:not(.tcat-label){color:var(--m3-t2)}
body.rmbz-m3 .tcat .tcat-isrc code{display:inline-block;max-width:100%;overflow:hidden;padding:5px 10px;border-radius:11px;background:var(--m3-s3);color:var(--m3-t1);font:650 12px/1.2 ui-monospace,Menlo,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
body.rmbz-m3 #wpbody-content .tcat .tcat-alias-btn{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:34px;margin:0;padding:0 6px 0 10px;border:0;border-radius:17px;background:var(--m3-s3);color:var(--m3-t2);font:700 12.5px/1 var(--m3-font);white-space:nowrap;cursor:pointer;transition:border-radius .35s var(--m3-spring-soft),background .2s,color .2s}
body.rmbz-m3 #wpbody-content .tcat .tcat-alias-btn:hover{border-radius:10px;background:var(--m3-s4);color:var(--m3-t1)}
body.rmbz-m3 #wpbody-content .tcat .tcat-alias-btn[aria-expanded=true]{border-radius:10px;background:var(--m3-t1);color:var(--m3-brand)}
body.rmbz-m3 .tcat .tcat-alias-btn>span:not(.ms){display:inline-flex;align-items:center;gap:4px}
body.rmbz-m3 .tcat .tcat-alias-btn .ms{font-size:17px}
body.rmbz-m3 .tcat .tcat-alias-btn b{padding:4px 8px;border-radius:10px;background:var(--tone-soft);color:var(--tone-ink);font-size:11.5px;font-weight:800;font-variant-numeric:tabular-nums}
body.rmbz-m3 .tcat .tcat-num{text-align:right}
body.rmbz-m3 .tcat .tcat-streams{position:relative;display:inline-block;padding:5px 10px;border-radius:12px;background:var(--m3-s3);color:var(--m3-t1);font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}
body.rmbz-m3 .tcat .tcat-streams:hover::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 6px);z-index:20;width:max-content;padding:6px 10px;border-radius:10px;background:var(--m3-t1);color:#fff;font:600 12px/1.3 var(--m3-font);pointer-events:none;animation:tcatTip .22s var(--m3-enter) both}
body.rmbz-m3 .tcat .tcat-num .m3-pill{min-height:28px;padding:0 10px;font-size:13px;font-weight:780;font-variant-numeric:tabular-nums}
body.rmbz-m3 .tcat .tcat-zero{color:var(--m3-t2);font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}

/* Os aliases, por baixo da faixa. */
body.rmbz-m3 .tcat .tcat-panel{display:grid;gap:10px;margin:0 8px 8px;padding:14px;border-radius:20px;background:var(--m3-s2);animation:tcatIn .3s var(--m3-enter) both}
body.rmbz-m3 .tcat .tcat-panel-head{display:flex;align-items:flex-start;gap:10px}
body.rmbz-m3 .tcat .tcat-panel-head>.ms{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:18px;background:var(--m3-card);color:var(--m3-pri);font-size:19px}
body.rmbz-m3 .tcat .tcat-panel-head strong{display:block;color:var(--m3-t1);font-size:14.5px;font-weight:780}
body.rmbz-m3 .tcat .tcat-panel-head span:not(.ms){color:var(--m3-t2);font-size:12.5px;line-height:1.45}
body.rmbz-m3 .tcat .tcat-alias-list{display:grid;gap:4px}
body.rmbz-m3 .tcat .tcat-alias{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:6px 6px 6px 10px;border-radius:16px;background:var(--m3-card);transition:opacity .3s}
body.rmbz-m3 .tcat .tcat-alias.is-leaving{opacity:0}
body.rmbz-m3 .tcat .tcat-alias-type{padding:4px 9px;border-radius:10px;background:var(--tone-soft);color:var(--tone-ink);font-size:11.5px;font-weight:800}
body.rmbz-m3 .tcat .tcat-alias code{overflow:hidden;color:var(--m3-t1);font:650 13px/1.3 ui-monospace,Menlo,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}
body.rmbz-m3 .tcat .tcat-alias small{color:var(--m3-t3);font-size:12px;white-space:nowrap}
body.rmbz-m3 #wpbody-content .tcat .tcat-alias .tcat-icon-btn{width:32px;height:32px;background:var(--m3-danger-soft);color:var(--m3-danger-ink)}
body.rmbz-m3 #wpbody-content .tcat .tcat-alias .tcat-icon-btn:hover{background:var(--m3-danger);color:#fff}
body.rmbz-m3 .tcat .tcat-alias-none{padding:8px 4px;color:var(--m3-t3);font-size:13px}
body.rmbz-m3 .tcat .tcat-alias-none.is-error{color:var(--m3-danger);font-weight:650}
body.rmbz-m3 .tcat .tcat-add{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.rmbz-m3 .tcat .tcat-seg.is-small{flex-wrap:nowrap}
body.rmbz-m3 .tcat .tcat-radio{position:relative;display:inline-flex;cursor:pointer}
body.rmbz-m3 #wpbody-content .tcat .tcat-radio input{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;opacity:0;cursor:pointer}
body.rmbz-m3 .tcat .tcat-radio span{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:18px;color:var(--m3-t2);font-size:13px;font-weight:750;transition:border-radius .35s var(--m3-spring-soft),background .2s,color .2s}
body.rmbz-m3 .tcat .tcat-radio:hover span{border-radius:11px;background:var(--m3-s3)}
body.rmbz-m3 .tcat .tcat-radio input:checked+span{border-radius:11px;background:var(--m3-t1);color:var(--m3-brand)}
body.rmbz-m3 .tcat .tcat-radio input:focus-visible+span{outline:2px solid var(--m3-pri);outline-offset:2px}
body.rmbz-m3 #wpbody-content .tcat .tcat-add input[type=text]{flex:1 1 220px;min-width:0;min-height:44px;margin:0;padding:0 14px;border:0;border-radius:16px;background:var(--m3-card);box-shadow:inset 0 0 0 1.5px var(--m3-olv);color:var(--m3-t1);font:650 14px/1.4 ui-monospace,Menlo,Consolas,monospace;transition:box-shadow .2s,border-radius .35s var(--m3-spring-soft)}
body.rmbz-m3 #wpbody-content .tcat .tcat-add input[type=text]:focus{border-radius:12px;box-shadow:inset 0 0 0 2px var(--m3-pri)}
body.rmbz-m3 .tcat .tcat-add-msg{flex:1 0 100%;padding:8px 12px;border-radius:14px;background:var(--m3-success-soft);color:var(--m3-success-ink);font-size:12.5px;font-weight:650}
body.rmbz-m3 .tcat .tcat-add-msg.is-error{background:var(--m3-danger-soft);color:var(--m3-danger-ink)}

/* ============ 5. As páginas e sem nada para mostrar ============ */
body.rmbz-m3 .tcat .tcat-pager{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px 0 0}
body.rmbz-m3 .tcat .tcat-pager-now{color:var(--m3-t2);font-size:13.5px;font-weight:650;font-variant-numeric:tabular-nums}
body.rmbz-m3 .tcat .tcat-pager-now strong{color:var(--m3-t1)}
body.rmbz-m3 .tcat .tcat-empty{display:grid;justify-items:center;gap:6px;padding:46px 20px;border-radius:32px;background:var(--m3-card);box-shadow:var(--m3-shadow);text-align:center;animation:tcatIn .5s var(--m3-enter) backwards}
body.rmbz-m3 .tcat .tcat-empty-cookie{display:grid;place-items:center;width:84px;height:84px;margin-bottom:8px;background:var(--tone-soft);color:var(--tone-ink);clip-path:var(--m3-cookie);animation:tcatSpin 30s linear infinite}
body.rmbz-m3 .tcat .tcat-empty-cookie .ms{font-size:36px;animation:tcatSpin 30s linear infinite reverse}
body.rmbz-m3 .tcat .tcat-empty strong{color:var(--m3-t1);font-size:18px;font-weight:780;font-variation-settings:'wdth' 110}
body.rmbz-m3 .tcat .tcat-empty>span:not([class]){max-width:460px;color:var(--m3-t2);font-size:13.5px;line-height:1.5}
body.rmbz-m3 #wpbody-content .tcat .tcat-empty .tcat-btn{margin-top:10px}

/* ============ 6. Ecrãs estreitos e menos movimento ============ */
@media (max-width:1280px){
  body.rmbz-m3 .tcat{--cols:minmax(0,2fr) minmax(0,1.1fr) minmax(0,.9fr) 132px 132px 80px 100px}
}
@media (max-width:1100px){
  body.rmbz-m3 .tcat .tcat-cols{display:none}
  body.rmbz-m3 .tcat .tcat-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;padding:10px 14px 12px 10px}
  body.rmbz-m3 .tcat .tcat-track{grid-column:1 / -1}
  body.rmbz-m3 .tcat .tcat-release,body.rmbz-m3 .tcat .tcat-artist{grid-column:span 2}
  body.rmbz-m3 .tcat .tcat-label{display:block;margin-bottom:3px}
  body.rmbz-m3 .tcat .tcat-num{text-align:left}
  body.rmbz-m3 .tcat .tcat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  body.rmbz-m3 .tcat .tcat-bar{border-radius:26px}
  body.rmbz-m3 .tcat .tcat-seg{width:100%}
  body.rmbz-m3 .tcat .tcat-seg-item{flex:1 1 auto;justify-content:center}
  body.rmbz-m3 .tcat .tcat-menu-list{left:0;right:auto;transform-origin:top left}
  body.rmbz-m3 .tcat .tcat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.rmbz-m3 .tcat .tcat-release,body.rmbz-m3 .tcat .tcat-artist{grid-column:span 1}
  body.rmbz-m3 .tcat .tcat-alias{grid-template-columns:auto minmax(0,1fr) auto}
  body.rmbz-m3 .tcat .tcat-alias small{display:none}
  body.rmbz-m3 #wpbody-content .tcat .tcat-add .tcat-btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
  body.rmbz-m3 .tcat *,body.rmbz-m3 .tcat *::before,body.rmbz-m3 .tcat *::after{animation:none!important;transition:none!important}
}
