.live-page { min-height: 100vh; background: #edf1f7; }
.live-hero { padding: 3rem max(1.25rem, calc((100vw - 1440px) / 2)); display: flex; justify-content: space-between; align-items: end; gap: 2rem; background: linear-gradient(120deg, #061d49, #083678); color: #fff; border-bottom: 5px solid #e20b22; }
.live-hero h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; }
.live-hero p { margin: .7rem 0 0; }
.freshness { padding: .65rem 1rem; border: 1px solid #ffffff55; border-radius: 999px; background: #ffffff14; font-weight: 800; }
.live-shell { max-width: 1440px; margin: auto; padding: 1.25rem; }
.live-controls { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid #d7deea; border-radius: .7rem; }
.filter-pills { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1rem 0; }
.filter-pills button { border-radius: 999px; font-weight: 800; }
.filter-pills .active { background: #082b68; border-color: #082b68; color: #fff; }
.live-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.live-summary div { padding: 1rem; background: #fff; border: 1px solid #d7deea; border-radius: .65rem; }
.live-summary strong { display: block; color: #082b68; font-size: 1.55rem; }
.live-board { background: #fff; border: 1px solid #d7deea; border-top: 4px solid #082b68; border-radius: .7rem; overflow: hidden; }
.live-status { padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #526174; }
.board-meta-left, .activity-legend { display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.table-wrap { overflow-x: clip; }
.live-table { width: 100%; min-width: 0; table-layout: fixed; }
.live-table :is(th, td):nth-child(1) { width: 3.2rem; }
.live-table :is(th, td):nth-child(2) { width: 3.8rem; }
.live-table :is(th, td):nth-child(3) { width: clamp(9rem, 15vw, 13rem); }
.live-table :is(th, td):nth-child(4) { width: 5rem; }
.live-table :is(th, td):nth-child(5) { width: 5.2rem; }
.live-table :is(th, td):nth-child(7) { width: 8rem; }
.live-table th { position: sticky; top: 0; background: #f6f8fb; z-index: 2; }
.live-table td, .live-table th { padding: .65rem; border-bottom: 1px solid #e2e6ed; text-align: left; }
.competitor { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; padding: .2rem 0; border: 0; background: transparent; color: inherit; text-align: left; }
.competitor:hover strong { color: #0b58a2; text-decoration: underline; text-underline-offset: .18rem; }
.competitor:focus-visible { outline: 3px solid #e20b22; outline-offset: 2px; border-radius: .2rem; }
.competitor-country { color: #526174; font-size: .72rem; font-weight: 500; line-height: 1; }
.mobile-column-headings { display: none; }
.favorite { width: 2rem; height: 2rem; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #98a2b3; font-size: 1.25rem; }
.favorite.selected { border-color: #e3ad13; background: #fff4c9; color: #c98c00; }
.favorite-row { background: #fff9e8; box-shadow: inset 4px 0 #e3ad13; }
.shooting-now { background: #fff0ed; box-shadow: inset 4px 0 #ef3e36; }
.shooting-next { background: #edf4ff; box-shadow: inset 4px 0 #3976df; }
.stage-strip { display: flex; align-items: flex-end; gap: 3px; width: 100%; min-width: 0; height: 44px; }
.stage-bar { display: block; flex: 1 1 0%; width: 0; min-width: 2px; height: 44px; overflow: hidden; padding: 0; border-radius: 3px; }
.stage-bg { fill: #e5eaf1; }
.stage-fill { fill: #dce3ec; }
.stage-bar.blue .stage-fill { fill: #2d4598; }
.stage-bar.yellow .stage-fill { fill: #d6a40d; }
.stage-bar.red .stage-fill { fill: #ef3e36; }
.stage-best { fill: none; stroke: #071a3e; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.stage-bar:focus-visible { outline: 3px solid #e20b22; outline-offset: 2px; }
.rank { font-weight: 900; color: #082b68; }
.flag { font-size: 1.25rem; }
.source-note { color: #526174; font-size: .85rem; margin: 1rem 0; }
.empty { padding: 2rem; text-align: center; }
.sr-detail { font-size: .78rem; color: #526174; }
.live-table tr:hover { background: #f7f9fc; }
.hit-legend, .activity-legend { font-size: .78rem; }
.hit-legend { display: inline-flex; align-items: center; gap: .35rem; }
.hit-legend i, .activity-legend i { width: .75rem; height: .75rem; border-radius: 2px; }
.hit-legend .blue { background: #2d4598; }
.hit-legend .yellow { background: #d6a40d; }
.hit-legend .red { background: #ef3e36; }
.activity-legend .red { background: #ef3e36; }
.activity-legend .blue { background: #3976df; }
.rank-chart-row > td { padding: 0; background: #edf4ff; }
.inline-rank-chart { padding: .75rem 1.25rem .85rem; border-block: 1px solid #b9cce8; box-shadow: inset 4px 0 #0b58a2; }
.inline-rank-chart header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.inline-rank-chart header div { display: flex; align-items: baseline; gap: .65rem; color: #082b68; }
.inline-rank-chart header strong { font-size: 1.1rem; }
.inline-rank-chart header span { color: #526174; font-size: .8rem; }
.inline-rank-chart header button, .close-charts { padding: .4rem .7rem; background: #fff; color: #082b68; }
.rank-progress-chart { display: block; width: 100%; height: clamp(11rem, 18vw, 14rem); }
.rank-chart-grid { stroke: #d7deea; stroke-width: 1; }
.rank-chart-line { fill: none; stroke: #0b58a2; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rank-chart-dot { fill: #0b58a2; stroke: #fff; stroke-width: 3; }
.rank-chart-final { fill: #e20b22; stroke: #fff; stroke-width: 3; }
.rank-chart-dot.is-selected, .rank-chart-final.is-selected,
.rank-chart-dot:focus-visible, .rank-chart-final:focus-visible { stroke: #e3ad13; stroke-width: 5; }
.rank-chart-axis, .rank-chart-axis-title, .rank-chart-value, .rank-chart-stage { fill: #526174; font-size: .78rem; }
.rank-chart-axis-title { font-weight: 800; }
.rank-chart-value, .rank-chart-stage { fill: #082b68; font-weight: 900; }
.rank-chart-detail { flex: 1 1 auto; min-width: 0; margin: 0; color: #082b68; font-size: .86rem; font-weight: 800; text-align: center; }
.rank-chart-fallback { margin: .75rem 0 0; padding: .55rem .75rem; border: 1px solid #e3ad13; border-radius: .35rem; background: #fff9e8; color: #6e5100; font-size: .82rem; font-weight: 800; text-align: center; }
.rank-chart-empty { margin: 0; padding: 2rem; text-align: center; color: #526174; }
@media (max-width: 900px) { .live-controls { grid-template-columns: 1fr 1fr; } .live-summary { grid-template-columns: 1fr 1fr; } .live-hero { align-items: start; flex-direction: column; } }
@media (max-width: 560px) { .live-controls { grid-template-columns: 1fr; } .live-summary { grid-template-columns: 1fr 1fr; } .live-hero { padding-block: 2rem; } }
@media (max-width: 760px) {
  .live-status { align-items: flex-start; flex-direction: column; }
  .table-wrap { overflow: visible; }
  .live-table, .live-table tbody { display: block; width: 100%; box-sizing: border-box; }
  .live-table thead { display: none; }
  .mobile-column-headings { display: grid; grid-template-columns: 2.25rem 2.5rem minmax(0, 1fr) 3.8rem 5rem 3.5rem; gap: .35rem; padding: .55rem 1.4rem; background: #f6f8fb; color: #526174; font-size: .68rem; font-weight: 800; }
  .mobile-stage-heading { grid-column: 1 / -1; padding-top: .25rem; border-top: 1px solid #d7deea; }
  .live-table tbody { padding: .65rem; background: #edf1f7; }
  .live-table tr { display: grid; width: 100%; box-sizing: border-box; grid-template-columns: 2.25rem 2.5rem minmax(0, 1fr) 3.8rem 5rem 3.5rem; align-items: center; gap: .35rem; margin-bottom: .65rem; padding: .75rem; border: 1px solid #d7deea; border-radius: .65rem; background: #fff; }
  .live-table tr.shooting-now { background: #fff0ed; }
  .live-table tr.shooting-next { background: #edf4ff; }
  .live-table tr.favorite-row { background: #fff9e8; }
  .live-table tr.rank-chart-row { display: block; margin-top: -.65rem; padding: 0; background: #edf4ff; }
  .live-table tr.rank-chart-row > td { display: block; width: 100%; }
  .live-table td, .live-table :is(th, td):nth-child(n) { width: auto; padding: 0; border: 0; }
  .live-table td:nth-child(6) { grid-column: 1 / -1; grid-row: 2; min-width: 0; padding-top: .55rem; }
  .live-table td:nth-child(7) { grid-column: 6; grid-row: 1; text-align: right; }
  .live-table .competitor { gap: .15rem; }
  .live-table .sr-detail { display: inline; margin-left: .2rem; }
  .stage-strip, .stage-bar { height: 52px; }
}
@media (max-width: 520px) {
  .public-nav .brand { min-width: 0; overflow: hidden; }
  .public-nav .brand span { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; }
  .public-nav .nav-action { width: auto; flex: 0 0 auto; padding: .45rem .6rem; font-size: .68rem; }
  .live-table tr { grid-template-columns: 1.6rem 1.8rem minmax(0, 1fr) 2.65rem 3.35rem 2.65rem; gap: .15rem; padding: .65rem .45rem; }
  .mobile-column-headings { grid-template-columns: 1.6rem 1.8rem minmax(0, 1fr) 2.65rem 3.35rem 2.65rem; gap: .15rem; padding-inline: 1.1rem; }
  .live-table td { font-size: .78rem; }
  .live-table .sr-detail { display: block; margin: 0; font-size: .68rem; }
  .inline-rank-chart { padding-inline: .65rem; }
  .inline-rank-chart header { align-items: flex-start; flex-wrap: wrap; gap: .45rem .75rem; }
  .inline-rank-chart header .rank-chart-detail { order: 3; flex-basis: 100%; }
  .rank-progress-chart { height: 11rem; }
}
