/**
 * season_data_display_teams.css — Equipes em cartões (DEM-142).
 */
.sdt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 8px; }
.sdt-grid.is-single { grid-template-columns: minmax(0, 760px); justify-content: center; }

.sdt-card {
  --sdt-team: #d4ff00;
  --sdt-accent: var(--sdt-team);
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--sdt-team) 30%, transparent), transparent 60%),
    var(--color-surface, #191920);
  border: 1px solid color-mix(in srgb, var(--sdt-team) 45%, rgba(255, 255, 255, 0.08));
  padding: 16px 18px 14px;
}
.sdt-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--sdt-team); }
.sdt-card.is-leader { box-shadow: 0 0 0 2px #ffc400, 0 18px 40px rgba(0, 0, 0, 0.35); }

.sdt-head { display: flex; align-items: center; gap: 12px; }
.sdt-pos { font-size: 34px; font-weight: 900; font-style: italic; line-height: 1; color: rgba(255, 255, 255, 0.85); min-width: 44px; }
.sdt-card.is-leader .sdt-pos { color: #ffc400; }
.sdt-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: rgba(0, 0, 0, 0.35); flex: 0 0 auto; }
.sdt-name { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.sdt-name b { font-size: 20px; font-weight: 900; color: var(--color-text-primary, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdt-name small { font-size: 12px; color: var(--color-text-secondary, #a9abb5); }
.sdt-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; flex: 0 0 auto; border-radius: 12px; padding: 4px 8px; }
.sdt-total.clickable { cursor: pointer; }
.sdt-total.clickable:hover, .sdt-total.clickable:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.sdt-total b { font-size: 34px; font-weight: 900; color: var(--color-accent, #f39c12); font-variant-numeric: tabular-nums; }
.sdt-total small { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary, #a9abb5); }
.sdt-total em { font-style: normal; font-size: 11px; color: var(--color-text-secondary, #a9abb5); }
.sdt-total .sdt-gap { color: #ff8a8a; font-weight: 700; }

.sdt-drivers { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sdt-driver { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.sdt-driver.is-extra { display: none; }
.sdt-card.is-open .sdt-driver.is-extra { display: grid; }
.sdt-driver-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text-primary, #f4f5f7); }
.sdt-driver-name i { color: #ff8a3d; margin-right: 6px; }
.sdt-driver.is-top .sdt-driver-name { font-weight: 800; }
.sdt-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sdt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--sdt-accent) 55%, transparent), var(--sdt-accent)); }
.sdt-driver-pts { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--color-text-primary, #fff); min-width: 34px; text-align: right; }
.sdt-more { margin-top: 10px; width: 100%; padding: 8px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.2); background: transparent; color: var(--color-accent, #f39c12); font-weight: 800; cursor: pointer; }
.sdt-more:hover { background: rgba(255, 255, 255, 0.04); }
.sdt-empty { margin: 12px 0 0; color: var(--color-text-secondary, #a9abb5); font-size: 13px; }

@media (max-width: 480px) {
  .sdt-pos { font-size: 26px; min-width: 32px; }
  .sdt-logo { width: 42px; height: 42px; }
  .sdt-name b { font-size: 17px; }
  .sdt-total b { font-size: 26px; }
  .sdt-driver { grid-template-columns: minmax(0, 1fr) 70px auto; font-size: 13px; }
}
