/* Cartões de rádio e botões. (parte do antigo styles.css) */
/* ---------- cartões de rádio ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 12px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail .card, .rail .skeleton { flex: none; width: 148px; scroll-snap-align: start; }
.card { position: relative; min-width: 0; }
.card-main { display: block; width: 100%; text-align: left; transition: transform .1s; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(155deg, hsl(var(--h, 220) 46% 28%), hsl(var(--h, 220) 38% 10%) 78%); box-shadow: var(--card-sh, 0 0 0 0 transparent), inset 0 0 0 1px rgb(var(--ov) / .06); }
.tile img { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; font: 500 10px var(--mono); letter-spacing: .06em; background: rgb(0 0 0 / .6); backdrop-filter: blur(6px); color: rgb(255 255 255 / .8); }
.badge:empty { display: none; }
.badge[data-v='delay'] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.card[data-playing='true'] .tile { box-shadow: 0 0 0 2px var(--accent); }
.card[data-playing='true'] .c-name::before { content: '● '; color: var(--live); }
.c-name { display: -webkit-box; margin-top: 10px; padding-right: 34px; font-weight: 600; font-size: 14px; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-meta { display: block; margin-top: 2px; padding-right: 34px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heart { position: absolute; right: -4px; bottom: -2px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.heart svg { width: 20px; height: 20px; }
.heart[aria-pressed='true'] { color: var(--heart-on, var(--accent-text)); }
.skeleton { aspect-ratio: .82; border-radius: var(--r-md); background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)) 0 0 / 200% 100%; animation: sweep 1.3s linear infinite; }
.skeleton.wide { aspect-ratio: auto; height: 172px; flex: none; width: 272px; }
.skeleton.row { aspect-ratio: auto; height: 76px; }
@keyframes sweep { to { background-position: -200% 0; } }

.art { display: grid; place-items: center; position: relative; overflow: hidden; width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(155deg, hsl(var(--h, 220) 46% 30%), hsl(var(--h, 220) 38% 12%)); font: 700 18px var(--ui); color: #fff; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; border-radius: inherit; }

/* ---------- botões ---------- */
.play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); transition: transform .1s; flex: none; }
.play svg { width: 24px; height: 24px; }
.play.sm { width: 40px; height: 40px; }
.play.sm svg { width: 18px; height: 18px; }
.pill { box-shadow: inset 0 0 0 1px var(--chip-line, transparent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--chip-bg, var(--s2)); font-weight: 600; font-size: 14px; transition: background .15s, transform .1s; }
.pill:hover { background: var(--s3); }
.pill.solid { background: var(--text); color: var(--bg); }
.pill.solid:hover { background: #fff; }
.pill.live { background: var(--live); color: #fff; }
.pill svg { width: 18px; height: 18px; }
.link { padding: 10px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--text); }
.link.danger:hover { color: var(--live); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--s2); font: 500 13.5px var(--ui); }
.chips button:hover { background: var(--s3); }
.chips button[aria-checked='true'] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chips.quick { justify-content: center; }
.chips.quick button { font-family: var(--mono); font-size: 13px; min-width: 52px; }

/* Listas pessoais (js: components/my-lists.js): coração no canto da capa, convite sem favoritas e "Limpar histórico".
   Iguais na aba Rádios, no Início e na página da TV. A capa (.rv-cv / .rr-art) precisa de position: relative. */
.fav-heart { position: absolute; z-index: 3; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.fav-heart::after { content: ''; position: absolute; inset: -7px; } /* área de toque de 44 px */
.fav-heart svg { width: 16px; height: 16px; }
.fav-heart svg + svg, .fav-heart[aria-pressed='true'] svg:first-child { display: none; }
.fav-heart[aria-pressed='true'] svg + svg { display: block; color: var(--accent-text); }
.fav-heart:active { transform: scale(.9); }
.fav-heart:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.fav-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; border: 1.5px dashed rgb(var(--ov) / .22); }
.fav-empty > svg { flex: none; width: 30px; height: 30px; color: var(--accent-text); }
.fav-empty span { display: grid; gap: 3px; }
.fav-empty b { font: 700 15px/1.2 var(--ui); }
.fav-empty small { font: 500 13px/1.35 var(--ui); color: var(--muted); }
.ml-clear { flex: none; align-self: start; width: var(--s, 100px); height: var(--s, 100px); display: grid; place-content: center; justify-items: center; gap: 8px; padding: 8px; border-radius: calc(var(--s, 100px) * .22); border: 1.5px dashed rgb(var(--ov) / .22); color: var(--muted); text-align: center; scroll-snap-align: start; }
.ml-clear svg { width: 22px; height: 22px; }
.ml-clear b { font: 600 12.5px/1.2 var(--ui); }
.ml-clear[data-armed='true'] { border-color: var(--accent); color: var(--accent-text); }
