/* ==========================================================================
   [11] PÁGINA: RANKING SÊNIOR (Pódio gigante dos 3 primeiros lugares, coroas, bordas das 3 ligas de cultivo e lista top 100 usuários)
   ========================================================================== */

.dt-manga-ui-container {
  width: 100%;
  max-width: 700px; /* <--- MUDE AQUI PARA 700px */
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dt-ranking-header-clean { text-align: center; margin-bottom: 16px; }
.dt-ranking-header-clean h2 { font-size: 26px; font-weight: 900; color: #fff; margin: 0 0 4px 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.dt-ranking-header-clean h2 i { color: var(--primary); }
.dt-ranking-header-clean p { font-size: 15px; color: var(--muted); margin: 0; }

.dt-manga-card {
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 30px;
}

/* ==========================================
   COMPONENTE UNIVERSAL: AVATAR + LEVEL
   ========================================== */
.dt-universal-avatar {
  position: relative;
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 50%;
}
.dt-universal-avatar img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #333; /* Borda padrão cinza */
  padding: 3px; /* Espaço entre a foto e a borda */
  background: #161618;
  transition: border-color 0.3s ease;
}

/* A tag de Level */
.dt-universal-level {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  background: #333; 
  color: #fff;
  font-size: 12px; font-weight: 900;
  padding: 2px 12px;
  border-radius: 12px;
  border: 3px solid #161618; /* Bordinha pra recortar o fundo */
  white-space: nowrap;
  z-index: 2;
}

/* ==========================================
   SISTEMA DE LIGAS (ROXO, PRATA E DOURADO)
   ========================================== */
.tier-purple img { border-color: #8520d2 !important; } 
.tier-purple .dt-universal-level { background: #8520d2 !important; color: #fff !important; }

.tier-silver img { border-color: #e2e8f0 !important; } 
.tier-silver .dt-universal-level { background: #e2e8f0 !important; color: #161618 !important; }

.tier-gold img { border-color: #ffb800 !important; box-shadow: 0 0 15px rgba(255, 184, 0, 0.4) !important; }
.tier-gold .dt-universal-level { background: #ffb800 !important; color: #161618 !important; }

/* ==========================================
   PÓDIO DENTRO DO CARD
   ========================================== */
.dt-podium-card { display: flex; justify-content: center; align-items: flex-end; gap: 40px; padding: 50px 30px 40px 30px; }
.dt-podium-spot { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.dt-rank-number { color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.dt-rank-number.first { color: #ffb800; font-size: 16px; text-shadow: 0 0 10px rgba(255,184,0,0.3); margin-bottom: 12px;}
.dt-spot-info { display: flex; flex-direction: column; align-items: center; margin-top: 8px;}
.dt-spot-info strong { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.cultivator-tier { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.spot-xp { background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 800; }
.spot-xp.first { background: rgba(255, 184, 0, 0.1); color: #ffb800; }
.place-1 .dt-universal-avatar img { width: 110px; height: 110px; }
.place-2 .dt-universal-avatar img, .place-3 .dt-universal-avatar img { width: 70px; height: 70px; }

/* ==========================================
   LISTA DE RANKING (ESTILO CAPÍTULOS)
   ========================================== */
.dt-ranking-list-card { padding: 24px; }
.dt-list-titles { display: flex; padding: 0 20px 12px 20px; color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; }
.col-rank { width: 50px; }
.col-user { flex: 1; margin-left: 10px; }
.col-xp { width: 100px; text-align: right; }

.dt-chapter-item-style { display: flex; align-items: center; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 12px 20px; margin-bottom: 10px; transition: background 0.2s; }
.dt-chapter-item-style:hover { background: rgba(255,255,255,0.05); }

.dt-rank-col { width: 50px; color: rgba(255,255,255,0.5); font-size: 16px; font-weight: 800; }
.dt-user-col { flex: 1; display: flex; align-items: center; gap: 16px; }

.list-size { padding: 3px; margin-bottom: 0; }
.list-size img { width: 44px; height: 44px; border-width: 2px; }
.list-size .dt-universal-level.small { font-size: 10px; padding: 1px 8px; bottom: -8px; border-width: 2px; }

.dt-user-name { display: flex; flex-direction: column; }
.dt-user-name strong { color: #fff; font-size: 15px; font-weight: 700; }
.dt-user-name span { color: var(--muted); font-size: 12px; font-weight: 500; }
.dt-xp-col { width: 100px; text-align: right; color: #fff; font-size: 14px; font-weight: 800; }
/* ==========================================
   MOBILE (Responsividade Perfeita e Espaçada)
   ========================================== */
@media (max-width: 600px) {
  /* Pódio lado a lado e espaçado nas laterais */
  .dt-podium-card { 
    flex-direction: row; 
    align-items: flex-end; 
    justify-content: space-between; /* A MÁGICA: Empurra 2º e 3º para as pontas */
    gap: 0; /* Tiramos o gap para o space-between usar a tela toda */
    padding: 40px 15px 20px 15px; /* Uma folguinha pra não encostar no vidro do celular */
  }
  
  /* Garante que o 1º lugar fique alto no meio */
  .place-1 { 
    order: 0; 
    margin-bottom: 15px; 
  }

  /* Diminui as fotos no mobile pra caber tudo bonito */
  .place-1 .dt-universal-avatar img { width: 85px; height: 85px; }
  .place-2 .dt-universal-avatar img, .place-3 .dt-universal-avatar img { width: 60px; height: 60px; }
  
  /* Ajusta as pílulas de nível do pódio mobile */
  .dt-universal-level { font-size: 10px; padding: 2px 8px; bottom: -5px; }
  
  /* Textos menores no pódio mobile */
  .dt-spot-info strong { font-size: 12px; margin-bottom: 2px; }
  .cultivator-tier { font-size: 10px; margin-bottom: 4px; }
  .spot-xp { font-size: 10px; padding: 2px 6px; }
  .spot-xp.first { font-size: 11px; }
  .dt-rank-number { font-size: 11px; margin-bottom: 4px; }
  .dt-rank-number.first { font-size: 13px; margin-bottom: 8px; }

  /* Ajustes da Lista no mobile */
  .dt-chapter-item-style { padding: 12px; gap: 10px; }
  .dt-rank-col { width: 30px; font-size: 14px; }
  .col-rank { width: 30px; }
  .dt-user-name strong { font-size: 13px; }
  .dt-xp-col { width: 70px; font-size: 12px; }
}