.celtic-api-page {
  background:
    radial-gradient(circle at top right, rgba(0, 155, 58, 0.14), transparent 36%),
    linear-gradient(180deg, #0a130f 0%, #0f1d17 25%, #eef8f1 25.1%, #f7f7f2 100%);
}

.celtic-api-hero {
  padding-top: clamp(1.2rem, 2.6vw, 2rem);
  padding-bottom: clamp(1rem, 2.2vw, 1.7rem);
}

.celtic-api-hero-grid {
  display: grid;
  gap: 0.8rem;
  padding: clamp(0.95rem, 2vw, 1.3rem);
  border: 1px solid rgba(214, 178, 94, 0.28);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(214, 178, 94, 0.16), transparent 36%),
    radial-gradient(circle at bottom left, rgba(0, 155, 58, 0.18), transparent 32%),
    linear-gradient(140deg, #0b1a14 0%, #0f2b1f 55%, #13452f 100%);
  box-shadow:
    0 12px 28px rgba(7, 17, 11, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.celtic-api-hero-copy h1 {
  max-width: 16ch;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.03;
}

.celtic-api-hero-copy .eyebrow {
  border-color: rgba(214, 178, 94, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: #f4d78a;
}

.celtic-api-hero-copy .section-copy {
  color: rgba(246, 255, 250, 0.88);
}

.api-status {
  margin-top: 0.6rem;
  color: #9bf2b7;
  font-size: 0.87rem;
  font-weight: 700;
}

.api-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.api-kpi-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(4px);
}

.api-kpi-card span {
  color: rgba(226, 245, 236, 0.84);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.api-kpi-card strong {
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.1;
}

.celtic-api-content {
  padding-top: 0.4rem;
}

.api-dashboard-grid,
.api-detail-grid {
  display: grid;
  gap: 0.7rem;
}

.api-insight-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.api-card {
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(0, 75, 47, 0.18);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at top right, rgba(0, 155, 58, 0.07), transparent 45%),
    linear-gradient(180deg, #ffffff, #f4fbf6);
  box-shadow: 0 8px 20px rgba(7, 17, 11, 0.09);
}

.api-card:nth-child(even) {
  background:
    radial-gradient(circle at top right, rgba(214, 178, 94, 0.12), transparent 46%),
    linear-gradient(180deg, #ffffff, #f7f7f2);
}

.api-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.api-card-head h2 {
  max-width: none;
  color: #0f3c2a;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.08;
}

.api-card-head .eyebrow {
  background: rgba(0, 155, 58, 0.08);
  border-color: rgba(0, 155, 58, 0.22);
}

.club-profile {
  display: grid;
  gap: 0.55rem;
}

.club-profile-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.club-profile-top img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 155, 58, 0.2);
  background: #fff;
  object-fit: cover;
}

.club-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.club-profile-chip {
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(0, 155, 58, 0.14);
  border-radius: 0.62rem;
  background: #f7fff9;
  color: #1c513a;
  font-size: 0.76rem;
}

.club-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.club-profile-links a {
  color: #07683d;
  font-size: 0.76rem;
  font-weight: 700;
}

.celtic-data-hub {
  display: grid;
  gap: 0;
}

.celtic-detail-summary,
.celtic-player-summary {
  list-style: none;
  cursor: pointer;
}

.celtic-detail-summary::-webkit-details-marker,
.celtic-player-summary::-webkit-details-marker {
  display: none;
}

.celtic-player-card {
  padding: 0;
  overflow: hidden;
}

.celtic-player-card[open],
.fixture-row[open] {
  border-color: rgba(0, 155, 58, 0.26);
  box-shadow: 0 12px 24px rgba(7, 17, 11, 0.08);
}

.celtic-player-summary {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
}

.celtic-player-summary img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 155, 58, 0.16);
  background: #fff;
  object-fit: cover;
}

.celtic-detail-content {
  display: grid;
  gap: 0.7rem;
  padding: 0.2rem 0.58rem 0.58rem;
}

.celtic-hub-detail-panels {
  display: grid;
  gap: 0.7rem;
}

.celtic-hub-detail-panels .api-card {
  padding: 0.68rem 0.76rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-card {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 155, 58, 0.18);
  background: #f6fdf8;
  color: #164935;
  font-size: 0.73rem;
  font-weight: 700;
}

.chip-card--active {
  border-color: rgba(0, 155, 58, 0.38);
  background: rgba(0, 155, 58, 0.12);
  color: #07683d;
}

.live-center {
  display: grid;
  gap: 0.5rem;
}

.live-scoreline {
  color: #006c3f;
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.05;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 155, 58, 0.22);
  background: rgba(0, 155, 58, 0.1);
  color: #086d3f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fixture-list {
  display: grid;
  gap: 0.45rem;
}

