* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #181818;
    --secondary: #2c2c2c;
    --accent: #ffffff;
    --light: #ffffff;
    --dark: #121212;
    --gray: #919191;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #050505 0%, #131313 50%, #0a0a0a 100%);
    background-attachment: fixed;
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.navbar {
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5)) 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fit-picture {
  width: 250px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light);    
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
    opacity: 0.2;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    transform: translateY(-2px);
}

.matches-section {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-header {
    margin-bottom: 25px;
    text-align: center;
}

.section-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.match-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-time {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 5px;
}

.match-id {
    color: var(--gray);
    font-size: 0.9rem;
}

.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
}

.team-card:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.team-card.winner:hover {
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
    z-index: 3;
}

.team-card.loser:hover {
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.3);
    z-index: 3;
}

.teams-container .team-card:nth-child(1):hover {
    transform: translateX(-8px) translateY(-5px) scale(1.02);
}

.teams-container .team-card:nth-child(2):hover {
    transform: translateX(8px) translateY(-5px) scale(1.02);
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 2px solid;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.team-card.winner {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.team-card.winner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(40, 167, 69, 0.1), transparent 70%);
    pointer-events: none;
    border-radius: var(--border-radius);
}

.team-card.loser {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.team-card.loser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(220, 53, 69, 0.1), transparent 70%);
    pointer-events: none;
    border-radius: var(--border-radius);
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.team-title {
    max-width: 144px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    vertical-align: middle;
    transition: max-width 0.3s ease;
}

.team-title[data-length="long"] {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.team-result {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.win-badge {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3), rgba(40, 167, 69, 0.1));
    color: #4ade80;
    border: 1px solid #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.loss-badge {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(220, 53, 69, 0.1));
    color: #f87171;
    border: 1px solid #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    min-height: 85px;
    position: relative;
    border: 1px solid transparent;
}

.player-match-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.team-card.winner .player-match-card:hover {
    background: rgba(30, 255, 0, 0.08);
    border-color: rgba(0, 255, 64, 0.8);
}

.team-card.loser .player-match-card:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.8);
}

