.players-hero,
.player-profile-hero{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 85% 20%,rgba(255,255,255,.12),transparent 30%),
        linear-gradient(135deg,#071c33,#0e3b63);
    color:#fff;
    padding:72px 0;
}
.players-hero .container,
.player-profile-hero .container{
    width:min(1180px,calc(100% - 40px));
    margin:auto;
}
.players-hero h1,
.player-profile-hero h1{
    color:#fff;
    margin:8px 0 14px;
    font-size:clamp(36px,5vw,64px);
    line-height:1.03;
}
.players-hero p{
    max-width:720px;
    font-size:18px;
    opacity:.88;
}
.players-eyebrow{
    display:inline-block;
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    opacity:.78;
}
.players-hero-actions{
    margin-top:24px;
}
.player-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 16px;
    border:1px solid #d5dce4;
    border-radius:10px;
    background:#fff;
    color:#10243a;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
}
.player-btn.primary{
    background:#e11d2e;
    border-color:#e11d2e;
    color:#fff;
}
.players-page{
    width:min(1180px,calc(100% - 40px));
    margin:36px auto 60px;
}
.player-filters{
    display:grid;
    grid-template-columns:2fr repeat(4,1fr) auto auto;
    gap:10px;
    padding:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 10px 35px rgba(15,23,42,.06);
}
.player-filters input,
.player-filters select{
    width:100%;
    min-height:44px;
    border:1px solid #d8dee6;
    border-radius:9px;
    padding:8px 11px;
    background:#fff;
}
.players-summary{
    margin:22px 0 14px;
    color:#64748b;
}
.player-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}
.player-card{
    overflow:hidden;
    border:1px solid #e4e8ed;
    border-radius:16px;
    background:#fff;
    color:inherit;
    text-decoration:none;
    transition:transform .18s ease,box-shadow .18s ease;
}
.player-card:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 35px rgba(15,23,42,.10);
}
.player-photo{
    height:220px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:linear-gradient(145deg,#eef3f8,#dce6ef);
}
.player-photo img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
}
.player-photo-empty{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:80px;
    font-weight:800;
    opacity:.18;
}
.player-card-body{
    padding:17px;
}
.player-card-body h2,
.player-card-body h3{
    margin:5px 0 9px;
    line-height:1.18;
}
.player-card-top{
    display:flex;
    justify-content:space-between;
}
.player-position{
    color:#64748b;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}
.player-featured{
    color:#d69e00;
}
.player-meta{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-height:42px;
    color:#64748b;
    font-size:14px;
}
.player-value{
    margin-top:15px;
    color:#0f6d42;
    font-size:25px;
    font-weight:900;
}
.player-card small{
    color:#94a3b8;
}
.players-pagination{
    margin-top:28px;
}
.players-disclaimer{
    margin-top:35px;
    padding:17px 20px;
    border-radius:12px;
    background:#f8fafc;
    color:#64748b;
    font-size:13px;
}
.value-table-wrap{
    overflow:auto;
    border:1px solid #e4e8ed;
    border-radius:16px;
    background:#fff;
}
.value-table{
    width:100%;
    border-collapse:collapse;
}
.value-table th,
.value-table td{
    padding:14px 16px;
    border-bottom:1px solid #edf0f3;
    text-align:left;
    white-space:nowrap;
}
.value-table th{
    background:#f8fafc;
    color:#64748b;
    font-size:12px;
    text-transform:uppercase;
}
.ranking{
    color:#94a3b8;
    font-weight:800;
}
.value-player{
    display:flex;
    align-items:center;
    gap:10px;
    color:inherit;
    text-decoration:none;
}
.value-player img{
    width:44px;
    height:44px;
    object-fit:contain;
    border-radius:50%;
    background:#edf2f7;
}
.club-cell{
    display:flex;
    align-items:center;
    gap:8px;
}
.club-cell img{
    width:26px;
    height:26px;
    object-fit:contain;
}
.value-number{
    color:#0f6d42;
    font-size:18px;
    font-weight:900;
}
.player-profile-grid{
    display:grid;
    grid-template-columns:260px 1fr 230px;
    gap:36px;
    align-items:center;
}
.profile-photo{
    height:300px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    border-radius:22px;
    overflow:hidden;
    background:rgba(255,255,255,.10);
}
.profile-photo img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
}
.profile-breadcrumb{
    margin-bottom:25px;
    opacity:.65;
    font-size:13px;
}
.profile-breadcrumb a{
    color:#fff;
}
.profile-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.profile-tags span{
    padding:7px 11px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:999px;
    background:rgba(255,255,255,.08);
}
.profile-value-box{
    margin-top:25px;
}
.profile-value-box small{
    display:block;
    opacity:.65;
}
.profile-value-box>strong{
    display:block;
    margin:3px 0;
    font-size:38px;
}
.value-change{
    margin-top:7px;
    font-weight:800;
}
.value-change.up{
    color:#8df0b8;
}
.value-change.down{
    color:#ff9b9b;
}
.value-date{
    display:block;
    margin-top:7px;
    opacity:.65;
    font-size:12px;
}
.profile-club-card{
    padding:24px;
    text-align:center;
    border:1px solid rgba(255,255,255,.15);
    border-radius:18px;
    background:rgba(255,255,255,.08);
}
.profile-club-card img{
    display:block;
    width:90px;
    height:90px;
    object-fit:contain;
    margin:0 auto 14px;
}
.profile-club-card small,
.profile-club-card strong{
    display:block;
}
.player-details-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}
.player-panel{
    padding:24px;
    border:1px solid #e4e8ed;
    border-radius:16px;
    background:#fff;
}
.player-panel h2{
    margin-top:0;
}
.detail-row,
.history-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:12px 0;
    border-bottom:1px solid #edf0f3;
}
.detail-row span,
.history-row span{
    color:#64748b;
}
.related-players{
    margin-top:36px;
}
.compact-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.compact-grid .player-photo{
    height:180px;
}
.players-empty{
    grid-column:1/-1;
    padding:50px;
    text-align:center;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    color:#64748b;
}
@media(max-width:1000px){
    .player-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .player-filters{
        grid-template-columns:1fr 1fr;
    }
    .player-profile-grid{
        grid-template-columns:200px 1fr;
    }
    .profile-club-card{
        grid-column:1/-1;
    }
}
@media(max-width:700px){
    .players-hero,
    .player-profile-hero{
        padding:45px 0;
    }
    .players-page,
    .players-hero .container,
    .player-profile-hero .container{
        width:min(100% - 24px,1180px);
    }
    .player-grid,
    .compact-grid{
        grid-template-columns:1fr 1fr;
    }
    .player-filters,
    .player-profile-grid,
    .player-details-grid{
        grid-template-columns:1fr;
    }
    .profile-photo{
        height:270px;
    }
}
@media(max-width:460px){
    .player-grid,
    .compact-grid{
        grid-template-columns:1fr;
    }
}

