/* =========================
   RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  background:#0f172a;
  color:white;
  font-family:Arial,sans-serif;
  overflow-x:hidden;
  min-height:100vh;
  padding-bottom:40px;
  -webkit-tap-highlight-color:transparent;
}

/* =========================
   GLOBAL
========================= */

img{
  max-width:100%;
  height:auto;
  display:block;
  image-rendering:auto;
}

a{
  text-decoration:none;
}

button{
  border:none;
  outline:none;
  cursor:pointer;
  font-family:inherit;
}

input{
  font-family:inherit;
}

/* =========================
   HEADER
========================= */

.main-header{
  position:sticky;
  top:0;
  z-index:1000;

  background:#111827;

  padding:10px 12px 14px;

  border-bottom:1px solid #1e293b;

  overflow:hidden;

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

/* TOP BAR */

.top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* BRAND */

.brand{
  display:flex;
  align-items:center;
  gap:8px;
}

.brand-logo{
  width:28px;
  height:28px;

  border-radius:50%;

  background:#22c55e;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:16px;
}

.brand-name{
  font-size:20px;
  font-weight:800;
  color:white;
  line-height:1;
}

/* SEARCH BUTTON */

.search-btn{
  width:34px;
  height:34px;

  border-radius:50%;

  background:#1e293b;

  color:#cbd5e1;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:15px;

  touch-action:manipulation;
}

/* =========================
   CATEGORY TABS
========================= */

.category-tabs{
  display:flex;
  gap:8px;

  overflow-x:auto;

  margin-top:16px;
  padding-bottom:4px;

  scrollbar-width:none;

  -webkit-overflow-scrolling:touch;
}

.category-tabs::-webkit-scrollbar{
  display:none;
}

.tab{
  flex-shrink:0;

  padding:8px 14px;

  border-radius:999px;

  background:#1e293b;

  color:#cbd5e1;

  font-size:13px;
  font-weight:700;

  white-space:nowrap;

  transition:0.2s;
}

.active-tab{
  background:white;
  color:black;
}

/* =========================
   DATE BAR
========================= */

.date-bar{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:14px;

  margin-top:16px;
}

.date-btn{
  width:34px;
  height:34px;

  border-radius:50%;

  background:#1e293b;

  color:white;

  font-size:20px;

  display:flex;
  align-items:center;
  justify-content:center;

  flex-shrink:0;

  touch-action:manipulation;
}

.current-date{
  font-size:15px;
  font-weight:700;
  color:white;

  min-width:120px;

  text-align:center;
}

/* =========================
   CONTAINER
========================= */

.container{
  width:100%;
  max-width:900px;

  margin:auto;

  padding:12px;
}

/* =========================
   SEARCH INPUT
========================= */

.search-input{
  width:100%;

  padding:12px 16px;

  border:none;
  outline:none;

  border-radius:14px;

  background:#1e293b;

  color:white;

  font-size:14px;

  margin-bottom:16px;
}

.search-input::placeholder{
  color:#94a3b8;
}

/* =========================
   LEAGUE TITLE
========================= */

.league-title{
  font-size:15px;
  font-weight:700;

  color:#38bdf8;

  margin:18px 5px 10px;
}

/* =========================
   MATCH CARD
========================= */

.match-card{
  background:#111827;

  border:1px solid #1e293b;

  border-radius:14px;

  padding:12px;

  margin-bottom:12px;

  overflow:hidden;

  transition:0.2s;

  will-change:transform;

  backface-visibility:hidden;

  touch-action:manipulation;
}

.match-card:active{
  transform:scale(0.98);
}

/* =========================
   TEAMS
========================= */

.teams{
  width:100%;

  display:grid;
  grid-template-columns:1fr auto 1fr;

  align-items:center;

  gap:8px;

  min-width:0;
}

/* =========================
   TEAM SIDE
========================= */

.team-side{
  display:flex;
  align-items:center;

  gap:8px;

  min-width:0;

  overflow:hidden;
}

.team-side.home{
  justify-content:flex-end;
  text-align:right;
}

.team-side.away{
  justify-content:flex-start;
  text-align:left;
}

/* =========================
   TEAM IMAGE
========================= */

.team-side img{
  width:30px !important;
  height:30px !important;


  flex:0 0 24px;

  object-fit:contain;

  border-radius:50%;

  background:transparent !important;

  padding:2px;

  display:block;
}

/* =========================
   TEAM NAME
========================= */

.team-name{
  font-size:13px;
  font-weight:600;

  color:#f8fafc;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  max-width:100%;
}

/* =========================
   CENTER SCORE
========================= */

.center-score{
  min-width:58px;

  text-align:center;
}

.score{
  font-size:22px;
  font-weight:800;

  color:#22c55e;

  line-height:1;
}

/* =========================
   MATCH TIME
========================= */

.match-time{
  margin-top:6px;

  font-size:11px;
  font-weight:700;

  display:inline-block;

  padding:4px 8px;

  border-radius:20px;

  background:#1e293b;
}

.live-time{
  color:#ef4444;
}

.finished-time{
  color:#94a3b8;
}

.upcoming-time{
  color:#38bdf8;
}

/* =========================
   LOADING + ERROR
========================= */

.loading,
.error-box{
  text-align:center;

  padding:40px 20px;

  font-size:14px;
}

.loading{
  color:#94a3b8;
}

.error-box{
  color:#ef4444;
}

/* =========================
   DESKTOP HOVER
========================= */

@media(min-width:1000px){

  .container{
    max-width:850px;
  }

  .match-card:hover{
    border-color:#334155;
    transform:translateY(-2px);
  }

}

/* =========================
   TABLET
========================= */

@media(max-width:768px){

  .container{
    padding:10px;
  }

}

/* =========================
   MOBILE
========================= */

@media(max-width:600px){

  .main-header{
    padding:10px 10px 12px;
  }

  .brand-name{
    font-size:18px;
  }

  .search-btn{
    width:32px;
    height:32px;

    font-size:14px;
  }

  .tab{
    padding:7px 13px;
    font-size:12px;
  }

  .date-bar{
    gap:10px;
  }

  .date-btn{
    width:30px;
    height:30px;

    font-size:18px;
  }

  .current-date{
    font-size:14px;
    min-width:100px;
  }

  .team-name{
    font-size:12px;
  }

  .score{
    font-size:20px;
  }

}

/* =========================
   SMALL IPHONES
========================= */

@media(max-width:390px){

  .brand-name{
    font-size:15px;
  }

  .tab{
    padding:6px 11px;
    font-size:11px;
  }

  .current-date{
    min-width:90px;
    font-size:13px;
  }

  .team-name{
    font-size:11px;
  }

  .score{
    font-size:18px;
  }

  .center-score{
    min-width:52px;
  }

  .team-side img{
    width:20px !important;
    height:20px !important;

    min-width:20px !important;
    min-height:20px !important;

    max-width:20px !important;
    max-height:20px !important;

    flex:0 0 20px;
  }

}

/* =========================
   EXTRA SMALL DEVICES
========================= */

@media(max-width:340px){

  .team-name{
    font-size:10px;
  }

  .score{
    font-size:16px;
  }

  .center-score{
    min-width:48px;
  }

}
/* =========================
   BOTTOM SEO CONTENT
========================= */

.bottom-seo{
  margin-top:30px;

  padding:22px;

  border-top:1px solid #1e293b;

  background:#111827;

  border-radius:16px;
}

.bottom-seo h1{
  font-size:24px;
  line-height:1.4;

  margin-bottom:14px;

  color:white;
}

.bottom-seo h2{
  margin-top:22px;
  margin-bottom:10px;

  font-size:18px;

  color:#38bdf8;
}

.bottom-seo p{
  color:#cbd5e1;

  font-size:14px;

  line-height:1.8;
}

/* =========================
   FOOTER
========================= */

.seo-footer{
  margin-top:20px;

  padding:26px 20px;

  text-align:center;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;

  gap:14px;

  margin-bottom:18px;
}

.footer-links a{
  color:#94a3b8;

  font-size:13px;

  text-decoration:none;

  transition:0.2s;
}

.footer-links a:hover{
  color:white;
}

.footer-text{
  color:#64748b;

  font-size:12px;
}
/* =========================
   SEO BULLETS
========================= */

.seo-list{
  margin-top:18px;
  padding-left:18px;
}

.seo-list li{
  color:#cbd5e1;

  font-size:14px;

  line-height:1.9;

  margin-bottom:6px;
}
/* =========================
   MOBILE DATE BUTTON TAP FIX
========================= */

.main-header{
  overflow:visible;
}

.date-bar{
  position:relative;
  z-index:9999;
  pointer-events:auto;
}

.date-btn{
  position:relative;
  z-index:10000;
  pointer-events:auto;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}

.container{
  position:relative;
  z-index:1;
}

.match-card{
  position:relative;
  z-index:1;
}
/* =========================
   TEAMS PAGE
========================= */

#teamsGrid{
  display:grid;
  grid-template-columns:
    repeat(auto-fill,minmax(180px,1fr));

  gap:14px;

  margin-top:18px;
}

