/* =====================================================================
   Cris Santos — Dashboard de Curadoria
   Tema "Opção 5": topo colorido (gradiente) + corpo ameno (ameixa),
   cards claros com títulos legíveis. Anton nos grandes títulos, Poppins
   no corpo e nos nomes das músicas.
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  /* paleta da marca */
  --violeta: #6705fa;
  --roxo: #7d07d7;
  --magenta: #d40f73;
  --vermelho: #fc1139;
  --cream: #feecde;
  --cream-dim: rgba(254, 236, 222, 0.72);
  --ink: #1b0233;
  --muted: #6f6880;

  /* superfícies */
  --plum: #321641; /* fundo ameno do corpo */
  --plum-soft: #3d1c4f;
  --card: #ffffff;
  --soft: #f4eff6;
  --border: #ece3ee;

  --hero-gradient: linear-gradient(135deg, #6a06ef 0%, #a50c9e 52%, #fc1139 118%);
  --accent: #6705fa;

  /* cores por selo */
  --selo-ouro: #fc1139;
  --selo-balanca: #e5167e;
  --selo-feat: #b315c9;
  --selo-lapidacao: #8a1ae0;
  --selo-releituras: #6705fa;

  --shadow-card: 0 10px 28px rgba(13, 2, 28, 0.28);
  --shadow-hard: 4px 4px 0 0 rgba(13, 2, 28, 0.45);
  --shadow-hard-sm: 2px 2px 0 0 rgba(13, 2, 28, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--cream);
  background: var(--plum);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection {
  background: var(--vermelho);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
  border-radius: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}

.font-display {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(28, 10, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(254, 236, 222, 0.14);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 36px;
  width: auto;
}
.brand .tag {
  display: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-dim);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: rgba(254, 236, 222, 0.12);
  color: var(--cream);
}
.nav a.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- Marker label (assinatura) ---------- */
.marker {
  display: inline-block;
  background: var(--violeta);
  color: var(--cream);
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  padding: 4px 12px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-hard);
  transform: rotate(-1.4deg);
}
.brush {
  position: relative;
}
.brush::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -6px;
  height: 8px;
  background: rgba(254, 236, 222, 0.4);
  border-radius: 9999px;
  transform: rotate(-1deg) scaleX(0.96);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  font-weight: 600;
}
.btn-ghost:hover {
  background: var(--soft);
  filter: none;
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--vermelho);
  color: #fff;
  border: none;
}

/* botões no hero (sobre o gradiente) */
.hero .btn {
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  border: 1.5px solid rgba(254, 236, 222, 0.5);
}