/* NATIONAL TEAMS V1C */

.national-section{
    margin-bottom:44px;
}
.section-heading{
    margin-bottom:18px;
}
.section-heading h2{
    margin:4px 0 6px;
    font-size:30px;
}
.players-eyebrow.dark{
    color:#64748b;
}
.national-team-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}
.national-team-card{
    display:flex;
    gap:17px;
    align-items:center;
    min-height:125px;
    padding:18px;
    border:1px solid #e4e8ed;
    border-radius:16px;
    background:#fff;
    color:inherit;
    text-decoration:none;
    transition:.18s ease;
}
.national-team-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 32px rgba(15,23,42,.09);
}
.national-logo{
    flex:0 0 76px;
    width:76px;
    height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f3f6f9;
}
.national-logo img{
    width:58px;
    height:58px;
    object-fit:contain;
}
.national-logo strong{
    font-size:20px;
}
.national-info{
    min-width:0;
    flex:1;
}
.national-info h3{
    margin:5px 0 9px;
    font-size:21px;
}
.national-badges{
    display:flex;
    gap:5px;
    flex-wrap:wrap;
}
.national-badges span{
    padding:4px 7px;
    border-radius:999px;
    background:#eef3f8;
    color:#526476;
    font-size:9px;
    font-weight:900;
    letter-spacing:.06em;
}
.national-stats{
    display:flex;
    justify-content:space-between;
    gap:10px;
    color:#64748b;
    font-size:13px;
}
.national-stats strong{
    color:#0f6d42;
}
.national-profile{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:30px;
    align-items:center;
}
.national-profile-logo{
    width:170px;
    height:170px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.1);
}
.national-profile-logo img{
    width:125px;
    height:125px;
    object-fit:contain;
}
.national-profile-logo strong{
    font-size:38px;
}
.national-summary-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-bottom:38px;
}
.national-summary-grid>div{
    padding:20px;
    border:1px solid #e4e8ed;
    border-radius:14px;
    background:#fff;
}
.national-summary-grid small,
.national-summary-grid strong,
.national-summary-grid span{
    display:block;
}
.national-summary-grid small{
    color:#64748b;
}
.national-summary-grid strong{
    margin:5px 0;
    font-size:24px;
}
.national-summary-grid span{
    color:#94a3b8;
    font-size:12px;
}
.national-squad-section{
    margin:38px 0;
}
@media(max-width:900px){
    .national-team-grid{
        grid-template-columns:1fr 1fr;
    }
    .national-summary-grid{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:600px){
    .national-team-grid,
    .national-summary-grid,
    .national-profile{
        grid-template-columns:1fr;
    }
    .national-profile-logo{
        width:130px;
        height:130px;
    }
}

/* PLAYERS V1D */

.players-hero-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}

