.jks-container { 
    display: flex; 
    justify-content: center;
    line-height: normal;
    box-sizing: border-box;
}

.jks-stars-inline { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 6px; 
    gap: 9px;
    line-height: 1; 
    max-width: 100%; 
}

.jks-group { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.jks-stars { 
    display: flex; 
    gap: 1px;
}

.jks-stars .fa-star { 
    font-size: 12px;
    color: #9769FF; 
    cursor: pointer; 
    transition: color 0.2s ease; 
}

.jks-stars .fa-star.fas, .jks-stars .fa-star.jks-hover { color: #9769FF; }

.jks-label { 
    position: absolute; 
    top: -10px; 
    font-size: 9px; 
    line-height: normal; 
    font-weight: bold; 
    background: #9769FF; 
    color: #fff; 
    padding: 2px 6px; 
    border-radius: 3px; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.2s ease; 
    white-space: nowrap; 
    pointer-events: none; 
    z-index: 10; 
}
.jks-group:hover .jks-label { opacity: 1; visibility: visible; top: -24px; }
.fa-star.far {opacity: 0.3;}

/* Adapta������es para cards claros */
.card:not(.post-card) .jks-stars-inline { background: rgba(255,255,255,0.5); }
.card:not(.post-card) .jks-separator { color: rgba(0,0,0,0.2); }

/* ---- RENDER EST���TICO ---- */
.jks-star-rating-static {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    font-size: 14px;
}
.jks-star-rating-static i {
    display: inline-block !important;
    margin: 0 2px 0 0 !important;
    line-height: 1 !important;
}

/* ---- DASHBOARD GERAL ---- */
.jks-dashboard-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.1); }
.jks-dash-col { display: flex; flex-direction: column; }

