
/* ══
   LibExplorer — Page Classements
   ══ */

.ranking-hero {
    background: linear-gradient(160deg, #0f0f1a 0%, #1a0a1a 50%, #0a0a14 100%);
    border-bottom: 1px solid #222;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.ranking-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-accent, #FF2D6B);
    background: rgba(255,45,107,.1);
    border: 1px solid rgba(255,45,107,.2);
    border-radius: 50px;
    padding: .35rem 1rem;
    margin-bottom: 1.25rem;
}
.ranking-hero__title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin: 0 auto 1rem;
    max-width: 700px;
}
.ranking-hero__title span { color: var(--color-primary, #FF2D6B); }
.ranking-hero__sub {
    color: #888;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.ranking-stats-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.ranking-stat { text-align: center; }
.ranking-stat__val { font-size: 1.75rem; font-weight: 900; color: white; line-height: 1; }
.ranking-stat__lbl { font-size: .75rem; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.section-lg { padding: 3rem 0; }
.ranking-section { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.ranking-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.ranking-section__title { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; color: white; display: flex; align-items: center; gap: .75rem; }
.ranking-section__title i { color: var(--color-primary, #FF2D6B); }
.ranking-sort { display: flex; gap: .5rem; }
.ranking-sort__btn { padding: .4rem .9rem; border-radius: 20px; font-size: .8rem; font-weight: 600; border: 1px solid #333; background: transparent; color: #888; cursor: pointer; transition: all .2s; }
.ranking-sort__btn.active, .ranking-sort__btn:hover { background: var(--color-primary, #FF2D6B); border-color: var(--color-primary, #FF2D6B); color: white; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin-bottom: 3rem; padding: 0 1rem; }
.podium__slot--1 { order: 2; } .podium__slot--2 { order: 1; } .podium__slot--3 { order: 3; }
.podium__card { background: var(--color-bg-card, #141414); border: 1px solid #333; border-radius: 16px; overflow: hidden; text-decoration: none; display: block; transition: transform .2s, box-shadow .2s; width: 200px; }
.podium__slot--1 .podium__card { width: 240px; border-color: #FFD700; box-shadow: 0 0 30px rgba(255,215,0,.2); }
.podium__slot--2 .podium__card { border-color: #C0C0C0; }
.podium__slot--3 .podium__card { border-color: #CD4F02; }
.podium__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.podium__card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.podium__card-img-placeholder { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: #1a1a2e; color: #444; font-size: 2rem; }
.podium__card-overlay { position: relative; }
.podium__card-medal { position: absolute; top: .75rem; left: .75rem; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; }
.podium__slot--1 .podium__card-medal { background: #FFD700; color: #333; }
.podium__slot--2 .podium__card-medal { background: #C0C0C0; color: #333; }
.podium__slot--3 .podium__card-medal { background: #CD7F32; color: white; }
.podium__card-body { padding: .875rem; }
.podium__card-cat { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: .25rem; }
.podium__card-name { font-weight: 700; color: white; font-size: .9rem; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium__card-city { font-size: .75rem; color: #888; margin-bottom: .5rem; }
.podium__card-score { display: flex; align-items: center; gap: .35rem; font-weight: 800; color: white; font-size: .95rem; }
.podium__card-score i { color: #FFD700; font-size: .8rem; }
.podium__base { height: 8px; border-radius: 4px 4px 0 0; margin-top: .75rem; }
.podium__base--1 { background: #FFD700; height: 12px; }
.podium__base--2 { background: #C0C0C0; }
.podium__base--3 { background: #CD7F32; }
.ranking-list { display: flex; flex-direction: column; gap: .75rem; }
.ranking-list__item { display: flex; align-items: center; gap: 1rem; background: var(--color-bg-card, #141414); border: 1px solid #222; border-radius: 14px; padding: 1rem 1.25rem; text-decoration: none; color: inherit; transition: border-color .2s, transform .15s; }
.ranking-list__item:hover { border-color: var(--color-primary, #FF2D6B); transform: translateX(4px); }
.reveal-item { opacity: 1; }
.ranking-list__rank { font-size: 1.5rem; font-weight: 900; color: #444; min-width: 2.5rem; text-align: center; flex-shrink: 0; }
.ranking-list__item:nth-child(1) .ranking-list__rank { color: #FFD700; }
.ranking-list__item:nth-child(2) .ranking-list__rank { color: #C0C0C0; }
.ranking-list__item:nth-child(3) .ranking-list__rank { color: #CD7F32; }
.ranking-list__img { width: 70px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ranking-list__img--placeholder { width: 70px; height: 60px; border-radius: 10px; background: #1a1a2e; display: flex; align-items: center; justify-content: center; color: #444; font-size: 1.25rem; flex-shrink: 0; }
.ranking-list__info { flex: 1; min-width: 0; }
.ranking-list__name { font-weight: 700; color: white; font-size: .95rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-list__meta { font-size: .8rem; color: #888; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ranking-list__score { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.ranking-list__score-num { font-size: 1.25rem; font-weight: 900; color: white; }
.stars-row { color: #FFD700; font-size: .75rem; }
.hidden-mobile { display: inline; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
@media (max-width: 768px) { .podium { gap: .5rem; } .podium__card, .podium__slot--1 .podium__card { width: 140px; } .ranking-stats-bar { gap: 1.5rem; } .hidden-mobile { display: none; } .ranking-list__img, .ranking-list__img--placeholder { width: 55px; height: 48px; } }

/* Top 3 mis en valeur dans la liste */
.ranking-list__item--top3 {
    border-color: rgba(255, 215, 0, 0.15);
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(255,215,0,.04) 100%);
}
.ranking-list__item--top3:hover { border-color: rgba(255,215,0,.4); }
.ranking-list__item--top3:nth-child(1) { border-color: rgba(255,215,0,.25); }
.ranking-list__item--top3:nth-child(2) { border-color: rgba(192,192,192,.2); }
.ranking-list__item--top3:nth-child(3) { border-color: rgba(205,127,50,.2); }

.ranking-list__rank--medal {
    display: flex; flex-direction: column; align-items: center;
    gap: .1rem; font-size: .75rem;
}
.ranking-list__rank--medal span { font-size: 1rem; font-weight: 900; }

.ranking-list__img { border-radius: 10px; }
.ranking-list__item--top3 .ranking-list__img {
    width: 80px; height: 68px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
