/* Page match NBA : timeline et carte de tirs françaises. */
body.page-match {
  background: #f2f6fb;
  overflow-x: clip;
}

body.page-match main { width: 100%; box-sizing: border-box; }

.match-page-title--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.nba-match-hero {
  max-width: none !important;
  min-height: 285px !important;
  margin: 20px 0 18px !important;
  padding: 34px 42px 31px !important;
  box-sizing: border-box;
}

.nba-match-back {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}
.nba-match-back:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.13); color: #fff; }

.nba-match-date {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 20px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.nba-match-status,
.nba-match-fr-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nba-match-status--final { background: rgba(70,211,134,.16); color: #8ce7b5; }
.nba-match-status--live { background: rgba(237,41,57,.2); color: #ff9baa; }
.nba-match-status--upcoming { background: rgba(112,185,255,.17); color: #9dd0ff; }
.nba-match-fr-badge { background: rgba(255,255,255,.1); color: #fff; }

.nba-match-scoreboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr);
  align-items: center;
  gap: clamp(20px,5vw,72px);
  width: 100%;
}
.nba-match-team {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 15px;
  min-width: 0;
  text-align: left;
}
.nba-match-team:last-child { grid-template-columns: minmax(0,1fr) 78px; text-align: right; }
.nba-match-team-logo {
  grid-row: 1 / 3;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(0,0,0,.25));
}
.nba-match-team:last-child .nba-match-team-logo { grid-column: 2; }
.nba-match-team:last-child .nba-match-tri,
.nba-match-team:last-child .nba-match-teamname { grid-column: 1; }
.nba-match-tri { color: #fff; font-size: clamp(26px,3vw,36px); font-weight: 1000; line-height: 1; letter-spacing: -.035em; }
.nba-match-teamname { overflow: hidden; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nba-match-scores { display: flex; align-items: center; gap: 13px; min-width: 200px; }
.nba-match-score { color: rgba(255,255,255,.58); font-size: clamp(53px,6vw,76px); font-weight: 1000; line-height: .9; letter-spacing: -.07em; }
.nba-match-score.win { color: #fff; }
.nba-match-sep { color: #70b9ff; font-size: 29px; font-weight: 850; }

.match-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 2px 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.match-breadcrumb a { color: #075ea9; text-decoration: none; }
.match-breadcrumb a:hover { text-decoration: underline; }

.match-page-title {
  max-width: 900px;
  margin: 0 2px 14px;
  color: #0b1930;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.match-flow {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  min-width: 0;
  max-width: 100%;
}

.match-flow[hidden],
.match-timeline-card[hidden],
.match-shot-card[hidden] { display: none !important; }

.match-timeline-card,
.match-shot-card,
.match-seo-copy {
  min-width: 0;
  max-width: 100%;
  padding: clamp(15px, 3vw, 24px);
  border: 1px solid rgba(148, 163, 184, .25);
}

.match-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.match-section-heading h2,
.match-seo-copy h2 {
  margin: 2px 0 0;
  color: #0b1930;
  font-size: clamp(1.12rem, 2.4vw, 1.5rem);
  line-height: 1.15;
}

.match-kicker {
  color: #e51b36;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.match-section-intro {
  margin: -3px 0 14px;
  color: #64748b;
  font-size: .86rem;
}

.match-timeline-card .tl-section {
  margin-top: 0;
  box-shadow: none;
}

.match-timeline-card .tl-svg { overflow: visible; }
.tl-action {
  cursor: pointer;
  opacity: .7;
  outline: none;
  transition: opacity .12s, filter .12s;
}
.tl-action:hover,
.tl-action:focus { opacity: 1; filter: brightness(.88); }
.tl-action.is-french {
  opacity: 1;
  stroke: #fff;
  stroke-width: 2.5;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 3px rgba(7,94,169,.72));
}
.tl-fr-marker { fill: #fff; stroke: #075ea9; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.tl-period-label { fill: #77869a; font-size: 9px; font-weight: 850; }
.tl-action-detail {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #f7fafe;
  color: #52637a;
  font-size: .75rem;
  line-height: 1.4;
}
.tl-action-detail em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 7px;
  background: #075ea9;
  color: #fff;
  font-size: .65rem;
  font-style: normal;
  font-weight: 950;
}
.tl-action-detail.is-french { border-color: #9ec7ec; background: #edf7ff; color: #0b3159; font-weight: 750; }

.shot-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: #52637a;
  font-size: .72rem;
  font-weight: 800;
}

.shot-legend span { display: inline-flex; align-items: center; gap: 5px; }
.shot-legend i { width: 11px; height: 11px; display: inline-block; border-radius: 50%; }
.shot-legend .is-made { background: #0879c9; border: 2px solid #fff; box-shadow: 0 0 0 1px #0879c9; }
.shot-legend .is-missed { background: #ef623f; border: 2px solid #fff; box-shadow: 0 0 0 1px #ef623f; }

.shot-player-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shot-player-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 12px 4px 5px;
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  background: #fff;
  color: #34445b;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}

.shot-player-tab:hover { transform: translateY(-1px); border-color: #9eb9d5; }
.shot-player-tab[aria-selected="true"] {
  border-color: #075ea9;
  background: #071b34;
  color: #fff;
}

.shot-player-tab img {
  width: 31px;
  height: 31px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
  background: #e9f0f8;
}

.shot-player-tab__stat { opacity: .68; font-size: .68rem; }

.shotchart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 16px;
  align-items: stretch;
}

.shot-court-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(82, 57, 27, .22);
  border-radius: 18px;
  background: #dcae70;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.18), 0 12px 30px rgba(15, 23, 42, .09);
}

.shot-court {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 50 / 47;
  touch-action: manipulation;
}

.court-wood { fill: #e7bd82; }
.court-plank { stroke: rgba(91, 53, 17, .09); stroke-width: .7; }
.court-line { fill: none; stroke: rgba(54, 35, 19, .72); stroke-width: 2.1; vector-effect: non-scaling-stroke; }
.court-dashed { stroke-dasharray: 7 6; }
.court-fill { fill: rgba(255,255,255,.13); stroke: rgba(54, 35, 19, .72); stroke-width: 2.1; vector-effect: non-scaling-stroke; }
.court-bbd-line { stroke: rgba(7, 94, 169, .28); stroke-width: 2; vector-effect: non-scaling-stroke; }
.court-logo { opacity: .17; pointer-events: none; }

.shot-point { cursor: pointer; outline: none; }
.shot-point__halo { fill: rgba(255,255,255,.78); stroke: rgba(7,27,52,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.shot-point__mark { stroke: #fff; stroke-width: 1.8; vector-effect: non-scaling-stroke; transition: transform .12s, opacity .12s; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 1px 2px rgba(7,27,52,.32)); }
.shot-point.is-made .shot-point__mark { fill: #0879c9; }
.shot-point.is-missed .shot-point__mark { fill: #ef623f; }
.shot-point:hover .shot-point__mark,
.shot-point:focus .shot-point__mark,
.shot-point.is-active .shot-point__mark { transform: scale(1.42); opacity: 1; }
.shot-point.is-active .shot-point__halo { fill: #fff; stroke: #071b34; stroke-width: 2; }

.shot-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #071b34, #0d3155);
  color: #fff;
}

.shot-detail strong { font-size: 1rem; line-height: 1.2; }
.shot-detail span { margin-top: 6px; color: #b9cce0; font-size: .8rem; line-height: 1.45; }
.shot-detail__result { color: #fff !important; font-size: .68rem !important; font-weight: 950; letter-spacing: .09em; }
.shot-detail__result.is-made { color: #72c8ff !important; }
.shot-detail__result.is-missed { color: #ff8796 !important; }
.shot-detail__meta { color: #d9e8f7 !important; font-weight: 750; }

.free-throw-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f7fafe;
}

.free-throw-strip[hidden] { display: none !important; }
.free-throw-strip__label {
  flex: 0 0 auto;
  color: #0b1930;
  font-size: .78rem;
  font-weight: 900;
}
.free-throw-strip__label span { color: #64748b; font-weight: 750; }
.free-throw-strip__attempts { display: flex; flex-wrap: wrap; gap: 7px; }
.free-throw-attempt {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  font: inherit;
  font-size: .7rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.free-throw-attempt.is-made {
  border: 2px solid #fff;
  background: #0879c9;
  color: #fff;
  box-shadow: 0 0 0 1px #0879c9;
}
.free-throw-attempt.is-missed {
  border: 2px solid #ef233c;
  background: #fff;
  color: #ef233c;
}
.free-throw-attempt:hover,
.free-throw-attempt:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(7,94,169,.16); }

.match-seo-copy {
  margin-top: 18px;
}

.match-seo-copy p {
  max-width: 880px;
  margin: 9px 0 0;
  color: #52637a;
  font-size: .9rem;
  line-height: 1.62;
}

.match-layout,
.match-layout .detail-box,
.match-layout .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.match-layout .detail-box {
  width: 100%;
  overflow: hidden;
}

.match-layout .table-wrap { width: 100%; }

@media (max-width: 700px) {
  body.page-match main { padding-inline: 9px; }
  .nba-match-hero { min-height: 250px !important; margin-top: 12px !important; padding: 70px 20px 25px !important; }
  .nba-match-back { top: 19px; right: 18px; }
  .nba-match-date { flex-wrap: wrap; margin-bottom: 22px; }
  .nba-match-scoreboard { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .nba-match-team,
  .nba-match-team:last-child { display: flex; flex-direction: column; gap: 5px; text-align: center; }
  .nba-match-team-logo { width: 52px; height: 52px; }
  .nba-match-tri { font-size: 21px; }
  .nba-match-teamname { max-width: 105px; font-size: 9px; }
  .nba-match-scores { min-width: 105px; gap: 7px; }
  .nba-match-score { font-size: 42px; }
  .nba-match-sep { font-size: 20px; }
  .match-breadcrumb { margin-top: 10px; }
  .match-page-title { font-size: 1.3rem; }
  .match-header .teams { gap: 8px; }
  .match-header .team { min-width: 0; flex: 1 1 0; }
  .match-header .team-logo { width: 54px; height: 54px; }
  .match-header .team-name { font-size: 12px; }
  .match-header .score { font-size: 25px; white-space: nowrap; }
  .match-table { min-width: 900px; }
  .match-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tl-action-detail { align-items: flex-start; flex-direction: column; gap: 6px; }
  .shot-legend { justify-content: flex-start; }
  .shotchart-layout { grid-template-columns: 1fr; }
  .shot-court-wrap { border-radius: 13px; }
  .shot-detail { min-height: 92px; padding: 13px 15px; }
  .free-throw-strip { align-items: flex-start; flex-direction: column; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-player-tab,
  .shot-point__mark,
  .free-throw-attempt { transition: none; }
}