/* ---------- Fields ---------- */
.field {
  width: 100%;
  border-radius: 12px;
  background: #fbf9fc;
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.field::placeholder {
  color: #9a93a8;
}
.field:focus {
  outline: none;
  border-color: var(--accent);
}
select.field option {
  background: #fff;
}
label.lbl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
label.lbl .hint {
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Card base (claro) ---------- */
.card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

/* ---------- Cover hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(254, 236, 222, 0.16);
  background: var(--hero-gradient);
  display: grid;
  grid-template-columns: 1fr;
  color: var(--cream);
}
.hero .hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
}
.hero h1 {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 0.92;
  color: var(--cream);
}
.hero p {
  color: rgba(254, 236, 222, 0.9);
  max-width: 460px;
}
.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .hero-img {
  position: relative;
  min-height: 260px;
}
.hero .hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero .hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50, 22, 65, 0.1), rgba(50, 22, 65, 0.75));
}

/* ---------- Section heading ---------- */
.section-title {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 42px);
  margin: 8px 0;
  color: var(--cream);
}

/* ---------- Tabs / filtro ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(254, 236, 222, 0.12);
  color: var(--cream-dim);
  transition: transform 0.15s, background 0.2s;
}
.tab:hover {
  background: rgba(254, 236, 222, 0.22);
  color: var(--cream);
}
.tab.active {
  box-shadow: var(--shadow-hard-sm);
  color: #fff;
}
.tab .count {
  border-radius: 9999px;
  padding: 0 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.22);
}
.tab.active .count {
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- Selo section ---------- */
.selo-block {
  margin-bottom: 40px;
  animation: fade-in 0.35s ease-out both;
}
.selo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  color: #fff;
}
.selo-head h2 {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1;
}
.selo-head p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  max-width: 560px;
}
.selo-head .num {
  display: grid;
  place-items: center;
  height: 48px;
  width: 48px;
  flex: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  font-family: "Anton", Impact, sans-serif;
  font-size: 22px;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* ---------- Track card ---------- */
.track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  animation: pop-in 0.25s ease-out both;
  transition: transform 0.2s, box-shadow 0.2s;
}
.track:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13, 2, 28, 0.32);
}
.track-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.track h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.track .meta {
  font-size: 12px;
  color: var(--muted);
}
.track .meta.warn {
  font-style: italic;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- Audio player (no card claro) ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 8px 12px;
}
.player.empty {
  color: var(--muted);
  font-size: 14px;
}
.play-btn {
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  flex: none;
  border: none;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s;
}
.play-btn:hover {
  transform: scale(1.06);
}
.player .track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player input[type="range"] {
  width: 100%;
  height: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 9999px;
  background: #e3dcea;
}
.player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: var(--ink);
  border: none;
}
.player input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 9999px;
  background: var(--ink);
}
.player .times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Card actions ---------- */
.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vote-cta,
.comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, background 0.2s, filter 0.15s;
}
.comment-btn {
  flex: 1;
  justify-content: center;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--border);
}
.comment-btn:hover {
  background: #ece6f0;
}
.vote-cta {
  flex: 1;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.vote-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ---------- Comments ---------- */
.comments {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comments ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment {
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 12px;
}
.comment .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.comment .author {
  font-size: 14px;
  font-weight: 600;
}
.comment .time {
  font-size: 11px;
  color: var(--muted);
}
.comment p {
  font-size: 14px;
  color: var(--ink);
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-form .row {
  display: flex;
  gap: 8px;
}
.comment-form .row .field {
  flex: 1;
}
.empty-note {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Ranking ---------- */
.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-item {
  position: relative;
  overflow: hidden;
  padding: 12px;
}
.rank-bar {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: 0.12;
}
.rank-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rank-pos {
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  flex: none;
  border-radius: 9999px;
  font-family: "Anton", Impact, sans-serif;
  font-size: 18px;
  background: var(--soft);
  color: var(--ink);
}
.rank-pos.top {
  color: #fff;
}
.rank-main {
  flex: 1;
  min-width: 0;
}
.rank-main .t {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-votes {
  text-align: right;
}
.rank-votes .n {
  font-family: "Anton", Impact, sans-serif;
  font-size: 24px;
  color: var(--ink);
}
.rank-votes .l {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Admin ---------- */
.totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.total-card {
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.total-card .n {
  font-family: "Anton", Impact, sans-serif;
  font-size: 30px;
  line-height: 1;
}
.total-card .l {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: var(--ink);
}
.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table td .orig {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}

/* ---------- Banners ---------- */
.banner {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
}
.banner.ok {
  background: #e7f8ef;
  color: #0c6b3f;
}
.banner.err {
  background: #fde7ec;
  color: #b00224;
}
.banner.info {
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(254, 236, 222, 0.14);
  color: var(--cream-dim);
}
.mode-pill .d {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #facc15;
}
.mode-pill.live .d {
  background: #34d399;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 2, 28, 0.72);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease-out both;
}
.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  color: var(--ink);
  animation: pop-in 0.2s ease-out both;
}
.modal h2 {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--ink);
}
.modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.edit-btn:hover {
  background: #ece6f0;
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

footer.site-footer {
  text-align: center;
  font-size: 13px;
  color: var(--cream-dim);
  padding: 24px 16px 40px;
}

/* ---------- Animations ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .brand .tag {
    display: inline;
  }
  .brand img {
    height: 40px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero .hero-text {
    padding: 40px 36px;
  }
  .hero .hero-img {
    min-height: 380px;
  }
  .hero .hero-img::after {
    background: linear-gradient(
      90deg,
      rgba(50, 22, 65, 0.55),
      rgba(50, 22, 65, 0.12) 60%,
      transparent
    );
  }
  .totals {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== VERSÃO 2 — Top 10 ===================== */
.t10-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .t10-grid { grid-template-columns: 1fr 1fr; }
}
.t10-col-title {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t10-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(254, 236, 222, 0.25);
}
.t10-top {
  background: rgba(255, 255, 255, 0.1);
}
.t10-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: grab;
  box-shadow: var(--shadow-card);
}
.t10-item.ranked {
  border-left: 5px solid var(--accent);
}
.t10-item:active { cursor: grabbing; }
.t10-pos {
  font-family: "Anton", Impact, sans-serif;
  font-size: 18px;
  color: var(--accent);
  min-width: 18px;
  text-align: center;
}
.t10-play {
  border: none;
  background: var(--soft);
  color: var(--ink);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
  font-size: 12px;
}
.t10-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t10-actions { display: flex; gap: 4px; flex: none; }
.t10-actions button {
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--ink);
  border-radius: 8px;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.t10-actions .t10-add { background: var(--accent); color: #fff; border: none; width: auto; padding: 0 10px; }
.t10-actions .t10-remove { color: var(--vermelho); }

/* dashboard admin v2 */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow-card);
}
.kpi .n { font-family: "Anton", Impact, sans-serif; font-size: 28px; line-height: 1; }
.kpi .l { font-size: 12px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }

/* ===== v2 — multi-seleção de estados ===== */
details.uf-multi { position: relative; }
details.uf-multi > summary {
  list-style: none; cursor: pointer;
  background: #fbf9fc; border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; color: var(--ink);
  font-size: 15px; min-width: 180px;
}
details.uf-multi > summary::-webkit-details-marker { display: none; }
details.uf-multi > summary::after { content: " ▾"; color: var(--muted); }
.uf-panel {
  position: absolute; z-index: 20; margin-top: 6px; width: 280px; max-height: 260px;
  overflow: auto; background: #fff; color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  box-shadow: var(--shadow-card);
}
.uf-reg { padding: 6px 0; border-bottom: 1px solid var(--border); }
.uf-reg:last-child { border-bottom: none; }
.uf-reg-head { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.uf-states { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 2px 4px; }
.uf-st { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); cursor: pointer; }

/* ===== v2 — áudio atual no editar ===== */
.edit-audio-atual { margin-top: 4px; }
.edit-audio-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.edit-audio-row .ok-dot { color: #16a34a; }

/* ===== v2 — tutorial "Como selecionar" ===== */
.howto { position: relative; padding: 16px 18px; margin-bottom: 18px; }
.howto-x {
  position: absolute; top: 10px; right: 12px; border: none; background: transparent;
  color: var(--muted); font-size: 16px; cursor: pointer;
}
.howto-title { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: 18px; color: var(--ink); margin-bottom: 12px; }
.howto-demo {
  display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px;
  background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px;
}
.howto-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.howto-coltop .howto-slot { border: 1px dashed var(--accent); }
.howto-cap { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.howto-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--ink);
}
.howto-mid { width: 40px; display: grid; place-items: center; position: relative; }
.howto-fly { font-size: 18px; animation: howfly 3s ease-in-out infinite; }
.howto-slot {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px; min-height: 30px;
}
.howto-n { font-family: "Anton", Impact, sans-serif; color: var(--accent); }
.howto-land { animation: howland 3s ease-in-out infinite; }
.howto-steps { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
@keyframes howfly {
  0%, 15% { transform: translateX(-26px); opacity: 0; }
  40% { transform: translateX(0); opacity: 1; }
  70%, 100% { transform: translateX(26px); opacity: 0; }
}
@keyframes howland {
  0%, 55% { opacity: 0; }
  72%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .howto-fly, .howto-land { animation: none; }
  .howto-land { opacity: 1; }
  .howto-fly { opacity: 1; }
}

/* ===== v2 — detalhe do participante (admin) ===== */
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 10px 0 6px; }
.det-item { display: flex; flex-direction: column; }
.det-l { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.det-v { font-size: 14px; color: var(--ink); word-break: break-word; }
.det-h { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: 16px; color: var(--ink); margin: 16px 0 8px; }
.det-top10 { margin: 0 0 4px 18px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.det-top10 li { color: var(--ink); font-size: 14px; }
.det-pos { display: inline-block; min-width: 26px; font-weight: 700; }
.det-coms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.det-coms li { background: var(--soft); border-radius: 8px; padding: 6px 10px; font-size: 14px; color: var(--ink); }
