/* Rankings Container */
.rankings-container {
    margin: 20px auto;
    max-width: 950px;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Rankings Table */
.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
}

.rankings-table th {
    background: #282828;
    color: #f1f1f1;
    font-weight: bold;
    padding: 12px 15px;
    text-transform: uppercase;
}

.rankings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.rankings-table tbody tr:nth-child(even) {
    background: #252525;
}

.rankings-table tbody tr:hover {
    background: #303030;
}

.rankings-place {
    font-weight: bold;
    color: #ff9800;
}

/* Rankings Class Image */
.rankings-class-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

/* Online/Offline Dot */
.status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.status.online {
    background-color: #4caf50;
}

.status.offline {
    background-color: #f44336;
}

/* Rankings Update Time */
.rankings-update-time {
    font-size: 14px;
    color: #aaa;
    text-align: right;
    margin-top: 10px;
}

/* Rankings Filter Container */
.rankings-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Rankings Class Filter */
.rankings-class-filter {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.rankings-filter-item {
    text-align: center;
}

/* Rankings Filter Link */
.rankings-filter-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #f1f1f1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    padding: 10px;
    background: #252525;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100px;
    max-width: 120px;
    box-sizing: border-box;
}

.rankings-filter-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Text Styling */
.rankings-filter-link span {
    font-size: 14px;
    font-weight: bold;
    color: #ccc;
    text-align: center;
}

/* Rankings Class Filter Image */
.rankings-class-filter-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.rankings-class-filter-image:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Rankings Menu Container */
.rankings_menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 50%;
    margin: 20px auto;
    box-sizing: border-box;
}

/* Menu Buttons */
.rankings_menu a {
    flex: 1 1 150px;
    max-width: 150px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #ddd;
    padding: 5px 10px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rankings_menu a:hover {
    background-color: #ff9800;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.rankings_menu a.active {
    background-color: #ff9800;
    color: #fff;
    border: none;
}

/* Event Card */
.event-card {
    text-align: center;
    margin: 15px auto;
    padding: 15px;
    max-width: 950px;
    background-color: #252525;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.event-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffcc00;
}

.event-card p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 10px;
}

.event-card ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

.event-card .first-place {
    color: #FFD700;
}

.event-card .second-place {
    color: #C0C0C0;
}

.event-card .third-place {
    color: #CD7F32;
}

.event-card a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff9800;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.event-card a:hover {
    background-color: #ff7700;
}

/* Top 3 Player Styling */
.top3-name {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 223, 0, 0.8), 0 0 15px rgba(255, 223, 0, 0.6);
    position: relative;
    display: inline-block;
}

.top3-name a {
    font-size: 20px;
    font-weight: bold;
    color: #bda310;
    text-shadow: 0 0 5px rgba(255, 223, 0, 0.8), 0 0 15px rgba(255, 223, 0, 0.6);
    position: relative;
    display: inline-block;
}

@keyframes sparkle-effect {
    0% { background-position: 0% 0%; }
    50% { background-position: 50% 50%; }
    100% { background-position: 0% 0%; }
}
