* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 500px;
}

.header {
    background: linear-gradient(180deg, rgb(224, 122, 122) 0%, rgb(200, 100, 100) 100%);
    border-radius: 25px 25px 0 0;
    padding: 20px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.title {
    text-align: right;
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

.players-table {
    background: rgb(190, 95, 95);
    border-radius: 0 0 25px 25px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(224, 122, 122, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-header > div {
    color: rgba(255, 255, 255, 0.9);
    font-size: 26px;
    font-weight: 900;
}

.col-player {
    text-align: left;
}

.col-kills {
    text-align: center;
    min-width: 80px;
}

.table-body {
    padding: 10px 0;
}

.player-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.player-row:hover {
    background: rgba(224, 122, 122, 0.2);
}

.player-row:last-child {
    border-bottom: none;
}

.current-player {
    margin-top: 20px;
    background: rgba(190, 95, 95, 0.95);
    border-radius: 0 0 25px 25px;
    padding: 20px 25px;
    backdrop-filter: blur(10px);
}

.current-label {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.current-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.current-name-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.current-nickname {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
}

.current-tag {
    font-size: 20px;
    font-weight: 900;
    color: #2c1810;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    text-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.6),
            inset 0 2px 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.8),
            inset 0 2px 5px rgba(255, 255, 255, 0.4);
    }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.player-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.player-nickname {
    font-size: 40px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    flex-shrink: 0;
}

.player-hearts {
    display: flex;
    gap: 5px;
    font-size: 38px;
    transition: opacity 0.3s ease;
    align-items: center;
    min-width: 90px;
    flex-shrink: 0;
}

.player-right-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-badge-wrapper {
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-badge {
    font-size: 16px;
    font-weight: 900;
    color: #2c1810;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 
        0 2px 10px rgba(255, 215, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
    text-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 2px 10px rgba(255, 215, 0, 0.6),
            inset 0 1px 3px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.9),
            inset 0 1px 3px rgba(255, 255, 255, 0.4);
    }
}

.heart {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.heart::before {
    content: '❤️';
    filter: brightness(0.7) saturate(1.5);
}

.heart.lost {
    filter: grayscale(100%) brightness(0.5);
}

.player-kills {
    text-align: center;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kills-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes countUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.kills-unit {
    font-size: 28px;
    font-weight: 400;
    margin-left: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .header {
        padding: 25px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .players-table {
        border-radius: 0 0 20px 20px;
    }
    
    .table-header,
    .player-row {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .table-header > div {
        font-size: 16px;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .player-nickname {
        font-size: 22px;
    }
    
    .player-hearts {
        font-size: 20px;
    }
    
    .kills-number {
        font-size: 28px;
    }
    
    .col-kills {
        min-width: 80px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-row {
    animation: fadeIn 0.4s ease-out;
}
