.players-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.players-header {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.player-card {
    background: var(--bg-quaternary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 80px; /* Fixed minimum height */
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.player-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.player-card:hover::before {
    transform: scaleX(1);
}

.mii-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.openhost-badge {
    position: absolute;
    bottom: -6px;
    left: -6px;
    background: #ff69b4;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 8px;
    border: 2px solid var(--bg-quaternary);
    box-shadow: var(--shadow-sm);
    z-index: 1;
    user-select: none;
    cursor: help;
}

.guest-avatar {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-quaternary);
    box-shadow: var(--shadow-sm);
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: help;
}

.guest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mii-avatar:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 15px var(--primary-glow);
}

.mii-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mii-avatar.loading {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
    font-family: 'Rubik', system-ui;
}

.crown-icon {
    color: var(--warning);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(255, 167, 38, 0.6));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(255, 167, 38, 0.6)); }
    to { filter: drop-shadow(0 0 10px rgba(255, 167, 38, 0.8)); }
}

.player-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.player-fc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.guest-player {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.player-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.score-label {
    font-weight: 600;
    color: var(--text-tertiary);
}

.score-value {
    font-weight: 700;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
} 