.team-link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.team-link:hover {
    color: #e53935;
}
/* =========================
   TEAM HEADER
========================= */

.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

/* LOGO BESAR */
.team-logo-wrap {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-big {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================
   SUBTITLE
========================= */

.np-subtitle {
    margin: 25px 0 10px;
    font-size: 14px;
}

/* =========================
   SQUAD
========================= */

.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
}

.squad-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: 0.2s;
}

.squad-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.squad-item .name {
    font-weight: 600;
    font-size: 14px;
}

.squad-item .meta {
    font-size: 12px;
    color: #666;
}

/* CLICKABLE */
.squad-item.link {
    text-decoration: none;
    color: inherit;
}

.squad-item.link:hover {
    background: #fafafa;
    transform: translateY(-2px);
}
/* =========================
   PLAYER DETAIL LAYOUT
========================= */

.detail-box {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* =========================
   PHOTO + OVERLAY
========================= */

.detail-photo {
    position: relative;
    width: fit-content;
}

/* FOTO */
.detail-photo img {
    width: 220px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

/* =========================
   JERSEY OVERLAY (MAIN)
========================= */

.jersey-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);

    padding: 6px 16px;

    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;

    color: #fff;

    border-radius: 8px;

    /* gradient dark premium */
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.6));

    /* glass effect */
    backdrop-filter: blur(4px);

    /* shadow */
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);

    transition: 0.2s;
}

/* hover */
.jersey-overlay:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* =========================
   VARIASI (OPSIONAL)
========================= */

/* kanan bawah */
.jersey-overlay.right {
    left: auto;
    right: 10px;
    transform: none;
}

