/* ========================================
INDIE POWER RANKINGS (FINAL CLEAN)
======================================== */

body.page-template-page-indie-power-rankings {
    background: #0b0b0b;
    color: #fff;
}

/* ========================================
PAGE
======================================== */

.spe-rankings-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ========================================
HEADER
======================================== */

.spe-rankings-header {
    text-align: center;
    margin-bottom: 50px;
}

.spe-rankings-header h1 {
    font-size: 42px;
    font-weight: 900;
    color: #ffd400;
}

/* ========================================
RANKING ROW
======================================== */

.spe-ranking-row {
    display: grid;
    grid-template-columns: 80px 160px 1fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    background: #141414;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: #fff;
}

/* ========================================
RANK
======================================== */

.spe-rank-cell {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    color: #ffd400;
}

/* ========================================
COVER
======================================== */

.spe-cover-cell img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

/* ========================================
TILES (BASE)
======================================== */

.spe-tile {
    background: #000;
    border: 2px solid #ffd400;
    border-radius: 14px;
    height: 120px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Generic labels */
.tile-label {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.1;
}

/* Generic values */
.tile-value {
    font-size: 22px;
    font-weight: 800;
}

/* ========================================
SPE SCORE TILE
======================================== */

.spe-score-tile .tile-value {
    font-size: 36px;
    font-weight: 900;
    color: #ffd400;
    margin: 6px 0;
    line-height: 1;
}

/* ========================================
TIER TILE
======================================== */

.spe-tier-tile {
    justify-content: center;
}

.spe-tier-tile .tile-label {
    display: none;
}

.spe-tier-tile .tile-value {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

/* Tier colors */
.tier-gold   { color: #ffd400; }
.tier-yellow { color: #f1c40f; }
.tier-green  { color: #4caf50; }
.tier-blue   { color: #3498db; }
.tier-grey   { color: #bdbdbd; }
.tier-red    { color: #e74c3c; }

/* ========================================
GENRE & PLATFORM TILES (GRID FIX)
======================================== */

.spe-genre-tile,
.spe-platform-tile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-content: center;
    overflow: hidden;
}

/* Hide labels */
.spe-genre-tile .tile-label,
.spe-platform-tile .tile-label {
    display: none;
}

/* ========================================
CHIPS (DENSE + CLEAN)
======================================== */

.chip {
    display: block;
    background: #333;
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
MAX 4 CHIPS PER TILE
======================================== */

.spe-genre-tile .chip:nth-child(n+5),
.spe-platform-tile .chip:nth-child(n+5) {
    display: none;
}