.jks-dash-header { 
    display: flex; 
    justify-content: flex-start; 
    align-items: flex-end; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.jks-dash-titles { display: flex; flex-direction: column; }

.jks-hand-font { 
    font-family: 'Summer loving regular', Helvetica, Arial, Lucida, sans-serif; 
    font-size: 70px; 
    color: #333; 
    display: block; 
    line-height: 1;
    font-weight: normal;
}

.jks-bold-font { 
    font-family: 'pressshadow', Helvetica, Arial, Lucida, sans-serif; 
    font-size: 60px; 
    text-transform: uppercase;
    color: #111; 
    line-height: 1;
}

.jks-big-pct { 
    font-family: 'Summer loving regular', Helvetica, Arial, Lucida, sans-serif; 
    font-size: 60px; 
    font-weight: normal; 
    color: #111; 
    line-height: 1;
    margin-bottom: 5px; 
}

.jks-dash-main-stars { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.jks-dash-date, .jks-dash-count { font-size: 11px; color: #666; font-weight: bold; }

.jks-dash-breakdown { display: flex; flex-direction: column; gap: 8px; }
.jks-break-row { display: flex; align-items: center; gap: 15px; font-size: 12px; color: #444; flex-wrap: nowrap; }
.jks-break-row span { width: 45px; flex-shrink: 0; }

.jks-empty-msg { font-size: 15px; color: #333; margin-top: 5px; font-weight: normal; }

/* Ranking Top 5 Interno */
.jks-ranking-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.jks-rank-item { display: flex; align-items: center; gap: 10px; }
.jks-rank-pos { background: #111; color: #fff; font-weight: bold; font-size: 11px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jks-rank-avatar img { border-radius: 50%; width: 30px; height: 30px; object-fit: cover; }
.jks-rank-name { font-weight: bold; font-size: 12px; color: #111; flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jks-rank-stars-mini .jks-star-rating-static { font-size: 11px; }
.jks-rank-pct { font-size: 12px; font-weight: bold; color: #111; flex-shrink: 0; }

/* ---- P���DIO GLOBAL ---- */
.jks-global-ranking { background: #fdfdfd; border: 1px solid #eee; border-radius: 8px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.jks-global-ranking .jks-rank-item { padding: 10px 0; border-bottom: 1px dashed #ddd; }
.jks-global-ranking .jks-rank-item:last-child { border-bottom: none; }
.jks-global-ranking .jks-rank-pos { width: 30px; height: 30px; font-size: 14px; border-radius: 5px; }
.jks-global-ranking .jks-rank-item:nth-child(1) .jks-rank-pos { background: #ffd700; color: #111; } 
.jks-global-ranking .jks-rank-item:nth-child(2) .jks-rank-pos { background: #c0c0c0; color: #111; } 
.jks-global-ranking .jks-rank-item:nth-child(3) .jks-rank-pos { background: #cd7f32; color: #fff; } 

/* Adicionado para Links do Ranking e Avatares */
.jks-avatar-link { display: block; transition: transform 0.2s ease; cursor: pointer; text-decoration: none; }
.jks-avatar-link:hover { transform: scale(1.1); }
.jks-name-link { color: inherit; text-decoration: none; transition: color 0.2s; cursor: pointer; }
.jks-name-link:hover { color: #9769FF; }

/* ---- P���DIO MINI (TOP 3 AVATARES) ---- */
.jks-top3-podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 20px; max-width: 200px; }

.jks-top3-item { display: flex; flex-direction: column; align-items: center; position: relative; }

.jks-top3-crown { width: 30px; height: auto; margin-bottom: -10px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }
.jks-top3-item.pos-0 .jks-top3-crown { width: 50px; margin-bottom: -15px; }

/* Wrapper do Link do Avatar e Coroa (Com Flexbox) */
.jks-top3-avatar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.jks-top3-avatar-link:hover { transform: translateY(-5px); }

.jks-top3-avatar img { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.15); object-fit: cover; }
.jks-top3-item.pos-0 .jks-top3-avatar img { border-color: #ffd700; } 
.jks-top3-item.pos-1 .jks-top3-avatar img { border-color: #c0c0c0; } 
.jks-top3-item.pos-2 .jks-top3-avatar img { border-color: #cd7f32; } 

/* ---- GRID DE M���SICAS AVALIADAS ---- */
.jks-track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; justify-items: start; }
.jks-track-card { display: flex; align-items: flex-start; gap: 12px; background: transparent; padding: 0; border: none; transition: transform 0.2s; width: 100%; }
.jks-track-card:hover { transform: translateY(-2px); }
.jks-track-thumb-link { flex-shrink: 0; }

.jks-track-thumb { width: 80px; height: 50px; border-radius: 4px; object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* --- FALLBACK ESTILIZADO DE MINIATURA AUSENTE --- */
.jks-track-thumb-fallback {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    background: #f7f7f7;
    color: #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px dashed #e2e2e2;
}

.jks-track-info { display: flex; flex-direction: column; gap: 3px; overflow: hidden; width: 100%; }
.jks-track-title { font-size: 0.9rem; font-weight: 700; color: #111; text-decoration: none; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jks-track-title:hover { color: #9769FF; }
.jks-track-rating { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.jks-track-rating .jks-star-rating-static { font-size: 10px; } 
.jks-star-result-text { color: #666; font-size: 0.75rem; font-weight: 700; }
.jks-track-date { font-size: 0.7rem; color: #999; font-weight: 600; margin-top: 2px; }
.jks-empty-state { color: #999; font-size: 0.85rem; font-style: italic; padding: 20px; }

/* ---- RESPONSIVIDADE (MOBILE) ---- */
@media (max-width: 768px) {
    .jks-track-grid { grid-template-columns: 1fr; }
    .jks-track-card { flex-direction: column; align-items: center; text-align: center; gap: 8px;}
    .jks-track-thumb, .jks-track-thumb-fallback { width: 120px; height: 75px; } 
    .jks-track-thumb-fallback { font-size: 24px; }
    .jks-hand-font { font-size: 50px; margin-bottom: -15px; }
    .jks-bold-font { font-size: 45px; }
    .jks-big-pct { font-size: 45px; margin-bottom: 2px; }
}