.race-results { max-width: 1000px; margin: 0 auto; padding: 10px 2px 18px; color: var(--text); }
.race-results[hidden], .race-content[hidden] { display: none; }
.result-back { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: #294f72; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.result-back img { width: 16px; height: 16px; transform: rotate(90deg); }
.result-content { display: grid; gap: 12px; }
.result-summary, .result-table-tile { background: var(--panel); border: 1px solid #e7edf4; border-radius: 18px; overflow: hidden; }
.result-summary { --result-heading-inset: 16px; padding: var(--result-heading-inset); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-heading h2 { margin: 0; font-size: clamp(26px, 6.5vw, 36px); font-weight: 850; line-height: 1.2; letter-spacing: -.8px; }
.result-heading p { color: #667da5; font-weight: 600; margin: 4px 0 10px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.result-badge { transform: translateY(calc(var(--result-heading-inset) / -2)); border-radius: 24px; background: rgba(var(--green-rgb), .12); color: var(--green); padding: 5px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; margin-top: 0; display: flex; align-items: center; gap: 5px; }
.result-badge img { width: 16px; height: 16px; filter: url(#ui-green); }
.result-badge.result-in-progress { background: var(--red); color: #fff; }
.result-metrics { display: grid; grid-template-columns: 1fr 1.15fr .8fr; padding-top: 12px; border-top: 1px solid #edf2f8; }
.result-metrics > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0 12px; border-left: 1px solid #edf2f8; }
.result-metrics > div:first-child { padding-left: 0; border-left: 0; }
.result-metrics > div:last-child { padding-right: 0; }
.result-metrics > div:nth-child(n+2) { gap: 13px; }
.result-metrics > div > span { color: #667da5; font-size: 12px; }
.result-metrics > div > :last-child { align-self: center; text-align: center; }
.result-metrics strong { font-size: 17px; line-height: 1.3; }
.result-metrics .result-best { font-size: clamp(26px, 8vw, 38px); font-weight: 850; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.result-athlete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dfe5eb; background: #fff; padding: 2px; box-sizing: border-box; object-fit: cover; flex: none; }
.result-avatar { cursor: zoom-in; }
.athlete-photo-preview { position: fixed; z-index: 1000; overflow: hidden; border-radius: 50%; background: var(--panel); box-shadow: var(--tile-shadow); pointer-events: none; }
.athlete-photo-preview[hidden] { display: none; }
.athlete-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-flag { width: 20px; height: 16px; object-fit: contain; flex: none; }
.result-identity { min-width: 0; }
.result-identity strong { display: block; font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; }
.result-metrics .result-athlete { align-items: flex-start; gap: 6px; margin-top: 3px; }
.result-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.result-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.result-table th { color: #667da5; font-size: 12px; font-weight: 500; text-align: left; padding: 12px 6px; }
.result-table th:first-child { width: 11%; text-align: center; }
.result-table th:nth-child(2) { width: 46%; }
.result-table th:nth-child(3) { width: 23%; text-align: center; }
.result-table th:last-child { width: 20%; text-align: center; }
.result-table td { padding: 7px 6px; border-top: 1px solid #edf2f8; height: 48px; }
.result-table tr:nth-child(even) { background: #f3f8fd; }
.result-place, .result-value, .result-gap { text-align: center; }
.result-place { font-size: 18px; font-weight: 700; }
.result-value { font-size: 15px; font-weight: 650; white-space: nowrap; }
.result-gap { color: #000; font-size: 13px; white-space: nowrap; }
.result-crown { width: 24px; height: 24px; display: block; margin: auto; filter: brightness(0); }
.result-table tbody { color: #000; }
.result-table .result-own, .result-own .result-gap { color: var(--green); }
.result-empty, .result-status { padding: 16px; margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 360px) { .result-summary { --result-heading-inset: 12px; } .result-metrics > div { padding: 0 8px; } .result-avatar { width: 26px; height: 26px; } .result-athlete { gap: 4px; } .result-flag { font-size: 16px; } .result-identity strong { font-size: 12px; } .result-value { font-size: 13px; } .result-gap { font-size: 11px; } .result-badge { font-size: 10px; padding: 5px 7px; } }
@media (orientation: landscape) { .result-metrics > div:nth-child(2) .result-identity strong { font-size: 17px; } .result-metrics > div:nth-child(2) > strong, .result-metrics > div:nth-child(3) > strong { font-size: 20px; } }
:root[data-theme="dark"] .result-summary, :root[data-theme="dark"] .result-table-tile, :root[data-theme="dark"] .result-table td, :root[data-theme="dark"] .result-metrics, :root[data-theme="dark"] .result-metrics > div { border-color: var(--line); }
:root[data-theme="dark"] .result-table tbody { background: #fff; }
:root[data-theme="dark"] .result-table tr:nth-child(even) { background: #f3f8fd; }
:root[data-theme="dark"] .result-heading p, :root[data-theme="dark"] .result-back, :root[data-theme="dark"] .result-metrics > div > span, :root[data-theme="dark"] .result-table th { color: #a4b7d6; }
