/* Lista + mapa de emissoras (site escuro; admin claro em body.adm). */
.sm { display: grid; grid-template-columns: 380px 1fr; gap: 0; border: 1px solid var(--edge, rgba(255,255,255,.09)); border-radius: 20px; overflow: hidden; background: #131316; height: calc(100vh - 210px); min-height: 520px; }
.sm-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--edge, rgba(255,255,255,.09)); }
.sm-tools { padding: 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--edge, rgba(255,255,255,.09)); }
.sm-tools .input { padding: 11px 14px; }
.sm-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted, #a1a1aa); }
.sm-meta button { background: none; border: 0; color: var(--glow, #ffb266); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.sm-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
.sm-item { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.sm-item:hover, .sm-item.on { background: rgba(245, 120, 7, .1); }
.sm-item.on { box-shadow: inset 3px 0 0 var(--brand, #f57807); }
.sm-item.off .sm-name { opacity: .55; }
.sm-go { flex: 1; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.sm-name { font-weight: 700; font-size: 14.5px; color: var(--text, #f4f4f5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-city { font-size: 12.5px; color: var(--muted, #a1a1aa); }
.sm-edit { background: none; border: 1px solid var(--edge, rgba(255,255,255,.12)); color: var(--muted, #a1a1aa); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; margin-right: 8px; }
.sm-edit:hover { color: var(--text, #fff); border-color: var(--brand, #f57807); }
.sm-empty { padding: 22px 14px; color: var(--muted, #a1a1aa); font-size: 14px; text-align: center; }
.sm-map { min-height: 0; height: 100%; background: #0e0e10; z-index: 1; }
.sm-pop b { display: block; color: #c2410c; margin-bottom: 6px; font-size: 13.5px; }
.sm-pop ul { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow-y: auto; display: grid; gap: 3px; }
.sm-pop li { font-size: 13px; color: #27272a; padding: 2px 4px; border-radius: 4px; }
.sm-pop li.on { background: #ffedd5; font-weight: 700; }
.sm-pop li a { color: #c2410c; font-size: 12px; margin-left: 4px; }
.leaflet-container { font-family: inherit; }

body.adm .sm { background: #fff; border-color: var(--a-line, #e5e7eb); border-radius: 10px; height: calc(100vh - 150px); }
body.adm .sm-side, body.adm .sm-tools { border-color: var(--a-line, #e5e7eb); }
body.adm .sm-name { color: #1f2937; }
body.adm .sm-city, body.adm .sm-meta, body.adm .sm-empty { color: #6b7280; }
body.adm .sm-meta button { color: #c2410c; }
body.adm .sm-item:hover, body.adm .sm-item.on { background: #fff7ed; }
body.adm .sm-edit { border-color: #d1d5db; color: #374151; background: #fff; }
body.adm .sm-map { background: #e5e7eb; }

@media (max-width: 900px) {
  .sm { grid-template-columns: 1fr; grid-template-rows: 46vh auto; height: auto; }
  .sm-map { order: -1; height: 46vh; }
  .sm-side { border-right: 0; border-top: 1px solid var(--edge, rgba(255,255,255,.09)); }
  .sm-list { max-height: 60vh; }
}

/* Logo na lista e no balão */
.sm-go { display: flex; align-items: center; gap: 12px; }
.sm-txt { display: grid; gap: 2px; min-width: 0; }
.sm-logo { width: 38px; height: 38px; flex: none; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--edge, rgba(255,255,255,.09)); }
.sm-noimg { display: grid; place-items: center; background: rgba(245, 120, 7, .14); color: var(--glow, #ffb266); font-weight: 800; font-size: 15px; border-color: transparent; }
.sm-pop li { display: flex; gap: 10px; align-items: center; padding: 6px 4px; }
.sm-pop li div { display: grid; gap: 2px; min-width: 0; }
.sm-pop li strong { font-size: 13.5px; color: #18181b; }
.sm-pop li span { font-size: 12px; color: #52525b; }
.sm-pop li a { color: #c2410c; font-size: 12px; margin: 0; }
.sm-pop-logo { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid #e4e4e7; }
.sm-pop .sm-noimg { display: grid; place-items: center; background: #ffedd5; color: #c2410c; font-weight: 800; }
.sm-pop li.on { background: #fff7ed; }
body.adm .sm-noimg { background: #ffedd5; color: #c2410c; }
