/* ============================================================
   GPW — CSS dos cards de track (.tcard) — partilhado.
   Usado nas páginas de ferramentas (track-analyzer,
   delay-calculator) que renderizam tracks
   recomendadas via GPW_buildCard mas não tinham o estilo do card.
   Extraído do style.css (canónico). ============================ */

.tcard { width: 220px; flex-shrink: 0; background: transparent; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; display: flex; flex-direction: column; padding: 12px; transition: all 0.3s ease; position: relative; backdrop-filter: blur(10px); }
.catalog-grid .tcard { width: 100%; }
.tcard:hover { border-color: #333333; box-shadow: 0 15px 35px rgba(0,0,0,0.8); background: rgba(16, 16, 16, 0.95); }
.tc-top-author { margin-bottom: 12px; padding-left: 2px; }
.tc-author-link { display: flex; align-items: center; gap: 9px; text-decoration: none; pointer-events: auto; }
.tc-avatar { width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; background: #272727; color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-family: 'Oswald', sans-serif; transition: all 0.2s; overflow: hidden; }
.tc-author-name { font-size: 12px; color: #fff; font-weight: 600; letter-spacing: 0.5px; transition: color 0.2s; }
.tc-cover { container-type: inline-size; width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 8px; background: #0c0c0c; position: relative; display: flex; justify-content: center; align-items: center; font-size: 60px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); overflow: hidden; }
.tc-play { position: absolute; width: 80px; height: 80px; background: rgba(0,0,0,0.7); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 32px; border: 3px solid #fff; opacity: 0; transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s; cursor: pointer; z-index: 10;}
.tcard:hover .tc-play { opacity: 1; }
.tc-play:hover { transform: scale(1.1); background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; backdrop-filter: blur(4px); }
.tc-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; padding: 5px 9px; border-radius: 4px; text-transform: uppercase; z-index: 10; letter-spacing: 0.5px;}
.tc-badge.premium { background: linear-gradient(135deg, #ffe066 0%, #f8b500 40%, #e6a200 60%, #ffcc00 100%); color: #3b2a00; border: 1px solid #e6a200; box-shadow: 0 3px 8px rgba(248, 181, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.5); text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4); }
.tc-badge.hot { background: linear-gradient(135deg, #ff003c 0%, #ff6a00 50%, #ff003c 100%); color: #fff; border: 1px solid #ff8a00; box-shadow: 0 4px 12px rgba(255, 0, 60, 0.6), inset 0 2px 4px rgba(255, 180, 180, 0.4); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.tc-info { padding: 14px 2px 4px; display: flex; flex-direction: column; flex-grow: 1; position: relative; z-index: 5;}
.tc-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; text-decoration: none; display: block; transition: color 0.2s;}
a.tc-title:hover { color: var(--y); }
.tc-tags { display: flex; gap: 6px; margin-bottom: 12px; }
.tc-tag { font-size: 12px; font-weight: 600; padding: 4px 7px; background: rgba(255,255,255,0.05); border-radius: 4px; color: #fff; display: flex; gap: 4px; align-items: center; }
.tc-genre-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tc-genre { font-size: 13px; font-weight: 400; color: #ccc; text-transform: uppercase; letter-spacing: 0.5px; }
.tc-like { width: 30px; height: 30px; background: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.tc-like:hover, .tc-like.active { background: transparent; }
.tc-like svg { width: 16px; height: 16px; fill: transparent; stroke: #888; transition: all 0.2s; }
.tc-like:hover svg { stroke: #e11d48; }
.tc-like.active svg { fill: #e11d48; stroke: #e11d48; }
.tc-bottom { display: flex; justify-content: space-between; align-items: stretch; padding-top: 8px; margin-top: auto; gap: 8px; }
.tc-btn-offer { background: rgba(255,255,255,0.05); border: 1px solid transparent; color: #fff; padding: 0 14px; border-radius: 4px; font-size: 12px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.tc-price-buy { flex-grow: 1; background: transparent; border: none; border-radius: 4px; color: #fff; font-family: 'Oswald', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: flex-end; padding: 4px 8px; }
.tc-price-buy .buy-lbl { display: none; margin-right: 6px; font-size: 17px; color: #000; }
.tcard:hover .tc-btn-offer { background: rgba(245, 196, 0, 0.15); color: var(--y); border-color: rgba(245, 196, 0, 0.3); }
.tcard:hover .tc-price-buy { background: var(--y); justify-content: center; }
.tcard:hover .tc-price-buy .buy-lbl { display: inline; }
.tcard:hover .tc-price-buy .price-lbl { color: #000; }

/* ── Estado VENDIDA (neon "SOLD") ── */
.tcard.sold { pointer-events: none; border-color: #262626 !important; background: rgba(13, 13, 13, 0.3) !important; box-shadow: none !important; }
.tcard.sold .tc-title, .tcard.sold .tc-tags, .tcard.sold .tc-genre-row, .tcard.sold .tc-bottom { filter: grayscale(100%); opacity: 0.3; }
.tcard.sold .tc-cover { container-type: inline-size; filter: none; opacity: 1; }
.tcard.sold .tc-cover > * { filter: grayscale(100%); opacity: 0.3; }
.tcard.sold .tc-play { display: none !important; }
  .tcard.sold .tc-badge { display: none !important; }
  /* manter as tags HOT e PREMIUM mesmo nas tracks SOLD */
  .tcard.sold .tc-badge.hot, .tcard.sold .tc-badge.premium { display: flex !important; filter: none !important; opacity: 1 !important; z-index: 11; }
.tcard.sold .tc-cover::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 5; }
.tcard.sold .tc-cover::after { content: 'SOLD'; position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); width: max-content; height: max-content; display: flex; align-items: center; justify-content: center; color: #ff003c; font-family: 'Arial Black', Impact, 'Oswald', sans-serif; font-size: 15.81cqw; font-weight: 900; letter-spacing: 0.93cqw; text-shadow: 0 0 10px #ff003c, 0 0 20px #ff003c; border: 1.86cqw solid #ff003c; border-radius: 3.72cqw; padding: 7.44cqw 8.37cqw; box-shadow: inset 0 0 10px rgba(255,0,60,0.5), 0 0 15px rgba(255,0,60,0.5); background: rgba(0, 0, 0, 0.6); z-index: 10; pointer-events: none; line-height: 1; }
.tcard.sold .tc-top-author { pointer-events: auto; z-index: 20; position: relative; }
.tcard.sold .tc-author-name { color: #fff; }
/* SOLD: só a capa apagada — resto do card iluminado */
.tcard.sold .tc-title, .tcard.sold .tc-tags, .tcard.sold .tc-genre-row { filter: none !important; opacity: 1 !important; }
.tcard.sold .tc-bottom { display: none !important; }