.team-card{
  background:#111827;

  border:1px solid #1e293b;

  border-radius:16px;

  padding:18px 14px;

  text-align:center;

  transition:0.2s;
}

.team-card:hover{
  transform:translateY(-2px);
  border-color:#334155;
}

.team-logo-wrap,
.league-logo-wrap{
  width:72px;
  height:72px;
  margin:auto auto 14px;
  border-radius:50%;

  background:transparent;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;
}

.team-logo{
  width:100%;
  height:100%;

  object-fit:contain;
}

.team-title{
  font-size:15px;
  font-weight:700;

  color:#f8fafc;

  line-height:1.4;
}

.team-country{
  margin-top:6px;

  font-size:12px;

  color:#94a3b8;
}

/* MOBILE */

@media(max-width:600px){

  #teamsGrid{
    grid-template-columns:
      repeat(2,1fr);

    gap:12px;
  }

  .team-card{
    padding:16px 10px;
  }

  .team-logo-wrap{
    width:60px;
    height:60px;
  }

  .team-title{
    font-size:13px;
  }

}
.team-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.team-logo-wrap img{
  max-width:100%;
  max-height:100%;
}
.load-more-btn{
  display:block;
  margin:24px auto;
  padding:12px 22px;
  border-radius:999px;
  background:#1e293b;
  color:white;
  font-weight:700;
  font-size:14px;
}

