:root {
  --bg: #0c0a12;
  --surface: #15121d;
  --surface-2: #1d1928;
  --border: #2b2539;
  --text: #f5f2fb;
  --muted: #a49db9;
  --gold: #ffd23f;
  --gold-2: #ffb800;
  --silver: #cfd6e4;
  --bronze: #e39a5f;
  --pink: #ff3d7f;
  --live: #2ee59d;
  --danger: #ff5a5a;
  --tiktok: #25f4ee;
  --instagram: #e1306c;
  --youtube: #ff0033;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 61, 127, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 210, 63, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(12, 10, 18, 0.78);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; letter-spacing: -0.5px; text-decoration: none; }
.logo b { color: var(--gold); }
.logo svg { width: 26px; height: 26px; }
.topbar .spacer { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,229,157,.6);} 70% { box-shadow: 0 0 0 8px rgba(46,229,157,0);} 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0);} }
.countdown b { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 18px;
  font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, background .12s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1300; box-shadow: 0 6px 24px rgba(255, 196, 0, .25); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: #262033; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 28px; text-align: center; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; color: var(--gold); background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.25); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.02; margin: 18px 0 14px; letter-spacing: -2px; font-weight: 950; }
.hero h1 .hl { background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 0 auto 22px; color: var(--muted); font-size: 17px; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0 34px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat .value { font-size: 24px; font-weight: 900; margin-top: 2px; }
.stat .value.bump { animation: bump .5s ease; }
@keyframes bump { 0% { color: var(--gold); transform: scale(1.08);} 100% { color: inherit; transform: none;} }

/* ---------- Pódio por rede ---------- */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.section-title h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.podium { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 38px; }
.crown-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 210px;
}
.crown-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--gold)); }
.crown-card.geral { background: linear-gradient(160deg, rgba(255,210,63,.16), rgba(255,61,127,.08) 60%, var(--surface)); border-color: rgba(255,210,63,.35); }
.crown-card .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.crown-card.geral .tag { color: var(--gold); }
.crown-card .tag-net { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crown-card .who { display: flex; align-items: center; gap: 12px; }
.crown-card .who .name { font-weight: 900; font-size: 18px; line-height: 1.15; word-break: break-word; }
.crown-card .who .handle { color: var(--muted); font-size: 14px; }
.crown-card .meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 13px; color: var(--muted); }
.crown-card .meta b { color: var(--text); font-size: 16px; }
.crown-card .empty { color: var(--muted); font-size: 14px; margin: auto 0; }
.crown-card .actions { display: flex; gap: 8px; }

