/* Generic Team Page — non-codex club / national team pages */

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

/* Breadcrumbs */
.gtp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
}
.gtp-crumb-link {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-weight: 600;
}
.gtp-crumb-link:hover,
.gtp-crumb-link:focus-visible {
  color: var(--teal, #00C2CB);
  text-decoration: none;
}
.gtp-crumb-sep {
  color: rgba(255,255,255,0.25);
}
.gtp-crumb-current {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}

/* Two-column layout */
.gtp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 820px) {
  .gtp-layout {
    grid-template-columns: 1fr;
  }
}
.gtp-main {
  min-width: 0;
}
.gtp-sidebar {
  min-width: 0;
}

/* Panels + tables */
.gtp-panel {
  margin-bottom: 20px;
}
.gtp-panel--empty {
  padding: 4px 0;
}
.gtp-panel-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 10px;
}
.gtp-panel-empty {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.gtp-table-wrap {
  overflow-x: auto;
}
.gtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gtp-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gtp-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  vertical-align: middle;
}
.gtp-table-row--link {
  cursor: pointer;
}
.gtp-table-row--link:hover td {
  background: rgba(255,255,255,0.03);
}
.gtp-ha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
}
.gtp-opp-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.gtp-club-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.gtp-club-logo--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
}
.gtp-score {
  font-weight: 800;
}
.gtp-score--win { color: #4ade80; }
.gtp-score--loss { color: #f87171; }
.gtp-score--draw { color: rgba(255,255,255,0.75); }

/* Club info card */
.gtp-club-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
}
.gtp-club-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 10px;
}
.gtp-club-dl {
  margin: 0;
}
.gtp-club-dl--wide {
  max-width: 420px;
}
.gtp-club-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gtp-club-row:last-child {
  border-bottom: none;
}
.gtp-club-row dt {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.gtp-club-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

/* Squad table */
.gtp-squad-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 800;
}
.gtp-squad-player {
  font-weight: 700;
}
.gtp-muted {
  color: rgba(255,255,255,0.35);
}
.gtp-nationality {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* Header */
.gtp-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gtp-header-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.gtp-logo-wrap {
  flex-shrink: 0;
}
.gtp-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}
.gtp-header-copy {
  min-width: 0;
  flex: 1;
}
.gtp-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.gtp-type {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gtp-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
@media (min-width: 768px) { .gtp-title { font-size: 34px; } }
.gtp-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Stats row */
.gtp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.gtp-stats-row:empty { display: none; }
.gtp-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.gtp-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.gtp-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

/* Tabs override */
.gtp-tabs {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Sections (tab panels) */
.gtp-section {
  display: none;
}
.gtp-section.is-active {
  display: block;
}
.gtp-subsection {
  margin-bottom: 20px;
}
.gtp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.gtp-live-heading {
  color: #ef4444;
}

/* About */
.gtp-about {
  margin-bottom: 16px;
}
.gtp-about-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.gtp-about-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px;
  line-height: 1.5;
}

.gtp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.gtp-section-head .gtp-section-title {
  margin: 0;
}
.gtp-section-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal, #00C2CB);
  cursor: pointer;
  text-decoration: none;
}
.gtp-section-link:hover,
.gtp-section-link:focus-visible {
  color: var(--teal, #00C2CB);
  opacity: 0.88;
  text-decoration: none;
}

/* Competition cards */
.gtp-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.gtp-comp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.gtp-comp-card:hover,
.gtp-comp-card:focus-visible {
  border-color: rgba(0,194,203,0.35);
  background: rgba(0,194,203,0.04);
  text-decoration: none;
  outline: none;
}
.gtp-comp-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.gtp-comp-logo--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
}
.gtp-comp-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* Facts row */
.gtp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gtp-fact {
  min-width: 80px;
}
.gtp-fact-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.gtp-fact-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Sync notice */
.gtp-sync-notice {
  margin: 20px 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  border-left: 3px solid rgba(0,194,203,0.45);
  background: rgba(255,255,255,0.02);
  border-radius: 0 6px 6px 0;
}
.gtp-inline-link {
  color: var(--teal, #00C2CB);
  font-weight: 700;
  text-decoration: none;
}
.gtp-inline-link:hover,
.gtp-inline-link:focus-visible {
  color: var(--teal, #00C2CB);
  opacity: 0.88;
  text-decoration: none;
}

/* Fan zone CTA */
.gtp-fan-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(0,194,203,0.12);
  border-radius: 10px;
  background: rgba(0,194,203,0.03);
}
.gtp-fan-zone-copy {
  min-width: 0;
}
.gtp-fan-zone-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.gtp-fan-zone-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.4;
}
.gtp-fan-zone-btn {
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .gtp-fan-zone {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* Match list */
.gtp-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gtp-match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
a.gtp-match-item:hover { background: rgba(255,255,255,0.03); }
a.gtp-match-item:focus-visible { background: rgba(255,255,255,0.03); outline: none; }
.gtp-match-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gtp-match-teams {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gtp-match-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal, #00C2CB);
  flex-shrink: 0;
}
.gtp-match-score--ns {
  color: rgba(255,255,255,0.25);
  font-weight: 600;
}
.gtp-match-status {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  min-width: 36px;
}
.gtp-match-live {
  color: #ef4444;
  font-weight: 700;
}

/* Stats detail rows */
.gtp-stats-table {
  margin-top: 8px;
}
.gtp-stats-row-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.gtp-stats-detail-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.gtp-stats-detail-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Empty state */
.gtp-empty {
  padding: 16px 0;
  text-align: left;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* Loading */
.gtp-loading {
  padding: 32px 16px;
  text-align: center;
}

.gtp-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* Player cards (squad + legends) */
.gtp-player-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.gtp-player-card-grid--legends {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.gtp-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.gtp-legend-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  min-height: 0;
}
.gtp-legend-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
}
.gtp-legend-tagline {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.gtp-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gtp-player-card--link:hover,
.gtp-player-card--link:focus-visible {
  border-color: rgba(0, 194, 203, 0.45);
  background: rgba(0, 194, 203, 0.06);
  text-decoration: none;
  color: inherit;
}
.gtp-player-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.gtp-player-card-photo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
}
.gtp-player-card-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  word-break: break-word;
}
.gtp-player-card-meta {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  margin-top: 4px;
  line-height: 1.3;
}

/* Honours + recent titles */
.gtp-honours-list,
.gtp-titles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gtp-honour-item,
.gtp-title-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gtp-honour-item:last-child,
.gtp-title-item:last-child {
  border-bottom: none;
}
.gtp-honour-count {
  flex-shrink: 0;
  min-width: 36px;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal, #00C2CB);
  text-align: center;
}
.gtp-honour-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.gtp-title-season {
  flex-shrink: 0;
  min-width: 48px;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal, #00C2CB);
}
.gtp-title-comp {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.gtp-squad-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.gtp-squad-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.gtp-squad-photo--ph {
  display: block;
}
.gtp-squad-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.gtp-squad-detail {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  margin-top: 2px;
}
