/* Team page (resources/views/pages/cln/team.php): hero, starting XI + tactics + set pieces, squad, club, kits, stadium,
   IRL and the "More from <league>" carousel. Player cards: player-cards.css, team cards: team-cards.css,
   page bar: page-bar.css. Plain CSS served as-is (not part of the gulp site.min.css bundle). */

.tm {
  --tm-glass: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --tm-line: rgba(255, 255, 255, 0.1);
  --tm-fg-2: rgba(255, 255, 255, 0.78);
  --tm-fg-3: rgba(255, 255, 255, 0.5);
  --tm-accent: #5cf8db;
  --tm-ink: #0b1d1a;
  --tm-display: "DINPro-Cond-Bold", "DINPro-Cond", "Barlow Condensed", "Arial Narrow", sans-serif;
  --kit: 92, 248, 219;
  display: grid;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 32px;
  color: #fff;
}
.tm > * {
  min-width: 0;
}
.tm a {
  color: inherit;
}
.tm a:hover {
  text-decoration: none;
}
.tm-glass {
  background: var(--tm-glass);
  border: 1px solid var(--tm-line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.tm-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tm-fg-3);
}
.tm-num {
  font-variant-numeric: tabular-nums;
}
.tm-dim {
  color: var(--tm-fg-3);
}
.tm-ad:empty {
  display: none;
}
/* same thresholds and colours as Fifa::statColor */
.tm .t-green { color: rgb(58, 200, 66); }
.tm .t-lgreen { color: rgb(142, 174, 78); }
.tm .t-yellow { color: rgb(187, 170, 7); }
.tm .t-red { color: rgb(209, 28, 66); }

