body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background:
        linear-gradient(rgba(8, 18, 38, 0.84), rgba(8, 18, 38, 0.94)),
        url('/assets/images/top-players_background.webp') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1180px;
    width: 92%;
    margin: 60px auto 90px;
}

.player-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8,18,38,.96), rgba(16,35,71,.94));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 50px rgba(0,0,0,.32);
    margin-bottom: 28px;
}

.player-hero-left {
    flex: 1;
}

.player-top-info h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 0 0 10px;
    font-weight: 900;
}

.player-country {
    color: #9fb3d9;
    margin-bottom: 26px;
    font-weight: 600;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-box {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.stat-label {
    display: block;
    margin-top: 7px;
    color: #9fb3d9;
    font-size: 12px;
    font-weight: 700;
}

.player-hero-right img {
    width: 230px;
    height: 230px;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
}

.player-tabs {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.player-tabs a {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.player-tabs a.active,
.player-tabs a:hover {
    background: #22c55e;
    color: #04111f;
}

.player-seo-text {
    margin: 18px 0 24px;
    color: #dbe4f0;
    line-height: 1.7;
}

.player-details-card {
    background: rgba(13,24,48,.94);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 38px;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.player-details-card h2,
.section-header h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.04);
    padding: 16px;
    border-radius: 14px;
}

.detail-item span {
    display: block;
    color: #8ea3c7;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.detail-item strong {
    color: #fff;
    font-size: 15px;
}

.section-header {
    margin-top: 38px;
    margin-bottom: 16px;
}

.updated-badge {
    display: inline-block;
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.match-list {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
}

.match-card {
    background: rgba(15,28,54,.94);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.match-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: #9fb3d9;
    font-size: 13px;
}

.match-tournament {
    font-weight: 900;
    color: #22c55e;
}

.match-date {
    white-space: nowrap;
}

.match-players {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.match-pill {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 700;
}

.match-pill.status {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border-color: rgba(34,197,94,.25);
}

.match-pill.score {
    background: rgba(59,130,246,.12);
    color: #93c5fd;
    border-color: rgba(59,130,246,.25);
}

.empty-message {
    background: rgba(15,28,54,.88);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px 20px;
    color: #cbd5e1;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    padding: 14px 24px;
    border-radius: 14px;
    background: #22c55e;
    color: #04111f !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    transition: .25s ease;
    box-shadow: 0 10px 24px rgba(34,197,94,.18);
}

.btn-back:hover {
    background: #2ed66b;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(34,197,94,.28);
}

@media (max-width: 900px) {
    .player-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-hero-right img {
        width: 100%;
        height: 320px;
    }

    .player-stats-grid,
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .container {
        width: 94%;
        margin-top: 35px;
    }

    .player-hero,
    .player-details-card {
        padding: 20px;
    }

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

    .player-tabs {
        flex-wrap: wrap;
    }

    .match-top {
        flex-direction: column;
    }
}