/* Official match centre */
.match-detail-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 68px) 0 clamp(38px, 5vw, 74px);
    border-bottom: 1px solid rgba(242, 182, 50, .25);
    background:
        radial-gradient(ellipse at 82% 18%, color-mix(in srgb, var(--match-accent) 13%, transparent), transparent 38%),
        radial-gradient(ellipse at 12% 72%, rgba(242, 182, 50, .08), transparent 38%),
        linear-gradient(125deg, #11151c, #090c13 68%, #10192c);
}
.match-detail-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 80px 80px;
    content: "";
    pointer-events: none;
}
.match-detail-hero .container { position: relative; }
.match-detail-back { color: #aab2c0; font-size: 13px; }
.match-detail-back:hover { color: var(--gold-bright); }
.match-detail-event { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 26px 0 20px; }
.match-detail-event img { display: block; width: auto; max-width: min(220px, 65vw); height: 70px; object-fit: contain; object-position: left center; }
.match-detail-event-name { font: 800 25px/1 var(--display); text-transform: uppercase; }
.match-detail-event > span:last-child { color: #aeb8c9; font-size: 13px; }
.match-detail-heading h1 {
    max-width: 1100px;
    margin: 12px 0 16px;
    color: #fff;
    font: 900 clamp(32px, 4.3vw, 62px)/1 var(--display);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.match-detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #c0c7d3; font-size: 13px; }
.match-detail-tags > span:not(:first-child) { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.18); }
.match-detail-scoreboard {
    display: grid;
    gap: 12px;
    margin-top: clamp(22px, 3vw, 38px);
    align-items: stretch;
}
.match-detail-scoreboard--duel { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
.match-detail-scoreboard--multi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.match-detail-side {
    display: flex;
    min-width: 0;
    gap: clamp(12px, 2vw, 24px);
    align-items: center;
    padding: clamp(16px, 2vw, 27px);
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(35,42,54,.88), rgba(14,19,29,.92));
}
.match-detail-side.is-winner {
    border-color: rgba(242,182,50,.52);
    background: linear-gradient(135deg, rgba(242,182,50,.15), rgba(20,24,33,.94) 64%);
    box-shadow: inset 3px 0 0 var(--gold);
}
.match-detail-portraits { display: flex; flex: 0 1 43%; justify-content: center; min-width: 0; }
.match-detail-portrait {
    position: relative;
    display: grid;
    width: min(106px, 100%);
    height: 120px;
    overflow: hidden;
    flex: 0 1 106px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: #151d2a;
    color: var(--gold-bright);
    font: 900 32px/1 var(--display);
}
.match-detail-portrait + .match-detail-portrait { margin-left: -13px; }
/* Keep head and upper chest visible even in the narrower team portrait frames. */
.match-detail-portrait img {
    position: absolute;
    top: 3%;
    left: 50%;
    display: block;
    width: 210%;
    height: 315%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    transform: translateX(-50%);
}
.match-detail-side-copy { min-width: 0; }
.match-detail-side-copy h2 { margin: 5px 0 6px; color: #fff; font: 900 clamp(23px, 2.3vw, 36px)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.match-detail-outcome { color: #aab4c4; font: 800 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.match-detail-outcome.is-winner { color: var(--gold-bright); }
.match-detail-representatives { display: block; color: #b9c0cb; font-size: 13px; }
.match-detail-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 11px; }
.match-detail-links a { color: #d3d9e5; font-size: 12px; }
.match-detail-links a:hover { color: var(--gold-bright); }
.match-detail-vs { display: grid; place-items: center; color: var(--gold-bright); font: italic 900 24px/1 var(--display); }
.match-detail-empty { grid-column: 1 / -1; color: #bac2ce; }
.match-detail-stakes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.match-detail-title {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    border: 1px solid rgba(242,182,50,.32);
    background: rgba(242,182,50,.06);
    color: #fff;
}
.match-detail-title:hover { border-color: var(--gold); }
.match-detail-title img { display: block; width: 58px; height: 43px; object-fit: contain; }
.match-detail-title strong { display: block; font: 800 16px/1.1 var(--display); text-transform: uppercase; }
.match-detail-title small { color: var(--gold-bright); text-transform: uppercase; }
.match-detail-content { background: linear-gradient(120deg, #0d1119, #0b0e14); }
.match-detail-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.match-detail-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(255,255,255,.12); background: #171d27; }
.match-detail-panel h2, .match-detail-rewards summary strong { display: block; margin: 8px 0 20px; color: #fff; font: 900 clamp(24px, 2.2vw, 31px)/1 var(--display); text-transform: uppercase; }
.match-detail-facts { margin: 0; }
.match-detail-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 18px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.match-detail-facts dt { color: #aab2c0; font-size: 12px; text-transform: uppercase; }
.match-detail-facts dd { margin: 0; color: #fff; font-size: 13px; text-align: right; }
.match-detail-panel .text-link { display: inline-block; margin-top: 18px; }
.match-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.match-detail-actions .button { min-width: 0; }
.match-detail-ruling, .match-detail-rewards { margin-top: 18px; }
.match-detail-ruling .league-prose { margin-bottom: 0; color: #d8dde6; }
.match-detail-rewards summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.match-detail-rewards summary::-webkit-details-marker { display: none; }
.match-detail-rewards summary strong { margin-bottom: 0; }
.match-detail-rewards summary > span:last-child { color: var(--gold-bright); font-size: 26px; }
.match-detail-rewards[open] summary > span:last-child { transform: rotate(45deg); }
.match-detail-reward-list { display: grid; gap: 16px; margin-top: 24px; }
.match-detail-reward { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); }
.match-detail-reward > strong { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.match-detail-reward > strong span { color: var(--gold-bright); }
.match-detail-reward ul { margin: 10px 0 0; padding-left: 20px; color: #c0c7d3; }
.match-detail-reward-list > small { color: #aeb5c1; }
@media (max-width: 900px) {
    .match-detail-scoreboard--duel { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); }
    .match-detail-side { flex-direction: column; align-items: stretch; text-align: center; }
    .match-detail-portraits { flex-basis: auto; }
    .match-detail-links { justify-content: center; }
}
@media (max-width: 640px) {
    .match-detail-event { margin-top: 20px; }
    .match-detail-event img { height: 54px; }
    .match-detail-heading h1 { font-size: clamp(29px, 8vw, 42px); }
    .match-detail-scoreboard--duel { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .match-detail-scoreboard--duel .match-detail-vs { min-height: 34px; }
    .match-detail-scoreboard--duel .match-detail-side { flex-direction: row; text-align: left; }
    .match-detail-scoreboard--duel .match-detail-portraits { flex: 0 1 37%; }
    .match-detail-scoreboard--duel .match-detail-links { justify-content: flex-start; }
    .match-detail-portrait { height: 91px; font-size: 25px; }
    .match-detail-summary { grid-template-columns: minmax(0, 1fr); }
    .match-detail-facts dd { text-align: left; }
    .match-detail-actions .button { width: 100%; text-align: center; }
}
@media (max-width: 380px) {
    .match-detail-scoreboard--duel .match-detail-side { gap: 10px; padding: 12px; }
    .match-detail-side-copy h2 { font-size: 22px; }
    .match-detail-portrait { height: 78px; }
}
