:root{
  --bg:#0b0c10;
  --bg2:#1f2833;
  --card:rgba(255,255,255,0.03);
  --card2:rgba(255,255,255,0.08);
  --border:rgba(255,255,255,0.08);
  --text:#ffffff;
  --muted:#8b9bb4;
  --gold:#00f0ff;
  --green:#3ee08f;
  --red:#ff003c;
  --blue:#00f0ff;
  --purple:#8a2be2;
  --shadow:0 8px 32px 0 rgba(0,0,0,0.3);
  --glass-blur: blur(12px);
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;900&display=swap');
*{box-sizing:border-box}
body{
  margin:0;
  font-family:'Outfit',Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background-color: var(--bg);
  background-image: 
      radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.12) 0%, transparent 50%);
  color:var(--text);
  min-height:100vh;
}
.bg-glow{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
}
.bg-glow::before, .bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out alternate;
}
.bg-glow::before {
  width: 300px; height: 300px; background: var(--purple); top: -10%; left: -10%;
}
.bg-glow::after {
  width: 400px; height: 400px; background: var(--blue); bottom: -10%; right: -10%; animation-delay: -5s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}
.hero{max-width:1180px;margin:0 auto;padding:48px 20px 28px;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;z-index:2;}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:rgba(255,255,255,.06);color:var(--blue);font-size:13px;font-weight:700}
h1{font-size:clamp(38px,7vw,82px);line-height:.95;margin:18px 0 12px;letter-spacing:-.06em;font-family:'Outfit',sans-serif;background:linear-gradient(90deg,var(--blue),var(--purple));-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 20px rgba(0,240,255,0.3);}
.hero p{margin:0;max-width:720px;color:var(--muted);font-size:18px;line-height:1.6;margin-left:auto;margin-right:auto;}
.hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;justify-content:center;}
.btn{border:1px solid var(--border);background:rgba(255,255,255,.06);color:var(--text);text-decoration:none;border-radius:14px;padding:12px 16px;font-weight:800;cursor:pointer;transition:.3s;backdrop-filter:var(--glass-blur)}
.btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.12);box-shadow:0 5px 15px rgba(0,0,0,0.3);}
.btn-primary{background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;border-color:transparent;box-shadow:0 0 15px rgba(138,43,226,0.4);}
.hero__panel{padding:22px;border:1px solid var(--border);border-radius:24px;background:var(--card);backdrop-filter:var(--glass-blur);box-shadow:var(--shadow)}
.panel-label{display:block;color:var(--muted);font-size:13px;margin-bottom:10px}
.hero__panel strong{display:block;font-size:24px;margin-bottom:8px}
.hero__panel small{color:var(--muted)}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px 42px;position:relative;z-index:2;}
.card{border:1px solid var(--border);border-radius:22px;background:var(--card);box-shadow:var(--shadow);backdrop-filter:var(--glass-blur);transition:transform 0.3s,box-shadow 0.3s,border-color 0.3s}
.toolbar{padding:14px;display:flex;justify-content:space-between;gap:14px;align-items:center;position:sticky;top:10px;z-index:5}
.tabs{display:flex;gap:8px;overflow:auto;padding-bottom:2px}
.tab{border:0;border-radius:12px;padding:10px 12px;color:var(--muted);background:transparent;font-weight:800;cursor:pointer;white-space:nowrap;transition:0.3s}
.tab.active,.tab:hover{background:var(--card2);color:var(--text)}
.searchBox{min-width:260px;flex:0 0 330px}
input{width:100%;border:1px solid var(--border);background:rgba(0,0,0,.16);color:var(--text);padding:12px 14px;border-radius:14px;outline:none;font-family:'Outfit',sans-serif;}
input::placeholder{color:#8191aa}
input:focus{border-color:var(--blue);box-shadow:0 0 10px rgba(0,240,255,0.2);}
.scoreStrip{display:flex;gap:12px;overflow:auto;margin:18px 0 12px;padding:2px 0 8px}
.live-pill{flex:0 0 auto;border:1px solid rgba(255,0,60,.35);border-radius:999px;padding:10px 14px;background:rgba(255,0,60,.1);font-size:14px}
.live-pill b{color:var(--red)}

/* Main Tabs (Bing Layout) */
.main-tabs {
  display: flex; justify-content: space-between; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 2px;
}
.main-tab {
  background: transparent; color: var(--muted); border: 0; font-size: 11px; font-weight: 600; cursor: pointer; padding: 10px 4px; border-bottom: 3px solid transparent; transition: 0.3s; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-transform: uppercase; letter-spacing: 0.5px;
}
.main-tab svg { width: 22px; height: 22px; }
.main-tab:hover {
  color: var(--text);
}
.main-tab.active {
  color: var(--blue); border-bottom-color: var(--blue);
}
.tab-view {
  display: none;
}
.tab-view.active {
  display: block;
}

/* Match Group & Row (Bing Layout) */
.match-list {
  margin-top: 16px;
}
.match-group {
  margin-bottom: 24px; padding: 0; overflow: hidden;
}
.match-group__header {
  margin: 0; padding: 16px 20px; font-size: 18px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); font-family: 'Outfit', sans-serif; color: var(--text);
}
.match-group__list {
  display: flex; flex-direction: column;
}
.match-row {
  display: grid; grid-template-columns: 80px 1fr 180px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: 0.3s; cursor: pointer; position: relative;
}
.match-row:last-child {
  border-bottom: 0;
}
.match-row:hover {
  background: rgba(255,255,255,0.03);
}
.match-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--blue);opacity:0;transition:0.3s}
.match-row:hover::before{opacity:1}

