/* Player page, sections below the top. Loads after tokens.css and player-top.css. */

.band { padding-top: 64px; }
.band + .band { padding-top: var(--section-gap); }

.ladder { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ladder .display { margin-top: 48px; }
.ladder .body { margin-top: 24px; max-width: 720px; }
.ladder + .cards, .ladder + .card { margin-top: 64px; }

.cards { display: grid; gap: 24px; }
.cards.wide-narrow { grid-template-columns: 2fr 1fr; }
.cards.narrow-wide { grid-template-columns: 1fr 2fr; }
.cards.halves { grid-template-columns: 1fr 1fr; }
.cards.thirds { grid-template-columns: 1fr 1fr 1fr; }

.card-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.card-title .caption { margin-left: auto; text-align: right; }
.card .card-heading + .body { margin-top: 8px; }

/* Tables on paper */
.data { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; line-height: 1.4; }
.data th, .data td { height: 44px; padding: 0 8px; border-bottom: 1px solid var(--hairline); text-align: left; font-weight: 400; vertical-align: middle; }
.data th { color: var(--graphite); font-size: 14px; }
.data th:first-child, .data td:first-child { padding-left: 0; }
.data th:last-child, .data td:last-child { padding-right: 0; }
.data td { color: var(--graphite); }
.data td:first-child { color: var(--ink); }
.data th.num, .data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data td.num { white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data .tbd { line-height: 1.4; }
.table-note { margin-top: 16px; }
.table-wrap { overflow-x: auto; }

/* Definition rows (season lines, academics, contact) */
.rows { margin-top: 16px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; height: 44px; border-bottom: 1px solid var(--hairline); }
.row:last-child { border-bottom: 0; }
.row .k { font-size: 16px; color: var(--ink); }
.row .v { font-size: 16px; color: var(--graphite); font-variant-numeric: tabular-nums; text-align: right; }
.row .v a { color: var(--ink); }

/* Stat tiles on paper */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.tile-grid .tile { width: auto; padding: 20px 24px; }

/* Video */
.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-panel); overflow: hidden; background: var(--panel); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-caption { margin-top: 12px; }
.video-stack { display: grid; gap: 16px; align-content: start; }
.video-slot { background: var(--panel); border-radius: var(--radius-panel); padding: 20px 24px; }
.video-slot .ui { color: var(--ink); display: block; }
.video-slot .caption { display: block; margin-top: 2px; }

/* Scouting */
.quote { font-size: 26px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.quote-attr { margin-top: 12px; }
.quote-attr a { color: var(--ink); }
.notes { margin: 24px 0 0; padding-left: 20px; color: var(--graphite); font-size: 18px; line-height: 1.5; }
.notes li + li { margin-top: 8px; }

/* Timeline */
.timeline { margin-top: 0; }
.timeline .row { height: auto; min-height: 44px; padding: 10px 0; justify-content: flex-start; gap: 32px; }
.timeline .d { width: 120px; flex: none; font-size: 16px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.timeline .e { font-size: 16px; color: var(--ink); }
.timeline .e a { color: var(--ink); }

/* Contact */
.contact-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.contact-actions .btn-secondary { background: var(--panel); }

/* Footer */
.footer { margin-top: var(--section-gap); padding: 48px 0 64px; }
.footer .container { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer .links a { font-size: 14px; color: var(--graphite); }
.footer .updated { margin-left: auto; }

/* Narrow screens */
@media (max-width: 720px) {
  .band { padding-top: 0; }
  .band + .band, .frame-wrap + .band { padding-top: var(--section-gap); }
  .ladder .display { margin-top: 20px; line-height: 1.15; }
  .ladder .body { margin-top: 12px; }
  .ladder + .cards, .ladder + .card { margin-top: 24px; }
  .cards { gap: 12px; }
  .cards.wide-narrow, .cards.narrow-wide, .cards.halves, .cards.thirds, .video-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile-grid .tile { padding: 14px 16px; }
  .data { font-size: 14px; }
  .data th, .data td { padding: 0 6px; height: 36px; }
  .card .card-heading + .body { margin-top: 4px; }
  .quote { font-size: 20px; line-height: 1.3; }
  .quote-attr { margin-top: 8px; }
  .notes { font-size: 15px; line-height: 1.4; margin-top: 12px; padding-left: 18px; }
  .notes li + li { margin-top: 6px; }
  .timeline .row { gap: 16px; padding: 8px 0; }
  .timeline .d { width: 72px; font-size: 14px; }
  .timeline .e { font-size: 15px; line-height: 1.35; }
  .rows { margin-top: 8px; }
  .row { height: auto; min-height: 40px; padding: 5px 0; align-items: center; }
  .row .k, .row .v { font-size: 15px; line-height: 1.3; }
  .row .k { flex: none; white-space: nowrap; }
  .contact-actions { margin-top: 16px; flex-direction: column; }
  .contact-actions .btn { width: 100%; max-width: 320px; }

  /* Footer: one column, 44px tap targets */
  .footer { padding: 24px 0 32px; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
  .footer .links { flex-direction: column; gap: 0; width: 100%; }
  .footer .links a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
  .footer .updated { margin-left: 0; }
}
