@import url("../styles.css");

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
  scroll-margin-top: 70px;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.page-hero__content {
  position: relative;
  max-width: 640px;
}

.page-section {
  padding: 90px 0;
}

.league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.league-tab {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.league-tab.active {
  background: linear-gradient(135deg, #ff4f87, #ffd166);
  color: #111827;
  border-color: transparent;
}

.standings-panel {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(15, 23, 42, 0.9));
}

.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
}

.standings-table th,
.standings-table td {
  white-space: nowrap;
  font-size: 0.85rem;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.standings-team img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.form-badges {
  display: flex;
  gap: 6px;
}

.form-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.form-badge.win { background: #22c55e; }
.form-badge.draw { background: #f59e0b; }
.form-badge.loss { background: #ef4444; }

.side-panel {
  display: grid;
  gap: 18px;
}

.top-teams,
.form-panel,
.scorers-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.top-teams__list {
  display: grid;
  gap: 12px;
}

.top-team-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  border-radius: 14px;
}

.top-team-card img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.form-chart {
  width: 120px;
  height: 120px;
  margin: 12px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#22c55e 0deg, #22c55e 288deg, rgba(255, 255, 255, 0.1) 288deg);
}

.form-chart__value {
  font-weight: 800;
  font-size: 1.2rem;
}

.form-legend {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.scorer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scorer-card:last-child {
  border-bottom: none;
}

.scorer-card img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 280px;
    padding: 70px 0 40px;
  }
}
