.pagination-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
}

.pagination-container a,
.pagination-container select,
.pagination-container .ellipsis {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 999px; /* fully rounded */
    background: linear-gradient(to bottom, #f5f5f5, #dcdcdc); /* silver gradient */
    color: #333;
    text-decoration: none;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

.pagination-container a:hover,
.pagination-container select:hover {
    background: linear-gradient(to bottom, #e6e6e6, #c0c0c0); /* brighter silver on hover */
    color: #111;
    transform: scale(1.05);
    cursor: pointer;
}

.pagination-container a.active {
    background: #a9a9a9;
    color: #fff;
    font-weight: bold;
    border-color: #a9a9a9;
}

.pagination-container .ellipsis {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #999;
    padding: 6px 10px;
    cursor: default;
}


/* --- Polaroid: Gold Theme --- */
.polaroid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
}

.polaroid {
    width: 170px;
    background: linear-gradient(145deg, #fffdf5, #f9e79f, #f7d774); /* warm gold fade */
    padding: 6px;
    border: 1px solid #e0c78c;
    border-radius: 12px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: 'Arial', sans-serif;
    margin-bottom: 6px;
    position: relative;
    text-decoration: none;
    color: #5c4400;
    transition: transform 0.2s ease-in-out;
}

.polaroid:hover {
    transform: translateY(-2px);
    box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.3);
}

.polaroid img {
    width: 170px;
    height: 137px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.polaroid .percentage {
    font-size: 14px;
    color: #5a3e00;
    padding: 5px 0;
}

/* --- Rank Label: Bold Gold Badge --- */
.rank-label {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #6a0dad; /* royal purple */
    color: #fff;
    padding: 6px 14px;
    border-radius: 10px 4px 0 10px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'ABeeZee', sans-serif;
    opacity: 0.6;
}