/* ---------- Avatar ---------- */
.avatar { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #120d1b; background: var(--gold); }
/* sem overflow no .avatar: o ícone da rede (.pf) fica inteiro no canto em vez de cortado */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 112px; height: 112px; font-size: 38px; }
.avatar .pf { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: #0c0a12; display: grid; place-items: center; border: 2px solid #0c0a12; }
.avatar.lg .pf, .avatar.xl .pf { width: 24px; height: 24px; }

.pico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.pico svg { display: block; width: 100%; height: 100%; }
/* o selo da rede não herda a fonte grande das iniciais (senão o ícone desce para fora do círculo) */
.avatar .pf { font-size: 0; line-height: 0; }
.avatar.xl .pf { width: 30px; height: 30px; right: 2px; bottom: 2px; }
.avatar.xl .pf .pico { width: 16px; height: 16px; }
.pico.tiktok { color: var(--tiktok); }
.pico.instagram { color: var(--instagram); }
.pico.youtube { color: var(--youtube); }

/* ---------- Ranking ---------- */
.board-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; margin-bottom: 50px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 9px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.tab .count { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 999px; }
.search { flex: 1; min-width: 160px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 10px 14px; outline: none; }
.search:focus { border-color: var(--gold); }

.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 52px 44px 1fr auto auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px;
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.row:hover { border-color: #3d3452; background: #191522; }
.row.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: rgba(255,210,63,.18);} 100% { background: var(--surface);} }
.row .pos { font-weight: 950; font-size: 20px; text-align: center; color: var(--muted); }
.row.p1 { border-color: rgba(255,210,63,.55); background: linear-gradient(90deg, rgba(255,210,63,.10), var(--surface) 55%); }
.row.p1 .pos { color: var(--gold); }
.row.p2 .pos { color: var(--silver); }
.row.p3 .pos { color: var(--bronze); }
.row .info { min-width: 0; }
.row .title { display: flex; gap: 8px; align-items: center; font-weight: 800; min-width: 0; }
.row .title a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .title a:hover { text-decoration: underline; }
.row .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .figures { text-align: right; }
.row .total { font-weight: 950; font-size: 17px; }
.row .clicks { font-size: 12px; color: var(--muted); }
.row .clicks.bump { animation: bump .6s ease; }
.row .row-actions { display: flex; gap: 6px; }
.badge-bonus { font-size: 10px; font-weight: 900; letter-spacing: .6px; color: var(--live); border: 1px solid rgba(46,229,157,.45); padding: 1px 7px; border-radius: 999px; white-space: nowrap; cursor: help; }
.badge-top1 { font-size: 10px; font-weight: 900; letter-spacing: .6px; color: #1a1300; background: var(--gold); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.badge-lock { font-size: 10px; font-weight: 900; color: #fff; background: var(--pink); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.empty-state { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

/* ---------- Feed ao vivo ---------- */
.feed { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; max-height: calc(100vh - 100px); overflow: auto; }
.feed h3 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.feed ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feed li { font-size: 13px; line-height: 1.35; padding-bottom: 10px; border-bottom: 1px solid var(--border); animation: slidein .35s ease; }
.feed li:last-child { border-bottom: 0; }
.feed li .t { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.feed li.top1 b.ev { color: var(--gold); }
.feed li.lock b.ev { color: var(--pink); }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }

/* ---------- Como funciona ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.how .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.how .step .n { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,210,63,.12); color: var(--gold); display: grid; place-items: center; font-weight: 900; margin-bottom: 10px; }
.how .step h3 { margin: 0 0 6px; font-size: 16px; }
.how .step p { margin: 0; color: var(--muted); font-size: 14px; }
.faq { display: grid; gap: 8px; margin-bottom: 60px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--border); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 3, 10, .72); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; position: relative; }
.modal h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.4px; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field textarea { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 11px 13px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field .hint { font-size: 12px; color: var(--muted); }
.plat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plat-pick button { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 12px 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.plat-pick button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,210,63,.08); }
.money { position: relative; }
.money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--muted); }
.money input { padding-left: 42px !important; font-size: 22px; font-weight: 900; width: 100%; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.quick button.gold { border-color: rgba(255,210,63,.5); color: var(--gold); }
.quick button.pink { border-color: rgba(255,61,127,.5); color: var(--pink); }
.preview { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.preview .big { font-size: 26px; font-weight: 950; }
.preview .big.gold { color: var(--gold); }
.error { color: var(--danger); font-size: 14px; margin-top: 12px; font-weight: 600; }
.pix { text-align: center; }
.pix img { width: 220px; height: 220px; background: #fff; border-radius: 14px; padding: 8px; margin: 14px auto; display: block; }
.pix textarea { width: 100%; height: 86px; resize: none; font-family: ui-monospace, monospace; font-size: 12px; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-area { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--surface-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: slidein .3s ease; }
.toast.gold { border-color: var(--gold); }

.banner { background: linear-gradient(90deg, var(--gold), var(--pink)); color: #140f00; text-align: center; font-weight: 900; padding: 8px 12px; font-size: 14px; }

/* ---------- Perfil / selo ---------- */
.profile-card { margin: 40px auto; width: min(560px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 28px; text-align: center; position: relative; overflow: hidden; }
.profile-card.top1 { border-color: rgba(255,210,63,.6); background: linear-gradient(180deg, rgba(255,210,63,.14), var(--surface) 45%); }
.profile-card .avatar { margin: 0 auto 14px; }
.profile-card h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; }
.profile-card .rankline { margin: 18px 0; font-size: 46px; font-weight: 950; letter-spacing: -1.5px; }
.profile-card.top1 .rankline { color: var(--gold); }
.profile-card .rankline.long { font-size: 34px; letter-spacing: -1px; line-height: 1.15; }
@media (max-width: 620px) { .profile-card .rankline { font-size: 34px; } .profile-card .rankline.long { font-size: 26px; } }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.big-stats div { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.big-stats b { display: block; font-size: 22px; font-weight: 950; }
.big-stats span { font-size: 12px; color: var(--muted); }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-actions .btn { justify-content: center; min-width: 0; }
@media (max-width: 480px) {
  .profile-card { padding: 22px 16px; }
  .profile-actions .btn { padding: 11px 10px; font-size: 14px; }
  .big-stats div { padding: 10px 6px; }
  .big-stats span { font-size: 11px; line-height: 1.25; display: block; }
}
.embed { text-align: left; margin-top: 22px; }
.embed img { max-width: 100%; display: block; margin: 8px 0 10px; }
/* Código do selo: uma linha com rolagem horizontal + botão Copiar (não quebra o card no celular) */
.embed-code { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 12px; min-width: 0; }
.embed-code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); padding: 6px 0; scrollbar-width: thin; }
.embed-code .btn { flex: 0 0 auto; }

