.match-report,
.match-report * { box-sizing: border-box; }

.match-report {
    --match-red: #a40000;
    --match-red-dark: #760000;
    --match-ink: #191817;
    --match-muted: #6d6965;
    --match-line: #dedad5;
    --match-surface: #f5f3f0;
    color: var(--match-ink);
    font: 14px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 2px 0 34px;
}

.match-report a { color: inherit; }
.match-report a:hover { color: var(--match-red); text-decoration: none; }
.match-report a:focus-visible { border-radius: 3px; outline: 3px solid rgba(164, 0, 0, .28); outline-offset: 3px; }
.match-report h1, .match-report h2, .match-report h3, .match-report p, .match-report dl, .match-report ol, .match-report ul { margin: 0; }
.match-report h1, .match-report h2, .match-report h3 { color: inherit; font-family: inherit; }

.match-report__breadcrumbs { color: var(--match-muted); font-size: 11px; margin-bottom: 10px; }
.match-report__breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; }
.match-report__breadcrumbs li + li::before { color: #aaa49e; content: "/"; margin: 0 7px; }

.match-scorecard {
    background: radial-gradient(circle at 50% 0, rgba(164, 0, 0, .08), transparent 38%), linear-gradient(145deg, #fff, #f3f0ec);
    border: 1px solid var(--match-line);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(37, 30, 24, .08);
    overflow: hidden;
    padding: 18px 24px 0;
    position: relative;
}
.match-scorecard::before { background: var(--match-red); content: ""; height: 5px; inset: 0 0 auto; position: absolute; z-index: 3; }
.match-scorecard > :not(.match-scorecard__hero) { position: relative; z-index: 1; }
.match-scorecard__hero { inset: 0; position: absolute; z-index: 0; }
.match-scorecard__hero img { display: block; height: 100%; object-fit: cover; object-position: center 38%; width: 100%; }
.match-scorecard__hero::after { background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .58) 58%, rgba(255, 255, 255, .9)); content: ""; inset: 0; position: absolute; }
.match-scorecard--with-hero .match-scorecard__competition { backdrop-filter: blur(7px); background: rgba(255, 255, 255, .76); border: 1px solid rgba(255, 255, 255, .78); border-radius: 999px; box-shadow: 0 2px 12px rgba(37, 30, 24, .08); color: #4b4743; margin-inline: auto; padding: 5px 12px; width: fit-content; }
.match-scorecard--with-hero .match-scorecard__result { backdrop-filter: blur(7px); background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .82); border-radius: 14px; box-shadow: 0 4px 18px rgba(37, 30, 24, .1); padding: 13px 8px 10px; }
.match-scorecard--with-hero .match-team h1 { text-shadow: 0 1px 2px #fff, 0 0 12px rgba(255, 255, 255, .96); }
.match-scorecard--with-hero .match-team__role { background: rgba(255, 255, 255, .74); border-radius: 999px; color: #4f4a46; padding: 2px 7px; }
.match-scorecard--with-hero .match-scorecard__facts { backdrop-filter: blur(7px); background: rgba(255, 255, 255, .8); }
.match-scorecard--cancelled { filter: grayscale(.45); }
.match-scorecard__competition { color: var(--match-muted); display: flex; font-size: 11px; font-weight: 750; gap: 14px; justify-content: center; letter-spacing: .04em; text-transform: uppercase; }
.match-scorecard__competition span + span::before { color: #b5afa9; content: "·"; margin-right: 14px; }
.match-scorecard__teams { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr); margin: 18px auto 20px; max-width: 620px; }
.match-team { align-items: center; display: flex; flex-direction: column; min-width: 0; text-align: center; }
.match-team__crest { align-items: center; background: rgba(255,255,255,.82); border: 1px solid #e3dfda; border-radius: 50%; display: flex; height: 100px; justify-content: center; overflow: hidden; padding: 9px; width: 100px; }
.match-team__crest img { display: block; height: 100%; max-height: 82px; max-width: 82px; object-fit: contain; width: 100%; }
.match-team h1 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin-top: 10px; }
.match-team__role { color: var(--match-muted); font-size: 10px; letter-spacing: .1em; margin-top: 4px; text-transform: uppercase; }
.match-scorecard__result { text-align: center; }
.match-scorecard__result strong { align-items: center; display: flex; font-size: 42px; font-style: normal; font-weight: 850; justify-content: center; letter-spacing: -.06em; line-height: 1; }
.match-scorecard__result strong i { color: #aaa39c; font-size: 24px; font-style: normal; font-weight: 500; margin: 0 10px; }
.match-scorecard__result small { color: var(--match-muted); display: block; font-size: 10px; font-weight: 750; letter-spacing: .12em; margin-top: 8px; text-transform: uppercase; }
.match-scorecard__result .match-scorecard__status, .match-scorecard__result .match-scorecard__versus { color: var(--match-red-dark); display: block; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.match-scorecard__facts { border-top: 1px solid var(--match-line); display: flex; justify-content: center; margin: 0 -24px; }
.match-scorecard__facts > div { min-width: 0; padding: 12px 20px 14px; text-align: center; }
.match-scorecard__facts > div + div { border-left: 1px solid var(--match-line); }
.match-scorecard__facts dt { color: var(--match-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.match-scorecard__facts dd { font-size: 12px; font-weight: 700; margin-top: 2px; }
.match-scorecard__facts dd span { color: var(--match-muted); display: block; font-size: 10px; font-weight: 500; }

.match-report .match-report__kicker { color: var(--match-red); font-size: 10px; font-weight: 850; letter-spacing: .13em; line-height: 1.55; text-transform: uppercase; }
.match-report__summary { margin: 26px 4px 0; padding: 0 10px; }
.match-report__summary > p:last-child { color: #413e3b; font-size: 15px; line-height: 1.7; margin-top: 10px; }
.match-meetings-panel { margin-top: 20px; }
.match-meetings { list-style: none; padding: 2px 14px 5px; }
.match-meetings li + li { border-top: 1px solid #eeeae6; }
.match-meetings__row { align-items: center; display: grid; gap: 2px 12px; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); padding: 11px 5px 10px; }
.match-meetings__team { font-size: 12px; font-weight: 750; min-width: 0; }
.match-meetings__team--home { text-align: right; }
.match-meetings strong { background: var(--match-surface); border-radius: 8px; color: #765f5f; font-size: 14px; font-weight: 750; padding: 3px 5px; text-align: center; }
.match-meetings small { color: var(--match-muted); font-size: 9px; grid-column: 1 / -1; text-align: center; }
.match-report__columns { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.match-report__primary, .match-report__related { display: grid; gap: 18px; min-width: 0; }
.match-panel__heading { background: #fff; border: 1px solid var(--match-line); border-radius: 10px; margin-bottom: 6px; padding: 11px 14px; }
.match-panel--compact .match-panel__heading { padding: 11px 14px; }
.match-panel__subheading { background: var(--match-surface); border-bottom: 1px solid var(--match-line); font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 8px 15px; text-transform: uppercase; }

.match-timeline { list-style: none; padding: 3px 17px 8px; }
.match-event { align-items: start; display: grid; gap: 11px; grid-template-columns: 30px 25px minmax(0, 1fr); min-height: 57px; padding: 13px 0 10px; position: relative; }
.match-event + .match-event { border-top: 1px solid #eeeae6; }
.match-event > time { color: var(--match-muted); font-size: 11px; font-weight: 800; padding-top: 3px; text-align: right; }
.match-event__mark { align-items: center; display: flex; font-size: 16px; justify-content: center; line-height: 1.2; min-height: 22px; }
.match-event__mark::after { background: #ddd7d1; content: ""; height: calc(100% - 34px); left: 52px; position: absolute; top: 38px; width: 1px; }
.match-event:last-child .match-event__mark::after { display: none; }
.match-event > div strong { display: block; font-size: 13px; }
.match-event > div span { color: var(--match-muted); display: block; font-size: 11px; margin-top: 2px; }
.match-event > div span b { font-size: 9px; text-transform: uppercase; }
.match-substitution__in { color: #3f893f; }
.match-substitution__out { color: var(--match-red); }
.match-card { border-radius: 2px; display: block; height: 17px; transform: rotate(5deg); width: 12px; }
.match-card--yellow { background: #f2c900; box-shadow: inset 0 0 0 1px #d4b000; }
.match-card--red { background: #bd1717; box-shadow: inset 0 0 0 1px #940c0c; }

.match-squad { column-gap: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 8px 12px 12px; row-gap: 6px; }
.match-squad li { align-items: center; display: flex; gap: 9px; min-width: 0; padding: 9px 5px; }
.match-squad__portrait { background: var(--match-surface); border: 1px solid var(--match-line); border-radius: 50%; display: block; flex: 0 0 auto; height: 38px; overflow: hidden; width: 38px; }
.match-squad__portrait img { display: block; height: 100%; object-fit: cover; width: 100%; }
.match-squad__identity { flex: 1 1 auto; font-size: 12px; font-weight: 700; min-width: 0; }
.match-squad__identity > b { color: var(--match-muted); font-size: 10px; margin-right: 2px; }
.match-squad__identity > em { background: #f3dba2; border-radius: 20px; color: #725413; display: inline-block; font-size: 7px; font-style: normal; letter-spacing: .04em; margin-left: 5px; padding: 2px 5px; text-transform: uppercase; vertical-align: 1px; }
.match-squad small { color: var(--match-muted); display: block; font-size: 9px; font-weight: 500; }
.match-squad__scores { flex: 0 0 auto; text-align: right; }
.match-squad__scores > strong { color: #a85e5e; display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.match-squad__scores > small { color: var(--match-muted); display: block; font-size: 7px; line-height: 1.2; margin-top: 3px; white-space: nowrap; }

.match-images { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.match-images a { background: #e7e2dd; display: block; overflow: hidden; position: relative; }
.match-images img { aspect-ratio: 4/3; display: block; object-fit: cover; transition: transform 200ms ease; width: 100%; }
.match-images a:hover img { transform: scale(1.035); }
.match-images span { background: linear-gradient(transparent, rgba(0,0,0,.76)); bottom: 0; color: #fff; font-size: 9px; inset-inline: 0; line-height: 1.25; overflow: hidden; padding: 18px 7px 6px; position: absolute; text-overflow: ellipsis; white-space: nowrap; }
.match-images__note { color: var(--match-muted); font-size: 9px; padding: 9px 12px 11px; }
.match-threads { list-style: none; }
.match-threads li + li { border-top: 1px solid var(--match-line); }
.match-threads a { display: block; padding: 11px 14px; }
.match-threads strong { display: block; font-size: 11px; line-height: 1.35; }
.match-threads span { color: var(--match-muted); display: flex; font-size: 9px; justify-content: space-between; margin-top: 5px; text-transform: uppercase; }
.match-threads b { color: var(--match-red); font-size: 13px; }
.match-report__empty { background: var(--match-surface); border: 1px solid var(--match-line); border-radius: 10px; color: var(--match-muted); margin-top: 18px !important; padding: 18px; text-align: center; }

@media (max-width: 720px) {
    .match-report-page { background: #fff; min-width: 320px; }
    .match-report-page #frame, .match-report-page #left, .match-report-page #right, .match-report-page #leftcoloumn, .match-report-page #hvemErHer { display: none; }
    .match-report-page #all, .match-report-page #workaround, .match-report-page #content { background: #fff; float: none; height: auto; min-height: 0; width: 100%; }
    .match-report-page #all { min-width: 320px; }
    .match-report-page #headertop { background: var(--match-red, #a40000); height: 34px; width: 100%; }
    .match-report-page #brukermeny { left: 12px; right: 12px; top: 11px; width: auto; }
    .match-report-page #headerbottom { background: linear-gradient(#f7f7f7, #e8e8e8); height: auto; width: 100%; }
    .match-report-page #logo { height: 53px; left: auto; padding: 8px 12px 3px; position: relative; width: 205px; }
    .match-report-page nav.topnav ul { background: #eee; border-bottom: 1px solid #d2d2d2; border-top: 1px solid #d2d2d2; display: flex; height: auto; left: auto; overflow-x: auto; position: static; width: 100%; }
    .match-report-page nav.topnav ul li { flex: 0 0 auto; height: auto; }
    .match-report-page nav.topnav a { height: auto; padding: 9px 12px; }
    .match-report-page nav.topnav a span { font-size: 11px; position: static; }
    .match-report-page #text { left: auto; margin: 0; padding: 12px 10px 24px; position: relative; width: auto; }
    .match-scorecard { padding: 17px 12px 0; }
    .match-scorecard__teams { gap: 7px; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); margin-top: 15px; }
    .match-team__crest { height: 72px; padding: 7px; width: 72px; }
    .match-team__crest img { height: 58px; width: 58px; }
    .match-team h1 { font-size: 15px; }
    .match-scorecard__result strong { font-size: 30px; }
    .match-scorecard__result strong i { font-size: 18px; margin: 0 5px; }
    .match-scorecard__facts { margin: 0 -12px; }
    .match-scorecard__facts > div { padding: 10px 8px 12px; }
    .match-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 450px) {
    .match-scorecard__competition { flex-wrap: wrap; gap: 3px 9px; }
    .match-scorecard__competition span + span::before { margin-right: 9px; }
    .match-scorecard__facts { flex-wrap: wrap; }
    .match-scorecard__facts > div { flex: 1 1 45%; }
    .match-scorecard__facts > div + div { border-left: 0; }
    .match-squad { grid-template-columns: 1fr; }
    .match-images { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { .match-images img { transition: none; } }
