/* Figma 1314:3266: player chrome around the existing two-camera still. */
.coaching-player { --player-amber: #b87a3d; --coach-note-width: min(43cqw, 320px); container-type: inline-size; overflow: visible; background: var(--ink); }
.coaching-player-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; background: #1e293bb8; }
.coaching-player-movement { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coaching-player-back { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.coaching-player-back img { width: 16px; height: 16px; }
.coaching-player-badge { flex: none; padding: 3px 10px; border: 2px solid var(--ink); background: #fff; box-shadow: 2px 2px 0 var(--ink); color: var(--ink); font: 10px/14px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.coaching-player-scheme { display: flex; color: #fff; font: 500 12px/20px var(--mono); letter-spacing: -.5px; white-space: nowrap; }
.coaching-player-scheme > span:first-child { color: var(--player-amber); }
.coaching-player-scheme > span:last-child { opacity: .38; }
.coaching-player-scene { position: relative; }
.coaching-player-controls { padding: 10px 12px 6px; background: #1e293bb8; }
.coaching-player-readout { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--pale); font: 12px/16px var(--mono); letter-spacing: -.5px; }
.coaching-player-readout > span:first-child { color: #fff; font-weight: 500; }
.coaching-player-readout > span:nth-child(2) { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.coaching-player-readout b { font-weight: 500; color: #fff; }
.coaching-player-timeline { position: relative; height: 30px; }
.coaching-player-track, .coaching-player-progress { position: absolute; top: 16px; left: 0; height: 4px; background: #fff; }
.coaching-player-track { width: 100%; opacity: .22; }
.coaching-player-progress { width: 29.032%; }
.coaching-player-ticks i { position: absolute; top: 8px; left: var(--tick); width: 1.5px; height: 5px; background: #fff; opacity: .8; }
.coaching-player-ticks .is-current { top: 5px; width: 2px; height: 8px; opacity: 1; background: var(--player-amber); }
.coaching-player-ticks .is-future { opacity: .35; }
.coaching-player-thumb { position: absolute; top: 12.5px; left: calc(29.032% - 5.5px); width: 11px; height: 11px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 1px 1px 0 var(--mid); }
.coaching-player-transport { display: grid; grid-template-columns: 1fr 1fr .9fr 1fr 1fr; align-items: center; min-height: 45px; color: var(--ink); font: 9px/14px var(--mono); letter-spacing: .5px; text-transform: uppercase; text-align: center; }
.coaching-player-transport > span { display: flex; align-items: center; justify-content: center; height: 31px; border: 1px solid var(--ink); border-right: 0; background: #fff; white-space: nowrap; }
.coaching-player-transport > span:last-child { border-right: 1px solid var(--ink); }
.coaching-player-transport > .coaching-player-pause { height: 40px; gap: 6px; color: #fff; background: var(--ink); }
.coaching-player-pause img { flex: none; width: 24px; height: 24px; }

/* A pinned note, with its endpoint on the left athlete's torso. */
.coaching-annotation { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.coaching-annotation-target { position: absolute; top: 58%; left: 28%; width: 12px; height: 12px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--player-amber); box-shadow: 0 0 0 5px #b87a3d40; }
.coaching-annotation-line { position: absolute; left: 28%; top: 102px; width: calc(72% - var(--coach-note-width) - 20px); height: calc(58% - 102px); overflow: visible; fill: none; stroke: var(--paper); stroke-width: 1; }
.coaching-comment { position: absolute; top: 20px; right: 20px; width: var(--coach-note-width); padding: 18px 20px 20px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 #1e293b99, 0 8px 22px #0003; color: var(--ink); animation: coaching-note-in .3s var(--ease) both; }
.coaching-comment::before { content: ''; position: absolute; left: -7px; top: 76px; width: 12px; height: 12px; border: solid var(--ink); border-width: 0 0 1px 1px; background: var(--paper); transform: rotate(45deg); }
.coaching-comment-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--secondary); font: 9px/14px var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.coaching-comment .coaching-comment-praise { color: var(--ink); font: 500 clamp(17px, 2.2cqw, 20px)/1.25 var(--body); letter-spacing: -.2px; }
.coaching-comment .coaching-comment-next { margin-top: 12px; padding-top: 12px; border-top: 1px solid #94a3b859; color: var(--copy); font: 14px/1.5 var(--body); }
@keyframes coaching-note-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@container (max-width: 430px) {
  .coaching-player-header { padding-inline: 8px; gap: 6px; }
  .coaching-player-movement { gap: 6px; }
  .coaching-player-badge { padding-inline: 7px; font-size: 9px; letter-spacing: 1px; }
  .coaching-player-scheme { font-size: 10px; }
  .coaching-player-controls { padding-inline: 8px; }
  .coaching-player-transport { font-size: 8px; letter-spacing: 0; }
  .coaching-player-pause > span { display: none; }
  .coaching-player-readout { font-size: 10px; }
  .coaching-player-readout > span:nth-child(2) { font-size: 8px; letter-spacing: .6px; }
  .coaching-player-scene { display: flex; flex-direction: column; }
  .coaching-player .replay-crop { order: 2; }
  .coaching-annotation { display: contents; }
  .coaching-comment { position: relative; z-index: 1; order: 1; top: auto; right: auto; margin: 10px 12px -8px auto; width: calc(100% - 48px); max-width: 300px; padding: 13px 15px; }
  .coaching-comment::before { top: auto; bottom: -7px; left: calc(100% - 72cqw + 6px); transform: rotate(-45deg); }
  .coaching-comment-meta { margin-bottom: 8px; font-size: 8px; }
  .coaching-comment .coaching-comment-praise { font-size: 15px; line-height: 1.3; }
  .coaching-comment-praise br { display: none; }
  .coaching-comment .coaching-comment-next { margin-top: 8px; padding-top: 8px; font-size: 12px; line-height: 1.45; }
  .coaching-annotation-target { z-index: 1; top: auto; bottom: 19.015cqw; transform: translate(-50%, 50%); }
  .coaching-annotation-line { z-index: 1; top: auto; bottom: 19.015cqw; width: 1px; height: 26.258cqw; }
}
@container (max-width: 330px) {
  .coaching-player-scheme { font-size: 9px; }
}
@media (max-width: 900px) {
  .coaching-story { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .coaching-player-stage, .coaching-steps { grid-column: auto; grid-row: auto; }
  .coaching-player-stage { width: 100%; max-width: 800px; margin-inline: auto; }
  .coaching-steps { max-width: 540px; }
  .coaching-step { padding-block: 0 36px; }
  .coaching-step .workflow-kicker { margin-bottom: 14px; }
  .coaching-step h3 { font-size: 30px; }
  .coaching-step .coaching-step-copy { margin-top: 14px; }
  .coaching-steps li:last-child .coaching-step { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coaching-comment { animation: none; }
  .coaching-step::before { transition: none; }
}