/* ---------- Hall da fama: listas verticais numa coluna central ---------- */
.hall-wrap { max-width: 880px; margin: 0 auto; }
.hall-toolbar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.hall-select { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 10px 36px 10px 14px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; outline: none;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a49db9' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.hall-select:focus, .hall-select:hover { border-color: var(--gold); }
.hall-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.hall-sec > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.hall-sec > header h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.hall-sec > header .muted { font-size: 12px; }
.live-tag { font-size: 11px; font-weight: 800; color: var(--live); border: 1px solid rgba(46,229,157,.4); border-radius: 999px; padding: 2px 8px; }
.hall-list { display: flex; flex-direction: column; }
.hrow { display: grid; grid-template-columns: 116px 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; text-decoration: none; border-top: 1px solid var(--border); transition: background .15s; }
.hrow:first-child { border-top: 0; }
a.hrow:hover { background: #191522; }
.hrow .lead { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hrow .lead b { font-size: 15px; font-weight: 900; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hrow .lead small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.hrow .lead.rank b { font-size: 20px; color: var(--muted); }
.hrow.r1 .lead.rank b { color: var(--gold); }
.hrow.r2 .lead.rank b { color: var(--silver); }
.hrow.r3 .lead.rank b { color: var(--bronze); }
.hrow.r1 { background: linear-gradient(90deg, rgba(255,210,63,.08), transparent 60%); }
.hrow .info { min-width: 0; }
.hrow .n { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .figures { text-align: right; }
.hrow .total { font-weight: 950; font-size: 16px; }
.hrow .clicks { font-size: 12px; color: var(--muted); }
.hrow.empty { color: var(--muted); grid-template-columns: 116px 1fr; font-size: 14px; }
/* Campeão geral em destaque no topo de cada dia / mês (como o "Top 1 geral" da home) */
.hall-champ { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; text-decoration: none;
  background: linear-gradient(120deg, rgba(255,210,63,.18), rgba(255,61,127,.08) 55%, transparent); border-bottom: 1px solid rgba(255,210,63,.3); }
.hall-champ::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); }
.hall-champ:hover { background: linear-gradient(120deg, rgba(255,210,63,.24), rgba(255,61,127,.1) 55%, transparent); }
.hall-champ .avatar { box-shadow: 0 0 0 3px var(--gold), 0 8px 28px rgba(255,196,0,.3); }
.hall-champ .tag-net { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.hall-champ .tag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; color: var(--gold); }
.hall-champ .n { font-weight: 900; font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-champ .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-champ .info { min-width: 0; }
.hall-champ .figures { text-align: right; }
.hall-champ .total { font-weight: 950; font-size: 22px; color: var(--gold); }
.hall-champ .clicks { font-size: 12px; color: var(--muted); }
.hall-champ.empty { grid-template-columns: 1fr; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .podium { grid-template-columns: 1fr 1fr; }
  .podium .crown-card.geral { grid-column: 1 / -1; } /* o 1º geral ocupa a linha toda; as outras redes ficam lado a lado */
  .board-grid { grid-template-columns: 1fr; }
  .feed { position: static; max-height: 360px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .topbar .countdown-label, .topbar .btn-label-long { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: span 2; }
  .podium { grid-template-columns: 1fr; }
  .row { grid-template-columns: 34px 40px 1fr auto; gap: 10px; padding: 10px; }
  .row .row-actions { display: none; }
  .avatar { width: 40px; height: 40px; }
  .how { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 44px 40px 1fr auto; gap: 10px; padding: 10px 12px; }
  .hrow.empty { grid-template-columns: 44px 1fr; }
  .hall-toolbar .tabs { flex-wrap: nowrap; }
  .hrow .lead small { display: none; }
  .hrow .lead .lbl { display: none; }
  .hall-champ { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .hall-champ .figures { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; text-align: left; }
  .hall-champ .n { font-size: 17px; }
  .hall-toolbar .tab { padding: 7px 8px; font-size: 12px; gap: 4px; }
  .big-stats b { font-size: 18px; }
}

/* ---------- Modal de card (imagem / vídeo) ---------- */
.card-modal { width: min(560px, 100%); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg button small { color: var(--muted); font-size: 11px; }
.seg button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,210,63,.08); }
.seg button[disabled] { opacity: .45; cursor: not-allowed; }
.card-stage { margin-top: 16px; display: grid; place-items: center; background: #07060b; border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.card-canvas { height: min(52vh, 520px); width: auto; aspect-ratio: 9 / 16; border-radius: 10px; display: block; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.card-stage.square .card-canvas { aspect-ratio: 1 / 1; height: min(40vh, 400px); }
.song { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); }
.song b { color: var(--text); }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--gold); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.progress { margin-top: 12px; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--pink)); transition: width .1s linear; }
.card-status { text-align: center; font-size: 13px; min-height: 18px; margin: 10px 0 0; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.card-actions .btn { flex: 1; min-width: 180px; }

/* ---------- Faixas do ranking + paginação ---------- */
.tier { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.list > .tier:first-child { margin-top: 0; }
.tier-title { font-weight: 950; font-size: 17px; letter-spacing: -.3px; }
.tier-sub { color: var(--muted); font-size: 13px; }
.tier-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.tier.t10 .tier-title { color: var(--gold); }
.tier.t10 { border-bottom-color: rgba(255,210,63,.35); }
.tier.t20 .tier-title { color: var(--silver); }
.tier.t50 .tier-title { color: var(--bronze); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; }
.pg { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 7px 12px; font-weight: 800; font-size: 13px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 44px; }
.pg small { color: var(--muted); font-size: 10px; font-weight: 600; }
.pg:hover:not([disabled]) { border-color: #3d3452; background: #191522; }
.pg[aria-current="page"] { border-color: var(--gold); background: rgba(255,210,63,.1); }
.pg[aria-current="page"] b { color: var(--gold); }
.pg[disabled] { opacity: .4; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 4px; }
@media (max-width: 620px) { .pg small { display: none; } .tier-sub { display: none; } }

/* ---------- Menu do header ---------- */
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 7px 10px; border-radius: 9px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 860px) { .nav a:first-child { display: none; } .topbar .pill:not(.countdown) { display: none; } }
@media (max-width: 620px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; gap: 8px; padding: 10px 0 0; }
  .nav { order: 10; width: calc(100% + 32px); margin: 0 -16px; justify-content: center; gap: 2px; border-top: 1px solid var(--border); padding: 4px 0; }
  .nav a, .nav a:first-child { display: inline-block; font-size: 13px; padding: 6px 10px; }
  .nav a[aria-current="page"] { color: var(--gold); }
}

/* Seletor de período (hoje / mês / todos os tempos): centralizado e em destaque */
.period-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 28px; }
.period-cap { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.period-switch { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); max-width: 100%; }
.period-switch button { border: 0; background: transparent; color: var(--muted); min-width: 150px; padding: 12px 22px; border-radius: 13px; font: inherit; font-weight: 900; font-size: 17px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: background .15s, color .15s; }
.period-switch button small { font-size: 11px; font-weight: 700; opacity: .75; }
.period-switch button:hover { color: var(--text); background: var(--surface-2); }
.period-switch button[aria-selected="true"] { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1300; box-shadow: 0 6px 24px rgba(255, 196, 0, .25); }
@media (max-width: 560px) {
  .period-switch { width: 100%; }
  .period-switch button { flex: 1; min-width: 0; padding: 10px 6px; font-size: 14px; }
  .period-switch button small { display: none; }
}
.period-note { font-size: 12px; color: var(--muted); }