.match-row__time {
  font-weight: 900; color: var(--muted); font-size: 14px;
}
.status.live{color:var(--red);}
.status.live::before{content:'';display:inline-block;width:6px;height:6px;background:var(--red);border-radius:50%;margin-right:6px;animation:pulse 1.5s infinite;}

.match-row__teams {
  display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 20px;
}
.match-row__teams .team {
  display: grid; grid-template-columns: 24px 1fr 30px; align-items: center; gap: 12px; text-align: left;
}
.match-row__teams .logo {
  width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: transparent; display: block; filter: none; padding: 0;
}
.match-row__teams .name {
  font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-row__teams .score {
  font-size: 18px; font-family: 'Outfit', sans-serif; font-weight: 900; color: var(--text); text-align: right; min-width: 0; background: none; -webkit-text-fill-color: var(--text);
}

.match-row__meta {
  text-align: right; padding-left: 20px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px;
}
.match-row__meta .round {
  font-weight: 700; color: var(--blue);
}
.match-row__meta .venue {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.empty{margin-top:18px;padding:26px;text-align:center}.empty p{color:var(--muted)}
.footer{max-width:1180px;margin:0 auto;padding:22px 20px 38px;color:var(--muted);display:flex;justify-content:space-between;gap:14px;font-size:13px;border-top:1px solid rgba(255,255,255,.09);position:relative;z-index:2;}

@media (max-width:860px){
  .hero{padding-top:34px}.toolbar{position:static;display:block}.searchBox{min-width:0;flex:auto;margin-top:10px}.grid{grid-template-columns:1fr}.footer{display:block}.footer span{display:block;margin:6px 0}
  .match-row { grid-template-columns: 60px 1fr; }
  .match-row__meta { display: none; }
  .match-row__teams { border-right: 0; padding-right: 0; }
}

/* Modal Overlay */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--bg2); width: 100%; max-width: 600px; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.6); position: relative; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.3s; }
.modal-close:hover { background: rgba(255,0,60,0.8); }
.modal-header { padding: 30px 20px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); text-align: center; }
.modal-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.modal-teams .team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.modal-teams .logo { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: rgba(255,255,255,0.05); padding: 8px; filter: none; display: block; }
.modal-teams .name { font-size: 16px; font-weight: 700; text-align: center; }
.modal-teams .score { font-size: 48px; font-weight: 900; font-family: 'Outfit', sans-serif; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.modal-teams .status { position: absolute; bottom: -24px; left: 0; right: 0; font-size: 14px; font-weight: 700; color: var(--blue); text-align: center; }

.modal-body { display: flex; flex-direction: column; overflow: hidden; }
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); }
.modal-tab { flex: 1; background: transparent; border: 0; padding: 16px; color: var(--muted); font-size: 16px; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; }
.modal-tab:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.modal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.modal-content { overflow-y: auto; padding: 20px; flex: 1; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 16px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline-item { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; position: relative; z-index: 1; }
.timeline-item.home { text-align: right; }
.timeline-item.away { text-align: left; }
.timeline-item .time { grid-column: 2; text-align: center; font-weight: 900; font-family: 'Outfit', sans-serif; font-size: 14px; background: var(--bg2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; border: 2px solid var(--border); color: var(--blue); }
.timeline-item.home .info { grid-column: 1; padding-right: 16px; }
.timeline-item.away .info { grid-column: 3; padding-left: 16px; }
.timeline-item .info strong { display: block; font-size: 15px; color: var(--text); }
.timeline-item .info span { display: block; font-size: 13px; color: var(--muted); }

/* Stats */
.stats-list { display: flex; flex-direction: column; gap: 20px; }
.stat-row { display: flex; flex-direction: column; gap: 8px; }
.stat-labels { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.stat-labels .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.stat-bars { display: flex; height: 8px; background: rgba(0,0,0,0.3); border-radius: 4px; overflow: hidden; }
.stat-bars .bar { height: 100%; transition: width 0.5s ease; }
.stat-bars .home { background: var(--blue); }
.stat-bars .away { background: var(--purple); }/* Standings Table */
.standings-container { display: flex; flex-direction: column; gap: 24px; padding-top: 10px; }
.standings-group { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.standings-group h3 { margin: 0; padding: 14px 20px; font-size: 18px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); font-family: 'Outfit', sans-serif; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: center; }
.table th { padding: 12px 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--border); font-weight: 700; white-space: nowrap; }
.table th.text-left { text-align: left; }
.table td { padding: 14px 8px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table .team-cell { display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 700; }
.table .team-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; display: inline-block; }
.table .team-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.table .highlight { color: var(--blue); font-weight: 900; }
.table .rank { color: var(--muted); font-size: 12px; width: 20px; text-align: center; }

/* News Cards */
.news-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-top: 10px; }
.news-card { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--border); background: var(--card); overflow: hidden; text-decoration: none; color: var(--text); transition: 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,240,255,0.1); border-color: rgba(0,240,255,0.3); }
.news-image { width: 100%; height: 160px; object-fit: cover; border-bottom: 1px solid var(--border); }
.news-content { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-title { margin: 0; font-size: 16px; font-weight: 700; font-family: 'Outfit', sans-serif; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.loader { padding: 40px; text-align: center; color: var(--muted); font-weight: 700; font-family: 'Outfit', sans-serif; letter-spacing: 1px; animation: pulse 1.5s infinite; }
/* Bracket Styles */
.bracket-wrapper {
  overflow-x: auto;
  padding: 20px 0;
  display: flex;
  min-height: 500px;
}
.bracket-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 180px;
  position: relative;
}
.bracket-column h3 {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bracket-match {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 8px;
  position: relative;
  z-index: 2;
  transition: transform 0.2s, border-color 0.2s;
}
.bracket-match:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  z-index: 10;
}
.b-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}
.b-team.winner {
  font-weight: 700;
  color: #fff;
}
.b-team img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  margin-right: 8px;
  object-fit: cover;
}
.b-team-info {
  display: flex;
  align-items: center;
}
.b-score {
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.bracket-match::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.bracket-column:last-child .bracket-match::after {
  display: none;
}
.bracket-column:not(:first-child) .bracket-match::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
/* Vertical connectors */
.bracket-column .match-pair {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  height: 100%;
}
.bracket-column .connector {
  position: absolute;
  right: -21px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

/* Lineup Styles */
.lineup-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lineup-team {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.lineup-team-header {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.lineup-team-header img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.lineup-group {
  padding: 12px 16px;
}
.lineup-group h4 {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.player-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.player-row:last-child {
  border-bottom: none;
}
.p-num {
  width: 28px;
  font-weight: 700;
  color: var(--primary-light);
  font-size: 14px;
}
.p-name {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-pos {
  font-size: 12px;
  color: var(--text-light);
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 30px;
  text-align: center;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #071429;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.splash-logo {
  width: 150px;
  height: 150px;
  animation: splashPulse 2s infinite ease-in-out;
}
.splash-text {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: splashFade 2s infinite ease-in-out;
}

@keyframes splashPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6)); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes splashFade {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Live Clock & Footer Updates */
.badge.live-clock {
  font-family: 'Inter', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.clock-date {
  font-size: 10px;
}
.clock-time {
  font-size: 14px;
}
.badge.live-clock .text-primary {
  color: var(--primary-light);
}
.badge.live-clock .text-muted {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 20px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.footer-credit a:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.sparkle-icon {
  width: 16px;
  height: 16px;
  color: #818cf8;
}
.zandev-text {
  color: #818cf8;
  text-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

.footer-info {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}



