:root {
  --portal-green: #156651;
  --portal-ink: #243324;
  --portal-muted: #596d60;
  --portal-line: #d7e2da;
  --portal-tint: #f2f6f1;
  --portal-selected: #e6eee7;
  --club-gold: #9c7644;
  --club-gold-bright: #d6ad57;
  --club-cream: #f4f0e7;
  color: var(--portal-ink);
  background: var(--club-cream);
  font-family: "DIN 2014", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #39a476; outline-offset: 3px; }

.masthead {
  background: var(--portal-ink);
  color: #fff;
  border-bottom: 4px solid var(--club-gold);
  box-shadow: 0 3px 15px #24332414;
}
.masthead-inner {
  max-width: 1280px;
  min-height: 84px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { color: #fff; display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.brand img.is-poppy-crest { transform: translate(-3.9700805524%,-4.0276179517%) scale(1.3452243959); }
.brand span { min-width: 0; display: grid; gap: 2px; }
.brand strong { font-size: 1.25rem; line-height: 1.2; letter-spacing: 0; }
.club-link { color: #dce8df; font-size: .875rem; text-underline-offset: 3px; white-space: nowrap; }
.club-link:hover { color: #fff; }

main { width: min(100%, 1280px); margin: auto; padding: 32px 28px 64px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
h1, h2, h3, h4, .panel-heading { text-transform: capitalize; }
h1 { margin: 0; font-size: 2rem; line-height: 1.2; letter-spacing: normal; }
.error { padding: 12px 14px; margin-bottom: 16px; border: 1px solid #e5b0a3; border-radius: 10px; background: #fff4ee; color: #7e3022; font-size: .875rem; }
.error[hidden] { display: none; }
.match-centre { margin-bottom: 24px; }
.live-banner { width: min(100%, 900px); margin: 0 auto; padding: 20px 28px 24px; border-radius: 999px; background: var(--portal-ink); color: #fff; text-align: center; box-shadow: 0 5px 22px #24332418; }
.live-banner-top { display: flex; justify-content: center; align-items: center; gap: 14px; color: #d9e5dc; font-size: .82rem; font-weight: 700; }
.live-label { color: var(--club-gold-bright); }
.live-fixture-meta { margin: 0 0 12px; color: #d9e5dc; font-size: .8rem; overflow-wrap: anywhere; }
.live-banner-score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; margin: 8px auto 12px; font-size: 1.15rem; font-weight: 700; }
.live-banner-score span { min-width: 0; overflow-wrap: anywhere; }
.live-banner-score strong { color: var(--club-gold-bright); font-size: 2.15rem; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-banner-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--club-gold-bright); border-radius: 999px; color: var(--club-gold-bright); font-size: .9rem; font-weight: 700; text-decoration: none; }
.live-banner-link:hover { background: var(--club-gold-bright); color: var(--portal-ink); }
.match-detail { max-width: 950px; margin: 0 auto; }
.detail-back { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 16px; padding: 10px 18px; border: 1px solid #8da99a; border-radius: 12px; background: #fff; color: var(--portal-green); font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 3px 8px #2433240d; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.detail-back:hover { background: #f5f8f5; box-shadow: 0 5px 12px #24332414; transform: translateY(-1px); }
.detail-back:focus-visible { outline: 3px solid var(--club-gold-bright); outline-offset: 3px; }
.detail-sticky { position: sticky; top: 0; z-index: 3; padding-bottom: 10px; background: var(--club-cream); }
.detail-header { padding: 22px 26px; border-radius: 14px; background: var(--portal-ink); color: #fff; box-shadow: 0 5px 22px #24332418; }
.detail-header-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #d9e5dc; font-size: .84rem; font-weight: 700; }
.detail-status { color: var(--club-gold-bright); text-transform: capitalize; }
.detail-score { text-transform: none; letter-spacing: 0; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 18px; padding: 14px 0; text-align: center; font-size: 1.25rem; font-weight: 700; }
.detail-score span { min-width: 0; overflow-wrap: anywhere; }
.detail-score strong { color: var(--club-gold-bright); font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-score strong.stopped-score, .live-banner-score strong.stopped-score { font-size: clamp(.9rem, 3vw, 1.5rem); }
.detail-headline { overflow-wrap: anywhere; margin: 0; padding-top: 12px; border-top: 1px solid #ffffff38; color: #d9e5dc; text-align: center; font-size: .88rem; }
.shootout-score { margin: 0 0 12px; color: var(--club-gold-bright); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.shootout-history { padding: 18px 22px; border-bottom: 1px solid var(--portal-line); overflow-wrap: anywhere; }
.shootout-history h2 { margin: 0 0 12px; font-size: 1rem; }
.shootout-kicks { margin: 0; padding-left: 24px; }
.shootout-kicks li { padding: 6px 0 6px 4px; }
.shootout-kicks strong { margin-right: 10px; }
.detail-header-countdown { padding-top: 14px; border-top: 1px solid #ffffff38; }
.detail-header-countdown .countdown { max-width: 560px; margin: 0 auto; }
.detail-header-countdown .countdown-label { color: #d9e5dc; }
.detail-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 8px auto 0; border-bottom: 1px solid var(--portal-line); }
.detail-tab { flex: none; padding: 13px 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--portal-muted); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.detail-tab[aria-selected="true"] { border-bottom-color: var(--portal-green); color: var(--portal-ink); }
.detail-tab:focus-visible { outline: 3px solid #39a476; outline-offset: -3px; }
.detail-panel { max-width: 780px; margin: 18px auto 0; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.detail-panel.preview-panel { border: 0; background: transparent; }
.detail-preview { max-width: 780px; margin: 0 auto; padding: 28px 30px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; text-align: left; }
.preview-loading { min-height: 190px; display: grid; align-content: center; gap: 18px; max-width: 680px; margin: 0 auto; color: var(--portal-muted); font-size: .9rem; }
.preview-loading .loading-lines { gap: 16px; }
.preview-loading .loading-block { height: 16px; }
.preview-loading .loading-block:nth-child(2) { width: 92%; }
.preview-loading .loading-block:nth-child(3) { width: 76%; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .preview-spinner { animation: none; border-top-color: var(--club-gold); } }
.detail-preview > p:not(.detail-empty) { max-width: 680px; margin: 0 auto 14px; color: var(--portal-ink); font-size: 1rem; line-height: 1.65; }
.detail-preview > p:not(.detail-empty):last-child { margin-bottom: 0; }
.detail-preview .preview-introduction { font-size: 1.12rem; font-weight: 600; }
.preview-section { max-width: 680px; margin: 22px auto 0; }
.preview-section h3 { margin: 0 0 7px; color: var(--portal-ink); font-size: 1.05rem; }
.preview-section p { margin: 0; color: var(--portal-ink); line-height: 1.65; }
.detail-timeline { max-height: min(65vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.timeline-event { display: grid; grid-template-columns: minmax(62px,max-content) minmax(0,1fr); gap: 14px; padding: 18px 22px; border-bottom: 1px solid #e5ebe5; }
.timeline-event:last-child { border-bottom: 0; }
.timeline-minute { color: var(--portal-green); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-event-title { display: inline; margin: 0; font-size: .95rem; }
.timeline-event-body { min-width: 0; overflow-wrap: anywhere; }
.timeline-event.event-goal { border-left: 4px solid var(--portal-green); padding-left: 18px; background: #f2f6f1; }
.timeline-event.event-disallowed .timeline-event-title { color: #7e3022; }
.timeline-event.event-correction { padding-block: 12px; }
.event-corrected { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--portal-selected); color: var(--portal-muted); font-size: .7rem; font-weight: 600; }
.timeline-event-body p.event-context { font-size: .78rem; }
.timeline-event-body p { margin: 4px 0 0; color: var(--portal-muted); font-size: .9rem; }
.detail-empty { margin: 0; padding: 26px; color: var(--portal-muted); }
.timeline-source { margin: 0; padding: 14px 22px; border-bottom: 1px solid #e5ebe5; color: var(--portal-muted); font-size: .84rem; text-align: center; }
.detail-lineups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; padding: 24px; }
.detail-lineups:has(> .detail-empty) { display: block; padding: 0; }
.lineup-team { min-width: 0; overflow-wrap: anywhere; }
.lineup-team h3 { margin: 0 0 14px; font-size: 1.2rem; }
.lineup-team h4 { margin: 18px 0 8px; color: var(--portal-muted); font-size: .82rem; }
.lineup-team p { margin: 0; padding: 10px 0; border-top: 1px solid #e5ebe5; font-size: .9rem; }
.lineup-player { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; min-height: 50px; }
.lineup-number { display: inline-grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--club-gold-bright); color: var(--portal-ink); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lineup-player-name { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: .9rem; }
.lineup-marks { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; flex-basis: 100%; margin-left: 50px; }
.lineup-card { border-radius: 4px; padding: 3px 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.lineup-card.red { background: #f7d9d4; color: #912d22; }
.lineup-card.yellow { background: #f7edbb; color: #665117; }
.lineup-change { display: inline-flex; align-items: center; gap: 5px; color: var(--portal-ink); font-size: .84rem; }
.lineup-change-icon { color: var(--portal-green); font-size: 1.35rem; line-height: 1; }
.lineup-empty { color: var(--portal-muted); }
.detail-info { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 0 18px; max-width: 570px; margin: 0 auto; padding: 10px 24px; }
.detail-info dt,.detail-info dd { margin: 0; padding: 13px 0; border-bottom: 1px solid #e5ebe5; }
.detail-info dt { color: var(--portal-muted); }
.detail-info dd { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.detail-info dt:nth-last-of-type(1),.detail-info dd:last-child { border-bottom: 0; }
.detail-h2h { padding: 24px; }
.h2h-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; text-align: center; }
.h2h-stat { display: grid; gap: 4px; padding: 16px 8px; border-radius: 9px; background: var(--club-cream); }
.h2h-stat strong { color: var(--portal-ink); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.h2h-stat span { color: var(--portal-muted); font-size: .8rem; font-weight: 700; }
.h2h-heading { margin: 24px 0 10px; text-align: center; font-size: 1rem; }
.h2h-result { display: grid; grid-template-columns: 125px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid #e5ebe5; font-size: .88rem; }
.h2h-result strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.h2h-date,.h2h-note { color: var(--portal-muted); }
.h2h-note { margin: 18px 0 0; text-align: center; font-size: .8rem; }

.matches { display: grid; gap: 20px; }
.site-loading { display: grid; gap: 20px; }
.loading-card { min-width: 0; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; box-shadow: 0 5px 22px #24332407; }
.loading-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 61px; padding: 16px 22px; border-bottom: 1px solid var(--portal-line); }
.loading-block { display: block; border-radius: 999px; background: linear-gradient(100deg,#e8eee9 28%,#f8fbf8 46%,#e8eee9 64%); background-size: 240% 100%; animation: loading-sweep 1.45s ease-in-out infinite; }
.loading-card-top .pill { width: 116px; height: 27px; }
.loading-card-top .date { width: 142px; height: 16px; }
.loading-fixture { background: var(--portal-ink); border: 0; }
.loading-fixture .loading-card-top { border-bottom-color: #ffffff2b; }
.loading-fixture .loading-block { background: linear-gradient(100deg,#345440 28%,#4b6d57 46%,#345440 64%); background-size: 240% 100%; }
.loading-fixture .pill { width: 124px; border: 2px solid #b8924f; background: transparent; animation: none; }
.loading-fixture .date { width: 132px; }
.loading-fixture-body { display: grid; grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr); align-items: center; gap: 20px; min-height: 114px; padding: 24px 22px; }
.loading-fixture-body .team { width: min(100%,180px); height: 25px; }
.loading-fixture-body .team:last-child { justify-self: end; }
.loading-fixture-body .score { width: 62px; height: 44px; }
.loading-fixture .loading-lines { padding: 0 22px 20px; }
.loading-fixture .loading-lines .loading-block { width: 54%; height: 13px; margin: 0 auto; }
.loading-results,.loading-table { min-height: 360px; padding: 24px 22px; }
.loading-card .heading { width: 150px; height: 26px; margin-bottom: 28px; }
.loading-lines { display: grid; gap: 14px; }
.loading-lines .loading-block { width: 100%; height: 16px; }
.loading-lines .loading-block.short { width: 64%; }
.loading-table .loading-lines { gap: 0; border-top: 1px solid #e5ebe5; }
.loading-table .loading-lines .loading-block { width: 100%; height: 41px; border-radius: 0; border-bottom: 1px solid #e5ebe5; background: linear-gradient(100deg,#f2f6f1 28%,#ffffff 46%,#f2f6f1 64%); background-size: 240% 100%; }
.loading-copy { display: block; color: var(--portal-muted); font-size: .875rem; text-align: center; }
@keyframes loading-sweep { to { background-position: -140% 0; } }
.card, .empty {
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 22px #24332407;
  overflow: hidden;
}
.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--portal-line);
  color: var(--portal-ink);
  font-size: .875rem;
  font-weight: 600;
}
.card-top span:first-child { color: var(--portal-green); }
.card-body { padding: 20px 22px 24px; }
.scoreboard {
  padding: 24px 26px 20px;
  background: var(--portal-ink);
  color: #fff;
  border-radius: 12px;
}
.card.live .scoreboard { box-shadow: inset 0 4px 0 #e3bd68; }
.scoreline {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 20px;
  text-align: center;
}
.team { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.25; }
.team-name { display: block; }
.red-card-indicators { display: flex; justify-content: center; gap: 3px; min-height: 12px; margin-top: 7px; }
.live-score-team { display: grid; justify-items: center; align-content: center; gap: 0; }
.red-card-indicators { margin-top: 6px; }
.red-card-marker { position: relative; display: block; width: 9px; height: 13px; outline: none; }
.red-card-tile { display: block; width: 9px; height: 13px; border-radius: 2px; background: #c84237; box-shadow: 0 0 0 1px #ffffff33; cursor: pointer; }
.red-card-popover { position: absolute; z-index: 30; top: calc(100% + 9px); left: 50%; display: block; width: max-content; min-width: 86px; max-width: min(210px, 65vw); padding: 7px 9px; border: 1px solid #d4dfd6; border-radius: 7px; background: #fff; color: #243324; box-shadow: 0 4px 12px #12211724; font-size: 14px !important; line-height: 1.3 !important; text-align: left; opacity: 0; visibility: hidden; transform: translate(-50%, -2px); transition: opacity .12s ease, transform .12s ease, visibility .12s; pointer-events: none; }
.red-card-popover:before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 8px; height: 8px; background: #fff; border-top: 1px solid #d4dfd6; border-left: 1px solid #d4dfd6; transform: translate(-50%, 50%) rotate(45deg); }
.red-card-popover > strong, .red-card-popover > span { position: static !important; display: block !important; float: none !important; margin: 0 !important; padding: 0 !important; transform: none !important; font-size: 14px !important; line-height: 1.3 !important; letter-spacing: normal !important; text-transform: none !important; }
.red-card-popover > strong { font-weight: 700 !important; white-space: nowrap; }
.red-card-popover > span { font-weight: 500 !important; white-space: normal; overflow-wrap: anywhere; }
.red-card-marker:hover .red-card-popover, .red-card-marker:focus .red-card-popover { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.red-card-marker:focus-visible .red-card-tile { outline: 2px solid var(--club-gold-bright); outline-offset: 3px; }
.team small { display: block; margin-bottom: 8px; color: #a3b9ac; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; }
.score { color: #fff; font-size: clamp(3rem, 7vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }
.score.pending { color: #e3bd68; font-size: 2.25rem; }
.details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #3b6150;
  color: #c3d7ca;
  font-size: .875rem;
}
.badge { display: inline-block; padding: 5px 11px; border: 1px solid #62836c; border-radius: 30px; background: #285443; color: #fff; font-size: .8125rem; font-weight: 700; }
.badge.ready { background: transparent; color: #e3bd68; border-color: #9c7644; }
.badge.finished { background: #3a523a; }
.match-clock { color: #e3bd68; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.empty { padding: 32px 28px; }
.empty h2 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; }
.empty p { margin: 0; color: var(--portal-muted); font-size: .875rem; }

.fixture-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.next-countdown { width: min(100%, 900px); margin: 0 auto 24px; padding: 24px 28px 26px; border: 0; border-radius: 12px; background: transparent; color: var(--portal-ink); text-align: center; }
.next-countdown-title { margin: 0 0 18px; color: var(--portal-ink); font-size: 1rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; }
.overview-card { border: 0; border-radius: 12px; background: var(--portal-ink); color: #fff; box-shadow: 0 5px 22px #24332412; overflow: hidden; }
.overview-card.next-match.linked { transition: transform 180ms ease, box-shadow 180ms ease; }
.overview-card.next-match.linked:hover { transform: translate(-3px, -4px); box-shadow: 0 12px 24px #24332430; }
.overview-card.next-match .fixture-link-icon { color: var(--club-gold-bright); }
.overview-card.next-match.linked:hover .fixture-link-icon { color: #fff; }
.overview-card.next-match.linked:focus-within { outline: 3px solid var(--club-gold-bright); outline-offset: 3px; }
.overview-card.last-match { background: #e3e7e3; color: var(--portal-ink); border: 1px solid var(--portal-line); box-shadow: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.overview-card .card-link { display: block; position: relative; height: 100%; color: inherit; text-decoration: none; cursor: pointer; }
.overview-card.last-match:hover { transform: translate(-3px, -4px); box-shadow: 0 12px 24px #24332426; }
.overview-card.last-match:focus-within { outline: 3px solid var(--club-gold-bright); outline-offset: 3px; }
.overview-card .card-top { color: #e6f0e9; border-bottom: 0; }
.overview-card .fixture-label { display: inline-block; color: var(--club-gold-bright); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.fixture-link-icon { position: absolute; right: 22px; bottom: 20px; width: 18px; height: 18px; }
.overview-card .card-top span.fixture-label { color: var(--club-gold-bright); }
.overview-card .card-body { padding: 0 22px 20px; }
.overview-card .scoreboard { padding: 20px 0 0; background: transparent; display: flex; flex-direction: column; height: 100%; }
.overview-card .scoreline { min-height: 76px; }
.overview-card .details { border-top: 0; color: #e1ebe4; min-height: 74px; flex-direction: column; gap: 6px; margin-top: 20px; }
.countdown { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; color: var(--club-gold-bright); }
.countdown-unit { display: grid; gap: 4px; min-width: 0; text-align: center; }
.countdown-value { display: grid; place-items: center; min-height: 42px; border: 0; border-radius: 6px; background: #2c4937; color: var(--club-gold-bright); font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-label { color: var(--portal-muted); font-size: .68rem; font-weight: 700; line-height: 1.1; }
.countdown-now { color: var(--club-gold-bright); font-size: .95rem; font-weight: 700; }
.result-outcome-note { overflow-wrap: anywhere; }
.overview-card .competition { font-size: .875rem; }
.overview-card.last-match .card-top { color: var(--portal-ink); }
.overview-card.last-match:hover .card-top span.fixture-label { color: var(--portal-green); }
.overview-card.last-match .card-top span.fixture-label { color: var(--portal-ink); }
.overview-card.last-match .fixture-link-icon { color: var(--portal-ink); }
.overview-card.last-match:hover .fixture-link-icon { color: var(--portal-green); }
.overview-card.last-match .team { color: var(--portal-ink); }
.overview-card.last-match .team small { color: var(--portal-muted); }
.overview-card.last-match .score { color: var(--portal-ink); font-size: clamp(2.5rem, 5vw, 3.125rem); }
.overview-card.last-match .details { color: var(--portal-muted); }
.overview-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 20px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--portal-line); border-radius: 12px; box-shadow: 0 5px 22px #24332407; overflow: hidden; }
.panel-heading { display: flex; flex-direction: column; justify-content: center; min-height: 84px; padding: 17px 22px; border-bottom: 1px solid var(--portal-line); color: var(--portal-ink); font-size: 1.25rem; font-weight: 700; }
.league-subtitle { display: block; color: var(--portal-muted); font-size: .78rem; font-weight: 500; line-height: 1.4; }
.result-list { padding: 0 22px; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #e8eee9; }
.result-row:last-child { border-bottom: 0; }
.result-row strong { display: block; font-size: .9375rem; line-height: 1.35; }
.result-row small { display: block; margin-top: 3px; color: var(--portal-muted); font-size: .8125rem; }
.result-row b { color: var(--portal-green); font-size: 1.125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-outcome { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; }
.result-outcome.w { background: var(--portal-green); }
.result-outcome.d { background: var(--club-gold); }
.result-outcome.l { background: #9a4a3f; }
.panel-empty { margin: 0; padding: 20px 22px; color: var(--portal-muted); font-size: .875rem; }
.table-scroll { overflow: auto; max-height: 430px; margin: 12px 0; }
.league-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.league-table td, .league-table th { padding: 9px 10px; text-align: right; border-bottom: 1px solid #e5ebe5; white-space: nowrap; }
.league-table th:nth-child(2), .league-table tbody th { text-align: left; }
.league-table thead th { position: sticky; top: 0; background: #f1f5ef; color: var(--portal-muted); font-size: .75rem; font-weight: 700; z-index: 1; }
.league-table tbody th { font-weight: 400; }
.league-table tr:last-child td, .league-table tr:last-child th { border-bottom: 0; }
.league-table tbody tr { background: #fff; }
.league-table tbody tr.promotion-row { background: #faf0d4; }
.league-table tbody tr.playoff-row { background: #eaf3e7; }
.league-table tbody tr.holker-row { background: var(--portal-ink); color: #fff; font-weight: 700; }
.league-table tbody tr.holker-row th { color: #fff; font-weight: 700; }
.league-table tbody tr.holker-row td:first-child { box-shadow: inset 4px 0 var(--club-gold); }

footer { width: min(100%,1280px); margin: 0 auto; padding: 32px 0; color: #7b8b80; font-size: 11px; letter-spacing: 1px; display: flex; justify-content: space-between; gap: 15px; }
.site-footer { justify-content: center; text-align: center; letter-spacing: .4px; align-items: center; flex-direction: column; gap: 10px; }
.footer-stag { width: 22px; height: 38px; object-fit: contain; }
.privacy-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 10px; cursor: pointer; }
.privacy-dialog { width: min(560px, calc(100% - 32px)); max-height: min(80vh, 640px); padding: 0; border: 1px solid var(--portal-line); border-radius: 16px; background: #f5f1e8; color: var(--portal-ink); box-shadow: 0 20px 60px #0004; }
.privacy-dialog::backdrop { background: #18241dcc; }
.privacy-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--portal-line); }
.privacy-dialog-head h2 { margin: 0; font-size: 1.25rem; }
.privacy-close { width: 44px; height: 44px; border: 1px solid var(--portal-line); border-radius: 50%; background: #fff; color: var(--portal-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.privacy-dialog-body { padding: 12px 24px 24px; line-height: 1.6; }
.privacy-dialog-body p { margin: 12px 0; }
.privacy-dialog-body a { color: var(--portal-green); }

@media (max-width: 700px) {
  .live-banner { border-radius: 28px; padding: 18px; }
  .live-banner-score { gap: 8px; font-size: .9rem; }
  .live-banner-score strong { font-size: 1.6rem; }
  .detail-header { padding: 16px; }
  .detail-score { gap: 8px; font-size: .95rem; }
  .detail-tabs { gap: 0; }
  .detail-tab { flex: 1 1 25%; min-height: 44px; padding-inline: 4px; }
  .detail-header-top { align-items: start; flex-wrap: wrap; gap: 4px 12px; }
  .detail-info { grid-template-columns: 90px minmax(0,1fr); gap: 0 12px; padding-inline: 16px; font-size: .9rem; }
  .timeline-event { grid-template-columns: minmax(48px,max-content) minmax(0,1fr); gap: 10px; padding: 16px; }
  .timeline-event.event-goal { padding-left: 12px; }
  .detail-lineups { padding: 18px; gap: 18px; }
  .detail-tab { font-size: .8rem; }
  .detail-lineups { grid-template-columns: 1fr; }
  .h2h-result { grid-template-columns: minmax(0,1fr) auto; }
  .h2h-date { grid-column: 1 / -1; }
  .fixture-pair { grid-template-columns: 1fr; }
  .loading-fixture-body { grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr); gap: 10px; padding-inline: 16px; }
  .loading-card-top { padding-inline: 16px; }
  .overview-grid { grid-template-columns: 1fr; }
  .masthead-inner { min-height: 72px; padding: 10px 16px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 1rem; }
  main { padding: 24px 16px 48px; }
  .page-heading { align-items: start; }
  h1 { font-size: 1.625rem; }
  .scoreboard { padding: 22px 16px 18px; }
  .scoreline { gap: 10px; }
  .card-body { padding: 16px; }
  .card-top { padding: 13px 16px; }
  footer { padding: 32px 16px; }
}
@media (max-width: 480px) {
  .page-heading { display: grid; gap: 16px; }
  .scoreline { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 5px; }
  .score { font-size: clamp(2.2rem, 11vw, 3rem); }
  .score.pending { font-size: 1.8rem; }
  .team { font-size: .95rem; }
  .team small { font-size: .75rem; }
  .details { gap: 8px 12px; }
  footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