.fixture-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid rgba(0, 155, 58, 0.13);
  border-radius: 0.66rem;
  background: #f9fff9;
}

.fixture-row:nth-child(even) {
  background: #f1faf4;
}

.fixture-row strong {
  color: #0f3928;
  font-size: 0.88rem;
  line-height: 1.2;
}

.fixture-row span {
  color: #315b48;
  font-size: 0.73rem;
}

.api-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 155, 58, 0.26);
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.api-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.api-table th {
  padding: 0.45rem 0.5rem;
  background: linear-gradient(180deg, #00a645 0%, #008f3c 100%);
  color: #ffffff;
  text-align: left;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-table td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid rgba(0, 155, 58, 0.13);
  color: #153e2d;
  font-size: 0.78rem;
}

.api-table tbody tr:nth-child(even) {
  background: #f4fbf6;
}

.api-table tbody tr:hover {
  background: #e7f6eb;
}

.api-table .is-celtic td {
  background: linear-gradient(90deg, rgba(0, 155, 58, 0.15) 0%, rgba(0, 155, 58, 0.06) 100%);
  color: #045f36;
  font-weight: 700;
}

.api-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(7, 17, 11, 0.08);
  color: #2b4e3d;
  font-size: 0.68rem;
  font-weight: 800;
}

.api-rank--top {
  background: linear-gradient(180deg, #00b84f 0%, #009441 100%);
  color: #fff;
}

.api-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.api-team-cell img {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 155, 58, 0.2);
  background: #fff;
}

.api-form-track {
  display: inline-flex;
  gap: 0.16rem;
}

.api-form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 0.36rem;
  font-size: 0.6rem;
  font-weight: 800;
}

.api-form-pill--w {
  background: rgba(0, 155, 58, 0.18);
  color: #006b3f;
}

.api-form-pill--d {
  background: rgba(214, 178, 94, 0.22);
  color: #6c5420;
}

.api-form-pill--l {
  background: rgba(194, 53, 53, 0.16);
  color: #8c2e2e;
}

.api-empty {
  text-align: center;
  color: #496457;
}

.api-subtitle {
  margin-bottom: 0.45rem;
  color: #2f5d47;
  font-size: 0.76rem;
  font-weight: 700;
}

.api-pulse-columns {
  display: grid;
  gap: 0.65rem;
}

.api-pulse-columns h3 {
  margin-bottom: 0.35rem;
  color: #0f3b2a;
  font-size: 0.87rem;
}

.api-tv-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.api-tv-chip {
  min-height: 1.95rem;
  padding: 0.22rem 0.68rem;
  border: 1px solid rgba(0, 155, 58, 0.2);
  border-radius: 999px;
  background: #f5fbf7;
  color: #135339;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.api-tv-chip:hover {
  border-color: rgba(0, 155, 58, 0.45);
  background: rgba(0, 155, 58, 0.1);
}

.api-tv-chip.is-active {
  border-color: rgba(0, 155, 58, 0.8);
  background: rgba(0, 155, 58, 0.14);
  color: #05673a;
}

.api-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  margin-bottom: 0.55rem;
}

.api-coverage-item {
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(0, 155, 58, 0.14);
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #f7fff9, #eff8f2);
}

.api-coverage-item span {
  display: block;
  color: #2c6148;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-coverage-item strong {
  display: block;
  margin-top: 0.18rem;
  color: #0c4f34;
  font-size: 0.95rem;
  line-height: 1.1;
}

.lineup-grid {
  display: grid;
  gap: 0.65rem;
}

