* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-primary: #00ff9d;
    --accent-secondary: #00cc7e;
    --accent-tertiary: #00a864;
    --accent-glow: #00ff9d;
    --accent-cyber: #00ff9d;
    --accent-neon: #00ff9d;
    --accent-fifa: #00ff9d;
    --accent-fifa-secondary: #00cc7e;
    --accent-fifa-gold: #ffd700;
    --accent-fifa-silver: #c0c0c0;
    --accent-fifa-bronze: #cd7f32;
    --gradient-primary: linear-gradient(135deg, #00ff9d 0%, #00cc7e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 255, 157, 0.5) 0%, rgba(0, 204, 126, 0.5) 100%);
    --gradient-cyber: linear-gradient(135deg, rgba(0, 255, 157, 0.5) 0%, rgba(0, 168, 100, 0.5) 100%);
    --gradient-neon: linear-gradient(135deg, rgba(0, 255, 157, 0.5) 0%, rgba(0, 204, 126, 0.5) 100%);
    --gradient-fifa: linear-gradient(135deg, #00ff9d 0%, #00cc7e 100%);
    --gradient-fifa-gold: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    --gradient-fifa-silver: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    --gradient-fifa-bronze: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    --shadow-primary: 0 4px 20px rgba(0, 255, 157, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 255, 157, 0.5);
    --shadow-cyber: 0 0 20px rgba(0, 255, 157, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 255, 157, 0.5);
    --shadow-fifa: 0 0 20px rgba(0, 255, 157, 0.5);
    --border-glow: 1px solid rgba(0, 255, 157, 0.3);
    --border-cyber: 1px solid rgba(0, 255, 157, 0.3);
    --border-neon: 1px solid rgba(0, 255, 157, 0.3);
    --border-fifa: 1px solid rgba(0, 255, 157, 0.3);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 157, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(0, 204, 126, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 157, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(0, 204, 126, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 255, 157, 0.05) 0%, transparent 50%);
}

/* Effet de grain sur tout le site */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.07;
    z-index: 1;
    pointer-events: none;
}

/* Effet de flare sur le fond */
body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at center, rgba(0, 255, 157, 0.15) 0%, rgba(0, 0, 0, 0) 70%),
        radial-gradient(circle at 30% 30%, rgba(0, 204, 126, 0.1) 0%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 157, 0.1) 0%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(circle at 20% 80%, rgba(0, 255, 157, 0.08) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 126, 0.08) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.05) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 0;
    pointer-events: none;
    animation: rotateFlare 30s linear infinite;
}

@keyframes rotateFlare {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    z-index: 2;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 157, 0.05) 0%, transparent 20%, transparent 80%, rgba(0, 204, 126, 0.05) 100%),
        linear-gradient(to bottom, rgba(0, 255, 157, 0.03) 0%, transparent 50%, rgba(0, 204, 126, 0.03) 100%),
        linear-gradient(to bottom, rgba(0, 255, 157, 0.02) 0%, transparent 30%, transparent 70%, rgba(0, 255, 157, 0.02) 100%);
}

header {
    margin-bottom: 30px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.3), 0 0 30px rgba(0, 204, 126, 0.2), 0 0 10px rgba(0, 255, 157, 0.3);
    position: relative;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.8)) drop-shadow(0 0 15px rgba(0, 255, 157, 0.5));
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.8)) drop-shadow(0 0 15px rgba(0, 255, 157, 0.5)); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 255, 157, 1)) drop-shadow(0 0 20px rgba(0, 255, 157, 0.7)); }
    100% { filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.8)) drop-shadow(0 0 15px rgba(0, 255, 157, 0.5)); }
}

.logo::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(0, 255, 157, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseFlare 4s ease-in-out infinite alternate;
}

.logo::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-fifa);
    border-radius: 2px;
    box-shadow: var(--shadow-fifa);
}

@keyframes pulseFlare {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.level-filter {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.8);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.1), 0 0 15px rgba(0, 255, 157, 0.05);
}

.level-filter:hover {
    background: rgba(26, 26, 26, 0.9);
    border-color: rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.2), 0 0 20px rgba(0, 255, 157, 0.1);
}

.level-filter:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2), 0 0 20px rgba(0, 255, 157, 0.1);
}

.level-filter optgroup {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    background: rgba(26, 26, 26, 0.9);
}

.level-filter option {
    padding: 8px 12px;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-primary);
}

.level-filter option:hover {
    background: rgba(0, 255, 157, 0.1);
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.1), 0 0 15px rgba(0, 255, 157, 0.05);
}

.search-input:focus {
    border-color: var(--accent-fifa);
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2), 0 0 15px rgba(0, 255, 157, 0.1), 0 0 30px rgba(0, 255, 157, 0.05);
}

.search-input::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3), 0 0 5px rgba(0, 255, 157, 0.3);
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-fifa);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5), 0 0 20px rgba(0, 255, 157, 0.3);
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.player-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.player-cards::-webkit-scrollbar {
    display: none;
}

.player-card {
    flex: 0 0 142px;
    width: 142px;
    min-width: 142px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    height: auto;
}

.player-card img {
    width: 100%;
    height: 142px;
    object-fit: cover;
    display: block;
}

.player-info {
    padding: 10px;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8), #1a1a1a);
    height: auto;
}

