 :root {
      --bg: #f3f8f4;
      --card: #ffffff;
      --green-dark: #14532d;
      --green: #16a34a;
      --green-soft: #22c55e;
      --green-light: #dcfce7;
      --green-border: #bbf7d0;
      --text: #1f2937;
      --muted: #6b7280;
      --line: #e5e7eb;
      --warning-bg: #fef9c3;
      --warning-text: #854d0e;
      --danger-bg: #fee2e2;
      --danger-text: #991b1b;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    .page {
      max-width: 960px;
      margin: 0 auto;
      padding: 24px 16px;
    }

    .hero {
      background: linear-gradient(135deg, var(--green-dark), var(--green));
      color: white;
      border-radius: 22px;
      padding: 22px;
      margin-bottom: 20px;
      box-shadow: 0 10px 30px rgba(20, 83, 45, 0.12);
    }

    .brand-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 18px;
      margin-bottom: 20px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 900;
      letter-spacing: -0.03em;
      color: white;
      text-decoration: none;
      white-space: nowrap;
    }

    .brand-icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.28);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .main-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .nav-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 8px 12px;
      border-radius: 999px;
      color: rgba(255, 255, 255, 0.86);
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      border: 1px solid transparent;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
      white-space: nowrap;
    }

    .nav-link:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.18);
      color: white;
    }

    .nav-link.active {
      background: white;
      color: var(--green-dark);
      border-color: white;
    }

    .season-badge {
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.22);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .hero h1 {
      margin: 0;
      font-size: 30px;
      line-height: 1.15;
      letter-spacing: -0.04em;
    }

    .hero p {
      margin: 8px 0 0;
      font-size: 15px;
      opacity: 0.92;
    }

    .quick-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 20px;
    }

    .quick-stat {
      padding: 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.13);
      border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .quick-stat strong {
      display: block;
      font-size: 22px;
      line-height: 1;
      margin-bottom: 6px;
    }

    .quick-stat span {
      font-size: 12px;
      opacity: 0.9;
    }

    .dashboard {
      display: grid;
      grid-template-columns: 1.35fr 0.95fr;
      gap: 20px;
      align-items: start;
    }

    .main-column,
    .side-column,
    .bottom-grid {
      display: grid;
      gap: 20px;
    }

    .bottom-grid {
      grid-template-columns: repeat(3, 1fr);
      margin-top: 20px;
    }

    .widget {
      background: var(--card);
      border-radius: 18px;
      border: 1px solid var(--green-border);
      box-shadow: 0 10px 30px rgba(20, 83, 45, 0.08);
      overflow: hidden;
    }

    .widget-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
      background: #f9fafb;
      border-bottom: 1px solid var(--line);
    }

    .widget-title {
      margin: 0;
      font-size: 17px;
      color: var(--green-dark);
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .widget-link {
      color: var(--green);
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .widget-link:hover {
      text-decoration: underline;
    }

    .table-wrapper {
      width: 100%;
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 620px;
    }

    th {
      padding: 13px 12px;
      background: var(--green-light);
      border-bottom: 1px solid var(--green-border);
      color: var(--green-dark);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      text-align: center;
      white-space: nowrap;
    }

    th.club-column {
      text-align: left;
    }

    td {
      padding: 13px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
      text-align: center;
      white-space: nowrap;
    }

    tbody tr:hover,
    .list-item:hover,
    .match-item:hover {
      background: #f0fdf4;
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    .position,
    .rank {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #f3f4f6;
      color: var(--text);
      font-weight: 900;
      font-size: 13px;
    }

    .position.top,
    .rank.first {
      background: var(--green);
      color: white;
    }

    .club,
    .player,
    .team {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      font-weight: 700;
    }

    .club {
      text-align: left;
    }

    .club-logo,
    .team-logo,
    .player-logo {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--green-light);
      border: 2px solid var(--green-border);
      color: var(--green-dark);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
      flex-shrink: 0;
    }

    .points {
      color: var(--green-dark);
      font-weight: 900;
      font-size: 15px;
    }

    .muted {
      color: var(--muted);
      font-weight: 600;
    }

    .match-list,
    .simple-list {
      display: grid;
    }

    .match-item {
      display: grid;
      grid-template-columns: 62px 1fr auto 1fr;
      align-items: center;
      gap: 8px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
    }

    .match-item:last-child,
    .list-item:last-child {
      border-bottom: none;
    }

    .match-time {
      color: var(--green-dark);
      font-size: 12px;
      font-weight: 900;
    }

    .team.home {
      justify-content: flex-end;
      text-align: right;
    }

    .team.away {
      justify-content: flex-start;
      text-align: left;
    }

    .team-name,
    .player-name,
    .player-club {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-name {
      font-size: 13px;
    }

    .match-score {
      min-width: 52px;
      padding: 7px 8px;
      border-radius: 999px;
      background: var(--green-light);
      border: 1px solid var(--green-border);
      color: var(--green-dark);
      text-align: center;
      font-size: 13px;
      font-weight: 900;
    }

    .match-score.finished {
      background: var(--green-dark);
      color: white;
      border-color: var(--green-dark);
    }

    .live-card {
      padding: 18px;
    }

    .live-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--warning-bg);
      color: var(--warning-text);
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 14px;
    }

    .live-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--warning-text);
    }

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

    .live-score {
      padding: 10px 14px;
      border-radius: 999px;
      background: var(--green-dark);
      color: white;
      font-size: 18px;
      font-weight: 900;
    }

    .live-meta {
      margin-top: 12px;
      font-size: 13px;
      color: var(--muted);
    }

    .list-item {
      display: grid;
      grid-template-columns: 32px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
    }

    .player-info {
      min-width: 0;
    }

    .player-name {
      display: block;
      font-size: 14px;
      font-weight: 900;
    }

    .player-club {
      display: block;
      margin-top: 2px;
      font-size: 12px;
      color: var(--muted);
    }

    .pill {
      min-width: 46px;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--green-light);
      color: var(--green-dark);
      border: 1px solid var(--green-border);
      font-size: 13px;
      font-weight: 900;
      text-align: center;
    }

    .form {
      display: inline-flex;
      gap: 4px;
    }

    .form span {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
    }

    .win {
      background: #bbf7d0;
      color: #166534;
    }

    .draw {
      background: #fef9c3;
      color: #854d0e;
    }

    .loss {
      background: #fecaca;
      color: #991b1b;
    }

    .section-note {
      padding: 14px 18px;
      border-top: 1px solid var(--line);
      background: #f9fafb;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    @media (max-width: 980px) {
      .dashboard,
      .bottom-grid {
        grid-template-columns: 1fr;
      }

      .quick-stats {
        grid-template-columns: repeat(2, 1fr);
      }

      .brand-row {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .main-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        width: 100%;
      }

      .main-nav::-webkit-scrollbar {
        display: none;
      }

      .nav-link {
        flex: 0 0 auto;
      }

      .season-badge {
        justify-self: start;
      }
    }

    @media (max-width: 640px) {
      .page {
        padding: 12px;
      }

      .hero {
        padding: 18px;
        border-radius: 18px;
      }

      .hero h1 {
        font-size: 24px;
      }

      .quick-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .quick-stat {
        padding: 12px;
      }

      .widget-header {
        padding: 14px 16px;
      }

      .match-item {
        grid-template-columns: 48px 1fr 44px 1fr;
        gap: 6px;
        padding: 13px 16px;
      }

      .team-logo {
        display: none;
      }

      .team-name {
        font-size: 12px;
      }

      .match-time {
        font-size: 11px;
      }

      .list-item {
        padding: 13px 16px;
      }

      .live-match {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .team.home,
      .team.away {
        justify-content: center;
        text-align: center;
      }
    }

     .league-card {
      background: var(--card);
      border-radius: 18px;
      box-shadow: 0 10px 30px rgba(20, 83, 45, 0.08);
      overflow: hidden;
      border: 1px solid var(--green-border);
    }


    .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 16px 20px;
      background: #f9fafb;
      border-top: 1px solid var(--line);
      font-size: 13px;
      color: var(--muted);
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      display: inline-block;
    }

    .legend-dot.green {
      background: var(--green);
    }

    .legend-dot.red {
      background: #fecaca;
    }

    .site-footer {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--green-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 83, 45, 0.08);
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 22px;
}

.footer-brand p {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-column {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-column h3 {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.footer-column a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-column a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #f9fafb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.row-click{
    cursor: pointer;
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    padding: 14px 18px;
  }
}