.lineup-grid h3 {
  margin-bottom: 0.35rem;
  color: #0f3b2a;
  font-size: 0.87rem;
}

.lineup-list {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lineup-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.4rem 0.48rem;
  border: 1px solid rgba(0, 155, 58, 0.13);
  border-radius: 0.6rem;
  background: #f9fff9;
}

.lineup-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(0, 155, 58, 0.16);
  color: #06693d;
  font-size: 0.66rem;
  font-weight: 800;
}

.lineup-player {
  color: #123b2a;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.2;
}

.lineup-pos {
  color: #3a5f4d;
  font-size: 0.69rem;
}

.tv-list {
  display: grid;
  gap: 0.35rem;
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.12rem;
}

.tv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.52rem;
  border: 1px solid rgba(0, 155, 58, 0.13);
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #f8fff9, #eff8f2);
}

.tv-main {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.tv-logo {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 155, 58, 0.2);
  background: #fff;
  object-fit: cover;
}

.tv-name {
  color: #153f2d;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-country {
  color: #3a614f;
  font-size: 0.72rem;
}

.players-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-search input {
  width: 100%;
  min-height: 2.2rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(0, 155, 58, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #123826;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(0, 155, 58, 0.14);
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #f9fff9, #eef8f2);
}

.player-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 155, 58, 0.2);
  background: #fff;
  object-fit: cover;
}

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

.player-name {
  display: block;
  color: #103a29;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  color: #3a604e;
  font-size: 0.67rem;
}

.sp-overview-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.sp-overview-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(19, 68, 115, 0.18);
  background: linear-gradient(180deg, #ffffff, #eef5fb);
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(10, 26, 42, 0.08);
}

.sp-group-block {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(19, 68, 115, 0.12);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(65, 127, 201, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff, #f2f8fe);
}

.sp-group-title {
  color: #133a5f;
  font-size: 0.92rem;
  line-height: 1.1;
}

.sp-group-list {
  display: grid;
  gap: 0.55rem;
}

.sp-fixture-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(0, 155, 58, 0.12);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.9);
}

.sp-fixture-main {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.sp-fixture-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  color: #0f3526;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.sp-fixture-teams img {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 68, 115, 0.18);
  background: #fff;
  object-fit: contain;
}

.sp-fixture-vs {
  color: #587080;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-fixture-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  color: #4c6475;
  font-size: 0.72rem;
}

.sp-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(24, 86, 148, 0.1);
  color: #185694;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-fixture-side {
  flex-shrink: 0;
}

.sp-fixture-score,
.sp-fixture-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #0d3457 0%, #16486f 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(10, 26, 42, 0.14);
}

.sp-team-directory {
  display: grid;
  gap: 0.75rem;
}

.sp-team-card {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(19, 68, 115, 0.14);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(65, 127, 201, 0.12), transparent 46%),
    linear-gradient(180deg, #ffffff, #f4fbf6);
  color: inherit;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.sp-team-card:hover,
.sp-team-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(19, 68, 115, 0.28);
  box-shadow: 0 14px 28px rgba(10, 26, 42, 0.1);
}

.sp-team-card img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 155, 58, 0.16);
  background: #fff;
  object-fit: contain;
  padding: 0.25rem;
}

.sp-team-card-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.sp-team-card-copy strong {
  color: #103a29;
  font-size: 0.88rem;
  line-height: 1.15;
}

.sp-team-card-copy span {
  color: #476152;
  font-size: 0.72rem;
  line-height: 1.28;
}

.sp-team-detail-hero {
  display: grid;
  gap: 0.9rem;
}

.sp-team-detail-fanart {
  width: 100%;
  min-height: 12rem;
  border-radius: 1rem;
  border: 1px solid rgba(19, 68, 115, 0.14);
  background: linear-gradient(180deg, #0d2137, #163555);
  object-fit: cover;
}

.sp-team-detail-copy {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .celtic-api-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    align-items: center;
  }

  .api-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .api-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .players-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .api-pulse-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-team-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sp-team-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .sp-fixture-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-fixture-side {
    width: 100%;
  }

  .sp-fixture-score,
  .sp-fixture-time {
    width: 100%;
  }
}