.player-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.player-team {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.player-stat {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    flex: 1;
}

.player-score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.player-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card[data-rarity="gold"]::before {
    background: var(--gradient-fifa-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    opacity: 1;
}

.player-card[data-rarity="silver"]::before {
    background: var(--gradient-fifa-silver);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
    opacity: 1;
}

.player-card[data-rarity="bronze"]::before {
    background: var(--gradient-fifa-bronze);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
    opacity: 1;
}

.player-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-primary), 0 0 20px rgba(0, 255, 157, 0.3), 0 0 40px rgba(0, 255, 157, 0.1), 0 0 10px rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.5);
}

.player-card:hover::after {
    opacity: 1;
}

.player-card:hover img {
    transform: scale(1.05);
}

.trend-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    line-height: 1.2;
}

.trend-indicator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.trend-indicator.up {
    background: rgba(0, 255, 157, 0.2);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3), 0 0 20px rgba(0, 255, 157, 0.1);
}

.trend-indicator.down {
    background: rgba(198, 40, 40, 0.3);
    color: #ef5350;
    box-shadow: 0 0 10px rgba(239, 83, 80, 0.3), 0 0 20px rgba(239, 83, 80, 0.1);
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.player-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 255, 157, 0.08) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 204, 126, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.player-list-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    padding: 6px;
    height: 60px;
}

.player-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary), 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 157, 0.2);
}

.player-list-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: visible;
    margin-right: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.player-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.player-list-flag {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    overflow: hidden;
    z-index: 2;
}

.player-list-flag .fi {
    width: 100%;
    height: 100%;
    display: block;
}

.player-list-item:hover .player-list-image img {
    transform: scale(1.1);
}

.player-list-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    position: relative;
}

.player-list-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.player-list-header .player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.player-list-header .player-team {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

.player-list-stats {
    display: flex;
    gap: 8px;
    margin: 0 12px;
}

.player-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.stat-label {
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.7;
    line-height: 1;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.player-list-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-list-footer .trend-indicator {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-fifa);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
    line-height: 1;
}

.player-list-footer .trophy {
    width: 16px;
    height: 16px;
}

/* Ajustements pour les appareils mobiles */
@media (max-width: 768px) {
    .player-list-item {
        height: 65px;
        padding: 4px;
    }
    
    .player-list-image {
        width: 40px;
        height: 40px;
    }
    
    .player-list-flag {
        width: 16px;
        height: 12px;
    }
    
    .player-list-header .player-name {
        font-size: 12px;
    }
    
    .player-list-header .player-team {
        font-size: 10px;
    }
    
    .player-list-stats {
        gap: 6px;
        margin: 0 8px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .player-list-footer .trend-indicator {
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .player-list-footer .trophy {
        width: 14px;
        height: 14px;
    }
}

/* Styles pour la modal */
.player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-modal.active {
    display: block;
    opacity: 1;
    animation: modalBackgroundPulse 8s ease-in-out infinite;
}

@keyframes modalBackgroundPulse {
    0% { background-color: rgba(0, 0, 0, 0.85); }
    50% { background-color: rgba(0, 0, 0, 0.90); }
    100% { background-color: rgba(0, 0, 0, 0.85); }
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    margin: 20px auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

.modal-header {
    position: relative;
    padding: 0;
    height: 300px;
    overflow: hidden;
    transform-origin: top;
    transition: transform 0.3s ease;
}

.modal-header:hover {
    transform: scale(1.02);
}

.modal-player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.modal-player-main {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-player-main:hover {
    transform: translateY(-5px);
}

.modal-player-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-player-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    animation: textGlow 2s ease-in-out infinite;
    white-space: pre-line;
    line-height: 1.2;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(0, 255, 157, 0.3); }
    50% { text-shadow: 0 0 30px rgba(0, 255, 157, 0.6); }
    100% { text-shadow: 0 0 20px rgba(0, 255, 157, 0.3); }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-fifa);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.info-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-item:hover::after {
    opacity: 1;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    border-color: var(--accent-fifa);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.player-stats-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    animation: statsAppear 0.5s ease forwards 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes statsAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 255, 157, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 157, 0.2);
}

.stat-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-achievements {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    animation: achievementsAppear 0.5s ease forwards 0.7s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes achievementsAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(10px);
    background: rgba(0, 255, 157, 0.1);
}

.achievement-icon {
    width: 30px;
    height: 30px;
    background: var(--accent-fifa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* Animation de pulsation pour les éléments interactifs */
@keyframes pulsate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation de brillance pour les bordures */
@keyframes borderGlow {
    0% { border-color: rgba(0, 255, 157, 0.3); }
    50% { border-color: rgba(0, 255, 157, 0.6); }
    100% { border-color: rgba(0, 255, 157, 0.3); }
}

/* Ajout d'un effet de particules pour la rareté */
.rarity-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-fifa);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 1; }
    100% { transform: translateY(-40px) translateX(0); opacity: 0; }
}

/* Styles responsifs */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }

    .modal-header {
        height: 250px;
    }

    .modal-player-name {
        font-size: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .player-stats-modal {
        grid-template-columns: 1fr;
    }
}

.player-level {
    font-size: 12px;
    color: var(--accent-primary);
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
} 