/* Team profile refinement: independent roster, competition and editorial areas. */
body.cs2day-v2 .cs2-team-profile-v3__player-list {
  display: grid;
  gap: 8px;
}
body.cs2day-v2 .cs2-team-profile-v3__player-list > article {
  align-items: center;
  background: var(--cs2-surface, #111b25);
  border: 1px solid var(--cs2-border);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 9px;
}
body.cs2day-v2 .cs2-team-profile-v3__player-list > article:hover {
  background: var(--cs2-card-elevated);
  border-color: color-mix(in srgb, var(--cs2-border) 72%, var(--cs2-accent) 28%);
}
body.cs2day-v2 .cs2-team-profile-v3__player-list img {
  background: var(--cs2-card-elevated);
  border-radius: 5px;
  display: block;
  height: 54px;
  object-fit: cover;
  width: 54px;
}
body.cs2day-v2 .cs2-team-profile-v3__player-list > article > div { display: grid; gap: 2px; min-width: 0; }
body.cs2day-v2 .cs2-team-profile-v3__player-list small { color: var(--cs2-text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
body.cs2day-v2 .cs2-team-profile-v3__player-list strong { color: var(--cs2-text); display: block; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
body.cs2day-v2 .cs2-team-profile-v3__player-list a:not(.cs2-button) { color: inherit; text-decoration: none; }
body.cs2day-v2 .cs2-team-profile-v3__player-list span { color: var(--cs2-text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.cs2day-v2 .cs2-team-profile-v3__player-list .cs2-button { min-height: 32px; padding: 6px 10px; }

body.cs2day-v2 .cs2-team-profile-v3__competition-stats { margin: -2px 0 18px; }
body.cs2day-v2 .cs2-team-profile-v3__competition-stats .cs2-detail-stats { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
body.cs2day-v2 .cs2-team-profile-v3__match-columns { align-items: start; }
body.cs2day-v2 .cs2-team-profile-v3__match-list { border: 1px solid var(--cs2-border); border-radius: 6px; overflow: hidden; }
body.cs2day-v2 .cs2-team-profile-v3__match {
  align-items: center;
  color: var(--cs2-text);
  display: grid;
  gap: 8px;
  grid-template-columns: 76px minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 58px;
  padding: 8px 10px;
  text-decoration: none;
}
body.cs2day-v2 .cs2-team-profile-v3__match:nth-child(even) { background: color-mix(in srgb, var(--cs2-card) 84%, var(--cs2-bg) 16%); }
body.cs2day-v2 .cs2-team-profile-v3__match:hover { background: var(--cs2-card-elevated); }
body.cs2day-v2 .cs2-team-profile-v3__match + .cs2-team-profile-v3__match { border-top: 1px solid var(--cs2-border); }
body.cs2day-v2 .cs2-team-profile-v3__match time { color: var(--cs2-text-muted); font-size: 11px; font-weight: 700; }
body.cs2day-v2 .cs2-team-profile-v3__match-team { align-items: center; display: flex; gap: 7px; min-width: 0; }
body.cs2day-v2 .cs2-team-profile-v3__match-team--away { justify-content: flex-end; text-align: right; }
body.cs2day-v2 .cs2-team-profile-v3__match-team strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.cs2day-v2 .cs2-team-profile-v3__match-logo,
body.cs2day-v2 .cs2-team-profile-v3__match-logo img { display: block; height: 28px; object-fit: contain; width: 28px; }
body.cs2day-v2 .cs2-team-profile-v3__match-score { background: var(--cs2-bg); border-radius: 4px; min-width: 42px; padding: 6px 5px; text-align: center; }
body.cs2day-v2 .cs2-team-profile-v3__match small { color: var(--cs2-text-muted); display: none; font-size: 11px; grid-column: 2 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body.cs2day-v2 .cs2-team-editorial__heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
body.cs2day-v2 .cs2-team-editorial__heading h2 { margin: 0; }
body.cs2day-v2 .cs2-team-editorial__heading .section-kicker { margin: 0 0 3px; }
body.cs2day-v2 .cs2-team-editorial__heading > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
body.cs2day-v2 .cs2-team-editorial__columns { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.cs2day-v2 .cs2-team-editorial__columns > section { min-width: 0; }
body.cs2day-v2 .cs2-team-editorial__columns > section > header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
body.cs2day-v2 .cs2-team-editorial__columns h3 { margin: 0; }
body.cs2day-v2 .cs2-team-editorial__columns > section > header span { background: var(--cs2-bg); border-radius: 999px; font-size: 11px; font-weight: 800; min-width: 22px; padding: 3px 6px; text-align: center; }
body.cs2day-v2 .cs2-team-editorial__grid { display: grid; gap: 10px; }
body.cs2day-v2 .cs2-team-editorial__grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.cs2day-v2 .cs2-team-editorial__grid--media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.cs2day-v2 .cs2-team-editorial__filter-dialog { width: min(540px, calc(100vw - 28px)); }
body.cs2day-v2 .cs2-team-editorial__filter-dialog form { display: grid; gap: 14px; padding: 20px; }
body.cs2day-v2 .cs2-team-editorial__filter-dialog header,
body.cs2day-v2 .cs2-team-editorial__filter-dialog footer { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
body.cs2day-v2 .cs2-team-editorial__filter-dialog h2 { margin: 2px 0 0; }

@media (max-width: 760px) {
  body.cs2day-v2 .cs2-team-profile-v3__match { grid-template-columns: 62px minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; padding: 8px; }
  body.cs2day-v2 .cs2-team-profile-v3__match time { font-size: 10px; }
  body.cs2day-v2 .cs2-team-profile-v3__match-team { gap: 5px; }
  body.cs2day-v2 .cs2-team-profile-v3__match-team strong { font-size: 12px; }
  body.cs2day-v2 .cs2-team-profile-v3__match-logo,
  body.cs2day-v2 .cs2-team-profile-v3__match-logo img { height: 22px; width: 22px; }
  body.cs2day-v2 .cs2-team-profile-v3__match-score { min-width: 34px; padding: 5px 3px; }
  body.cs2day-v2 .cs2-team-editorial__heading { align-items: flex-start; flex-direction: column; }
  body.cs2day-v2 .cs2-team-editorial__heading > div:last-child { justify-content: flex-start; }
  body.cs2day-v2 .cs2-team-editorial__columns,
  body.cs2day-v2 .cs2-team-editorial__grid--news,
  body.cs2day-v2 .cs2-team-editorial__grid--media { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body.cs2day-v2 .cs2-team-profile-v3__player-list > article { grid-template-columns: 46px minmax(0, 1fr); }
  body.cs2day-v2 .cs2-team-profile-v3__player-list img { height: 46px; width: 46px; }
  body.cs2day-v2 .cs2-team-profile-v3__player-list .cs2-button { grid-column: 2; justify-self: start; }
  body.cs2day-v2 .cs2-team-profile-v3__match { grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr); }
  body.cs2day-v2 .cs2-team-profile-v3__match-team--away span { display: none; }
  body.cs2day-v2 .cs2-team-profile-v3__match-team:not(.cs2-team-profile-v3__match-team--away) span { display: none; }
}
