/* ===========================================================================
   YSN MATCH CENTER
   Public list + permanent report. Uses the live Precision theme tokens only.
   ========================================================================== */

.match-center-main,
.match-detail-main {
    background: var(--dark);
}

/* ------------------------------------------------------------------ list */

.match-center-toolbar .card-body { padding: 1rem; }

.match-center-toolbar .filter-grid {
    grid-template-columns: minmax(14rem, 1.7fr) repeat(3, minmax(9rem, 1fr));
    gap: 0.8rem;
}

.match-center-toolbar .filter-group { gap: 0.35rem; }

.match-center-toolbar .filter-group label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.match-center-toolbar :is(input, select) { min-height: 2.7rem; }

.match-center-list {
    display: grid;
    gap: 0.65rem;
}

.performance-item { text-decoration: none; }
.performance-item.draw { background: var(--primary); color: var(--text); }

.match-list-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "heading score"
        "facts action";
    align-items: center;
    gap: 0.8rem 1.5rem;
    width: 100%;
    padding: 1rem 1.1rem;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-left: 2px solid var(--divider);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.match-list-row:hover {
    background: var(--dark-3);
    border-color: var(--divider);
    color: var(--text);
    transform: none;
    box-shadow: none;
}

.match-list-row.win { border-left-color: var(--success); }
.match-list-row.loss { border-left-color: var(--danger); }
.match-list-row.draw { border-left-color: var(--primary); }

.match-list-heading { grid-area: heading; min-width: 0; }

.match-list-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.match-result-label { font-weight: 700; }
.match-result-label.win { color: var(--success); }
.match-result-label.loss { color: var(--danger); }
.match-result-label.draw { color: var(--primary-light); }

.match-list-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.match-list-title .match-list-ysn { color: var(--primary-light); }
.match-list-title .match-list-vs { margin: 0 0.35rem; color: var(--text-muted); font: 400 0.78em var(--font-primary); }

.match-list-score {
    grid-area: score;
    min-width: 6.5rem;
    text-align: right;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
}

.match-list-score { color: var(--text); }
.match-list-row.win .match-list-score-ysn { color: var(--success); }
.match-list-row.loss .match-list-score-ysn { color: var(--danger); }
.match-list-row.draw .match-list-score-ysn { color: var(--text); }
.match-list-score-opponent { color: var(--text); }
.match-list-score-sep { padding: 0 0.16em; color: var(--text-muted); opacity: 0.55; }

.match-list-facts {
    grid-area: facts;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.match-list-chip,
.match-fact-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.match-list-chip {
    padding: 0.2rem 0.43rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.61rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.match-list-action {
    grid-area: action;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-light);
    white-space: nowrap;
}

.match-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
}

.match-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0.45rem 0.65rem;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font: 500 0.72rem var(--font-mono);
    text-decoration: none;
}

.match-page-button:hover,
.match-page-button.is-current {
    border-color: var(--primary-line);
    background: var(--primary-tint);
    color: var(--primary-light);
}

.match-page-button.is-current { pointer-events: none; }
.match-page-button[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* --------------------------------------------------------------- detail */

.match-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    color: var(--text-muted);
    font: 500 0.68rem var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.match-back-link:hover { color: var(--primary-light); }

.match-detail-loading[hidden],
.match-detail[hidden],
.match-not-found[hidden] {
    display: none;
}

.match-detail-loading {
    min-height: 16rem;
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.match-detail {
    display: grid;
    gap: 0;
    color: var(--text);
    isolation: isolate;
}

.match-detail :where(h1, h2, h3, p, span, a, strong, dt, dd) {
    text-shadow: none;
    filter: none;
}

.match-detail-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--divider);
}

.match-detail-heading { min-width: 0; max-width: 48rem; }

