/* ═══ Motion Lab — complete analysis report modal ═══ */

.modal-backdrop--motion-report {
    z-index: 1250;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.modal-backdrop--motion-report.open {
    opacity: 1;
}

.modal-card--motion-report {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    background: linear-gradient(165deg, #0f172a 0%, #020617 52%, #0c1222 100%);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.modal-card--motion-report .modal-header {
    flex-shrink: 0;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
}

.modal-card--motion-report .modal-title {
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.modal-card--motion-report .modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 24px;
    position: relative;
}

#jumpMotionReportBody {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: min(1200px, 100%);
    margin: 0 auto;
    width: 100%;
}

/* ── Tooltip ── */
.motion-report__tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ── Overview ── */
.motion-report__overview {
    padding: 16px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.motion-report__athlete {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.motion-report__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.motion-report__chip {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.28);
}

.motion-report__chip--muted {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.22);
}

.motion-report__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.motion-report__stats--main {
    grid-template-columns: repeat(2, 1fr);
}

.motion-report__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.motion-report__stat--accent {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}

.motion-report__stat--accent .motion-report__stat-val {
    color: #22d3ee;
}

.motion-report__stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.15;
}

.motion-report__stat-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ── Sections ── */
.motion-report__section-title {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

.motion-report__section-hint,
.motion-report__hint {
    margin: 0 0 10px;
    font-size: 0.68rem;
    color: #64748b;
}

.motion-report__section--chart {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(0, 102, 255, 0.06) 0%, rgba(30, 41, 59, 0.38) 55%, rgba(10, 14, 26, 0.5) 100%);
    border: 1px solid rgba(0, 217, 255, 0.1);
}

/* ── Jump heights — Sportify cyan / electric blue ── */
.motion-report__section--heights {
    padding: 14px 16px 12px;
    --hcol-cyan: var(--primary-cyan, #00d9ff);
    --hcol-cyan-soft: #67e8f9;
    --hcol-blue: var(--electric-blue, #0066ff);
    --hcol-blue-deep: var(--electric-blue-dark, #0052cc);
    --hcol-track-bg: linear-gradient(180deg, rgba(0, 102, 255, 0.1) 0%, rgba(10, 14, 26, 0.82) 100%);
    --hcol-track-border: rgba(0, 217, 255, 0.14);
    --hcol-glow: var(--glow-cyan, rgba(0, 217, 255, 0.35));
}

.motion-report__heights-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.motion-report__heights-title-wrap {
    min-width: 0;
}

.motion-report__heights-head .motion-report__section-title {
    margin: 0 0 4px;
}

.motion-report__heights-hint {
    margin: 0;
    font-size: 0.65rem;
    color: #64748b;
}

.motion-report__heights-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.motion-report__heights-pill {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
    white-space: nowrap;
}

.motion-report__heights-pill--best {
    color: var(--hcol-cyan, #00d9ff);
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.28);
}

.motion-report__heights-pill--flight {
    color: #7dd3fc;
    background: rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.28);
}

.motion-report__heights-chart {
    position: relative;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.motion-report__heights-chart::before,
.motion-report__heights-chart::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.motion-report__heights-chart::before {
    left: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), transparent);
}

.motion-report__heights-chart::after {
    right: 0;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.96), transparent);
}

.motion-report__heights-chart.is-scroll-left::before,
.motion-report__heights-chart.is-scroll-right::after {
    opacity: 1;
}

.motion-report__heights-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.motion-report__heights-grid {
    display: grid;
    grid-template-columns: repeat(var(--jump-count, 1), minmax(58px, 1fr));
    gap: 10px;
    width: 100%;
    align-items: end;
    padding: 2px 4px;
}

.motion-report__heights-grid--scroll {
    grid-template-columns: repeat(var(--jump-count, 1), minmax(var(--hcol-min, 64px), 1fr));
    min-width: 100%;
    width: max(100%, calc(var(--jump-count, 1) * var(--hcol-min, 56px)));
}

.motion-report__hcol {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    min-height: 284px;
    padding: 4px 3px 0;
    border-radius: 12px;
    border: 1px solid transparent;
    overflow: hidden;
}

.motion-report__hcol:focus-visible {
    outline: none;
}

.motion-report__hcol-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
}

.motion-report__hcol-flight-label {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    line-height: 1;
}