.load-more-btn:hover{
  background:#334155;
}
/* =========================
   LEAGUES PAGE CARDS
========================= */

#leaguesGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
  margin-top:18px;
}

.league-card-pro{
  background:#111827;
  border:1px solid #1e293b;
  border-radius:16px;
  padding:18px 14px;
  text-align:center;
  transition:0.2s;
}

.league-card-pro:hover{
  transform:translateY(-2px);
  border-color:#334155;
}

.league-logo-wrap{
  width:72px;
  height:72px;
  margin:auto auto 14px;
  border-radius:50%;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.league-card-logo{
  width:100%;
  height:100%;
  object-fit:contain;
}

.league-title-card{
  font-size:15px;
  font-weight:700;
  color:#f8fafc;
  line-height:1.4;
}

.league-region{
  margin-top:6px;
  font-size:12px;
  color:#94a3b8;
}

@media(max-width:600px){

  #leaguesGrid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }

  .league-card-pro{
    padding:16px 10px;
  }

  .league-logo-wrap{
    width:60px;
    height:60px;
  }

  .league-title-card{
    font-size:13px;
  }

}
/* =========================
   DETAIL PAGES
========================= */

.detail-card,
.detail-section{
  background:#111827;
  border:1px solid #1e293b;
  border-radius:16px;
  padding:16px;
  margin-bottom:16px;
}

.match-detail-score{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  text-align:center;
}

.detail-score{
  font-size:30px;
  font-weight:900;
  color:#22c55e;
}

.detail-status{
  margin-top:6px;
  color:#facc15;
  font-size:13px;
  font-weight:700;
}

.detail-league{
  margin-top:4px;
  color:#94a3b8;
  font-size:12px;
}

.detail-tabs{
  display:flex;
  overflow-x:auto;
  gap:8px;
  margin-bottom:16px;
}

.detail-tab{
  flex-shrink:0;
  padding:9px 14px;
  border-radius:999px;
  background:#1e293b;
  color:#cbd5e1;
  font-weight:700;
}

.active-detail-tab{
  background:white;
  color:black;
}

.hidden-section{
  display:none;
}

.event-row,
.stats-row-pro,
.player-row,
.standing-row,
.standing-head{
  display:grid;
  grid-template-columns:60px 1fr 60px;
  gap:8px;
  padding:10px 0;
  border-bottom:1px solid #1e293b;
  align-items:center;
}

.stats-row-pro{
  grid-template-columns:60px 1fr 60px;
  text-align:center;
}

.event-minute{
  color:#facc15;
  font-weight:800;
}

.event-type{
  color:#38bdf8;
  font-weight:700;
}

.lineup-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.player-row{
  grid-template-columns:40px 1fr 50px;
}

.standings-title{
  margin:10px 0;
  color:#38bdf8;
}

.standing-head,
.standing-row{
  grid-template-columns:40px 1fr 50px 50px 60px;
}

.standing-head{
  color:#94a3b8;
  font-weight:800;
}

.empty-text{
  color:#94a3b8;
  font-size:13px;
}

@media(max-width:600px){

  .detail-score{
    font-size:24px;
  }

  .lineup-grid{
    grid-template-columns:1fr;
  }

  .standing-head,
  .standing-row{
    grid-template-columns:32px 1fr 42px 42px 48px;
    font-size:12px;
  }

}
.event-player small{
  display:block;
  color:#94a3b8;
  font-size:11px;
  margin-top:3px;
}

.home-event{
  border-left:3px solid #22c55e;
  padding-left:8px;
}

.away-event{
  border-left:3px solid #38bdf8;
  padding-left:8px;
}
/* =========================
   MATCH PAGE TEAM LOGOS
========================= */

.detail-team-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  margin-bottom:10px;
}

