/* Radar das Releases (js/release-radar.js). Calmo: poucas cores, uma ideia por bloco. */

/* etapa: um ponto de cor + nome. Cores só aqui, nunca de enfeite. */
.rr-promo   { --rr: #7c5cff; --rr-t: rgba(124, 92, 255, .12); }
.rr-radar   { --rr: var(--grn-i); --rr-t: var(--grn-t); }
.rr-quente  { --rr: var(--org-i); --rr-t: var(--org-t); }
.rr-arquivo { --rr: var(--txq); --rr-t: var(--surf2); }

.rr-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: var(--r-pill);
  background: var(--rr-t); color: var(--rr); font-size: var(--t-sm); font-weight: 650; line-height: 1.4; white-space: nowrap;
}

.rr-stages { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.rr-stage {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  border: var(--hair) solid var(--line2); background: var(--surf); color: var(--tx); font: inherit; font-size: var(--t-md); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.rr-stage b { font-weight: 650; color: var(--txs); font-variant-numeric: tabular-nums; }
.rr-stage:hover { border-color: var(--line2); background: var(--surf2); }
.rr-stage[aria-pressed="true"] { background: var(--tx); color: var(--surf); border-color: transparent; }
.rr-stage[aria-pressed="true"] b { color: inherit; opacity: .7; }

/* Hot tracks: 1º lugar em destaque + lista do 2º ao 5º */
.rr-hot { margin: 0 0 22px; }
.rr-hot header { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.rr-hot h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.rr-hot header span { color: var(--txq); font-size: var(--t-sm); }
.rr-hotgrid { display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; gap: 12px; }
.rr-hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; gap: 18px; align-items: center; text-align: left;
  padding: 20px; border-radius: var(--r-xl); border: 0; font: inherit; color: #fff; cursor: pointer; background: #111;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6);
}
.rr-hero-bg { position: absolute; inset: -30%; z-index: -1; background: var(--cover) center / cover; filter: blur(40px) saturate(150%); opacity: .85; transform: scale(1.1); }
.rr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.rr-hero .rr-cover { border-radius: var(--r-md); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); }
.rr-hero-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rr-hero-top { display: flex; align-items: center; gap: 8px; }
.rr-medal { font-size: 1.5rem; line-height: 1; }
.rr-kicker { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.rr-hero strong { font-size: 1.75rem; line-height: 1.05; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-hero small { font-size: var(--t-md); opacity: .85; }
.rr-hero-nums { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--t-sm); opacity: .95; }
.rr-hero-nums b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.rr-hero-nums em { font-style: normal; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); }
.rr-hero .rr-spark { color: #b6ffb4; }

.rr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rr-row {
  width: 100%; display: grid; grid-template-columns: 30px 44px minmax(0, 1fr) auto 84px 92px 44px; gap: 12px; align-items: center; text-align: left;
  padding: 8px 12px; border-radius: var(--r-lg); background: var(--surf); border: var(--hair) solid var(--line2); font: inherit; color: inherit; cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.rr-row:hover, .rr-hero:hover { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .3); }
.rr-row:hover { border-color: var(--txt); }
.rr-pos { font-size: 1.375rem; text-align: center; line-height: 1; }
.rr-pos b { font-size: var(--t-base); color: var(--txs); }
.rr-row .rr-cover { width: 44px; height: 44px; }
.rr-rowinfo { min-width: 0; display: flex; flex-direction: column; }
.rr-rowinfo strong { font-size: var(--t-base); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-rowinfo small { color: var(--txs); font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-rownums { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.rr-rownums b { font-size: var(--t-base); }
.rr-rownums em { font-style: normal; font-size: var(--t-sm); font-weight: 650; }
.rr-rownums em.up, .rr-hero-nums em.up { color: var(--grn-i); }
.rr-rownums em.down { color: var(--red-i); }
.rr-hero-nums em.up, .rr-hero-nums em.down { color: #fff; }
.rr-spark.up { color: var(--grn); }
.rr-spark.down { color: var(--red); }
.rr-move { justify-self: end; font-size: var(--t-xs); font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); background: var(--surf2); color: var(--txs); white-space: nowrap; }
.rr-move.up { background: var(--grn-t); color: var(--grn-i); }
.rr-move.down { background: var(--red-t); color: var(--red-i); }
.rr-move.new { background: rgba(124, 92, 255, .12); color: #5b3fd6; text-transform: uppercase; }

/* selos */
.rr-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.rr-hero .rr-badges { margin-top: 8px; }
.rr-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 650; padding: 3px 8px 3px 6px; border-radius: var(--r-pill); background: var(--surf2); color: var(--txs); white-space: nowrap; }
.rr-badge i { font-style: normal; font-size: .8rem; }
.b-viral { background: var(--red-t); color: var(--red-i); }
.b-support { background: var(--grn-t); color: var(--grn-i); }
.b-download { background: rgba(0, 122, 255, .10); color: #0a5bc4; }
.b-editorial { background: rgba(255, 204, 0, .18); color: #7a5b00; }
.b-up { background: var(--grn-t); color: var(--grn-i); }
.b-new { background: rgba(124, 92, 255, .12); color: #5b3fd6; }
.rr-pill i, .rr-stage i { font-style: normal; }
@media (max-width: 1200px) {
  .rr-hotgrid { grid-template-columns: 1fr; }
  .rr-row { grid-template-columns: 30px 44px minmax(0, 1fr) 84px 92px 44px; }
  .rr-row .rr-badges { display: none; }
}

/* Resumo dentro da gaveta */
.rr-summary { margin: 18px 0 6px; }
.rr-sumhead { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.rr-ads { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--txs); font-size: var(--t-sm); }
.rr-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.rr-nums div { background: var(--surf2); border-radius: var(--r-md); padding: 12px 12px 10px; }
.rr-nums b { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rr-nums span { color: var(--txs); font-size: var(--t-sm); }
.rr-timeline { list-style: none; margin: 0; padding: 0; }
.rr-timeline li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: var(--hair) solid var(--line); }
.rr-timeline li:first-child { border-top: 0; }
.rr-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surf2); color: var(--txs); }
.k-support .rr-ic, .k-download .rr-ic { background: var(--grn-t); color: var(--grn-i); }
.k-viral .rr-ic { background: var(--red-t); color: var(--red-i); }
.k-ads .rr-ic { background: var(--org-t); color: var(--org-i); }
.rr-what { min-width: 0; display: flex; flex-direction: column; }
.rr-what strong { font-size: var(--t-md); font-weight: 600; line-height: 1.3; }
.rr-what small { color: var(--txs); font-size: var(--t-sm); }
.rr-timeline time { color: var(--txq); font-size: var(--t-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-empty { display: block !important; color: var(--txq); font-size: var(--t-md); text-align: center; padding: 20px 0 !important; }
@media (max-width: 560px) { .rr-nums { grid-template-columns: repeat(2, 1fr); } }

/* no cartão do 1º lugar (fundo escuro da capa), selos e setas em vidro branco */
.rr-hero .rr-badge, .rr-hero .rr-move { background: rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rr-hero .rr-cover { width: 150px; height: 150px; }

/* acompanhada ou não pelos robôs */
.rr-watch { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 650; padding: 3px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.rr-watch.on { background: var(--grn-t); color: var(--grn-i); }
.rr-watch.pin { background: rgba(124, 92, 255, .12); color: #5b3fd6; }
.rr-watch.off { background: var(--surf2); color: var(--txq); }
.rr-watchbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--r-md); background: var(--surf2); font-size: var(--t-sm); color: var(--txs); }
.rr-watchbar .rr-pinbtn { margin-left: auto; padding: 6px 12px; font-size: var(--t-sm); }
tr.rr-off td { opacity: .55; }

/* pontos do ranking */
.rr-score { font-size: var(--t-sm); font-weight: 700; color: #7a5b00; background: rgba(255, 204, 0, .18); padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.rr-when { display: flex; align-items: center; gap: 10px; }
.rr-pts { font-size: var(--t-xs); font-weight: 700; color: #7a5b00; background: rgba(255, 204, 0, .18); padding: 2px 7px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.rr-rownums span { font-size: var(--t-sm); color: var(--txs); }
.rr-rownums span em { margin-left: 2px; }

/* conquistas */
.b-super { background: linear-gradient(90deg, #ffe680, #ffc94d); color: #5c3d00; box-shadow: 0 0 0 1px rgba(180, 120, 0, .25); }
.b-big { background: rgba(0, 170, 255, .12); color: #0a6aa8; }
.b-bigdl { background: rgba(0, 122, 255, .10); color: #0a5bc4; }

/* feed "Acontecendo agora" */
.rr-feed { margin: 0 0 22px; }
.rr-feed header { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.rr-feed h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.rr-feed header span { color: var(--txq); font-size: var(--t-sm); }
.rr-feed ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rr-feeditem {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  padding: 10px 14px; border-radius: var(--r-lg); background: var(--surf); border: var(--hair) solid var(--line2); font: inherit; color: inherit; cursor: pointer;
}
.rr-feeditem:hover { border-color: var(--txt); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .25); }
.rr-feedtag { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--surf2); }
.rr-feedtext { min-width: 0; display: flex; flex-direction: column; }
.rr-feedtext small { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--txq); }
.rr-feedtext strong { font-size: var(--t-base); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-feedtext span { font-size: var(--t-sm); color: var(--txs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-feeditem time { font-size: var(--t-sm); color: var(--txq); white-space: nowrap; }
.f-super { background: linear-gradient(100deg, #fff6d6, var(--surf) 60%); border-color: rgba(200, 140, 0, .45); }
.f-super .rr-feedtag { background: linear-gradient(135deg, #ffe680, #ffc94d); }
.f-super small { color: #8a5a00; }
.f-big .rr-feedtag { background: rgba(0, 170, 255, .14); }
.f-editorial .rr-feedtag { background: rgba(255, 204, 0, .2); }
.f-viral .rr-feedtag { background: var(--red-t); }
@media (max-width: 900px) { .rr-feed ol { grid-template-columns: 1fr; } }

/* abas do feed */
.rr-feed header { flex-wrap: wrap; }
.rr-ftabs { display: inline-flex; gap: 2px; background: var(--fill); border: var(--hair) solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.rr-ftab { border: 0; background: none; font: inherit; font-size: var(--t-sm); font-weight: 650; color: var(--txs); padding: 4px 12px; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.rr-ftab b { font-weight: 650; color: var(--txq); font-variant-numeric: tabular-nums; }
.rr-ftab[aria-pressed="true"] { background: var(--card); color: var(--tx); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.rr-feed ol.rr-all { grid-template-columns: 1fr; gap: 4px; }
.rr-feed ol.rr-all .rr-feeditem { padding: 6px 12px; border-radius: var(--r-md); }
.rr-feed ol.rr-all .rr-feedtag { width: 30px; height: 30px; font-size: .95rem; }
.rr-feed ol.rr-all .rr-feeditem { grid-template-columns: 30px minmax(0, 1fr) auto; }
.rr-more { margin-top: 10px; }
.rr-feed .rr-empty { padding: 18px 0; }
.rr-feedfoot { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.rr-feedfoot .rr-more { margin-top: 0; }
.rr-collapse { font-weight: 650; }
.rr-feed header .rr-collapse { align-self: center; padding: 4px 12px; font-size: var(--t-sm); }

/* Tabela do Radar dentro das Releases (etapa escolhida): capa pequena ao lado do nome, números à direita, fora do radar apagado */
.rr-trk { display: inline-flex; align-items: center; gap: 10px; }
.rr-trk .rr-cover, .rr-trk .rr-cover-empty { width: 32px; height: 32px; border-radius: 7px; flex: none; object-fit: cover; }
.rr-cover-empty { display: inline-block; background: linear-gradient(135deg, var(--line, #2a2a2a), transparent); }
#c-tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
#c-tbody tr.rr-off > td:not(:first-child) { opacity: .55; }
.rr-labelf { margin-left: 14px; padding-left: 14px; border-left: var(--hair) solid var(--line); }
.rr-labelf .label-chip { font-weight: 600; }
.rr-rankcell { white-space: nowrap; text-align: left !important; }
.rr-rankcell .muted { font-size: var(--t-sm); }

/* Botão "Fazer ads" (indicação do robô, supabase/ads-radar.sql): no topo do Radar e na gaveta da música. */
.rr-ads-top { display: grid; gap: 8px; margin: 0 0 12px; }
.rr-ads-box { border: 1px solid var(--hair); border-left: 4px solid var(--grn-i); background: var(--surf); border-radius: 12px; padding: 10px 14px; font-size: var(--t-sm); }
.rr-ads-box ul { margin: 6px 0 0; padding-left: 18px; color: var(--txs); }
.rr-ads-box.s-failed { border-left-color: var(--red-t); }
.rr-ads-box.s-skipped, .rr-ads-box.s-expired { opacity: .7; }
.rr-adsbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rr-adserr { display: block; margin-top: 6px; color: var(--red-t); }
