/* TOP 10 isolado: todas as regras sob .sf-top-* para não afetar o player. */
.sf-top-overlay{position:fixed;inset:0;z-index:10002;display:grid;place-items:center;padding:clamp(10px,2.2vh,25px);isolation:isolate}
.sf-top-backdrop{position:absolute;inset:0;background:rgba(2,4,17,.72);backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px)}
.sf-top-window{--top-accent:#20d8ff;position:relative;isolation:isolate;display:flex;flex-direction:column;gap:0;width:min(715px,100%);max-height:min(850px,96dvh);min-height:0;overflow:hidden;padding:clamp(13px,2.2vw,24px);border:1px solid #45a8ff;border-radius:23px;background:radial-gradient(circle at 74% 0%,rgba(143,29,212,.27),transparent 43%),linear-gradient(145deg,rgba(14,12,40,.97),rgba(6,12,32,.98));box-shadow:0 0 0 2px rgba(168,65,255,.23),0 0 36px rgba(84,58,244,.42),0 26px 70px rgba(0,0,0,.63);color:#f4f6ff;font-family:Inter,Arial,sans-serif}
.sf-top-window:before{content:'';position:absolute;z-index:-1;inset:0 0 auto;height:145px;opacity:.4;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 12px,#b528f3 12px 17px,transparent 17px 26px,#1787e7 26px 30px,transparent 30px 46px);mask-image:linear-gradient(to top,transparent,black);-webkit-mask-image:linear-gradient(to top,transparent,black)}
.sf-top-overlay[data-mode="dislikes"] .sf-top-window{--top-accent:#ff8b71;border-color:#b75dd1}
.sf-top-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-shrink:0;margin-bottom:14px}
.sf-top-heading{display:flex;align-items:center;gap:14px;min-width:0}
.sf-top-trophy{font-size:43px;line-height:1;filter:drop-shadow(0 0 9px rgba(245,75,233,.8))}
.sf-top-heading h2{margin:0;font:900 clamp(31px,4vw,52px)/1.05 'Barlow Condensed',Inter,Arial,sans-serif;letter-spacing:1px;background:linear-gradient(90deg,#ff54c6 10%,#b663f5 50%,#27c8ff);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 26px rgba(204,57,239,.14)}
.sf-top-heading h2 span{color:#62ceff}
.sf-top-heading p{margin:5px 0 0;color:#abbfe8;font-size:clamp(9px,1.3vw,11px);font-weight:700;letter-spacing:.5px}
.sf-top-close{height:39px;width:39px;flex-shrink:0;border:1px solid rgba(41,205,255,.88);border-radius:50%;background:rgba(13,22,52,.85);color:#fff;font:28px/1 Inter,Arial,sans-serif;box-shadow:0 0 13px rgba(13,159,245,.29)}
.sf-top-close:hover{background:rgba(27,94,158,.7)}
.sf-top-tabs{display:grid;grid-template-columns:1fr 1fr;min-height:52px;border:1px solid rgba(90,126,205,.48);border-radius:18px;background:rgba(5,10,31,.79);padding:3px;gap:4px;flex-shrink:0}
.sf-top-tab{border:1px solid transparent;border-radius:14px;background:transparent;color:#b6c1e6;font-size:clamp(12px,1.65vw,16px);font-weight:800;letter-spacing:.1px;padding:10px 5px;min-width:0}
.sf-top-tab>span{margin-right:6px;font-size:1.2em}
.sf-top-tab.is-active{color:#fff;background:linear-gradient(110deg,#08c6ff,#2378ff 48%,#8e42ec);border-color:#62d2ff;box-shadow:0 0 18px rgba(32,145,255,.35)}
.sf-top-overlay[data-mode="dislikes"] .sf-top-tab.is-active{background:linear-gradient(105deg,#ff678d,#bc45ed 80%);border-color:#ffafc0;box-shadow:0 0 17px rgba(255,65,145,.32)}
.sf-top-description{font-size:12px;color:#a6c6e4;margin:12px 3px 11px;text-align:center;flex-shrink:0}
.sf-top-ranking{min-height:92px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#207cc6 rgba(5,12,31,.6);scrollbar-width:thin;display:flex;flex-direction:column;gap:5px;padding-right:4px}
.sf-top-row{display:grid;grid-template-columns:39px 44px minmax(0,1fr) 110px;align-items:center;gap:10px;padding:6px 10px;border:1px solid rgba(81,118,182,.37);border-radius:10px;background:linear-gradient(110deg,rgba(23,33,66,.79),rgba(18,17,56,.72));min-height:54px}
.sf-top-row:first-child{border-color:rgba(247,190,46,.71);box-shadow:0 0 15px rgba(243,191,43,.11)}
.sf-top-position{display:grid;place-items:center;min-width:35px;height:37px;border-radius:9px;font-weight:900;font-size:22px;color:#71caff;background:rgba(42,72,139,.29)}
.sf-top-row:nth-child(1) .sf-top-position{color:#ffcb38;background:rgba(184,131,15,.25);box-shadow:0 0 10px rgba(240,169,17,.31)}
.sf-top-row:nth-child(2) .sf-top-position{color:#e2eaff;background:rgba(131,154,188,.22)}
.sf-top-row:nth-child(3) .sf-top-position{color:#ffaf7b;background:rgba(187,93,45,.22)}
.sf-top-art{height:44px;width:44px;display:grid;place-items:center;overflow:hidden;border-radius:8px;border:1px solid rgba(111,153,227,.53);background:radial-gradient(circle at 45% 35%,#673caa,#0d1840 85%);color:#d7afff;font-size:23px}
.sf-top-art img{width:100%;height:100%;display:block;object-fit:cover}
.sf-top-song{display:flex;flex-direction:column;min-width:0;gap:3px;overflow:hidden}
.sf-top-title{font-size:clamp(12px,1.35vw,15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
.sf-top-artist{font-size:clamp(10px,1.1vw,12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9ac4f0}
.sf-top-score{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-radius:25px;border:1px solid rgba(54,138,220,.48);padding:8px 10px;min-width:0;color:#3ae3ff;font-weight:800;font-variant-numeric:tabular-nums;background:rgba(15,43,84,.33)}
.sf-top-voteicon{font-size:16px}
.sf-top-overlay[data-mode="dislikes"] .sf-top-score{color:#ff91af;border-color:rgba(250,105,153,.46);background:rgba(95,18,71,.25)}
.sf-top-state{margin:13px 0 22px;padding:28px 10px;border:1px dashed rgba(90,127,208,.47);border-radius:12px;text-align:center;color:#adbfdf;font-size:13px}
.sf-top-state-error{color:#ffc2bd}
.sf-top-foot{flex-shrink:0;padding:13px 2px 0;font-size:11px;color:#94a5cc;text-align:center}
.sf-top-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#46e4ca;box-shadow:0 0 9px #46e4ca;margin-right:5px}
@media(max-width:600px){.sf-top-overlay{padding:8px}.sf-top-window{border-radius:16px;max-height:94dvh;padding:11px}.sf-top-head{margin-bottom:10px}.sf-top-trophy{font-size:31px}.sf-top-heading{gap:8px}.sf-top-heading h2{font-size:30px}.sf-top-heading p{font-size:9px;letter-spacing:0}.sf-top-close{height:34px;width:34px}.sf-top-tabs{min-height:46px;border-radius:12px}.sf-top-tab{font-size:12px;padding:8px 3px}.sf-top-description{font-size:10px;margin:9px 0}.sf-top-row{grid-template-columns:27px 36px minmax(0,1fr) 75px;gap:6px;padding:5px 6px;min-height:47px}.sf-top-position{min-width:26px;height:29px;font-size:17px}.sf-top-art{width:36px;height:36px}.sf-top-title{font-size:11px}.sf-top-artist{font-size:10px}.sf-top-score{font-size:11px;padding:6px 4px;gap:4px}.sf-top-voteicon{font-size:12px}.sf-top-foot{font-size:9px;padding-top:8px}}
@media(max-height:700px) and (min-width:601px){.sf-top-window{max-height:95dvh;padding:12px 18px}.sf-top-row{min-height:44px;padding:4px 10px}.sf-top-art{height:38px;width:38px}.sf-top-position{height:32px}}
@media(prefers-reduced-motion:reduce){.sf-top-window,.sf-top-tab{transition:none}}

/* V11.1 | Correção isolada do layout do TOP 10.
   Grade de altura estável: título/artista não escapam da linha, nem se sobrepõem.
   Este CSS usa apenas classes sf-top-*; nenhuma regra do player é alterada. */
.sf-top-window {
  max-height: min(880px, 96dvh);
}
.sf-top-head {
  margin-bottom: 11px;
}
.sf-top-tabs {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
}
.sf-top-tab {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 6px;
  line-height: 1.15;
}
.sf-top-description {
  margin-top: 9px;
  margin-bottom: 9px;
  line-height: 17px;
}
.sf-top-ranking {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-auto-rows: 50px;
  align-content: start;
  gap: 5px;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 6px;
  overflow-y: auto;
}
.sf-top-ranking > .sf-top-row {
  display: grid;
  grid-template-columns: 36px 40px minmax(0,1fr) 102px;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 3px 9px;
  margin: 0;
  overflow: hidden;
}
.sf-top-ranking .sf-top-position {
  min-width: 0;
  width: 34px;
  height: 35px;
  line-height: 35px;
}
.sf-top-ranking .sf-top-art {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  line-height: 40px;
}
.sf-top-ranking .sf-top-song {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: 18px 15px;
  align-content: center;
  gap: 2px;
  min-height: 0;
  max-height: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.sf-top-ranking .sf-top-title,
.sf-top-ranking .sf-top-artist {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  text-indent: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
  text-align: left;
}
.sf-top-ranking .sf-top-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 18px !important;
}
.sf-top-ranking .sf-top-artist {
  font-size: 11px;
  font-weight: 400;
  line-height: 15px !important;
}
.sf-top-ranking .sf-top-score {
  justify-self: stretch;
  justify-content: flex-end;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 5px 10px;
  line-height: 20px;
  font-size: 14px;
}
.sf-top-foot {
  padding-top: 9px;
  line-height: 15px;
}
@media(max-width:600px) {
  .sf-top-window { max-height: 95dvh; }
  .sf-top-head { margin-bottom: 9px; }
  .sf-top-tabs { height: 46px; min-height: 46px; max-height: 46px; }
  .sf-top-tab { height: 38px; min-height: 38px; max-height: 38px; padding: 0 3px; }
  .sf-top-description { line-height: 15px; margin: 7px 0; }
  .sf-top-ranking { grid-auto-rows: 49px; gap: 4px; padding-right: 3px; }
  .sf-top-ranking > .sf-top-row { grid-template-columns: 25px 35px minmax(0,1fr) 69px; gap: 6px; height: 49px; min-height: 49px; max-height: 49px; padding: 3px 5px; }
  .sf-top-ranking .sf-top-position { width: 24px; height: 30px; font-size: 16px; line-height: 30px; }
  .sf-top-ranking .sf-top-art { width: 35px; min-width: 35px; height: 35px; min-height: 35px; line-height: 35px; }
  .sf-top-ranking .sf-top-title { font-size: 11px; line-height: 17px !important; }
  .sf-top-ranking .sf-top-artist { font-size: 10px; line-height: 14px !important; }
  .sf-top-ranking .sf-top-song { grid-template-rows: 17px 14px; height: 33px; max-height: 33px; }
  .sf-top-ranking .sf-top-score { font-size: 11px; height: 29px; min-height: 29px; padding: 4px 6px; line-height: 17px; }
  .sf-top-foot { padding-top: 7px; line-height: 13px; }
}
@media(max-height:700px) and (min-width:601px) {
  .sf-top-ranking { grid-auto-rows: 50px; }
  .sf-top-ranking > .sf-top-row { height: 50px; min-height: 50px; max-height: 50px; }
}