.motion-report__hcol-ms {
    font-size: clamp(0.7rem, 1.8vw, 0.82rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #7dd3fc;
}

.motion-report__hcol-ms-unit {
    font-size: 0.48rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(0, 217, 255, 0.5);
}

.motion-report__hcol-track {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 212px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 10px 10px 4px 4px;
    background: var(--hcol-track-bg);
    border: 1px solid var(--hcol-track-border);
    box-shadow: inset 0 1px 0 rgba(0, 217, 255, 0.06);
    overflow: hidden;
}

.motion-report__hcol-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.motion-report__hcol-bar-slot {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 6px 6px 2px 2px;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.motion-report__hcol-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    min-height: 4px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #00d9ff 0%, #0066ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.motion-report__hcol-height-in {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    align-self: center;
    margin: 0;
    padding: 5px 7px;
    font-size: clamp(0.72rem, 1.65vw, 0.9rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    line-height: 1;
    background: rgba(10, 14, 26, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.motion-report__hcol-height-in small {
    font-size: 0.62em;
    font-weight: 700;
    color: #cbd5e1;
    opacity: 1;
}

.motion-report__hcol-idx {
    text-align: center;
    font-size: clamp(0.62rem, 1.4vw, 0.72rem);
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.04em;
}

.motion-report__hcol--best {
    background: rgba(0, 217, 255, 0.06);
    border-color: rgba(0, 217, 255, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(0, 217, 255, 0.18),
        0 0 20px rgba(0, 102, 255, 0.12);
}

.motion-report__hcol--best .motion-report__hcol-idx {
    color: var(--hcol-cyan, #00d9ff);
}

.motion-report__hcol--best .motion-report__hcol-ms {
    color: var(--hcol-cyan, #00d9ff);
}

.motion-report__hcol--best .motion-report__hcol-height-in {
    color: #ffffff;
    background: rgba(0, 82, 204, 0.82);
    border-color: rgba(0, 217, 255, 0.35);
}

.motion-report__hcol--best .motion-report__hcol-height-in small {
    color: #e0f2fe;
}

.motion-report__hcol--best .motion-report__hcol-bar {
    background: linear-gradient(180deg, #2ee8ff 0%, #0052cc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.motion-report__jump--flash {
    animation: motion-report-jump-flash 1.1s ease;
}

@keyframes motion-report-jump-flash {
    0%, 100% { box-shadow: none; }
    25% { box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.55); }
}

/* ── Charts (per-jump SVG) ── */
.motion-report__chart-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.motion-report__chart {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.motion-report__chart-axis {
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1;
}

.motion-report__chart-bar {
    fill: url(#motionBarGrad);
    fill: rgba(34, 211, 238, 0.55);
    transition: fill 0.15s ease;
}

.motion-report__chart-bar-wrap:hover .motion-report__chart-bar,
.motion-report__chart-bar-wrap:focus .motion-report__chart-bar {
    fill: rgba(34, 211, 238, 0.92);
}

.motion-report__chart-bar-lbl {
    fill: #94a3b8;
    font-size: 10px;
    font-family: inherit;
}

.motion-report__chart-bar-head {
    fill: #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    pointer-events: none;
}

.motion-report__chart-bar-meta {
    fill: #64748b;
    font-size: 8px;
    font-weight: 600;
    font-family: inherit;
    pointer-events: none;
}

.motion-report__chart-bar-val {
    fill: #0f172a;
    font-size: 10px;
    font-weight: 800;
    font-family: inherit;
    pointer-events: none;
}

.motion-report__chart-bar-val--above {
    fill: #e2e8f0;
    font-weight: 700;
}

.motion-report__chart-bar-wrap:hover .motion-report__chart-bar-val {
    fill: #fff;
}

.motion-report__chart-bar-wrap:hover .motion-report__chart-bar-val--above {
    fill: #22d3ee;
}

.motion-report__chart-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.motion-report__chart-line--knee {
    stroke: #fbbf24;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.motion-report__chart-line--ankle {
    stroke: #22d3ee;
}

.motion-report__chart-grid {
    stroke: rgba(148, 163, 184, 0.12);
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.motion-report__chart-y-lbl,
.motion-report__chart-x-lbl {
    fill: #64748b;
    font-size: 9px;
    font-family: inherit;
    font-weight: 600;
}

.motion-report__chart-vline {
    stroke-width: 1;
    stroke-dasharray: 3 4;
    pointer-events: none;
    opacity: 0.55;
}

.motion-report__chart-vline--to { stroke: rgba(74, 222, 128, 0.5); }
.motion-report__chart-vline--ld { stroke: rgba(96, 165, 250, 0.5); }

.motion-report__chart-wrap--angles {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.motion-report__chart-legend--angles {
    margin-top: 6px;
}

.motion-report__chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

.motion-report__legend-item {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 14px;
    position: relative;
    color: #94a3b8;
}

.motion-report__legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.motion-report__legend-item--knee::before { background: #fbbf24; }
.motion-report__legend-item--ankle::before { background: #22d3ee; }

.motion-report__chart-empty {
    font-size: 0.75rem;
    color: #64748b;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.4);
}

/* ── Jump cards ── */
.motion-report__jump-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.motion-report__jump {
    padding: 14px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.motion-report__jump-head {
    margin-bottom: 14px;
}

.motion-report__jump-head-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.motion-report__jump-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
}

.motion-report__jump-title {
    margin: 0;
    font-size: 1rem;
    color: #f1f5f9;
}

.motion-report__jump-sub {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.motion-report__jump-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.motion-report__jump-visuals,
.motion-report__jump-analytics {
    min-width: 0;
}

.motion-report__visuals-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

/* Mobile: thumbs stacked */
.motion-report__thumb-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.motion-report__thumb {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.motion-report__thumb-frame {
    width: 100%;
    min-height: 200px;
    max-height: min(52vh, 420px);
    border-radius: 14px;
    overflow: hidden;
    background: #020617;
    border: 2px solid rgba(148, 163, 184, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.motion-report__thumb--to .motion-report__thumb-frame {
    border-color: rgba(74, 222, 128, 0.45);
}

.motion-report__thumb--apex .motion-report__thumb-frame {
    border-color: rgba(250, 204, 21, 0.45);
}

.motion-report__thumb--ld .motion-report__thumb-frame {
    border-color: rgba(96, 165, 250, 0.45);
}

.motion-report__thumb-img {
    width: 100%;
    height: 100%;
    max-height: min(52vh, 420px);
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #0f172a;
}

.motion-report__thumb-placeholder {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
}

.motion-report__thumb-cap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
}

.motion-report__thumb-kind {
    font-weight: 700;
    font-size: 0.78rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.motion-report__thumb-note {
    font-size: 0.65rem;
    color: #64748b;
}

.motion-report__detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 0.75rem;
}

.motion-report__detail-grid--4 {
    grid-template-columns: 1fr 1fr;
}

.motion-report__detail-grid div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    cursor: help;
}

.motion-report__detail-grid dt {
    margin: 0;
    color: #64748b;
}

.motion-report__detail-grid dd {
    margin: 0;
    color: #e2e8f0;
    font-weight: 600;
}

.motion-report__empty {
    text-align: center;
    color: #94a3b8;
    padding: 32px 16px;
}

.modal-card--motion-report .modal-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.96);
}

.modal-card--motion-report .modal-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: min(1200px, 100%);
    margin: 0 auto;
    width: 100%;
}

.modal-card--motion-report .modal-export-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
    justify-content: center;
}

@media (min-width: 769px) {
    .modal-backdrop--motion-report {
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

    .modal-card--motion-report {
        width: min(1040px, 96vw);
        height: auto;
        max-height: min(94vh, 980px);
        border-radius: 22px;
        box-shadow:
            0 24px 80px rgba(15, 23, 42, 0.92),
            0 0 0 1px rgba(148, 163, 184, 0.2);
    }

    .modal-card--motion-report.is-wide-session {
        width: min(1280px, 98vw);
        max-height: min(96vh, 1100px);
    }

    .modal-card--motion-report.is-many-jumps {
        width: min(1440px, 98vw);
        max-height: min(96vh, 1200px);
    }

    .modal-card--motion-report.is-wide-session #jumpMotionReportBody,
    .modal-card--motion-report.is-wide-session .modal-footer-buttons {
        max-width: min(1360px, 100%);
    }

    .modal-card--motion-report .modal-body {
        padding: 18px 22px 24px;
    }

    .motion-report__stats--main {
        grid-template-columns: repeat(4, 1fr);
    }

    .motion-report__heights-grid {
        grid-template-columns: repeat(var(--jump-count, 1), minmax(68px, 1fr));
        gap: 12px;
    }

    .motion-report__hcol {
        min-height: 320px;
    }

    .motion-report__hcol-track {
        min-height: 244px;
        padding: 8px 10px;
    }

    .motion-report__hcol-bar {
        left: 0;
        right: 0;
    }

    /* Desktop: 3 equal columns for TO / Apex / LD */
    .motion-report__thumb-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        align-items: stretch;
    }

    .motion-report__thumb {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .motion-report__thumb-frame {
        flex: 1 1 auto;
        min-height: 200px;
        height: 240px;
        max-height: 240px;
    }

    .motion-report__thumb-img {
        width: 100%;
        height: 100%;
        max-height: 240px;
        object-fit: contain;
    }

    .motion-report__thumb-cap {
        flex-shrink: 0;
        margin-top: auto;
        padding-top: 6px;
    }

    .motion-report__jump-analytics {
        width: 100%;
    }

    .motion-report__chart-wrap--flight {
        padding: 12px 14px;
    }

    .modal-card--motion-report.is-wide-session .motion-report__jump-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    .modal-card--motion-report.is-many-jumps .motion-report__jump-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .modal-card--motion-report.is-many-jumps .motion-report__jump-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 768px) {
    .motion-report__stats--main {
        grid-template-columns: repeat(4, 1fr);
    }

    .motion-report__thumb-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .motion-report__thumb-frame {
        min-height: 140px;
        max-height: 200px;
        height: 180px;
    }

    .motion-report__thumb-img {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    body.platform-handset .modal-card--motion-report .modal-body {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .motion-report__thumb-frame {
        min-height: 220px;
        max-height: min(58vh, 480px);
    }

    .motion-report__thumb-img {
        max-height: min(58vh, 480px);
    }
}
