.match-redesign {
    --comparison-away: 160 38% 28%;
    --match-red: hsl(var(--primary));
    --match-green: #24564a;
    --pitch-ink: #7b9c8c;
}
.match-redesign .header-actions .sign-in { display: inline-flex }
.match-page { padding-block: clamp(23px, 3vw, 46px) 60px; min-height: 70vh }
.match-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px clamp(24px, 2.65vw, 46px);
    align-items: start;
}
.match-center, .match-support, .match-day-rail { min-width: 0 }
.match-redesign .match-page h2 { font: 800 clamp(21px, 1.7vw, 27px)/1.2 var(--display) }
.match-utilities { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-block-end: 12px }
.match-redesign .match-utilities .back-link, .match-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    margin: 0;
    color: var(--match-red);
    font-size: 13px;
    font-weight: 700;
}
.match-card-link:hover, .match-utilities .back-link:hover { text-decoration: underline; text-underline-offset: 3px }
.match-day-rail { display: none }
.match-day-picker { position: relative; width: min(48%, 240px) }
.match-day-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    list-style: none;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #829393;
    border-radius: 7px;
    background: #fff;
    font-weight: 700;
    font-size: 13px;
}
.match-day-picker summary::after { content: "⌄"; font-size: 15px }
.match-day-picker summary::-webkit-details-marker { display: none }
.match-day-picker .match-day-list {
    position: absolute;
    z-index: 2;
    inset: calc(100% + 4px) 0 auto auto;
    width: min(285px, calc(100vw - 32px));
    max-height: min(480px, 58dvh);
    overflow: auto;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px #241b2415;
}
.match-day-picker > .match-card-link { display: none }
.match-day-list { padding: 0; margin: 0; list-style: none }
.match-day-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    min-height: 57px;
    border-block-end: 1px solid hsl(var(--border));
}
.match-day-list a:hover { background: hsl(var(--surface)) }
.match-day-list a[aria-current] { border-radius: 5px; background: var(--home-accent-surface); border-color: transparent }
.match-day-teams { display: grid; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.28; font-weight: 700 }
.match-day-teams > span { display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere }
.match-day-teams img { flex: none; object-fit: contain }
.match-day-teams small { color: hsl(var(--muted)); font-size: 11px; font-weight: 400 }
.match-day-teams small.match-day-live { color: var(--match-red); font-weight: 700 }
.match-day-list a > strong { font-variant-numeric: tabular-nums; white-space: nowrap }

