/* top.css — top foods ranking page */


/* V6.7 â€” Page Top aliments */

.top-grid {
  display: grid;
  
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  
  gap: 18px;
  
  margin-top: 18px;
}


.top-card {
  border-radius: 24px;
  
  overflow: hidden;
}


.top-card-head {
  padding: 14px 16px 10px;
  
  border-bottom: 1px solid var(--line);
}


.top-card-head h2 {
  font-size: 15px;
  margin: 0 0 2px;
}


.top-list {
  padding: 4px 0;
}


.top-row {
  display: flex;
  
  align-items: center;
  
  gap: 10px;
  
  padding: 8px 14px;
  
  text-decoration: none;
  
  color: var(--text);
  
  border-bottom: 1px solid var(--line);
  
  transition: background .12s;
}


.top-row:last-child {
  border-bottom: none;
}


.top-row:hover {
  background: rgba(255,255,255,0.04);
}


.top-medal {
  font-size: 16px;
  
  width: 22px;
  
  text-align: center;
  
  flex-shrink: 0;
}


.top-thumb {
  width: 38px;
  
  height: 38px;
  
  object-fit: contain;
  
  border-radius: 8px;
  
  background: rgba(0,0,0,0.3);
  
  border: 1px solid var(--line);
  
  padding: 3px;
  
  flex-shrink: 0;
}


.top-thumb-empty {
  width: 38px;
  
  height: 38px;
  
  border-radius: 8px;
  
  background: rgba(0,0,0,0.2);
  
  border: 1px solid var(--line);
  
  flex-shrink: 0;
}


.top-info {
  flex: 1;
  
  min-width: 0;
  
  display: flex;
  
  flex-direction: column;
  
  gap: 2px;
}


/* Nom + expansion sur la mÃªme ligne */

.top-name-row {
  display: flex;
  
  align-items: center;
  
  gap: 6px;
  
  min-width: 0;
}


.top-name-row strong {
  font-size: 13px;
  
  white-space: nowrap;
  
  overflow: hidden;
  
  text-overflow: ellipsis;
}


/* .top-expansion-inline remplacÃ©e par .badge natif */

/* Score sous le nom */

.top-score-line {
  font-size: 10px;
  
  color: #fde68a;
  
  font-weight: 700;
  
  letter-spacing: .04em;
}


/* Buffs compressÃ©s, tous visibles */

.top-tags {
  display: flex;
  
  flex-wrap: wrap;
  
  gap: 3px;
  
  margin-top: 2px;
}


.top-tag {
  display: inline-flex;
  
  align-items: center;
  
  gap: 3px;
  
  font-size: 10px;
  
  font-weight: 600;
  
  padding: 2px 5px;
  
  border-radius: 999px;
  
  background: rgba(17,24,39,.92);
  
  border: 1px solid var(--line);
  
  color: #e8edf7;
  
  white-space: nowrap;
}


/* Valeur Ã  droite */

.top-value {
  font-weight: 800;
  
  color: #fde68a;
  
  font-size: 12px;
  
  white-space: nowrap;
  
  flex-shrink: 0;
  
  text-align: right;
  
  min-width: 60px;
}


@media (max-width: 720px) {
  .top-grid {
    grid-template-columns: 1fr;
  }
}
