/* Team and match detail pages share the black, graphite and gold competition UI. */
.public-site .team-view, .public-site .match-view { max-width: 1320px; padding-top: 36px; }
.team-view__hero, .team-view__records, .team-view__member, .team-view__highlights > div,
.match-view__details .competition-panel, .match-view__arena, .match-view__rosters > div { background: #1c1d1b; border: 1px solid #343530; border-radius: 10px; }
.team-view__hero { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: 36px; margin: 30px 0 0; background: radial-gradient(circle at 10% 0%, #383020, transparent 45%), #1c1d1b; }
.team-view__identity { display: flex; align-items: center; gap: 28px; min-width: 0; flex: 1 1 550px; }
.team-view__logo { width: 140px; height: 140px; flex: none; display: grid; place-items: center; background: #272826; border: 1px solid #4a412d; border-radius: 12px; color: #ffba42; font-size: 58px; font-weight: 800; overflow: hidden; }
.team-view__logo img, .match-view__logo img { width: 100%; height: 100%; object-fit: contain; }
.team-view__intro { min-width: 0; }
.team-view__intro h1 { margin: 8px 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; overflow-wrap: anywhere; }
.team-view__intro p { margin: 0; color: #bdbbb5; }
.team-view__record { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.team-view__record span { min-width: 88px; padding: 9px 15px; border-radius: 7px; background: #292a28; color: #bdbbb5; font-size: 13px; text-align: center; }
.team-view__record strong { display: block; color: #ffba42; font-size: 21px; line-height: 1.2; }
.team-view__honours { display: flex; justify-content: space-around; gap: 15px; min-width: 250px; }
.team-view__honours > div { display: grid; justify-items: center; gap: 6px; color: #9f9d97; font-size: 12px; }
.team-view__honours i { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #a97d29; border-radius: 50%; color: #ffba42; font-size: 20px; }
.team-view__honours > div:nth-child(2) i { color: #c8c9cb; border-color: #74767a; }
.team-view__honours > div:nth-child(3) i { color: #b47953; border-color: #80543c; }
.team-view__honours strong { color: #fff; font-size: 17px; }
.team-view__actions { flex: 1 0 100%; margin: 0; }
.team-view__records { overflow: hidden; margin-top: 14px; }
.team-view__records h2 { margin: 0; padding: 15px 25px; background: linear-gradient(90deg, #ffba42, #a66b17); color: #1c1a16; font-size: 19px; font-weight: 800; }
.team-view__records .competition-table { min-width: 620px; }
.team-view__records .competition-table thead { background: #3b3c39; }
.team-view__records .competition-table thead th { color: #fff; font-size: 12px; }
.team-view__records .competition-table td, .team-view__records .competition-table th { padding: 18px 24px; }
.team-view__highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 34px; }
.team-view__highlights > div { display: flex; align-items: center; gap: 19px; padding: 18px; font-size: 18px; }
.team-view__highlights strong { margin-left: auto; color: #ffba42; font-size: 27px; }
.team-view__metric-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 7px; background: #363734; color: #ffba42; font-size: 26px; }
.team-view__section { margin-top: 30px; }
.team-view__section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.team-view__section-heading h2 { margin: 5px 0 0; font-size: 26px; }
.team-view__section-heading > span { color: #aaa9a5; }
.team-view__roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.team-view__member { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 15px; }
.team-view__avatar { display: grid; place-items: center; width: 100%; aspect-ratio: 1.4; margin-bottom: 12px; background: #292a28; border-radius: 6px; color: #ffba42; font-size: 60px; font-weight: 800; overflow: hidden; }
.team-view__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-view__role { color: #ffba42; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.team-view__member-name { max-width: 100%; margin: 5px 0; color: #fff !important; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.team-view__psn { max-width: 100%; color: #aaa9a5; font-size: 13px; overflow-wrap: anywhere; }
.team-view__leave { margin-top: 13px; font-size: 12px; }
.team-view__match-tabs { display: flex; gap: 25px; border-bottom: 1px solid #42433f; }
.public-site .team-view__match-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; background: transparent; color: #aaa9a5; font-size: 15px; box-shadow: none; }
.public-site .team-view__match-tabs button[aria-pressed="true"] { border-color: #ffba42; color: #ffba42; }
.team-view__match-list { margin-top: 14px; }
.team-view__match-head, .team-view__match { display: grid; grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr) minmax(130px, 1fr); gap: 16px; align-items: center; padding: 16px 24px; }
.team-view__match-head { background: #3b3c39; color: #f4f4f2; font-weight: 800; border-radius: 7px 7px 0 0; }
.team-view__match { margin-top: 3px; background: #272826; border-radius: 6px; text-decoration: none; color: #deded9 !important; }
.team-view__match[hidden], .team-view__filtered-empty[hidden] { display: none !important; }
.team-view__match strong, .team-view__match small { display: block; }
.team-view__match strong { color: #f6f5f1; font-size: 15px; }
.team-view__match em { color: #ffba42; font-style: normal; }
.team-view__match small { color: #aaa9a5; font-size: 12px; }
.team-view__match b { color: #ffba42; font-size: 13px; font-weight: 700; }

.match-view__layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 2fr); align-items: start; gap: 22px; margin-top: 30px; }
.match-view__details, .match-view__main { min-width: 0; }
.match-view__details .competition-panel { padding: 25px; }
.match-view__details h1 { margin: 8px 0; font-size: 27px; }
.match-view__status { display: inline-block; padding: 6px 11px; border-radius: 99px; background: #353024; color: #ffba42; font-size: 12px; font-weight: 700; }
.match-view__facts { margin: 20px 0 0; }
.match-view__facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #363733; font-size: 13px; }
.match-view__facts dt { flex: none; color: #deded9; font-weight: 600; }
.match-view__facts dd { margin: 0; color: #aaa9a5; text-align: right; overflow-wrap: anywhere; }
.match-view__facts .competition-accent { color: #ffba42; }
.match-view__actions { display: grid; gap: 9px; margin-top: 20px; }
.match-view__actions .competition-text-link { text-align: center; }
.match-view__arena { overflow: hidden; background: radial-gradient(circle at 50% 6%, #33281f, transparent 58%), #1c1d1b; }
.match-view__arena-heading { padding: 23px 28px 0; }
.match-view__arena-heading h2 { margin: 7px 0 0; font-size: 20px; overflow-wrap: anywhere; }
.match-view__versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 30px 24px 35px; text-align: center; }
.match-view__side { min-width: 0; display: grid; justify-items: center; gap: 7px; }
.match-view__logo { display: grid; place-items: center; width: 100px; height: 100px; background: #292a28; border: 1px solid #6e582e; border-radius: 8px; color: #ffba42; font-size: 43px; font-weight: 800; overflow: hidden; }
.match-view__side:last-child .match-view__logo { border-color: #855046; }
.match-view__side a, .match-view__side > strong { max-width: 100%; color: #fff !important; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.match-view__side span { color: #aaa9a5; font-size: 12px; }
.match-view__vs strong { color: #ffba42; font-size: clamp(32px, 5vw, 68px); line-height: 1; }
.match-view__vs small { display: block; max-width: 110px; margin: 14px auto 0; color: #ffba42; font-size: 11px; overflow-wrap: anywhere; }
.match-view__maps-heading { padding: 0 28px; }
.match-view__maps-heading h3 { margin: 5px 0 0; font-size: 22px; }
.match-view__maps { display: grid; gap: 10px; padding: 17px 28px 28px; }
.match-view__map { display: flex; justify-content: space-between; align-items: stretch; min-height: 94px; border-radius: 6px; background: #272826; border-left: 3px solid #ffba42; overflow: hidden; }
.match-view__map:nth-child(even) { border-color: #bd6a55; }
.match-view__map-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 13px 19px; }
.match-view__map small { color: #ffba42; font-size: 12px; }
.match-view__map strong { color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.match-view__map span { color: #aaa9a5; font-size: 12px; }
.match-view__map img { width: 42%; max-width: 270px; object-fit: cover; mask-image: linear-gradient(90deg, transparent, black 28%); }
.match-view__lineups { margin-top: 18px; }
.match-view__lineups > h2 { margin: 0 0 14px; font-size: 24px; }
.match-view__rosters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.match-view__rosters > div { padding: 20px; border-top: 2px solid #ffba42; }
.match-view__rosters > div + div { border-top-color: #bd6a55; }
.match-view__rosters h3 { margin: 0 0 16px; color: #ffba42; font-size: 17px; overflow-wrap: anywhere; }
.match-view__rosters > div + div h3 { color: #e1846b; }
.match-view__player { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; padding: 13px; border-radius: 5px; background: #292a28; }
.match-view__player a, .match-view__player > span { color: #f6f5f1; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.match-view__player small { color: #aaa9a5; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 950px) { .team-view__roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .match-view__layout { grid-template-columns: 1fr; } .match-view__details { order: 0; } }
@media (max-width: 650px) {
  .public-site .team-view, .public-site .match-view { padding: 22px 15px 60px; }
  .team-view__hero { padding: 20px; }
  .team-view__identity { flex-wrap: wrap; gap: 16px; }
  .team-view__logo { width: 85px; height: 85px; font-size: 36px; }
  .team-view__honours { width: 100%; }
  .team-view__highlights { grid-template-columns: 1fr; gap: 9px; }
  .team-view__highlights > div { font-size: 16px; }
  .team-view__roster { gap: 8px; }
  .team-view__member { padding: 11px; }
  .team-view__avatar { aspect-ratio: 1; font-size: 40px; }
  .team-view__match-head { display: none; }
  .team-view__match { grid-template-columns: 1fr auto; gap: 7px; padding: 16px; }
  .team-view__match > span { grid-column: 1 / -1; }
  .match-view__versus { padding: 24px 12px; gap: 5px; }
  .match-view__logo { width: 62px; height: 62px; font-size: 30px; }
  .match-view__side a, .match-view__side > strong { font-size: 14px; }
  .match-view__map img { width: 34%; }
  .match-view__rosters { grid-template-columns: 1fr; }
}

/* Team profile: keep the artwork and all team information in one card. */
.team-view__hero {
  isolation: isolate;
  align-items: flex-end;
  min-height: 300px;
  gap: 24px;
  padding: 32px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 10%, #443321, transparent 60%), #1c1d1b;
}
.team-view__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.team-view__hero--with-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 15, 14, .91) 0%, rgba(13, 15, 14, .72) 45%, rgba(13, 15, 14, .38) 100%),
              linear-gradient(0deg, rgba(13, 15, 14, .76), transparent 75%);
  pointer-events: none;
}
.team-view__identity { flex: 1 1 500px; gap: 22px; }
.team-view__logo {
  width: 106px;
  height: 106px;
  background: rgba(28, 29, 27, .9);
  border-color: rgba(255, 186, 66, .42);
  font-size: 44px;
}
.team-view__intro p { margin: 3px 0; color: #e0ddd5; }
.team-view__intro p a { color: #ffca6a; }
.team-view__record { margin-top: 16px; }
.team-view__record span {
  min-width: 76px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(20, 21, 20, .78);
}
.team-view__honours {
  min-width: 230px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: rgba(20, 21, 20, .75);
}
.team-view__honours > div { color: #dedbd4; }
.team-view__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.team-view__actions .competition-button { margin: 0; }
@media (max-width: 800px) {
  .team-view__hero { min-height: 0; }
  .team-view__identity { flex-basis: 100%; }
  .team-view__honours { width: 100%; max-width: 360px; }
}
@media (max-width: 650px) {
  .team-view__hero { padding: 20px; gap: 18px; }
  .team-view__identity { flex-wrap: nowrap; align-items: flex-start; gap: 14px; }
  .team-view__logo { width: 70px; height: 70px; font-size: 28px; }
  .team-view__intro h1 { font-size: clamp(27px, 7vw, 36px); }
  .team-view__record { gap: 5px; }
  .team-view__record span { min-width: 66px; padding: 7px 8px; }
  .team-view__honours { max-width: none; }
  .team-view__actions .competition-button { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 390px) {
  .team-view__identity { flex-wrap: wrap; }
}
