*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:
        radial-gradient(circle at top left, rgba(35,91,170,.35), transparent 34%),
        linear-gradient(180deg,#071326,#0a1d38 45%,#061426);
    color:#fff;
    font-family:Segoe UI,Arial,sans-serif;
}

/* NAVBAR */
.navbar{
    background:#031126;
    padding:10px 24px;
    display:flex;
    gap:10px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.navbar a{
    color:white;
    text-decoration:none;
    background:rgba(255,255,255,.08);
    padding:12px 18px;
    border-radius:12px;
    transition:.25s;
}

.navbar a:hover,
.navbar a.active{
    background:#1d6eff;
}

/* TOPBAR */
.topbar{
    background:#031126;
    padding:22px 28px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo-box{
    display:flex;
    align-items:center;
    gap:16px;
}

.logo-circle{
    width:52px;
    height:52px;
    border-radius:16px;
    background:linear-gradient(135deg,#1d6eff,#58b7ff);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    box-shadow:0 12px 28px rgba(29,110,255,.35);
}

.logo-box h1{
    font-size:34px;
    margin-bottom:5px;
}

.logo-box small{
    color:#a8bad4;
}

/* HERO */
.hero{
    max-width:1420px;
    margin:24px auto 26px;
    padding:0 24px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:22px;
    align-items:start;
}

.hero-left,
.hero-right{
    background:linear-gradient(135deg,#224f8e,#173865);
    border:1px solid rgba(255,255,255,.10);
    border-radius:26px;
    padding:26px;
    box-shadow:0 18px 48px rgba(0,0,0,.28);
    min-height:auto;
    align-self:start;
}

.hero-kicker{
    display:inline-block;
    background:rgba(255,255,255,.12);
    color:#dbeaff;
    padding:8px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    letter-spacing:.6px;
    text-transform:uppercase;
    margin-bottom:18px;
}

.hero-left h2{
    font-size:38px;
    line-height:1.2;
    margin-bottom:14px;
}

.hero-left p{
    color:#d8e6fb;
    line-height:1.7;
    max-width:920px;
}

.filters{
    display:flex;
    gap:12px;
    margin-top:24px;
    flex-wrap:wrap;
}

.filters input,
.filters select,
.filters button,
.reset-btn{
    height:50px;
    border-radius:13px;
    padding:0 18px;
    border:1px solid rgba(255,255,255,.12);
}

.filters input,
.filters select{
    background:#071a35;
    color:#fff;
    outline:none;
}

.filters input{
    min-width:240px;
}

.filters input::placeholder{
    color:#8ea8cb;
}

.filters button{
    background:linear-gradient(135deg,#1d6eff,#3e9bff);
    color:#fff;
    font-weight:800;
    cursor:pointer;
    border:none;
    box-shadow:0 10px 24px rgba(29,110,255,.35);
}

.reset-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:white;
    background:rgba(255,255,255,.12);
}

/* BANNER */
.banner-ads{
    margin-top:24px;
}

.banner-ads a{
    display:block;
}

.banner-ads img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    transition:.3s;
    background:rgba(255,255,255,.06);
}

.banner-ads img:hover{
    transform:translateY(-3px);
    border-color:rgba(255,213,79,.45);
}

/* HERO RIGHT */
.hero-right h3{
    color:#d8e6fb;
    font-size:18px;
    margin-bottom:14px;
}

.total-match{
    font-size:58px;
    font-weight:900;
    margin:16px 0 20px;
    color:#fff;
}

.hero-stat{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    border-top:1px solid rgba(255,255,255,.12);
    color:#c7d8ef;
}

.hero-stat b{
    color:#fff;
    font-size:20px;
}

/* NEXT MATCH */
.next-match-teams{
    display:grid;
    grid-template-columns:1fr 48px 1fr;
    align-items:center;
    gap:10px;
    text-align:center;
    margin:14px 0 16px;
}

.next-match-teams img{
    width:42px;
    height:30px;
    object-fit:contain;
    display:block;
    margin:0 auto 8px;
}

.next-match-teams strong{
    display:block;
    font-size:15px;
    line-height:1.25;
}

.next-match-teams span{
    color:#ffd54f;
    font-weight:900;
    font-size:18px;
}

.next-date{
    text-align:center;
    color:#ffd54f;
    font-weight:800;
    margin-bottom:8px;
}

.next-venue{
    text-align:center;
    color:#c7d8ef;
    margin-bottom:12px;
}

.countdown{
    margin-top:10px;
    color:#ffd54f;
    font-weight:900;
}

.hero-right .countdown{
    text-align:center;
}

.hero-right hr{
    border:0;
    border-top:1px solid rgba(255,255,255,.12);
    margin:18px 0;
}

/* SECTION */
.section-title{
    max-width:1420px;
    margin:0 auto 22px;
    padding:0 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-size:38px;
    font-weight:900;
}

.section-title small{
    font-size:14px;
    background:rgba(255,255,255,.10);
    padding:8px 14px;
    border-radius:999px;
    color:#d8e6fb;
}

.search-result{
    max-width:1420px;
    margin:0 auto 20px;
    padding:0 24px;
    font-size:18px;
    font-weight:800;
}

.search-result span{
    color:#ffd54f;
}

/* GRID CARD */
.grid{
    max-width:1420px;
    margin:auto;
    padding:0 24px 60px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
    gap:22px;
}

.card{
    background:linear-gradient(180deg,#0f2d59,#0a1f3f);
    border:1px solid rgba(255,255,255,.10);
    border-radius:24px;
    padding:22px;
    box-shadow:0 14px 36px rgba(0,0,0,.28);
    transition:.25s;
}

.card:hover{
    transform:translateY(-5px);
    border-color:rgba(255,213,79,.35);
}

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
    color:#b8c9e4;
    font-size:14px;
}

.group-badge{
    background:rgba(255,255,255,.10);
    padding:7px 12px;
    border-radius:999px;
    font-weight:900;
    font-size:12px;
    color:#dbeaff;
}

/* STATUS */
.status-ft,
.status-live,
.status-ns{
    padding:7px 12px;
    border-radius:999px;
    font-weight:900;
    font-size:13px;
}

.status-ft{
    color:#00ff99;
    background:rgba(0,255,153,.10);
}

.status-ns{
    color:#ffd54f;
    background:rgba(255,213,79,.12);
}

.status-live{
    color:#fff;
    background:#ff3b30;
    animation:blink 1s infinite;
}

@keyframes blink{
    50%{
        opacity:.45;
    }
}

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

.team{
    text-align:center;
}

.team img{
    width:64px;
    height:42px;
    object-fit:contain;
    margin:0 auto 10px;
    display:block;
}

.team strong{
    display:block;
    font-size:21px;
    line-height:1.25;
}

.score{
    text-align:center;
    font-size:48px;
    font-weight:900;
    color:#ffd54f;
    letter-spacing:2px;
}

.score span{
    color:#fff0a8;
}

.match-info{
    margin-top:20px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,.10);
    color:#bed0e8;
    font-size:14px;
    line-height:1.7;
}

.empty{
    grid-column:1/-1;
    text-align:center;
    padding:60px;
    background:#10284d;
    border-radius:22px;
}

footer{
    text-align:center;
    padding:32px;
    color:#9eb5d4;
}

/* RESPONSIVE */
@media(max-width:1000px){
    .hero{
        grid-template-columns:1fr;
    }

    .banner-ads img{
        height:190px;
    }
}

@media(max-width:700px){
    .navbar{
        padding:10px 12px;
        overflow-x:auto;
    }

    .topbar{
        padding:18px 16px;
    }

    .logo-box{
        align-items:flex-start;
    }

    .logo-box h1{
        font-size:22px;
    }

    .logo-circle{
        width:46px;
        height:46px;
    }

    .hero{
        padding:0 14px;
        margin:18px auto 22px;
    }

    .hero-left,
    .hero-right{
        padding:22px;
        border-radius:22px;
    }

    .hero-left h2{
        font-size:30px;
    }

    .filters{
        flex-direction:column;
    }

    .filters input,
    .filters select,
    .filters button,
    .reset-btn{
        width:100%;
    }

    .banner-ads img{
        height:140px;
        border-radius:16px;
    }

    .section-title{
        padding:0 14px;
        font-size:28px;
    }

    .grid{
        grid-template-columns:1fr;
        padding:0 14px 40px;
    }

    .teams{
        grid-template-columns:1fr 86px 1fr;
    }

    .score{
        font-size:34px;
    }

    .team img{
        width:52px;
        height:34px;
    }

    .team strong{
        font-size:16px;
    }
}
/* =========================
   BANNER SLIDER
========================= */

.banner-slider{
    position:relative;
    margin-top:24px;
    width:100%;
    height:260px;
    overflow:hidden;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.banner-slider .slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .8s ease;
}

.banner-slider .slide.active{
    opacity:1;
    z-index:2;
}

.banner-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

@media(max-width:700px){

    .banner-slider{
        height:140px;
    }

}


/* =========================
   MATCH DETAIL MODAL FINAL
========================= */

.match-card{
    cursor:pointer;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.78);
    z-index:99999;
    justify-content:center;
    align-items:center;
    padding:20px;
    backdrop-filter:blur(6px);
}

.modal.show{
    display:flex;
}

.modal-content{
    width:100%;
    max-width:720px;
    background:linear-gradient(180deg,#14386f,#0b2247);
    border-radius:26px;
    padding:30px;
    position:relative;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 30px 80px rgba(0,0,0,.55);
}

.close-modal{
    position:absolute;
    right:18px;
    top:14px;
    width:42px;
    height:42px;
    border:0;
    border-radius:14px;
    background:rgba(255,255,255,.10);
    color:#fff;
    font-size:30px;
    line-height:1;
    cursor:pointer;
}

.close-modal:hover{
    background:#1d6eff;
}

.modal-header{
    text-align:center;
    margin-bottom:24px;
    padding-right:36px;
}

.modal-header h2{
    font-size:28px;
    line-height:1.25;
}

.modal-flags{
    display:grid;
    grid-template-columns:1fr 120px 1fr;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
    text-align:center;
}

.modal-flags img{
    width:86px;
    height:60px;
    object-fit:contain;
    display:block;
    margin:0 auto 10px;
}

.modal-flags strong{
    display:block;
    font-size:18px;
}

.modal-score{
    color:#ffd54f;
    font-size:42px;
    font-weight:900;
    letter-spacing:2px;
}

.modal-score b{
    color:#fff0a8;
}

.modal-info{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:12px 18px;
}

.modal-info p{
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
    color:#dbeaff;
}

.modal-info p:last-child{
    border-bottom:0;
}

.modal-info b{
    color:#fff;
}

@media(max-width:700px){
    .modal-content{
        padding:24px;
        border-radius:22px;
    }

    .modal-header h2{
        font-size:22px;
    }

    .modal-flags{
        grid-template-columns:1fr 80px 1fr;
        gap:12px;
    }

    .modal-flags img{
        width:58px;
        height:42px;
    }

    .modal-flags strong{
        font-size:14px;
    }

    .modal-score{
        font-size:30px;
    }
}
