/* 365Scores Broadcast Standings Hub & Slide-Over Inspector (v1.8.0) */
.s365-hub {
  margin-bottom: 28px;
}
.s365-hub [hidden],
.s365-drawer [hidden],
.s365-drawer-backdrop[hidden] {
  display: none !important;
}

/* Explorer & Sport Switcher */
.s365-explorer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.96), var(--surface-1));
  padding: 14px 16px;
  margin-bottom: 16px;
}
.s365-sports-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.s365-sport-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.s365-sport-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}
.s365-sport-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0b0d11;
  border-color: transparent;
}

.s365-explorer-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.s365-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.s365-search-ico {
  position: absolute;
  left: 12px;
  color: var(--gold);
  pointer-events: none;
  display: inline-flex;
}
.s365-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 14px 8px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(223, 180, 78, 0.28);
  background: #0a0d12;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.s365-search-input::placeholder {
  color: var(--text-dim);
}
.s365-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 180, 78, 0.12);
}

.s365-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(223, 180, 78, 0.34);
  background: rgba(223, 180, 78, 0.08);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s;
}
.s365-browse-btn:hover,
.s365-browse-btn[aria-expanded="true"] {
  background: rgba(223, 180, 78, 0.18);
  border-color: var(--gold);
}
.s365-browse-cnt {
  background: rgba(8, 9, 12, 0.72);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 1px 7px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
}

.s365-featured-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s365-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.s365-league-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.s365-league-chip .s365-chip-c {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 500;
}
.s365-league-chip:hover {
  border-color: var(--gold);
  background: var(--surface-3);
}
.s365-league-chip.active {
  background: rgba(223, 180, 78, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.s365-league-chip.active .s365-chip-c {
  color: var(--gold);
}

/* All Countries & Leagues Directory Panel */
.s365-directory {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.s365-dir-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--gold-bright);
}
.s365-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}
.s365-country-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #0c0f15;
  overflow: hidden;
}
.s365-country-card[open] {
  border-color: rgba(223, 180, 78, 0.38);
}
.s365-country-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.s365-country-sum::-webkit-details-marker { display: none; }
.s365-country-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.s365-country-left img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.s365-country-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s365-country-cnt {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.s365-country-leagues {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  padding: 4px;
  gap: 2px;
}
.s365-dir-league-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.s365-dir-league-btn:hover,
.s365-dir-league-btn.active {
  background: rgba(223, 180, 78, 0.13);
  color: var(--gold-bright);
}
.s365-dir-league-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.s365-dir-league-btn span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s365-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 10px;
}
.s365-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #0c0f15;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.s365-search-item:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}
.s365-search-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.s365-search-meta {
  min-width: 0;
}
.s365-search-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s365-search-meta span {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Competition Masthead & Key Summary */
.s365-comp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(125deg, rgba(223, 180, 78, 0.08), var(--surface-1) 55%, rgba(16, 19, 25, 0.96));
  margin-bottom: 14px;
}
.s365-comp-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.s365-comp-crest {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  padding: 7px;
  background: #0a0c10;
  border: 1px solid var(--border);
  object-fit: contain;
  flex-shrink: 0;
}
.s365-comp-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.s365-comp-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.s365-comp-sub img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.s365-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.16);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: #ff6b78;
  font-size: 11px;
  font-weight: 700;
}
.s365-hero-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.s365-stat-mini {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 11, 15, 0.72);
  min-width: 92px;
}
.s365-stat-mini span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}
.s365-stat-mini strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-bright);
  white-space: nowrap;
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Primary Section Tabs */
.s365-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.s365-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s var(--ease-expo);
}
.s365-tab-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}
.s365-tab-btn.active {
  background: linear-gradient(135deg, rgba(223, 180, 78, 0.22), rgba(223, 180, 78, 0.08));
  border-color: var(--gold);
  color: var(--gold-bright);
}
.s365-tab-pane { display: none; }
.s365-tab-pane.active { display: block; }