.detail-team{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

@media(max-width:600px){

  .detail-team-logo{
    width:42px;
    height:42px;
  }

}
/* =========================
   FIFA WORLD CUP PAGE
========================= */

.worldcup-hero{
  background:#111827;
  border:1px solid #1e293b;
  border-radius:18px;
  padding:24px 18px;
  text-align:center;
  margin-bottom:16px;
}

.worldcup-logo{
  width:96px;
  height:96px;
  object-fit:contain;
  margin:0 auto 14px;
}

.worldcup-hero h1{
  font-size:26px;
  margin-bottom:8px;
}

.worldcup-hero p{
  color:#cbd5e1;
  font-size:14px;
  line-height:1.7;
}

.wc-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin-bottom:18px;
  -webkit-overflow-scrolling:touch;
}

.wc-tabs::-webkit-scrollbar{
  display:none;
}

.wc-tab{
  flex-shrink:0;
  padding:9px 14px;
  border-radius:999px;
  background:#1e293b;
  color:#cbd5e1;
  font-weight:700;
  font-size:13px;
}

.active-wc-tab{
  background:white;
  color:black;
}

.group-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px;
}

.group-card{
  background:#111827;
  border:1px solid #1e293b;
  border-radius:16px;
  padding:18px;
  color:white;
  font-weight:800;
}

