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

body {
  font-family: Arial, sans-serif;
  background: #071225;
  color: #ffffff;
  line-height: 1.6;
}

header.site-header {
  background: linear-gradient(135deg, #0f1f48, #233f94);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

header.site-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

header.site-header p {
  color: #dbeafe;
  font-size: 1rem;
}

.site-header {
  background: linear-gradient(135deg, #0f1f48, #233f94);
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.site-header .header-brand {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.site-header .header-text {
  flex: 1;
  min-width: 0;
}

.site-header .header-text h1 {
  font-size: 2.4rem;
  margin: 0 0 10px 0;
  color: #ffffff;
  line-height: 1.15;
}

.site-header .header-text p {
  color: #dbeafe;
  font-size: 1rem;
  margin: 0;
}

.site-header .header-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .tournament-logo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.50);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(255, 255, 255, 0.12);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.45))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.22));
}

.site-header .iqssl-logo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.50);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(255, 255, 255, 0.12);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.45))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.22));
}

@media (max-width: 768px) {
  .site-header .header-brand {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-header .header-text {
    order: 2;
    width: 100%;
  }

.site-header .tournament-logo {
  width: 85px !important;
  height: 85px !important;
  max-width: 85px !important;
  max-height: 85px !important;
  padding: 6px;
}

  .site-header .iqssl-logo {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
  }

  .site-header .header-text h1 {
    font-size: 1.8rem;
  }

  .site-header .header-text p {
    font-size: 0.95rem;
  }
}

nav.site-nav {
  background: #0a1428;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  transition: 0.3s ease;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  background: #2563eb;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #0d1a33;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.live-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.big-score {
  font-size: 2.3rem;
  font-weight: bold;
  color: #7db4ff;
  margin: 14px 0;
}

.section-title {
  font-size: 1.5rem;
  color: #93c5fd;
  margin-bottom: 14px;
}

.page-title {
  font-size: 2rem;
  color: #93c5fd;
  margin-bottom: 20px;
}

.page-subtext {
  color: #cbd5e1;
  margin-bottom: 25px;
}

footer.site-footer {
  text-align: center;
  padding: 24px 16px;
  margin-top: 40px;
  background: #0a1428;
  color: #94a3b8;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #0d1a33;
  border-radius: 12px;
  overflow: hidden;
}

table th,
table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

table th {
  background: #122447;
  color: #cfe3ff;
}

.placeholder-box {
  background: #0d1a33;
  padding: 30px;
  border-radius: 18px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  header.site-header h1 {
    font-size: 1.9rem;
  }

  .big-score {
    font-size: 1.8rem;
  }
}

.teams-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.team-card-new {
  background: #0d1a33;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
}

.team-card-head-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.team-card-title-new {
  font-size: 1.45rem;
  color: #93c5fd;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.team-company-new {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

.team-badge-new {
  background: #2563eb;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}

.team-player-list-new {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-player-item-new {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.team-player-item-new:last-child {
  border-bottom: none;
}

.player-number-new {
  color: #7db4ff;
  min-width: 26px;
  font-weight: bold;
}

.player-name-new {
  color: #ffffff;
  line-height: 1.45;
}

.empty-text-new {
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .team-card-head-new {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-badge-new {
    margin-top: 4px;
  }
}

.team-card-title-wrap {
  flex: 1;
}

.fixtures-table .fixture-match-name {
  font-weight: 700;
  color: #ffffff;
}

.fixtures-table .fixture-teams {
  color: #dbeafe;
  font-weight: 600;
}

.fixture-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.status-pending {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.status-live {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.status-completed {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.status-scheduled {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.status-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}


.points-table-fixed {
  width: 100%;
  table-layout: fixed;
}

.points-table-fixed .col-rank {
  width: 90px;
}

.points-table-fixed .col-team {
  width: 34%;
}

.points-table-fixed .col-small {
  width: 11%;
}

.points-table-fixed .col-nrr {
  width: 14%;
}

.points-table-fixed th,
.points-table-fixed td {
  vertical-align: middle;
}

.points-table-fixed .team-name-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.fixtures-stage-card {
  margin-bottom: 22px;
}

.fixtures-table .fixture-match-name {
  font-weight: 700;
  color: #ffffff;
}

.fixtures-table .fixture-teams {
  color: #dbeafe;
  font-weight: 600;
}

.fixture-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.status-pending {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.status-live {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.status-completed {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.status-scheduled {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.status-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}