.player-btn.secondary{
    background:transparent;
    border:1px solid rgba(255,255,255,.35);
}

.player-filters{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr auto;
    gap:10px;
    margin:18px 0 22px;
}

.player-filters input,
.player-filters select{
    min-height:44px;
    padding:0 12px;
    border:1px solid #dce3ea;
    border-radius:10px;
    background:#fff;
}

.player-ranking-table{
    min-width:850px;
}

.ranking-number{
    width:60px;
    font-weight:800;
    color:#64748b;
}

.club-note{
    display:flex;
    align-items:center;
    gap:8px;
}

.club-note img{
    width:26px;
    height:26px;
    object-fit:contain;
}

.team-top-player{
    margin-top:9px;
    color:#64748b;
    font-size:12px;
}

.team-top-player strong{
    color:#1e293b;
}

.players-pagination{
    margin-top:24px;
}

@media(max-width:900px){
    .player-filters{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:600px){
    .player-filters{
        grid-template-columns:1fr;
    }
}

/* PLAYERS_UI_BUTTON_FIX_V2 */
.players-hero a,
.players-hero .btn,
.players-hero .button,
.player-hero a,
.player-hero .btn {
    text-decoration: none;
}

.players-hero a[href*="/players/most-valuable"],
.player-hero a[href*="/players/most-valuable"] {
    color: #ffffff !important;
    border-color: rgba(255,255,255,.55) !important;
    background: rgba(255,255,255,.08) !important;
    font-weight: 800 !important;
}

.players-hero a[href*="/players/most-valuable"]:hover,
.player-hero a[href*="/players/most-valuable"]:hover {
    color: #082640 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

.players-hero a[href*="/players/national-teams"],
.player-hero a[href*="/players/national-teams"] {
    color: #082640 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 800 !important;
}

/*
 * Market-value typography.
 * B = billion, M = million.
 */
.team-market-value,
.squad-market-value,
.player-market-value {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   PLAYERS NAV BUTTONS - IDENTICAL STYLE
   ========================================================= */

.players-hero .player-btn.secondary,
.players-page .player-btn.secondary,
.player-btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(7, 27, 46, 0.78) !important;
    background-image: none !important;

    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    text-decoration: none !important;
}

.players-hero .player-btn.secondary:hover,
.players-page .player-btn.secondary:hover,
.player-btn.secondary:hover {
    background: rgba(13, 42, 67, 0.95) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* Force first/last/nth-child rules to use same appearance */
.player-btn.secondary:first-child,
.player-btn.secondary:last-child,
.player-btn.secondary:nth-child(1),
.player-btn.secondary:nth-child(2) {
    background: rgba(7, 27, 46, 0.78) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

/* END PLAYERS NAV BUTTONS */