@media(max-width:600px){

  .worldcup-logo{
    width:72px;
    height:72px;
  }

  .worldcup-hero h1{
    font-size:21px;
  }

  .group-grid{
    grid-template-columns:repeat(2,1fr);
  }

}
/* =========================
   FIFA WC STANDINGS
========================= */

.wc-group-table{
  background:#111827;
  border:1px solid #1e293b;
  border-radius:18px;
  overflow:hidden;
}

.wc-group-header{
  display:grid;
  grid-template-columns:
    50px
    1.8fr
    repeat(6,70px);
  gap:10px;
  align-items:center;

  background:#f1f5f9;
  color:#111827;

  padding:14px 16px;

  font-weight:800;
  font-size:13px;
}

.wc-standing-row{
  display:grid;
  grid-template-columns:
    50px
    1.8fr
    repeat(6,70px);

  gap:10px;
  align-items:center;

  padding:14px 16px;

  border-top:1px solid #1e293b;

  color:white;

  cursor:pointer;

  transition:0.2s;
}

.wc-standing-row:hover{
  background:#0f172a;
}

.wc-rank{
  width:34px;
  height:34px;

  border-radius:10px;

  background:#0f4c81;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:800;
}

.wc-team-cell{
  display:flex;
  align-items:center;
  gap:12px;

  font-weight:700;
}

.wc-flag{
  width:28px;
  height:20px;
  object-fit:cover;
  border-radius:3px;
}

.wc-points{
  font-weight:900;
  color:#22c55e;
}

@media(max-width:900px){

  .wc-group-header,
  .wc-standing-row{

    grid-template-columns:
      40px
      1.5fr
      repeat(6,50px);

    font-size:12px;

    padding:12px 10px;

  }

}

@media(max-width:600px){

  .wc-group-header,
  .wc-standing-row{

    grid-template-columns:
      36px
      1.8fr
      repeat(6,42px);

    gap:4px;

    font-size:11px;

  }

  .wc-flag{
    width:22px;
    height:16px;
  }

}
.wc-empty-row{
  padding:18px;
  color:#94a3b8;
  text-align:center;
  border-top:1px solid #1e293b;
}

.wc-group-table{
  margin-bottom:22px;
}
.team-logo,
.league-card-logo,
.wc-flag{
  background:transparent;
  object-fit:contain;
}
.main-league-card{
  cursor:pointer;
  border-color:#22c55e !important;
}

.league-card-pro{
  cursor:pointer;
}
/* =========================
   WORLD CUP TEAM SEO PAGE
========================= */

.team-wc-hero{
  position:relative;
}

.wc-team-small-flag{
  width:46px;
  height:32px;
  object-fit:contain;
  margin:0 auto 10px;
  display:block;
  background:transparent;
}

@media(max-width:600px){

  .wc-team-small-flag{
    width:38px;
    height:26px;
  }

}
/* Popular Football Pages */

.seo-links{
  background:#0f172a;
  border:1px solid #1e293b;
  border-radius:14px;
  padding:26px 30px;
  margin:34px 0;
}

.seo-links h2{
  color:#ffffff;
  font-size:18px;
  font-weight:600;
  margin:0 0 22px;
}

.popular-links-grid{
  display:flex;
  flex-wrap:wrap;
  gap:14px 22px;
  align-items:center;
}

.popular-links-grid a{
  color:#ffffff;
  font-size:10px;
  font-weight:400;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:2px;
  transition:0.2s ease;
}

.popular-links-grid a:hover{
  color:#38bdf8;
}

@media(max-width:768px){

  .seo-links{
    padding:22px 18px;
  }

  .seo-links h2{
    font-size:21px;
  }

  .popular-links-grid{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .popular-links-grid a{
    font-size:16px;
  }

}