body[data-preview-home-style="espn"] #tsp-stories .preview-espn-fantasy:is(
  #preview-fantasy-football, #preview-fantasy-basketball,
  #preview-fantasy-hockey, #preview-fantasy-premier-league
) {
  padding: 16px;
  border: 2px solid var(--home-fantasy-border);
  color: var(--preview-feed-ink);
  background: #fff;
}

#preview-fantasy-football { --home-fantasy-border: #174784; }
#preview-fantasy-basketball { --home-fantasy-border: #b94b10; }
#preview-fantasy-hockey { --home-fantasy-border: #117363; }
#preview-fantasy-premier-league { --home-fantasy-border: #592480; }

#tsp-stories .preview-espn-fantasy .home-fantasy-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-logo {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-stat {
  margin-block: 10px 14px;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: inherit;
  font-family: var(--tsp-preview-font);
  text-decoration: none;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-player-photo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2f5;
  object-fit: contain;
  object-position: center bottom;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-player-copy {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-player-name {
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.2;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-player-value {
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-player-metric {
  color: #535d65;
  font-size: .6875rem;
  line-height: 1.25;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-data-context {
  margin: 4px 0 0;
  color: #535d65;
  font-size: var(--tsp-preview-type-caption);
  line-height: 1.4;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-picker {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-picker select {
  width: 100%;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #adb5bd;
  border-radius: 4px;
  background: #fff;
  color: inherit;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-rows {
  margin: 10px 0 0;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  padding-block: 7px;
  border-top: 1px solid var(--preview-feed-line);
  align-items: baseline;
}

#tsp-stories #preview-fantasy-football .home-fantasy-row,
#tsp-stories #preview-fantasy-hockey .home-fantasy-row,
#tsp-stories #preview-fantasy-premier-league .home-fantasy-row {
  grid-template-columns: max-content minmax(0, 1fr);
}

#tsp-stories .preview-espn-fantasy .home-fantasy-row :is(dt, dd) {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--tsp-preview-type-label);
  line-height: 1.35;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-row dt {
  font-weight: 700;
}

#tsp-stories .preview-espn-fantasy .home-fantasy-row dd {
  font-variant-numeric: tabular-nums;
}

#tsp-stories .preview-espn-fantasy :is(a:hover, a:focus-visible) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#tsp-stories .preview-espn-fantasy :is(a, select):focus-visible {
  outline: 2px solid #173c58;
  outline-offset: 2px;
}

@layer tsp-preview-typography {
  #tsp-stories .preview-espn-fantasy .home-fantasy-data-context {
    font-size: var(--tsp-preview-type-caption) !important;
    line-height: 1.4 !important;
  }

  #tsp-stories .preview-espn-fantasy .home-fantasy-row :is(dt, dd) {
    font-size: var(--tsp-preview-type-label) !important;
    line-height: 1.35 !important;
  }
}

.tsp-major-fantasy-rail {
  display: grid;
  gap: var(--preview-feed-gap);
}

[data-tsp-code1-section] #tsp-stories #home-starting-goalies {
  padding: 13px 14px 6px;
  border: 1px solid var(--preview-feed-line);
  border-radius: var(--preview-feed-radius);
  background: var(--preview-feed-paper);
  box-shadow: 0 1px 2px #17202709;
}

#home-starting-goalies .preview-goalie-empty {
  margin: 8px 4px 12px;
  font-size: var(--tsp-approved-detail);
}

#home-starting-goalies .preview-goalie-starters > li > img {
  grid-column: 1;
}

#home-starting-goalies .preview-goalie-starters > li > .preview-goalie-name {
  grid-column: 2;
  overflow-wrap: anywhere;
}

#home-starting-goalies .preview-goalie-starters > li > .preview-goalie-status {
  grid-column: 3;
}

@layer tsp-preview-typography {
  [data-tsp-code1-section] #tsp-stories :is(.preview-espn-fantasy .home-fantasy-heading, #home-starting-goalies-title) {
    font-size: var(--tsp-approved-latest-heading) !important;
  }
}

@media (max-width: 1100px) {
  [data-tsp-code1-section] #tsp-stories .preview-espn-left:has(> .tsp-major-fantasy-rail) {
    display: grid !important;
  }

  [data-tsp-code1-section] #tsp-stories .preview-espn-left:has(> .tsp-major-fantasy-rail) > .nfl-quick {
    display: none;
  }
}

body[data-preview-home-style="espn"] #tsp-stories #home-starting-goalies {
  font: 500 14px/1.35 Inter, system-ui, sans-serif;
  color: var(--preview-feed-ink);
}

#home-starting-goalies :is(.preview-goalie-games, .preview-goalie-empty)[hidden],
#home-starting-goalies .preview-goalie-games > li[hidden] {
  display: none !important;
}

#home-starting-goalies > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  margin-bottom: 5px;
  padding: 8px 9px;
  border-radius: 5px;
  background: #eaf2f7;
}

#home-starting-goalies time {
  font-size: 12px;
  color: var(--preview-feed-muted);
  white-space: nowrap;
}

#home-starting-goalies ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#home-starting-goalies .preview-goalie-games > li {
  border-top: 1px solid var(--preview-feed-line);
}

#tsp-stories #home-starting-goalies .preview-goalie-gamecast {
  display: block;
  padding: 8px 4px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

#tsp-stories #home-starting-goalies .preview-goalie-gamecast:is(:hover, :focus-visible) {
  background: #e8f1f7;
  text-decoration: none;
}

#home-starting-goalies .preview-goalie-matchup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: #183c58;
  font-size: 12px;
  font-weight: 750;
}

#home-starting-goalies .preview-goalie-starters > li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 1px 0;
}

#home-starting-goalies img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

#home-starting-goalies .preview-goalie-name {
  color: var(--preview-feed-ink);
}

#home-starting-goalies .preview-goalie-status {
  color: #52616d;
  font-size: 12px;
  white-space: nowrap;
}

#home-starting-goalies .preview-goalie-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-top: 1px solid var(--preview-feed-line);
  color: #183c58;
  font-size: 13px;
  font-weight: 700;
}

#home-starting-goalies .preview-goalie-link:hover {
  text-decoration: underline;
}

#home-starting-goalies > header {
    display: grid;
    grid-template-columns: minmax(0, max-content) 26px;
    align-items: center;
    justify-content: start;
    gap: 3px 6px;
}
#home-starting-goalies > header .starting-goalies-league-mark {
    width: 26px;
    height: 26px;
    object-fit: cover;
}
#home-starting-goalies > header > time {
    grid-column: 1 / -1;
}