/* hero: like the player page hero, with the crest on its own (no circle) */
.tm-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  overflow: hidden;
  padding: 22px 26px 0;
}
.tm-crest {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
}
.tm-crest img {
  width: 124px;
  height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.tm-who {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.tm-who h1 {
  margin: 0;
  font-family: var(--tm-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}
.tm-who h1 small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.36em;
  letter-spacing: 0.1em;
  color: var(--tm-fg-3);
}
.tm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--tm-fg-2);
}
.tm-meta > a,
.tm-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tm-fg-2);
}
.tm-meta > a:hover {
  color: var(--tm-accent);
}
.tm-meta img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.tm-meta i {
  color: var(--tm-fg-3);
}
.tm-ratings {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-left: 22px;
  border-left: 1px solid var(--tm-line);
}
.tm-rating {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.tm-rating b {
  font-family: var(--tm-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.tm-rating.small b {
  font-size: 34px;
}
.tm-rating .tm-label {
  color: rgba(255, 255, 255, 0.65);
}
.tm-facts {
  grid-column: 1 / -1;
  display: flex;
  margin: 0 -26px;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tm-fact {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 9px 6px 10px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.tm-fact + .tm-fact {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.tm-fact .tm-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}
.tm-fact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.tm-fact a span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-fact a:hover {
  color: var(--tm-accent);
}
.tm-fact img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* body: main column + side column */
.tm-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
}
.tm-col {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.tm-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}
.tm-sec-head h2 {
  min-width: 0;
  margin: 0;
  font-family: var(--tm-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.tm-sec-head h2 small {
  margin-left: 8px;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tm-fg-3);
}
.tm-card {
  padding: 16px 18px;
}
.tm-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tm-fg-2);
}

/* starting XI */
.tm-xi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: start;
  gap: 18px;
}
.tm-pitch {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 0.7;
  overflow: hidden;
  background: repeating-linear-gradient(180deg, rgba(92, 248, 219, 0.05) 0 10%, rgba(92, 248, 219, 0.02) 10% 20%), rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
.tm-pitch::before,
.tm-pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.tm-pitch::before {
  top: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.tm-pitch::after {
  bottom: -1px;
  width: 40%;
  height: 12%;
  border-bottom: 0;
  transform: translateX(-50%);
}
.tm-pitch-mid {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tm-pitch-box {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 40%;
  height: 12%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
  transform: translateX(-50%);
}
.tm-spot {
  position: absolute;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 96px;
  transform: translate(-50%, -50%);
}
.tm-face {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, rgba(var(--kit), 0.45), rgba(var(--kit), 0) 70%), rgba(13, 12, 48, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.tm-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}
.tm-spot:hover .tm-face {
  border-color: var(--tm-accent);
}
.tm-ovr {
  position: absolute;
  right: -8px;
  bottom: -4px;
  min-width: 25px;
  padding: 1px 5px;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  border-radius: 6px;
}
.tm .tm-ovr.t-green,
.tm .tm-ovr.t-lgreen,
.tm .tm-ovr.t-yellow,
.tm .tm-ovr.t-red {
  color: #0b0b1e;
}
.tm-ovr.t-green { background: rgb(58, 200, 66); }
.tm-ovr.t-lgreen { background: rgb(142, 174, 78); }
.tm-ovr.t-yellow { background: rgb(187, 170, 7); }
.tm-ovr.t-red { background: rgb(209, 28, 66); }
.tm-cap {
  position: absolute;
  top: -3px;
  left: -5px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 11px;
  font-weight: 800;
  color: var(--tm-ink);
  background: var(--tm-accent);
  border-radius: 50%;
}
.tm-nm {
  max-width: 96px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
/* under the name: position (accent), then role, then focus, each quieter than the one before */
.tm-ps {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--tm-accent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.tm-role {
  display: -webkit-box;
  max-width: 96px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--tm-fg-2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.tm-role i {
  font-style: normal;
  color: var(--tm-fg-3);
}
/* tactic slot with no team-sheet player in that position */
.tm-spot-empty .tm-face {
  border-style: dashed;
  background: rgba(13, 12, 48, 0.55);
}
.tm-xi-solo {
  grid-template-columns: minmax(0, 1fr);
}
.tm-setp {
  display: grid;
  gap: 8px;
}
/* tactics above the set-piece takers */
.tm-tactic {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tm-tactic h3 {
  margin: 0;
}
.tm-tactic .tm-bars {
  margin-top: 0;
}
.tm-formation {
  display: grid;
  gap: 10px;
}
.tm-formation > div {
  display: grid;
  gap: 3px;
}
.tm-formation b {
  font-family: var(--tm-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.tm-code {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tm-code code {
  overflow: hidden;
  padding: 4px 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--tm-line);
  border-radius: 7px;
}
.tm-code button {
  flex: none;
  width: 30px;
  height: 28px;
  padding: 0;
  font-size: 12px;
  color: var(--tm-fg-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tm-line);
  border-radius: 7px;
  cursor: pointer;
}
.tm-code button:hover,
.tm-code button.done {
  color: var(--tm-ink);
  background: var(--tm-accent);
  border-color: var(--tm-accent);
}
.tm-sp {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.tm-sp:last-child {
  border-bottom: 0;
}
.tm-sp img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: top;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}
.tm-sp > span {
  display: grid;
  min-width: 0;
}
.tm-sp b {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tm-sp:hover b {
  color: var(--tm-accent);
}

/* squad */
/* Starting XI card: "Build this squad" (open the squad in the squad builder), top of the tactics column.
   .tm .tm-build: the page's ".tm a { color: inherit }" would otherwise make the text white on the accent */
.tm .tm-build {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-ink);
  background: var(--tm-accent);
  border-radius: 10px;
}
.tm .tm-build:hover,
.tm .tm-build:focus {
  color: var(--tm-ink);
  filter: brightness(1.08);
}
.tm-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
}
.tm-seg button {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tm-fg-2);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.tm-seg button[aria-pressed="true"] {
  color: var(--tm-ink);
  background: var(--tm-accent);
}
[data-tm-panel][hidden] {
  display: none;
}
.tm-line {
  display: grid;
  gap: 10px;
}
.tm-line + .tm-line {
  margin-top: 18px;
}
.tm-line-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tm-line-head .tm-label {
  font-size: 11px;
  color: var(--tm-fg-2);
}
.tm-line-head small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.tm-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 10px;
  padding-top: 2px;
}
/* room for the floating "Loan" tags */
.tm-cards:has(.has-tag) {
  padding-top: 11px;
}
.tm-table-wrap {
  overflow-x: auto;
}
.tm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tm-table th {
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tm-fg-3);
  border-bottom: 1px solid var(--tm-line);
}
.tm-table td {
  padding: 7px 6px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tm-table th:nth-child(2),
.tm-table td:nth-child(2) {
  text-align: left;
}
.tm-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.tm-pl {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tm-pl > img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  object-position: top;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}
.tm-pl b {
  display: block;
  font-size: 13px;
}
.tm-pl:hover b {
  color: var(--tm-accent);
}
.tm-pl em {
  margin-left: 4px;
  padding: 0 5px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  color: var(--tm-ink);
  background: var(--tm-accent);
  border-radius: 6px;
}
.tm-pl small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--tm-fg-3);
}
.tm-pl small img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.tm-ovr-c {
  font-weight: 800;
}
.tm-pot-c {
  font-weight: 700;
  color: rgba(92, 248, 219, 0.95);
}

/* side column */
.tm-dl {
  display: grid;
  gap: 11px;
  margin: 0;
}
.tm-dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tm-dl dt {
  font-size: 12px;
  font-weight: 400;
  color: var(--tm-fg-3);
}
.tm-dl dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.tm-dl dd a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tm-dl dd a:hover {
  color: var(--tm-accent);
}
.tm-dl img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.tm-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tm-meter,
.tm-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 26px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tm-fg-3);
}
.tm-meter i {
  display: flex;
  gap: 2px;
}
.tm-meter i span {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.tm-meter i span.on {
  background: var(--tm-accent);
}
.tm-bar i {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.tm-bar i span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(92, 248, 219, 0.35), var(--tm-accent));
}
.tm-meter b,
.tm-bar b {
  font-size: 13px;
  text-align: right;
  color: #fff;
}
.tm-styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tm-styles div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}
.tm-styles b {
  font-family: var(--tm-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}
.tm-kits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.tm-kits figure {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
}
.tm-kits img {
  width: 100%;
  max-width: 74px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.tm-kits figcaption {
  font-size: 10px;
  color: var(--tm-fg-3);
}
.tm-stadium {
  display: grid;
  gap: 6px;
}
/* stadium picture (600 x 236), full card width above the name */
.tm-stadium-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 236;
  margin-bottom: 6px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}
.tm-stadium b {
  font-family: var(--tm-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}
.tm-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-accent) !important;
}
.tm-map i {
  font-size: 10px;
}

/* IRL (same card as the player page) */
.tm-irl {
  display: grid;
  gap: 16px;
}
.tm-irl-block {
  display: grid;
  gap: 8px;
}
.tm-irl-block + .tm-irl-block {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tm-standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.tm-standings th {
  padding: 4px 3px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--tm-fg-3);
}
.tm-standings td {
  padding: 5px 3px;
  text-align: center;
}
.tm-standings th:nth-child(2),
.tm-standings td:nth-child(2) {
  text-align: left;
}
.tm-standings tr.me td {
  font-weight: 700;
  background: rgba(92, 248, 219, 0.1);
}
.tm-standings tr.me td:first-child {
  box-shadow: inset 3px 0 0 var(--tm-accent);
}
.tm-cl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tm-cl img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.tm-cl a:hover {
  color: var(--tm-accent);
}
.tm-match {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.tm-match + .tm-match {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tm-date {
  display: grid;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.tm-date small {
  font-size: 11px;
  font-weight: 600;
  color: var(--tm-fg-3);
}
.tm-teams {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.tm-teams > span {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tm-teams img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.tm-teams small {
  font-size: 11px;
  color: var(--tm-fg-3);
}

/* "More from <league>" carousel (team cards) */
.tm-rail {
  display: grid;
  gap: 10px;
}
.tm-rail-ctrl {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}
.tm-rail-all {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--tm-accent) !important;
}
.tm-rail-all i {
  margin-left: 6px;
  font-size: 11px;
}
.tm-rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
}
.tm-rail-btn:hover:not(:disabled) {
  background: rgba(92, 248, 219, 0.14);
  border-color: rgba(92, 248, 219, 0.45);
}
.tm-rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.tm-rail-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tm-rail-track::-webkit-scrollbar {
  display: none;
}
.tm-rail-track .tc {
  flex: 0 0 168px;
  scroll-snap-align: start;
}

@media (max-width: 1199.98px) {
  .tm-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .tm-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .tm-face {
    width: 52px;
    height: 52px;
  }
}
@media (max-width: 767.98px) {
  .tm-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px 16px 0;
  }
  .tm-crest {
    width: 84px;
    height: 84px;
  }
  .tm-crest img {
    width: 80px;
    height: 80px;
  }
  .tm-ratings {
    grid-column: 1 / -1;
    justify-content: space-around;
    padding: 12px 0 0;
    border-top: 1px solid var(--tm-line);
    border-left: 0;
  }
  .tm-rating b {
    font-size: 46px;
  }
  .tm-rating.small b {
    font-size: 28px;
  }
  .tm-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 -16px;
  }
  .tm-fact {
    padding: 7px 4px 8px;
    font-size: 14px;
  }
  .tm-fact + .tm-fact {
    border-left: 0;
  }
  .tm-fact:not(:nth-child(3n + 1)) {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }
  .tm-fact:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .tm-xi {
    grid-template-columns: minmax(0, 1fr);
  }
  .tm-pitch {
    max-width: none;
    aspect-ratio: 0.56;
  }
  .tm-spot {
    width: 70px;
  }
  .tm-face {
    width: 46px;
    height: 46px;
  }
  .tm-nm,
  .tm-role {
    max-width: 70px;
    font-size: 10.5px;
  }
  /* phones: no room for a second line, so the role only (focus is in the spot's title) */
  .tm-role {
    font-size: 9px;
    -webkit-line-clamp: 1;
  }
  .tm-role i {
    display: none;
  }
  .tm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tm-rail-btn {
    display: none;
  }
  .tm-rail-track .tc {
    flex-basis: 150px;
  }
}