.match-redesign .hero { padding: 0 clamp(10px, 1.6vw, 22px) 0 }
.match-redesign .competition {
    min-height: 40px;
    padding: 7px 0;
    flex-wrap: wrap;
    gap: 3px 8px;
    border-color: hsl(var(--border));
}
.match-redesign .competition a { font-size: 13px; font-weight: 700; line-height: 1.35 }
.match-redesign .competition img { object-fit: contain }
.match-hero-time { margin-inline-start: auto; white-space: nowrap; font-variant-numeric: tabular-nums }
.match-redesign .hero-body { padding: clamp(13px, 2vw, 27px) 0 12px }
.match-redesign .matchup { grid-template-columns: minmax(0, 1fr) minmax(100px, .66fr) minmax(0, 1fr); gap: clamp(4px, 1.4vw, 19px) }
.match-redesign .matchup .team { flex-direction: column; justify-content: center; align-self: start; gap: 7px; text-align: center; min-width: 0 }
.match-redesign .matchup .crest { width: clamp(40px, 4vw, 58px); height: clamp(40px, 4vw, 58px) }
.match-redesign .team-name { font-size: clamp(13px, 1.5vw, 22px); line-height: 1.16; font-weight: 800 }
.match-redesign .team-name:hover { color: var(--match-red) }
.match-redesign .team-form { flex-wrap: wrap; justify-content: center; gap: 3px; margin-block-start: 6px }
.match-redesign .team-form .pill-w { color: #165342; background: #e8f2eb }
.match-redesign .team-form .pill-l { color: #8f2244; background: var(--home-accent-surface) }
.match-redesign .team-form .pill-d { color: hsl(var(--foreground)); background: hsl(var(--surface-2)) }
.match-redesign .fixture-state { display: grid; justify-items: center; min-width: 0; gap: 3px }
.match-redesign :is(.fixture-score, .vs) { font: 800 clamp(38px, 5vw, 72px)/.98 var(--display); letter-spacing: -.065em; color: hsl(var(--foreground)) }
.match-redesign .fixture-score-live { color: var(--match-red) }
.match-redesign .fixture-score-divider { margin: 0 2px }
.match-redesign .fixture-label { font-size: clamp(11px, 1.15vw, 14px); line-height: 1.3; font-weight: 700; overflow-wrap: anywhere }
.match-redesign .fixture-annotation { font-size: 12px; line-height: 1.25 }
.match-redesign .fixture-meta {
    justify-content: space-between;
    border-block-start: 1px solid hsl(var(--border));
    padding-block-start: 9px;
    margin-block-start: 16px;
}
.match-redesign .fixture-meta > span:last-child { width: auto }
.match-redesign .fixture-snapshot { margin-block: 8px 0; font-size: 12px; color: hsl(var(--muted)) }

.match-redesign .tabbar {
    position: static;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 15px;
    padding: 0;
    margin: 6px 0 21px;
    overflow: visible;
}
.match-redesign .tabbar button { height: 44px; font-size: 13px; padding-inline: 1px; }
.match-redesign .tabbar button[aria-selected="true"] { color: var(--match-red); font-weight: 700 }
.match-redesign .detail { border: 0; padding: 0; }
.match-redesign .detail > h2 { margin-block-end: 15px }
.match-redesign [role="tabpanel"] { scroll-margin-top: 84px }
.match-overview { display: grid; gap: 23px; }
.match-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px }
.match-section-heading .match-card-link { white-space: nowrap }
.match-overview .fixture-events, .match-redesign .detail .fixture-events { margin: 0 }
.match-redesign .fixture-events li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; min-height: 48px; gap: 6px 9px; }
.match-event-time { color: hsl(var(--muted)); font-size: 12px; font-variant-numeric: tabular-nums }
.match-event-copy { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.match-event-copy > span { color: hsl(var(--muted)); font-size: 12px }
.match-redesign .match-stat-row { margin-block: 7px 4px; font-size: 13px }
.match-redesign .match-stat-track { height: 5px; margin-block-end: 12px }
.match-redesign .match-stat-track div { height: 5px }
.match-redesign .match-stat-track div:first-child span { background: var(--match-red) }
.match-redesign .match-stat-track div:last-child span { background: var(--match-green) }
.match-redesign .match-stat-row span { overflow-wrap: anywhere; }
.match-redesign .analysis { border: 0; }
.match-redesign .analysis-header, .match-redesign .analysis-section { padding-inline: 0; border: 0 }
.match-redesign .analysis-header { min-height: auto }
.match-redesign .analysis-section h3 { color: hsl(var(--foreground)); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.3 }
.match-redesign .match-empty { background: hsl(var(--surface)); border-radius: 7px; padding: 12px; color: hsl(var(--muted)); margin: 0 }
.match-redesign .match-odds { margin-block-start: 0; }
.match-redesign .ai-match-section { margin-block: 20px 0 }

.match-support { display: grid; gap: 18px; }
.match-support-panel { padding: 13px 14px }
.match-about-list { margin: 9px 0 0; font-size: 13px; }
.match-about-list div { display: grid; grid-template-columns: minmax(50px, .7fr) minmax(0, 1.3fr); gap: 7px; padding-block: 8px; border-block-start: 1px solid hsl(var(--border)); }
.match-about-list dt { color: hsl(var(--muted)) }
.match-about-list dd { margin: 0; text-align: end; font-weight: 700; overflow-wrap: anywhere; }
.match-about-list a:hover { color: var(--match-red); }
.match-predict { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.match-support .match-stat-sides { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere }
.match-support .match-stat-row { grid-template-columns: 40px minmax(0, 1fr) 40px; font-size: 12px }

.match-pitch-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 9px; }
.match-pitch-teams > span { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13px; }
.match-pitch-teams > span:last-child { justify-content: end; text-align: end; }
.match-pitch-teams i { width: 8px; height: 8px; border-radius: 50%; background: var(--player-color); flex: none }
.match-pitch-home { --player-color: #9a2350 }
.match-pitch-away { --player-color: #20574b }
.match-pitch { background: #e7f1e9; border: 1px solid #c2d7ca; border-radius: 9px; padding: clamp(10px, 1.65vw, 24px); }
.match-pitch-field {
    position: relative;
    aspect-ratio: 1.65;
    border: 1px solid var(--pitch-ink);
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, #dcebe0 0 10%, #e5f0e8 10% 20%);
}
.match-pitch-field::before { content: ""; position: absolute; height: 100%; left: 50%; border-inline-start: 1px solid var(--pitch-ink); }
.match-pitch-field::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15%; aspect-ratio: 1; border: 1px solid var(--pitch-ink); border-radius: 50%; transform: translate(-50%, -50%); }
.match-pitch-area { position: absolute; width: 14%; height: 46%; top: 27%; border: 1px solid var(--pitch-ink); }
.match-pitch-area-home { left: 0; border-inline-start: 0 }
.match-pitch-area-away { right: 0; border-inline-end: 0 }
.match-pitch-player { z-index: 1; position: absolute; inset: var(--pitch-y) auto auto var(--pitch-x); transform: translate(-50%, -50%); display: grid; justify-items: center; }
.match-pitch-player > span { display: grid; place-items: center; width: clamp(19px, 2.2vw, 31px); aspect-ratio: 1; background: var(--player-color); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700 }
.match-pitch-player > small { position: absolute; inset: calc(100% + 1px) auto auto; max-width: clamp(45px, 6vw, 90px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #263d35; font-size: 10px; line-height: 1.2; font-weight: 700; }
.match-squad-group { margin-block-start: 20px }
.match-squad-group h3 { margin: 0; font-size: 18px; }
.match-redesign .match-lineup-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.match-lineup-teams .match-squad-club { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 7px; margin: 0; border-radius: 5px; background: hsl(var(--surface)); overflow-wrap: anywhere; }
.match-squad-club img { flex: none; object-fit: contain }
.match-squad-club small, .match-coach, .match-absences-list small { color: hsl(var(--muted)); }
.match-redesign .match-lineup-teams li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 3px; align-items: baseline; padding: 6px 2px; border-block-end: 1px solid hsl(var(--border)); overflow-wrap: anywhere }
.match-redesign .match-lineup-teams li > span:first-child { color: hsl(var(--muted)); font-size: 12px; }
.match-redesign .match-absences-list li { grid-template-columns: minmax(0, 1fr); }
.match-coach a, .match-coach strong { color: hsl(var(--foreground)); font-weight: 700; }
.match-discussion, .match-discussion section { display: grid; gap: 10px; }
.match-discussion section { scroll-margin-top: 85px; }
.match-discussion section h3, .match-message p { margin: 0; }
.match-discussion-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.match-discussion-nav a { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 5px 9px; border-radius: 7px; background: hsl(var(--surface)); font-weight: 700; }
.match-discussion-nav span { color: var(--match-red); }
.match-message { padding-block: 7px; border-block-end: 1px solid hsl(var(--border)); overflow-wrap: anywhere; }
.match-message p { white-space: pre-wrap; }
.match-message-form { display: grid; gap: 9px; justify-items: start; }
.match-message-form label { width: 100%; }
.match-message-form textarea { display: block; width: 100%; min-height: 65px; margin-block-start: 4px; border: 1px solid #829393; border-radius: 7px; padding: 8px; font: inherit; }
.match-message-form button { min-height: 44px; }
@media (min-width: 881px) {
    .match-page-grid { grid-template-columns: minmax(0, 2.18fr) minmax(230px, 1fr); }
    .match-day-picker { width: min(42%, 212px); }
}
@media (min-width: 1201px) {
    .match-page-grid { grid-template-columns: minmax(140px, .54fr) minmax(0, 2.18fr) minmax(250px, 1fr); }
    .match-day-rail { display: block; }
    .match-redesign .match-page .match-day-rail h2 { margin-block-end: 10px; font-size: 18px; }
    .match-day-picker { display: none; }
}
@media (max-width: 560px) {
    .match-redesign .matchup { grid-template-columns: minmax(0, 1fr) minmax(77px, .73fr) minmax(0, 1fr); }
    .match-redesign .competition { font-size: 11px; }
    .match-redesign .competition a { font-size: 12px; }
    .match-hero-time { white-space: normal; }
    .match-redesign .tabbar { gap: 0 9px; }
    .match-redesign .tabbar button { font-size: 12px; }
    .match-pitch-player > small { display: none; }
    .match-redesign .match-lineup-teams li { grid-template-columns: 17px minmax(0, 1fr); font-size: 13px; }
    .match-redesign .match-absences-list li { grid-template-columns: minmax(0, 1fr); }
}