.player-match-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.avatar-container {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.player-match-avatar {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 50%;
    border: 3px solid;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.player-match-card:hover .player-match-avatar {
    transform: scale(1.1);
}

.player-match-details {
    flex: 1;
    min-width: 0;
}

.player-match-details h4 {
    margin: 0 0 3px 0;
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.player-match-details p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.player-match-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 15px;
    min-width: 180px;
    justify-content: flex-end;
}

.stat-box {
    min-width: 85px;
    text-align: center;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.stat-value.positive {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.negative {
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.match-summary {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border-top: 2px solid;
    border-image: var(--gradient-primary) 1;
}

.summary-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.summary-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.match-container .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
    color: var(--gray);
}

.match-container .loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.match-error {
    text-align: center;
    padding: 40px;
    color: var(--danger);
}

.match-error i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.rank-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.player-rank-badge {
    position: absolute;
    bottom: -9px;
    right: -13px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 1px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    border: 2px solid var(--dark);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.player-rank-badge .pre-mmr {
    color: #b8c5d6;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.player-rank-badge .mmr-change {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    min-width: 30px;
}

.player-rank-badge .mmr-change.positive {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.player-rank-badge .mmr-change.negative {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.player-rank-badge .mmr-change.neutral {
    background: rgba(255, 255, 255, 0.15);
    color: #95a5a6;
}

.player-rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e); 
    color: #000000;
    border-color: #ffed4e;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: shimmer 2s infinite;
}
.player-rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0); 
    color: #000;
    border-color: #e0e0e0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
    animation: shimmertwo 2s infinite;
}
.player-rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e09c5d); 
    color: #000;
    border-color: #e09c5d;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
    animation: shimmerthree 2s infinite;
}
.player-rank-badge.rank-top10 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-color: #8e44ad;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}
.player-rank-badge.rank-other {
    background: linear-gradient(135deg, #1a2332 0%, #253346 100%);
    border-color: #3a4a5e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.player-rank-badge.rank-1::after,
.player-rank-badge.rank-2::after,
.player-rank-badge.rank-3::after {
    display: none;
}

.player-rank,
.player-mmr {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .player-match-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-match-info {
        margin-bottom: 10px;
    }
    
    .player-match-stats {
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        margin-left: 0;
    }
    
    .teams-container {
        grid-template-columns: 1fr;
    }
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.user-menu img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.user-menu .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 10px;
    min-width: 180px;
    display: none;
    box-shadow: var(--box-shadow);
}

.user-menu:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--primary);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.subtitle {
    color: var(--gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.last-updated {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.leaderboard-container {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.filter-options select {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.leaderboard-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.leaderboard-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 3px solid;
    border-image: var(--gradient-primary) 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.leaderboard-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.leaderboard-table td {
    padding: 18px 15px;
}

.leaderboard-table .player-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.player-info h4 {
    margin-bottom: 5px;
}

.player-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.rank-1 { 
    background: linear-gradient(135deg, #ffd700, #ffed4e); 
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-2 { 
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0); 
    color: #000;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.rank-3 { 
    background: linear-gradient(135deg, #cd7f32, #e09c5d); 
    color: #000;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.rank-other { 
    background: rgba(255, 255, 255, 0.1); 
    color: white; 
}

.rank-top10 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.role-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

.killer-icon { color: #dc3545; }
.survivor-icon { color: #28a745; }

.team-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

.team-badge:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.loading-row td {
    text-align: center;
    padding: 60px !important;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--gray);
}

.loading-spinner i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.api-info a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
}

.api-info a:hover {
    text-decoration: underline;
}

.highlight-section {
    margin-bottom: 40px;
}

.highlight-section h2 {
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(24, 24, 24, 0.9), rgba(44, 44, 44, 0.8));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.highlight-card:hover::before {
    left: 100%;
}

.highlight-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.highlight-card.rank-1::after {
    content: '🥇';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.highlight-card.rank-2::after {
    content: '🥈';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.5));
}

.highlight-card.rank-3::after {
    content: '🥉';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.5));
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.highlight-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.highlight-player h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.highlight-player p {
    color: var(--light);
}

.highlight-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.highlight-favorite {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.favorite-icon {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.favorite-info h4 {
    color: var(--light);
    font-size: 1rem;
    margin-bottom: 3px;
}

.favorite-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.footer {
    background: rgba(18, 18, 18, 0.98);
    border-top: 2px solid;
    border-image: var(--gradient-primary) 1;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

.win-loss-cell {
    font-weight: bold;
}

.win-loss-cell .wins {
    color: #4ade80;
}

.win-loss-cell .losses {
    color: #f87171;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid;
    min-width: 50px;
    justify-content: center;
    transition: all 0.3s ease;
}

.player-name-link {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: bold;
    cursor: pointer;
    display: block;
    padding: 2px 0;
    transition: all 0.3s ease;
}

.player-name-link:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline !important;
}

.positive-streak {
    border-color: #4ade80;
    color: #4ade80;
}

.negative-streak {
    color: #95a5a6;
    border-color: #95a5a6;
    opacity: 0.8;
}

.zero-streak {
    color: #7f8c8d;
    border-color: #7f8c8d;
    opacity: 0.7;
}

.streak-badge:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.win-rate-bar,
.win-rate-fill {
    display: none;
}

.win-rate-bar span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid var(--primary);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .highlight-cards {
        grid-template-columns: 1fr;
    }
    
    .table-footer {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 4px 30px rgba(255, 215, 0, 0.9); }
}

@keyframes shimmertwo {
    0%, 100% { box-shadow: 0 4px 20px rgba(192, 192, 192, 0.6); }
    50% { box-shadow: 0 4px 30px rgba(192, 192, 192, 0.9); }
}

@keyframes shimmerthree {
    0%, 100% { box-shadow: 0 4px 20px rgba(205, 127, 50, 0.6); }
    50% { box-shadow: 0 4px 30px rgba(205, 127, 50, 0.9); }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .highlight-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .highlight-stats {
        grid-template-columns: 1fr;
    }
}