/* Standings Controls Bar */
.s365-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}
.s365-seg-group {
  display: inline-flex;
  align-items: center;
  background: #0a0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.s365-seg-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.s365-seg-btn.active {
  background: var(--gold);
  color: #090b0f;
}
.s365-ctrl-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.s365-select {
  height: 33px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(223, 180, 78, 0.28);
  background: #0a0c10;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.s365-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #0a0c10;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.s365-toggle-btn.is-on {
  border-color: rgba(230, 57, 70, 0.55);
  background: rgba(230, 57, 70, 0.14);
  color: #ff7b86;
}
.s365-team-filter {
  height: 33px;
  width: 170px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #0a0c10;
  color: var(--text);
  font-size: 12.5px;
}
.s365-team-filter:focus {
  border-color: var(--gold);
  outline: none;
}

/* Precision Standings Table with Mobile Sticky Rank+Team */
.s365-table-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
  margin-bottom: 16px;
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}
.s365-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(22, 27, 36, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}
.s365-table-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-bright);
}
.s365-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
}
.s365-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.s365-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.s365-table th {
  padding: 9px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: #0d1016;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.s365-table th.col-rank { width: 44px; }
.s365-table th.col-team { text-align: left; min-width: 175px; }
.s365-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
}
.s365-table tr {
  transition: background 0.12s;
}
.s365-table tbody tr:hover {
  background: rgba(223, 180, 78, 0.055);
}
.s365-table td.col-rank {
  position: relative;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 14px;
  padding-left: 12px;
}
.s365-zone-bar {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.s365-rank-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.s365-trend-up { color: #10b981; font-size: 10px; }
.s365-trend-down { color: #f43f5e; font-size: 10px; }

.s365-table td.col-team {
  text-align: left;
}
.s365-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 2px 4px;
  margin: -2px -4px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.s365-team-btn:hover {
  color: var(--gold-bright);
}
.s365-team-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.s365-team-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.s365-pts-cell {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-bright);
}
.s365-gd-pos { color: #34d399; font-weight: 600; }
.s365-gd-neg { color: #fb7185; font-weight: 600; }

/* Interactive Last-5 Form Pills */
.s365-form-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.s365-form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  border: none;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.s365-form-dot:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.s365-form-dot.is-W { background: #15803d; }
.s365-form-dot.is-D { background: #6b7280; }
.s365-form-dot.is-L { background: #b91c1c; }

/* Next Match Chip inside Table */
.s365-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #0c0f15;
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
}
.s365-next-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.s365-next-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* Zone Legend Footer */
.s365-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 14px;
  background: #0c0f15;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}
.s365-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.s365-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Fixtures & Results Tab */
.s365-games-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.s365-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 8px;
}
.s365-game-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.s365-game-card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}
.s365-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-dim);
}
.s365-game-teams {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.s365-game-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.s365-gt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
}
.s365-gt-left.is-win { font-weight: 700; color: var(--gold-bright); }
.s365-gt-left img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.s365-gt-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s365-gt-score {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  min-width: 20px;
  text-align: right;
}

/* Top Scorers & League Stats */
.s365-stats-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.s365-leader-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
}
.s365-leader-row {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.s365-leader-row:last-child { border-bottom: none; }
.s365-leader-rank {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dim);
  text-align: center;
}
.s365-leader-row:nth-child(1) .s365-leader-rank { color: #f5cb25; }
.s365-leader-row:nth-child(2) .s365-leader-rank { color: #cbd5e1; }
.s365-leader-row:nth-child(3) .s365-leader-rank { color: #d97706; }
.s365-leader-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}
.s365-leader-info strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.s365-leader-club {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.s365-leader-club:hover { color: var(--gold-bright); }
.s365-leader-club img { width: 15px; height: 15px; object-fit: contain; }
.s365-leader-val {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-bright);
  text-align: right;
}

/* Knockout Brackets */
.s365-brackets-wrap {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.s365-bracket-col {
  min-width: 245px;
  flex: 1 0 245px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s365-bracket-title {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  text-align: center;
}
.s365-tie-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  overflow: hidden;
}
.s365-tie-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}
.s365-tie-team:last-child { border-bottom: none; }
.s365-tie-team.is-q {
  background: rgba(223, 180, 78, 0.08);
  color: var(--gold-bright);
  font-weight: 700;
}
.s365-tie-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.s365-tie-left img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Dedicated Full Pages (/team/{id} & /score/{id}) Editorial Styles */
.s365-table tr.hl-team {
  background: rgba(223, 180, 78, 0.14);
}
.s365-entity-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(125deg, color-mix(in srgb, var(--club-tint, #dfb44e) 18%, transparent), var(--surface-1) 52%, #0c0f16);
  margin-bottom: 16px;
}
.s365-entity-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 18px;
  align-items: center;
  min-width: 0;
  flex: 1 1 360px;
}
.s365-entity-crest-wrap {
  grid-row: 1 / 3;
  width: 92px;
  height: 92px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s365-entity-head { min-width: 0; }
.s365-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  margin: 0;
}
.s365-entity-crest-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s365-entity-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.s365-entity-kicker img { border-radius: 50%; object-fit: cover; }
.s365-entity-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}
.s365-comp-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s365-mini-comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 10, 14, 0.72);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.s365-mini-comp-pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.s365-entity-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
}
.s365-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.s365-stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s365-spotlight-match {
  display: block;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(223, 180, 78, 0.28);
  background: linear-gradient(135deg, rgba(223, 180, 78, 0.08), #0b0e14);
}
.s365-spotlight-match:hover { border-color: var(--gold); }
.s365-sm-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.s365-sm-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: center;
}
.s365-sm-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.s365-sm-side strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
}
.s365-sm-center {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-bright);
}
.s365-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 8px;
}
.s365-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #0c0f15;
}
.s365-player-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.s365-player-meta strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
}
.s365-pl-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.s365-pl-flag {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Score Center Page Extras */
.s365-sb-link:hover .sb-name { color: var(--gold-bright); }
.s365-quick-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.s365-qb-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #0b0e14;
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.s365-qb-item span { display: block; font-size: 11px; color: var(--text-dim); }
.s365-qb-item strong { font-family: var(--font-num); font-size: 17px; font-style: normal; }
.s365-qb-item em { font-style: normal; }
.s365-stats-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.s365-mstat-row { margin-bottom: 6px; }
.s365-mstat-lbls {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.s365-mstat-bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-3);
  gap: 2px;
}
.s365-mstat-h { background: var(--home-accent); }
.s365-mstat-a { background: var(--away-accent); }
.s365-rating-pill {
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-3);
  color: var(--text);
  margin-left: auto;
}
.s365-rating-pill.is-high { background: #15803d; color: #fff; }
.s365-rating-pill.is-mid { background: rgba(223, 180, 78, 0.25); color: var(--gold-bright); }

.s365-skeleton {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Mobile Adaptation (< 780px) */
@media (max-width: 780px) {
  .s365-explorer { padding: 12px; }
  .s365-explorer-tools { grid-template-columns: minmax(0, 1fr); }
  .s365-comp-hero { padding: 14px; gap: 12px; }
  .s365-hero-stats { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s365-controls { padding: 9px 10px; }
  .s365-team-filter { width: 100%; }
  .s365-entity-hero { padding: 14px; gap: 12px; }
  .s365-entity-main { grid-template-columns: 60px minmax(0, 1fr); gap: 10px 12px; }
  .s365-entity-crest-wrap { grid-row: 1; width: 60px; height: 60px; padding: 6px; border-radius: 12px; }
  .s365-comp-pills-row { grid-column: 1 / -1; }
  .s365-mini-comp-pill { font-size: 11.5px; padding: 4px 9px; }
  .s365-entity-kpis { width: 100%; }
  .s365-two-col,
  .s365-stats-two-col { grid-template-columns: minmax(0, 1fr); }
  .s365-rating-pill { font-size: 10px; padding: 1px 4px; }
  .s365-quick-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Sticky rank + team column on horizontal swipe */
  .s365-table th.col-rank,
  .s365-table td.col-rank {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #0e1118;
    min-width: 38px;
    max-width: 38px;
    padding: 8px 4px 8px 8px;
  }
  .s365-table th.col-team,
  .s365-table td.col-team {
    position: sticky;
    left: 38px;
    z-index: 2;
    background: #0e1118;
    min-width: 136px;
    max-width: 152px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.35);
  }
  .s365-table th.col-rank,
  .s365-table th.col-team {
    background: #0b0e14;
    z-index: 3;
  }
}