/* warna merah */
.jersey-overlay.red {
    background: linear-gradient(135deg, #b71c1c, #e53935);
}

/* emas */
.jersey-overlay.gold {
    background: linear-gradient(135deg, #c9a400, #ffd700);
    color: #111;
}

/* =========================
   INFO SIDE
========================= */

.detail-info {
    flex: 1;
}

/* CLUB */
.detail-club {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-club img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ROW DATA */
.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 14px;
}

.detail-row strong {
    color: #555;
}

.detail-row span {
    text-align: right;
}

/* =========================
   MOBILE
========================= */

@media(max-width:600px){

    .detail-box {
        flex-direction: column;
    }

    .detail-photo {
        width: 100%;
    }

    .detail-photo img {
        width: 100%;
    }

    .jersey-overlay {
        font-size: 16px;
        padding: 5px 12px;
    }

}
/* ================= SIDEBAR TOURNAMENT ================= */
.sb-tournament{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* CARD */
.sb-tournament .sb-widget{
    background:#fff;
    border-radius:16px;
    padding:16px;
    border:1px solid #eee;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
    transition:.25s;
}

.sb-tournament .sb-widget:hover{
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* HEADER */
.sb-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.sb-header h3{
    font-size:13px;
    font-weight:700;
    letter-spacing:.6px;
    text-transform:uppercase;
    padding-left:12px;
    position:relative;
}

.sb-header h3::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:14px;
    background:linear-gradient(135deg,#ff512f,#dd2476);
    border-radius:2px;
}

/* NAV BUTTON */
.sb-nav{
    display:flex;
    gap:6px;
}

.sb-nav button{
    width:28px;
    height:28px;
    border:none;
    background:#f3f3f3;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

.sb-nav button:hover{
    background:#111;
    color:#fff;
}

/* ================= SLIDE ================= */
.sb-slide{ display:none; }
.sb-slide.active{ display:block; }

/* GROUP */
.sb-group{
    font-size:12px;
    font-weight:600;
    margin-bottom:8px;
    color:#666;
}

/* ================= STANDING ================= */
.sb-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    padding:7px 0;
    border-bottom:1px solid #f2f2f2;
}

.sb-row:last-child{
    border-bottom:none;
}

.sb-row span{
    display:flex;
    align-items:center;
    gap:7px;
}

/* LOGO */
.sb-row img{
    width:18px;
    height:18px;
    border-radius:50%;
    object-fit:cover;
}

/* POINT */
.sb-row b{
    font-weight:700;
}

/* ================= MATCH ================= */
.sb-match{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    padding:7px 0;
    border-bottom:1px solid #f2f2f2;
}

.sb-match:last-child{
    border-bottom:none;
}

/* ================= TRENDING ================= */
.sb-item{
    display:flex;
    gap:10px;
    margin-bottom:12px;
    text-decoration:none;
    color:inherit;
}

.sb-item img{
    width:64px;
    height:48px;
    border-radius:8px;
    object-fit:cover;
}

.sb-item h4{
    font-size:13px;
    margin:0;
    font-weight:600;
    color:#111;
    line-height:1.3;
}

.sb-item span{
    font-size:11px;
    color:#888;
}

/* HOVER */
.sb-item:hover h4{
    color:#ff512f;
}

/* ================= FOOTER BUTTON ================= */
.sb-footer{
    margin-top:12px;
}

.sb-footer a{
    display:block;
    text-align:center;
    font-size:12px;
    font-weight:600;
    padding:8px;
    border-radius:8px;
    background:#f5f5f5;
    color:#333;
    text-decoration:none;
    transition:.25s;
}

.sb-footer a:hover{
    background:#111;
    color:#fff;
}
/* =========================
   MATCH RESULT (MODERN UI)
========================= */

.match-list{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:10px;
}

.match-card{
    position:relative;
    background:#ffffff;
    padding:20px;
    text-decoration:none;
    color:#111827;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
    transition:0.25s;
}

.match-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(0,0,0,0.1);
}

/* BORDER RESULT */
.match-card.win{ border-left:6px solid #22c55e; }
.match-card.lose{ border-left:6px solid #ef4444; }
.match-card.draw{ border-left:6px solid #9ca3af; }

/* BADGE */
.badge-result{
    position:absolute;
    top:0px;
    right:0px;
    font-size:10px;
    font-weight:700;
    padding:5px 5px;
    border-radius:40px;
    color:#fff;
    letter-spacing:0.5px;
}

.badge-result.win{ background:#22c55e; }
.badge-result.lose{ background:#ef4444; }
.badge-result.draw{ background:#9ca3af; }

/* =========================
   TEAM LAYOUT
========================= */

.match-teams{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:10px;
}

/* TEAM */
.team{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:500;
}

/* LEFT TEAM */
.team:first-child{
    justify-content:flex-start;
}

/* RIGHT TEAM */
.team:last-child{
    justify-content:flex-end;
}

/* LOGO */
.team img{
    width:40px;
    height:40px;
    border-radius:12px;
    object-fit:cover;
    background:#f3f4f6;
}

/* TEAM NAME */
.team span{
    max-width:120px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* =========================
   SCORE
========================= */

.score{
    text-align:center;
}

.score .main{
    font-size:26px;
    font-weight:800;
    letter-spacing:1px;
    color:#111827;
}

/* =========================
   META
========================= */

.match-meta{
    margin-top:12px;
    font-size:12px;
    color:#6b7280;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* DATE */
.match-meta div:first-child{
    font-weight:500;
}

/* STADIUM */
.match-meta .stadium{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:12px;
}

/* =========================
   TEAM STATISTICS
========================= */

.team-stats{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:14px;
}

.team-stats div{
    background:#ffffff;
    border-radius:12px;
    padding:10px 14px;
    font-size:13px;
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.team-stats b{
    margin-left:4px;
}

/* COLOR */
.team-stats div:nth-child(1){ color:#16a34a; } /* W */
.team-stats div:nth-child(2){ color:#6b7280; } /* D */
.team-stats div:nth-child(3){ color:#dc2626; } /* L */
.team-stats div:nth-child(4){ color:#2563eb; } /* GF */
.team-stats div:nth-child(5){ color:#f59e0b; } /* GA */

/* =========================
   MOBILE
========================= */

@media(max-width:600px){

    .match-card{
        padding:14px;
    }

    .score .main{
        font-size:20px;
    }

    .team img{
        width:32px;
        height:32px;
    }

    .team span{
        max-width:80px;
    }

}
/* =========================
   SEARCH GLOBAL
========================= */

.search-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:14px;
    margin-bottom:24px;
}

/* =========================
   SEARCH CARD (TEAM / PLAYER / STADIUM)
========================= */

.search-card{
    display:flex;
    gap:12px;
    align-items:center;
    background:#ffffff;
    padding:12px;
    border-radius:14px;
    text-decoration:none;
    color:#111827;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    transition:0.2s ease;
}

.search-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

/* IMAGE */
.search-card img{
    width:50px;
    height:50px;
    border-radius:10px;
    object-fit:cover;
    background:#f3f4f6;
}

/* TEXT */
.search-card .title{
    font-size:14px;
    font-weight:600;
}

.search-card .meta{
    font-size:12px;
    color:#6b7280;
}


/* =========================
   SEARCH POST (NEWS - FIX UTAMA)
========================= */

.search-post-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:16px;
    margin-bottom:28px;
}

.search-post{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    text-decoration:none;
    color:#111827;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    transition:0.25s ease;
    display:flex;
    flex-direction:column;
}

.search-post:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

/* IMAGE */
.search-post img{
    width:100%;
    height:160px;
    object-fit:cover;
}

/* BODY */
.search-post-body{
    padding:14px;
}

.search-post-title{
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    margin-bottom:6px;
}

.search-post-meta{
    font-size:12px;
    color:#6b7280;
}

.search-post-desc{
    font-size:13px;
    color:#6b7280;
    margin-top:6px;
    line-height:1.4;
}


/* =========================
   MATCH RESULT (SEARCH)
========================= */

.match-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:24px;
}

.match-card{
    background:#ffffff;
    border-radius:14px;
    padding:20px 18px;
    text-decoration:none;
    color:#111827;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    transition:0.2s ease;
}

.match-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

/* TEAMS */
.match-teams{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:10px;
}

/* TEAM */
.team{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
}

/* RIGHT TEAM */
.team:last-child{
    justify-content:flex-end;
    text-align:right;
}

/* LOGO */
.team img{
    width:34px;
    height:34px;
    object-fit:cover;
    border-radius:8px;
    background:#f3f4f6;
}

/* SCORE */
.score{
    font-size:18px;
    font-weight:700;
}


/* =========================
   SECTION TITLE FIX
========================= */

.np-subtitle{
    font-size:18px;
    font-weight:600;
    margin:20px 0 12px;
}

.np-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:10px;
}


/* =========================
   EMPTY STATE
========================= */

.np-wrapper p{
    font-size:14px;
    color:#6b7280;
}


/* =========================
   MOBILE FIX
========================= */

@media(max-width:600px){

    .search-card{
        padding:10px;
    }

    .search-card img{
        width:42px;
        height:42px;
    }

    .search-post img{
        height:140px;
    }

    .match-card{
        padding:15px;
    }

    .score{
        font-size:16px;
    }

    .team img{
        width:30px;
        height:30px;
    }

}
.stat-center{
    text-align: center;
    width: 100%;
}

.stat-label{
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.stat-bar{
    position: relative;
    height: 8px;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
}

.bar-left{
    height: 100%;
    background: #00c853;
    float: left;
}

.bar-right{
    height: 100%;
    background: #d50000;
    float: right;
}
.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:12px;
}

.sidebar-menu a i{
    width:22px;          /* 🔥 samakan ruang icon */
    min-width:22px;
    text-align:center;
    font-size:16px;
}

.sidebar-menu a span{
    flex:1;
}
#backToTop{
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: none;

    background: linear-gradient(135deg, #ff2d2d, #b30000);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: all .3s ease;
    z-index: 999;
}

/* Hover effect biar hidup */
#backToTop:hover{
    transform: translateY(0) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Muncul */
#backToTop.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Optional: glow merah tipis */
#backToTop::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,0,0.4), transparent 70%);
    opacity: 0;
    transition: .3s;
}

#backToTop:hover::after{
    opacity: 1;
}