.public-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 22px 24px;
  border-bottom: 4px solid #ec4899;
}

.public-header-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ec4899;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.public-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.public-kicker {
  margin: 0 0 4px;
  color: #f9a8d4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.public-nav a:hover,
.public-nav a.active {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.9);
}

@media (max-width: 700px) {
  .public-header {
    padding: 18px 14px;
  }

  .public-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-brand-icon {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .public-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .public-nav a {
    text-align: center;
    padding: 9px 8px;
  }
}
body {
  margin: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}
* {
  box-sizing: border-box;
}
.standings-widget {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.league-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 6px;
  color: #ec4899;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-size: 34px;
}
.last-updated {
  color: #6b7280;
  font-size: 13px;
}
.public-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}
.public-filters select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}
.table-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
th {
  color: #ffffff;
  background: #111827;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}
th:first-child {
  border-top-left-radius: 20px;
}

th:last-child {
  border-top-right-radius: 20px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:first-child {
  background: rgba(236, 72, 153, 0.06);
}

tbody tr:first-child .rank {
  font-size: 18px;
}
.rank {
  font-weight: 900;
  color: #ec4899;
}
.team-name {
  font-weight: 800;
}
.team-name small {
  color: #6b7280;
  font-weight: 700;
}
.positive {
  color: #16a34a;
  font-weight: 800;
}
.negative {
  color: #dc2626;
  font-weight: 800;
}
.mobile-cards {
  display: none;
}
.team-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  padding: 16px;
  margin-bottom: 12px;
}
.team-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.team-card h3 {
  margin: 0;
  font-size: 18px;
}
.team-card p {
  color: #6b7280;
  margin: 0 0 12px;
  font-weight: 700;
}
.badge {
  background: rgba(236, 72, 153, 0.12);
  color: #be185d;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat {
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px;
}
.stat span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}
.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

/* Interactive standings effects */
.public-filters select {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.public-filters select:hover {
  border-color: #ec4899;
}

.public-filters select:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.14);
}

tbody tr {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

tbody tr:hover {
  background: #fff7fb;
  box-shadow: inset 4px 0 0 #ec4899;
}

tbody tr:hover .team-name {
  color: #be185d;
}

.team-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: #ec4899;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}
@media (max-width: 760px) {
  .standings-widget {
    padding: 14px;
  }
  .league-header {
    display: block;
  }
  h1 {
    font-size: 28px;
  }
  .public-filters {
    grid-template-columns: 1fr;
  }
  .table-card {
    display: none;
  }
  .mobile-cards {
    display: block;
  }
    .team-card:hover {
  transform: none;
}
  
}
.widget-status {
  text-align: right;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.place-first {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.16),
    rgba(255, 255, 255, 0.96)
  );
}

.place-second {
  background: linear-gradient(
    90deg,
    rgba(192, 192, 192, 0.18),
    rgba(255, 255, 255, 0.96)
  );
}

.place-third {
  background: linear-gradient(
    90deg,
    rgba(205, 127, 50, 0.15),
    rgba(255, 255, 255, 0.96)
  );
}
