* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #030712 inset;
    transition: background-color 5000s ease-in-out 0s;
}

select option {
    background-color: #030712;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

.step-indicator, .step-line {
    transition: all 0.3s ease;
}

/* Player FIFA-style card */
.player-card {
    width: 160px;
    height: 224px;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0d2e 100%);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}
.player-card:hover {
    transform: translateY(-4px);
}
a.card-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
}
a.card-link:hover .player-card {
    transform: translateY(-4px);
}
.player-card .photo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 20px;
    z-index: 1;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.player-card .photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.player-card .photo-wrap .no-photo {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
}
.player-card .name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 8px 8px 0;
    line-height: 1.2;
    z-index: 1;
    word-break: break-word;
    flex-shrink: 0;
}
.player-card .stats-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    z-index: 1;
    flex-shrink: 0;
}
.player-card .stat {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: rgba(0,0,0,0.35);
    padding: 1px 5px;
    border-radius: 3px;
}
.player-card .team-logo-wrap {
    margin-top: auto;
    margin-bottom: 10px;
    width: 28px;
    height: 28px;
    z-index: 1;
    flex-shrink: 0;
}
.player-card .team-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.player-card .team-logo-wrap .no-logo {
    font-size: 7px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Card grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    justify-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
