:root {
  /* RallyReel light look (Oct 2026). Brand red = MKM Courtside Labs crimson #C8102E. */
  --navy: #003080; --navy-900: #0E2457; --navy-600: #1E4FA8; --navy-500: #3A6BC8;
  --navy-100: #DFE8F9; --navy-50: #F0F4FC;
  --red: #D6243F;        /* red-500: primary fills (white text 5.0:1) */
  --red-600: #C8102E;    /* MKM brand red: small red text on white (5.9:1) */
  --red-700: #A00D25; --red-400: #DB6477; --red-100: #F7DEE2; --red-50: #FCF1F2;
  --orange: var(--red);
  --ink: #13213F; --muted: #4A5874; --muted-2: #8492AB;
  --paper: #F4F7FC; --card: #fff; --surface-2: #F8FAFE; --line: #E4EAF4;
  --ok: #0E7A4D; --ok-50: #E6F7EF; --amber-400: #FFC93C; --amber-50: #FFF7E0; --amber-700: #8A5A00;
  --panel: var(--navy-50);
  --r-sm: 14px; --r-md: 20px; --r-lg: 28px;
  --sh-1: 0 1px 2px rgba(19,33,63,.06), 0 1px 3px rgba(19,33,63,.05);
  --sh-2: 0 2px 6px rgba(19,33,63,.05), 0 10px 24px rgba(19,33,63,.08);
  --sh-3: 0 6px 14px rgba(19,33,63,.08), 0 24px 48px rgba(19,33,63,.14);
  --sh-red: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 16px rgba(214,36,63,.32);
  --sh-navy: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px rgba(30,79,168,.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}
a { color: var(--orange); }
.brandbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .45rem 1rem;
}
.brandbar-inner { max-width: 1180px; margin: 0 auto; }
.brandbar a.logo { display: inline-block; }
.brandbar img.wordmark {
  height: 44px; width: auto; max-width: min(280px, 70vw); display: block;
}
.identity { max-width: 1180px; margin: .9rem auto 0; padding: 0 1.2rem; }
.identity h1 { margin: 0; font-size: 1.45rem; color: var(--navy); }
.identity .sub { color: var(--muted); margin: .2rem 0 0; }
.shell { max-width: 1180px; margin: 0 auto; padding: .55rem .7rem 4.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; align-items: center; }
.filters select, .chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .4rem .8rem; font-weight: 700; font-size: .8rem; cursor: pointer; font-family: inherit;
}
.chip.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.15rem; align-items: start; }
.watch {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, .72fr);
  grid-template-areas: "stage rail" "tools rail";
  gap: .85rem 1rem;
  align-items: start;
}
.player-stage {
  grid-area: stage;
  background: #0b1020; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  position: sticky; top: .6rem; box-shadow: 0 10px 28px rgba(16,32,68,.07);
}
.stage-tools {
  grid-area: tools;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .45rem .6rem .55rem; box-shadow: 0 8px 22px rgba(16,32,68,.05);
}
.rail-col { grid-area: rail; min-width: 0; }
#stage-video {
  width: 100%; aspect-ratio: 16/9; max-height: min(52vh, 640px);
  background: #0b1020; object-fit: contain; display: block;
}
.frame-guide {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3; touch-action: none; pointer-events: none;
}
.frame-window {
  position: absolute; top: 0; left: 34.1796875%; width: 31.640625%; height: 100%;
  border: 2px solid #fff; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(6, 14, 36, .48);
  background: transparent; color: #fff; font: inherit; font-weight: 800;
  font-size: .72rem; letter-spacing: .04em; cursor: move;
  pointer-events: auto; padding: .35rem 0 0;
  display: flex; align-items: flex-start; justify-content: center;
}
.circle-guide {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5; touch-action: none; pointer-events: none;
}
.player-mark {
  position: absolute; width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid var(--orange); box-shadow: 0 0 0 2px #fff;
  transform: translate(-50%, -50%); pointer-events: auto; cursor: grab; z-index: 5;
}
.player-mark span {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--navy); color: #fff; font-weight: 800; font-size: .72rem;
  border: 2px solid #fff; border-radius: 999px; padding: .1rem .42rem; white-space: nowrap;
}
.point-guide {
  position: absolute; left: 0; right: 0; top: 0; bottom: 48px; z-index: 4;
  background: transparent; border: 0; padding: 0; margin: 0;
  cursor: crosshair; touch-action: none;
}
.court-arrow {
  position: absolute; width: 36px; height: 48px; z-index: 7;
  pointer-events: none; overflow: visible;
  transform: translate(-50%, -100%);
}
.court-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.build-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: .8rem;
  align-items: start;
}
.preview-stage { position: relative; background: #0b1020; }
.preview-stage video {
  width: 100%; max-height: min(46vh, 420px); background: #0b1020;
  display: block; object-fit: contain; aspect-ratio: 16 / 9;
}
.preview-stage video.tall {
  width: auto; max-width: 100%; height: min(62vh, 520px);
  aspect-ratio: 9 / 16; margin: 0 auto;
}
.preview-bar { display: flex; flex-direction: column; gap: .35rem; margin-top: .15rem; }
.preview-bar .primary { width: auto; align-self: flex-start; padding: .6rem 1rem; }
.mark-check {
  display: flex; gap: .45rem; align-items: center; margin: .55rem 0 .15rem;
  color: var(--navy); font-size: .82rem; font-weight: 800;
}
.mark-check input { width: auto; margin: 0; }
.frame-hint { margin: .35rem 0 0; }
.frame-tools { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .35rem; }
.frame-tools input[type="range"] { width: 110px; accent-color: var(--orange); }
.frame-tools .zoom-read { font-size: .75rem; font-weight: 800; color: var(--navy); min-width: 2.4rem; }
.frame-marks { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.frame-marks button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .2rem .5rem; font: inherit; font-size: .72rem; font-weight: 800;
  color: var(--navy); cursor: pointer;
}
.clip-rail { display: flex; flex-direction: column; gap: .4rem; max-height: calc(100vh - 210px); overflow: auto; }
.rail {
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: .55rem .7rem; cursor: pointer; font-family: inherit; width: 100%;
}
.rail b { display: block; color: var(--navy); font-size: .92rem; }
.rail span { color: var(--muted); font-size: .75rem; }
.rail.on { border-color: var(--orange); background: #fff0f0; }
.rail.picked b { color: var(--orange); }
.clips { display: grid; grid-template-columns: 1fr; gap: 1.15rem; max-width: 640px; }
.clip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16,32,68,.07);
}
.clip.picked { outline: 2px solid var(--orange); }
.vidwrap { background: #0b1020; }
.vidwrap video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #0b1020; }
.hero-band {
  background: linear-gradient(135deg, #002070 0%, #003080 55%, #E10600 160%);
  color: #fff;
  padding: .55rem 0 .6rem;
  margin-top: 0;
}
.hero {
  max-width: 1180px; margin: 0 auto; padding: 0 .9rem;
  display: flex; gap: .7rem; align-items: center;
}
.hero-copy { min-width: 0; flex: 1; }
.hero-mark {
  margin-left: auto; flex: 0 0 auto; background: #fff; border-radius: 12px;
  padding: .2rem .4rem; line-height: 0; display: flex; align-items: center;
}
.hero-mark img { height: 38px; width: auto; display: block; }
.identity.with-mark { display: flex; align-items: center; gap: .85rem; }
.mini-mark { background: #fff; border-radius: 12px; padding: .2rem .4rem; line-height: 0; }
.mini-mark img { height: 44px; width: auto; display: block; }
.stage-tools .match-line { margin: 0 0 .3rem; }
.stage-tools .edit-panel { margin-bottom: 0; }
.hero-copy h1 { margin: 0; font-size: 1.2rem; color: #fff; }
.hero-copy .sub { color: rgba(255,255,255,.78); margin: .1rem 0 .15rem; font-size: .82rem; }
.hero-copy .team {
  margin: 0 0 .15rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #E10600;
}
.hero-photo {
  position: relative; cursor: pointer; flex: 0 0 auto;
}
.hero-photo img, .photo-fallback {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block;
  background: #E10600; color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85);
}
.photo-edit {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  background: #fff; color: var(--navy); font-size: .62rem; font-weight: 800;
  border-radius: 999px; padding: .15rem .45rem; letter-spacing: .04em;
}
.stat-line {
  margin: .15rem 0 0; font-size: .78rem; font-weight: 750; color: rgba(255,255,255,.9);
}
.tabs {
  max-width: 1180px; margin: .4rem auto 0; padding: 0 .9rem;
  display: flex; gap: .35rem;
}
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .45rem .95rem; font-weight: 800; font-size: .85rem;
  cursor: pointer; font-family: inherit;
}
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.meta { padding: .85rem .95rem 1rem; }
.match-line { color: var(--muted); font-size: .88rem; font-weight: 650; margin: 0 0 .7rem; }
.edit-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .75rem .8rem .85rem;
  margin-bottom: .85rem;
}
.times {
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: .45rem;
}
input[type=range] { width: 100%; accent-color: var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; align-items: center; }
.pill {
  border: 1.5px solid var(--navy); cursor: pointer; font-family: inherit; font-weight: 800; font-size: .82rem;
  border-radius: 999px; padding: .48rem .85rem; background: #fff; color: var(--navy);
}
.pill.on { background: #c24a10; color: #fff; border-color: #c24a10; }
.pill.play { background: var(--orange); color: #fff; border-color: var(--orange); margin-left: auto; }
.nudge { background: #fff; color: var(--navy); }
.sec-label { font-size: .78rem; font-weight: 750; color: var(--muted); margin: .75rem 0 .35rem; }
.stars { font-size: 1.35rem; letter-spacing: .08rem; }
.stars button { background: 0; border: 0; color: #5c7196; padding: 0 .08rem; cursor: pointer; font-size: 1.35rem; }
.stars button.on { color: var(--orange); }
.star-note { font-size: .82rem; color: var(--muted); margin-left: .35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.actions button {
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px;
  padding: .42rem .75rem; font-size: .8rem; font-weight: 800; cursor: pointer; font-family: inherit;
}
.actions button.on { background: var(--orange); color: #fff; }
.save {
  width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1rem;
  border-radius: 999px; padding: .85rem 1rem; background: var(--orange); color: #fff; margin-top: .35rem;
}
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .55rem; }
.share-row a, .share-row button {
  text-align: center; text-decoration: none; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 999px; padding: .7rem .6rem; font-weight: 800; font-size: .85rem; cursor: pointer; font-family: inherit;
}
.share-row a.dl { background: var(--orange); color: #fff; border-color: var(--orange); }
.add {
  width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .88rem;
  border-radius: 999px; padding: .7rem .6rem; background: var(--navy); color: #fff; margin-top: .55rem;
}
.add.on { background: var(--orange); }
.dock {
  position: sticky; top: .8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .95rem;
  box-shadow: 0 8px 24px rgba(16,32,68,.06);
}
.dock h3 { margin: 0 0 .35rem; color: var(--navy); }
.hint { color: var(--muted); font-size: .8rem; line-height: 1.4; margin: 0 0 .6rem; }
label.field { display: block; margin: .55rem 0 .15rem; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.music-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: end; }
.music-row .ghost { margin-bottom: .05rem; white-space: nowrap; }
.tool-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tool-row .stars { font-size: 1.15rem; }
.tool-row .stars button { font-size: 1.15rem; }
.tool-row .save, .tool-row .add, .tool-row [data-share] {
  width: auto; flex: 1 1 auto; margin-top: 0; padding: .48rem .6rem; font-size: .8rem;
}
.tool-row [data-share] {
  background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px;
  font-weight: 800; cursor: pointer; font-family: inherit;
}
.inline-field { font-size: .72rem; font-weight: 800; color: var(--navy); }
.inline-field select { margin-left: .25rem; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .4rem; font: inherit; }
input, select.full {
  width: 100%; margin-top: .22rem; background: #fff; border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: .5rem .6rem; font: inherit;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
button.primary, a.dl {
  width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .82rem;
  border-radius: 10px; padding: .55rem .6rem; background: var(--orange); color: #fff; text-align: center; text-decoration: none; display: inline-block;
}
button.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: .45rem .7rem; font-weight: 800; cursor: pointer; font-family: inherit; }
.frame-toggle.on { background: var(--orange); color: #fff; border-color: var(--orange); }
button.danger { background: transparent; color: #b42318; border: 1px solid #f0c2bc; border-radius: 999px; padding: .35rem .6rem; cursor: pointer; font-weight: 800; }
button:disabled { opacity: .55; }
.order { display: flex; gap: .35rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.order span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 2rem .5rem; }
.ok { color: var(--ok); } .warn { color: var(--orange); }
.saved { margin-top: 1.2rem; display: grid; gap: .7rem; max-width: 640px; }
.saved article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.saved video { width: 100%; background: #0b1020; display: block; object-fit: contain; }
.saved video.ar-16-9 { aspect-ratio: 16/9; }
.saved video.ar-9-16 {
  width: auto; max-width: 100%; height: min(72vh, 640px); aspect-ratio: 9/16; margin: 0 auto;
}
.saved .pad { padding: .7rem .8rem .9rem; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--orange); }
.count-pill { background: var(--orange); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: .15rem .5rem; margin-left: .35rem; }
.home-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.2rem; margin-top: .4rem; box-shadow: 0 8px 24px rgba(16,32,68,.06);
}
.row { display: flex; gap: .55rem; margin-top: .55rem; }
.row input { flex: 1; min-width: 0; letter-spacing: .1em; text-transform: uppercase; font-size: 1.05rem; font-weight: 700; }
.steps { display: grid; gap: .75rem; margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: .75rem; }
.n { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
footer.site { max-width: 1180px; margin: 0 auto; padding: 0 1.1rem 2rem; color: var(--muted); font-size: .8rem; }
.msg { font-size: .8rem; margin: .4rem 0 0; min-height: 1.1em; }
@media (max-width: 760px) {
  .brandbar { padding: .25rem .7rem; }
  .brandbar img.wordmark { height: 32px; }
  .hero-band { padding: .3rem 0 .35rem; }
  .hero { gap: .5rem; }
  .hero-copy h1 { font-size: 1.02rem; }
  .hero-photo img, .photo-fallback { width: 44px; height: 44px; font-size: .85rem; }
  .shell { padding: .3rem .4rem .6rem; }
  .stage { grid-template-columns: 1fr; }
  .page-player.fit-highlights { height: auto; overflow: visible; }
  .watch {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: .45rem;
  }
  #stage-video { max-height: 42vh; width: 100%; height: auto; }
  .player-stage { position: relative; top: auto; flex: 0 0 auto; border-radius: 12px; }
  .stage-tools { flex: 0 0 auto; padding: .3rem .4rem .35rem; }
  .edit-panel { padding: .35rem .4rem .4rem; margin-bottom: 0; }
  .rail-col { flex: 0 0 auto; min-height: 240px; display: flex; flex-direction: column; }
  .filters { margin-bottom: .3rem; }
  .clip-rail { max-height: none; flex: 0 0 auto; min-height: 240px; overflow: visible; }
  .clips { max-width: none; }
  .dock { position: static; margin: 0; border-radius: 16px; }
  .hero-mark img { height: 30px; }
  .page-player .shell { padding-bottom: 1.2rem; }
  .page-player.fit-highlights .watch { height: auto; gap: .85rem; }
  .page-player .hero-band,
  .page-player.fit-highlights .hero-band {
    height: 100px; min-height: 100px; max-height: 100px; overflow: hidden;
  }
  .build-wrap { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  .page-player .shell { padding-bottom: .4rem; }
  .page-player.fit-highlights {
    height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
  .page-player.fit-highlights .hero-band {
    flex: 0 0 108px;
    height: 108px;
    min-height: 108px;
    max-height: 108px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
  }
  .page-player.fit-highlights .hero { width: 100%; }
  .page-player.fit-highlights .tabs { flex: none; }
  .page-player.fit-highlights .shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-top: .3rem;
    padding-bottom: .35rem;
  }
  .page-player.fit-highlights #panel-highlights,
  .page-player.fit-highlights #panel-reels,
  .page-player.fit-highlights #panel-build {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
  }
  .page-player.fit-highlights #panel-highlights:not([hidden]),
  .page-player.fit-highlights #panel-reels:not([hidden]),
  .page-player.fit-highlights #panel-build:not([hidden]) {
    display: flex;
  }
  .page-player.fit-highlights [hidden] {
    display: none !important;
  }
  .page-player.fit-highlights #panel-highlights { overflow: hidden; }
  .page-player.fit-highlights #panel-reels,
  .page-player.fit-highlights #panel-build { overflow: auto; }
  .page-player.fit-highlights .watch {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    grid-template-areas: "stage rail" "tools rail" "pad rail";
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: .9rem .7rem;
    align-items: stretch;
    align-content: stretch;
  }
  .page-player.fit-highlights .player-stage {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
  }
  .page-player.fit-highlights #stage-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 300px);
    aspect-ratio: 16 / 9;
    border-radius: 0;
    display: block;
  }
  .page-player.fit-highlights .rail-col {
    min-height: 160px;
    height: auto;
    align-self: stretch;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .page-player.fit-highlights .filters { flex: none; margin-bottom: .3rem; }
  .page-player.fit-highlights .clip-rail {
    flex: 1 1 auto;
    min-height: 160px;
    max-height: none;
    overflow: auto;
  }
}

/* ==========================================================================
   Light look overrides (Oct 2026): borders become shadows, outlines become
   tinted pills, only the primary actions are filled. Behavior unchanged.
   ========================================================================== */
a { color: var(--red-600); }
.brandbar { background: transparent; border-bottom: 0; }
.filters select, .chip {
  border: 0; background: var(--card); color: var(--ink); box-shadow: var(--sh-1);
}
.chip.on { background: var(--navy-900); color: #fff; border-color: transparent; }
.player-stage { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-3); }
.stage-tools { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-2); padding: .65rem .75rem .75rem; }
.frame-marks button { border: 0; background: var(--navy-50); color: var(--navy); }
.rail {
  border: 0; border-radius: 16px; box-shadow: var(--sh-1); padding: .6rem .8rem;
}
.rail b { color: var(--navy-900); }
.rail.on { background: #fff; box-shadow: 0 0 0 2px var(--red-400), var(--sh-2); }
.rail.picked b { color: var(--red-600); }
.clip { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-2); }
.clip.picked { outline: 0; box-shadow: 0 0 0 2px var(--red-400), var(--sh-2); }

/* Player header: airy light header instead of the navy band */
.hero-band { background: transparent; color: var(--ink); padding: .7rem 0 .4rem; }
.hero {
  background: var(--card); border-radius: 22px; box-shadow: var(--sh-2);
  padding: .6rem .8rem; margin: 0 .7rem;
}
@media (min-width: 1200px) { .hero { margin: 0 auto; } }
.hero-copy h1 { color: var(--navy-900); }
.hero-copy .sub { color: var(--muted); }
.hero-copy .team { color: var(--red-600); }
.stat-line { color: var(--navy); }
.hero-mark { background: transparent; padding: 0; }
.hero-photo img, .photo-fallback {
  background: var(--navy-50); color: var(--navy); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--red-400);
}
.photo-edit { box-shadow: var(--sh-1); }

/* Segmented tabs: navy-100 track, white thumb */
.tabs {
  background: var(--navy-100); border-radius: 999px; padding: 4px; gap: 2px;
  width: calc(100% - 1.4rem); max-width: 1180px; margin: .55rem auto 0;
}
@media (min-width: 761px) { .tabs { width: max-content; } }
.tab {
  flex: 1; border: 0; background: transparent; color: var(--navy); border-radius: 999px;
  padding: .45rem 1.1rem; font-weight: 700;
}
.tab.on { background: #fff; color: var(--navy-900); border-color: transparent; box-shadow: var(--sh-1); }

.edit-panel { background: transparent; border: 0; border-radius: var(--r-sm); padding: .2rem 0 .3rem; }
.pill {
  border: 0; background: var(--navy-50); color: var(--navy); font-weight: 700;
}
.pill.on { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.pill.play { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.nudge { background: var(--navy-50); color: var(--navy); }
.stars button { color: var(--muted-2); }
.stars button.on { color: var(--red); }
.actions button { border: 0; background: var(--navy-50); color: var(--navy); }
.actions button.on { background: var(--navy-900); color: #fff; }
.save { background: var(--red); box-shadow: var(--sh-red); transition: transform .12s, box-shadow .12s; }
.add { background: var(--navy-600); box-shadow: var(--sh-navy); transition: transform .12s, box-shadow .12s; }
.add.on { background: var(--red-600); box-shadow: var(--sh-red); }
.save:active, .add:active, button.primary:active, a.dl:active, .pill.play:active { transform: scale(.97); box-shadow: var(--sh-1); }
.share-row a, .share-row button { border: 0; background: var(--navy-50); color: var(--navy); }
.share-row a.dl { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.tool-row [data-share] { border: 0; background: var(--navy-50); color: var(--navy); }
.dock { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-2); }
.dock h3, label.field, .mark-check, .frame-tools .zoom-read, .inline-field { color: var(--navy-900); }
input, select.full, .inline-field select {
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
input:focus, select:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px var(--navy-100); }
button.primary, a.dl { border-radius: 999px; background: var(--red); box-shadow: var(--sh-red); }
button.ghost { border: 0; background: var(--navy-50); color: var(--navy); }
.frame-toggle.on { background: var(--navy-900); color: #fff; border-color: transparent; }
button.danger { background: var(--red-50); color: var(--red-700); border: 0; }
.order { border-bottom: 1px solid var(--line); }
.saved article { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-2); }
.badge { color: var(--red-600); }
.count-pill { background: var(--red); }
.home-card { border: 0; border-radius: 24px; box-shadow: var(--sh-3); }
.n { background: var(--navy-600); }
.warn { color: var(--red-600); }
.times, .clip-time { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .player-stage { border-radius: var(--r-md); }
  .hero { margin: 0 .45rem; }
  .page-player .hero-band,
  .page-player.fit-highlights .hero-band { height: auto; min-height: 0; max-height: none; overflow: visible; }
}
@media (min-width: 761px) {
  .page-player.fit-highlights .hero-band { flex: 0 0 auto; height: auto; min-height: 0; max-height: none; overflow: visible; padding: .6rem 0 .2rem; }
  .page-player.fit-highlights .player-stage { border-radius: var(--r-md); box-shadow: var(--sh-3); }
}
/* Parent page: the "Download clip" link in the clip's match line is an inline link, not the big a.dl button */
.match-line a.dl { display: inline; width: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; color: var(--red); font-size: inherit; text-decoration: underline; }
/* Parent clip editor: Play sits on the In/Out time line instead of wrapping onto a row by itself */
.times-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.times-row .times { margin: 0; }
.times-row .pill.play { margin-left: 0; flex: none; }