.match-detail-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary-light);
    font: 500 0.65rem var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.match-detail-title {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.match-detail-description {
    max-width: 44rem;
    margin: 0.65rem 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.match-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

.match-scoreboard {
    --match-result-color: var(--primary-light);
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(18rem, auto) minmax(10rem, 1fr);
    align-items: center;
    gap: clamp(1rem, 5vw, 4rem);
    min-height: clamp(19rem, 36vw, 26rem);
    padding: clamp(2.3rem, 6vw, 4.2rem) 0;
    border-bottom: 1px solid var(--divider);
}

.match-scoreboard.win { --match-result-color: var(--success); }
.match-scoreboard.loss { --match-result-color: var(--danger); }

.match-score-team { min-width: 0; }
.match-score-team.is-opponent { text-align: right; }

.match-score-tag {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font: 500 0.67rem var(--font-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.match-score-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.match-score-team:first-child .match-score-name { color: var(--primary-light); }

.match-score-center {
    min-width: 0;
    text-align: center;
}

.match-score-result {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--match-result-color);
    font: 700 0.68rem var(--font-mono);
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.match-score-numbers {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 9vw, 6.8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.075em;
    font-variant-numeric: tabular-nums;
}

.match-score-ysn {
    justify-self: end;
    color: var(--match-result-color);
}

.match-score-opponent {
    justify-self: start;
    color: var(--text);
}

.match-score-colon {
    padding: 0 0.12em;
    color: var(--text-muted);
    opacity: 0.45;
}

.match-score-date {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font: 500 0.67rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 1.15rem 0;
    background: #0b0b0f;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.match-fact {
    min-width: 0;
    padding: 0.15rem 1rem;
    border-left: 1px solid var(--border);
}

.match-fact:first-child { padding-left: 0; border-left: 0; }

.match-fact-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font: 500 0.61rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.match-fact-value {
    display: block;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.match-section {
    padding: clamp(2rem, 4vw, 3.15rem) 0;
    border-bottom: 1px solid var(--divider);
}

.match-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.match-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: clamp(1.1rem, 2.6vw, 1.45rem);
    letter-spacing: -0.02em;
}

.match-section-title::before {
    content: '';
    width: 1.15rem;
    height: 2px;
    flex: 0 0 auto;
    background: var(--primary-light);
}

.match-section-note {
    color: var(--text-muted);
    font: 500 0.62rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-breakdown-block + .match-awards-block {
    margin-top: clamp(2.2rem, 5vw, 3.8rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--divider);
}

.match-round-list { border-top: 1px solid var(--border); }

.match-round {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    min-height: 3.65rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid var(--border);
}

.match-round-label { font-weight: 650; overflow-wrap: anywhere; }
.match-round-note { display: block; margin-top: 0.16rem; color: var(--text-muted); font-size: 0.76rem; }

.match-round-score {
    color: var(--text);
    font: 800 1.25rem var(--font-heading);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.match-round-ysn.is-win { color: var(--success); }
.match-round-ysn.is-loss { color: var(--danger); }
.match-round-opponent { color: var(--text); }
.match-round-separator { padding: 0 0.25em; color: var(--text-muted); opacity: 0.45; }

.match-round-winner {
    min-width: 4.25rem;
    text-align: right;
    color: var(--text-muted);
    font: 600 0.61rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-round-winner.is-ysn { color: var(--success); }
.match-round-winner.is-opponent { color: var(--danger); }

.match-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.match-award {
    min-width: 0;
    padding: 1.3rem clamp(1rem, 2.8vw, 2rem);
    text-align: center;
    border-left: 1px solid var(--border);
}

.match-award:first-child { border-left: 0; }

.match-award-icon {
    display: inline-grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-bottom: 0.45rem;
    color: var(--primary-light);
}

.match-award-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.match-leader-label {
    display: block;
    color: var(--primary-light);
    font: 600 0.62rem var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.match-leader-name {
    margin-top: 0.35rem;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(1.18rem, 2.3vw, 1.55rem);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.match-leader-name a { color: var(--text); text-decoration: none; }
.match-leader-name a:hover { color: var(--primary-light); }
.match-leader-name small {
    margin-left: 0.35rem;
    color: var(--primary-light);
    font: 600 0.58rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-award-stats {
    display: flex;
    justify-content: center;
    margin: 1rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.match-award-stats > div {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column-reverse;
    gap: 0.12rem;
    padding: 0 0.55rem;
    border-left: 1px solid var(--border);
}

.match-award-stats > div:first-child { border-left: 0; }
.match-award-stats dt {
    color: var(--text-muted);
    font: 700 0.7rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.match-award-stats dd {
    margin: 0;
    color: var(--text);
    font: 800 clamp(1rem, 1.15vw, 1.12rem) var(--font-mono);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.match-award-empty { margin: 0.9rem 0 0; color: var(--text-muted); font-size: 0.78rem; }

.match-lineups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.match-lineup-title {
    margin: 0 0 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--divider);
    color: var(--primary-light);
    font: 600 0.67rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.match-lineup-list { list-style: none; margin: 0; padding: 0; }

.match-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 2.9rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.match-player-row:hover { background: rgba(255, 255, 255, 0.015); }

.match-player-name {
    min-width: 0;
    color: var(--text-secondary);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.match-player-name:hover { color: var(--primary-light); }

.match-player-stats {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.3rem 0.7rem;
    color: var(--text);
    font: 750 clamp(0.84rem, 0.95vw, 0.94rem) var(--font-mono);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.match-player-stat { display: inline-flex; align-items: baseline; gap: 0.22rem; white-space: nowrap; }
.match-player-stat small { color: var(--text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; }

.match-report-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.match-txt-section { padding-top: 1.6rem; padding-bottom: 1.6rem; }

.match-txt-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #0c0c11;
    border: 1px solid var(--border);
    border-left: 2px solid var(--primary);
}

.match-txt-mark {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.2rem;
    flex: 0 0 auto;
    color: var(--primary-light);
    border: 1px solid var(--primary-line);
    font: 700 0.62rem var(--font-mono);
    letter-spacing: 0.08em;
}

.match-txt-meta { min-width: 0; flex: 1 1 auto; }
.match-txt-meta strong { display: block; font: 650 0.78rem var(--font-mono); overflow-wrap: anywhere; }
.match-txt-meta span { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.75rem; }

.match-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.match-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: zoom-in;
}

.match-shot:hover { border-color: var(--primary-line); }
.match-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.match-shot:hover img { transform: scale(1.02); }

.match-video { margin-top: 1.4rem; }
.match-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--border); }
.match-video-frame iframe { width: 100%; height: 100%; border: 0; }
.match-video-fallback { display: inline-flex; margin-top: 0.5rem; color: var(--primary-light); }

.match-history-summary {
    margin: 0 0 0.9rem;
    color: var(--text-secondary);
}

.match-history-list { border-top: 1px solid var(--border); }

.match-history-row {
    display: grid;
    grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1.5fr) auto auto;
    align-items: center;
    gap: 1rem;
    min-height: 3.4rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
}

.match-history-row:hover { color: var(--text); background: rgba(255,255,255,0.015); }
.match-history-date { font: 500 0.66rem var(--font-mono); color: var(--text-muted); }
.match-history-opponent { min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.match-history-score { font: 800 1rem var(--font-heading); font-variant-numeric: tabular-nums; color: var(--text); }
.match-history-ysn.win { color: var(--success); }
.match-history-ysn.loss { color: var(--danger); }
.match-history-ysn.draw { color: var(--text); }
.match-history-opponent-score { color: var(--text); }
.match-history-separator { padding: 0 0.22em; color: var(--text-muted); opacity: 0.45; }
.match-history-result { font: 700 0.61rem var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; }
.match-history-result.win { color: var(--success); }
.match-history-result.loss { color: var(--danger); }
.match-history-result.draw { color: var(--primary-light); }

.match-empty-copy { margin: 0; color: var(--text-muted); }

@keyframes match-content-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.match-detail-toolbar,
.match-scoreboard,
.match-facts,
.match-section {
    animation: match-content-enter 380ms ease both;
}

.match-scoreboard { animation-delay: 45ms; }
.match-facts { animation-delay: 80ms; }
.match-section { animation-delay: 110ms; }

.match-not-found {
    min-height: 23rem;
    display: grid;
    place-items: center;
    text-align: center;
}

.match-not-found-inner { max-width: 32rem; }
.match-not-found h1 { margin-bottom: 0.65rem; }
.match-not-found p { margin-bottom: 1.2rem; color: var(--text-secondary); }

/* ------------------------------------------------------------- lightbox */

.match-lightbox[hidden] { display: none; }

.match-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.94);
}

.match-lightbox-stage { min-width: 0; max-width: min(86rem, 100%); margin: auto; text-align: center; }
.match-lightbox-image { display: block; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.match-lightbox-caption { margin-top: 0.6rem; color: var(--text-secondary); }

.match-lightbox-close,
.match-lightbox-nav {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: var(--dark-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
}

.match-lightbox-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.2rem; }
.match-lightbox-nav { font-size: 1.5rem; }
.match-lightbox-close:hover,
.match-lightbox-nav:hover { border-color: var(--primary-line); color: var(--primary-light); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
    .match-center-toolbar .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .match-fact:nth-child(4) { padding-left: 0; border-left: 0; }
    .match-breakdown-grid { grid-template-columns: minmax(0, 1fr); }
    .match-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .match-list-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "heading score"
            "facts facts"
            "action action";
        gap: 0.7rem 1rem;
        padding: 0.9rem;
    }

    .match-list-score { min-width: 5.3rem; font-size: 1.6rem; }
    .match-list-action { justify-self: start; padding-top: 0.45rem; border-top: 1px solid var(--border); width: 100%; }

    .match-detail-toolbar { align-items: flex-start; flex-direction: column; }

    .match-scoreboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 1.45rem 0;
    }

    .match-score-center {
        order: -1;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .match-score-numbers { font-size: clamp(3.2rem, 20vw, 4.6rem); }

    .match-score-team {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }

    .match-score-team.is-opponent { text-align: left; }
    .match-score-tag { margin: 0; grid-column: 1; }
    .match-score-name { grid-column: 2; grid-row: 1; font-size: 1.25rem; text-align: right; }

    .match-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match-fact { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
    .match-fact:nth-child(odd) { padding-left: 0; border-left: 0; }
    .match-fact:nth-child(4) { padding-left: 0.75rem; border-left: 1px solid var(--border); }

    .match-lineups { grid-template-columns: minmax(0, 1fr); }
    .match-player-row { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
    .match-player-stats { justify-content: flex-start; }
    .match-awards-grid { grid-template-columns: minmax(0, 1fr); }
    .match-award { border-left: 0; border-top: 1px solid var(--border); }
    .match-award:first-child { border-top: 0; }
    .match-txt-file { align-items: flex-start; flex-wrap: wrap; }
    .match-txt-meta { min-width: calc(100% - 4rem); }
    .match-report-actions { width: 100%; padding-top: 0.4rem; }
    .match-report-actions .btn { flex: 1 1 auto; }
    .match-media-grid { grid-template-columns: minmax(0, 1fr); }

    .match-history-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.3rem 0.8rem;
        padding: 0.8rem 0;
    }
    .match-history-date { grid-column: 1; }
    .match-history-result { grid-column: 2; grid-row: 1; }
    .match-history-opponent { grid-column: 1; }
    .match-history-score { grid-column: 2; text-align: right; }

    .match-lightbox { grid-template-columns: 1fr 1fr; align-content: center; }
    .match-lightbox-stage { grid-column: 1 / -1; grid-row: 1; }
    .match-lightbox-nav { grid-row: 2; width: 100%; }
}

@media (max-width: 430px) {
    .match-center-toolbar .filter-grid { grid-template-columns: minmax(0, 1fr); }
    .match-list-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "score" "facts" "action"; }
    .match-list-score { min-width: 0; text-align: left; }
    .match-detail-actions { width: 100%; }
    .match-detail-actions .btn { flex: 1 1 auto; }
    .match-round { grid-template-columns: minmax(0, 1fr) auto; }
    .match-round-winner { grid-column: 1 / -1; min-width: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .match-list-row,
    .match-shot img { transition: none; }
    .match-shot:hover img { transform: none; }
    .match-detail-toolbar,
    .match-scoreboard,
    .match-facts,
    .match-section { animation: none; }
}
