/* MyJuve Season Dashboard 2.8.7 — locally scoped; safe alongside Newspaper and ANWP. */
.mjsd{--mjsd-gold:#c8a84b;--mjsd-ink:#101010;--mjsd-line:#e1e2e4;position:relative;box-sizing:border-box;width:100vw!important;max-width:100vw!important;min-width:0;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;padding:28px 0 43px;background:#fff;color:var(--mjsd-ink);font-family:'Fira Sans',Arial,sans-serif;overflow:hidden}
.mjsd *, .mjsd *::before,.mjsd *::after{box-sizing:border-box}
@supports(width:100dvw){.mjsd{width:100dvw!important;max-width:100dvw!important;margin-left:calc(50% - 50dvw)!important;margin-right:calc(50% - 50dvw)!important}}
.mjsd__inner{position:relative;width:90%;max-width:none;margin-inline:auto}
.mjsd__section-head{display:flex;align-items:center;gap:18px;margin:0 0 17px}
.mjsd__section-head h2{font:900 clamp(21px,2vw,31px)/1.17 'Fira Sans',Arial,sans-serif!important;letter-spacing:-.03em;text-transform:uppercase;color:#121212!important;margin:0!important;white-space:nowrap}
.mjsd__section-head>span{height:3px;background:var(--mjsd-gold);flex:1;min-width:18px}
.mjsd__tabs{display:none}
.mjsd__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:14px}
.mjsd__panel{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--mjsd-line);border-radius:13px;box-shadow:0 3px 13px rgba(0,0,0,.055);padding:12px 12px 14px;overflow:hidden}
.mjsd__panel-title{position:relative;display:flex;align-items:center;min-height:38px;border-bottom:1px solid #e8e8e8;margin:0 0 9px!important;padding:0 0 8px;font:900 clamp(12px,1.1vw,17px)/1.25 'Fira Sans',Arial,sans-serif!important;text-transform:uppercase;color:#171717!important;letter-spacing:-.018em}
.mjsd__panel-title::before{content:'';display:block;flex:0 0 auto;width:4px;height:24px;margin-right:9px;background:var(--mjsd-gold);border-radius:2px}
.mjsd__anwp{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;width:100%;font-family:'Fira Sans',Arial,sans-serif!important;font-size:12px;color:#272727}
.mjsd__anwp p{margin:0}
.mjsd__anwp :where(.anwp-b-wrap,.anwp-fl-table,.anwp-fl-stat-players,.anwp-fl-container){max-width:100%!important;min-width:0!important;width:100%;margin:0!important}
.mjsd__anwp table{border-collapse:collapse!important;width:100%!important;min-width:0!important;table-layout:auto!important;margin:0!important;background:#fff!important;font-family:'Fira Sans',Arial,sans-serif!important;font-size:11px!important;color:#171717!important}
.mjsd__anwp :where(table th,table td){border-left:0!important;border-right:0!important;border-bottom:1px solid #efefef!important;border-top:0!important;padding:7px 5px!important;vertical-align:middle!important;background:transparent;line-height:1.25!important;white-space:normal!important}
.mjsd__anwp table thead th{background:#f5f5f5!important;color:#555!important;font-size:10px!important;font-weight:700!important;text-align:left}
.mjsd__anwp table tbody tr:nth-child(even){background:#fafafa!important}
.mjsd__anwp table tbody tr:hover{background:#f8efda!important}
.mjsd__anwp table tbody tr.mjsd__juve-row,.mjsd__anwp table tbody tr.mjsd__juve-row>td{background:#f7e7bd!important;font-weight:800!important}.mjsd__anwp table tbody tr.mjsd__juve-row>td:first-child{box-shadow:inset 4px 0 0 var(--mjsd-gold)}
.mjsd__anwp :where(img){max-width:30px!important;max-height:30px!important;width:auto!important;height:auto!important;object-fit:contain!important}
.mjsd__anwp :where(a){color:#191919!important;text-decoration:none!important}
.mjsd__anwp :where(a:hover){color:#99741e!important;text-decoration:underline!important}
.mjsd__anwp :where(.anwp-fl-standing-table .table, .anwp-fl-standing-table){width:100%!important}
.mjsd__anwp :where(.anwp-fl-table-responsive,.table-responsive){overflow-x:auto;max-width:100%;scrollbar-width:thin}
.mjsd__anwp :where(button,.btn,.anwp-fl-btn){font-family:'Fira Sans',Arial,sans-serif!important}
.mjsd__anwp :where(.anwp-fl-show-full,.anwp-fl-bottom-link,.anwp-fl-footer){font-size:11px!important;color:#a27d25!important}
.mjsd__empty{font:500 13px/1.55 'Fira Sans',Arial,sans-serif!important;color:#747474!important;background:#f7f7f7;border-radius:8px;padding:20px 12px!important;text-align:center}
.mjsd__empty a{display:block;margin-top:8px;color:#a27b22!important}

.mjsd__anwp--serie :where(table tbody td:nth-child(2),table tbody td:nth-child(3)),
.mjsd__anwp--europa :where(table tbody td:nth-child(2),table tbody td:nth-child(3)){vertical-align:middle!important}
.mjsd__anwp--serie :where(table tbody td:nth-child(2) > a,table tbody td:nth-child(2) > span,table tbody td:nth-child(2) > div),
.mjsd__anwp--europa :where(table tbody td:nth-child(2) > a,table tbody td:nth-child(2) > span,table tbody td:nth-child(2) > div),
.mjsd__anwp--serie :where(table tbody td:nth-child(3) > a,table tbody td:nth-child(3) > span,table tbody td:nth-child(3) > div),
.mjsd__anwp--europa :where(table tbody td:nth-child(3) > a,table tbody td:nth-child(3) > span,table tbody td:nth-child(3) > div){display:inline-flex!important;align-items:center!important;gap:8px;vertical-align:middle!important}
.mjsd__anwp--serie :where(table tbody td img),.mjsd__anwp--europa :where(table tbody td img){vertical-align:middle!important;margin-right:8px!important}
.mjsd__table-link{margin-top:auto;padding-top:10px;font:700 13px/1.4 'Fira Sans',Arial,sans-serif}
.mjsd__table-link a{color:#a27d25!important;text-decoration:none!important}
.mjsd__table-link a:hover{text-decoration:underline!important}
.mjsd__anwp--goals :where(.anwp-fl-stat-players,.anwp-fl-player-stats,.anwp-fl-container),
.mjsd__anwp--assists :where(.anwp-fl-stat-players,.anwp-fl-player-stats,.anwp-fl-container){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.mjsd__anwp--goals :where(.anwp-fl-show-full,.anwp-fl-bottom-link,.anwp-fl-footer),
.mjsd__anwp--assists :where(.anwp-fl-show-full,.anwp-fl-bottom-link,.anwp-fl-footer){margin-top:auto!important;padding-top:10px!important}
/* native ANWP statistic lists: compact and balanced */
.mjsd__anwp--goals :where(.anwp-fl-stat-players__item,.anwp-fl-stat-player,.anwp-fl-player-stats__item),
.mjsd__anwp--assists :where(.anwp-fl-stat-players__item,.anwp-fl-stat-player,.anwp-fl-player-stats__item){padding:5px 2px!important;border-bottom:1px solid #eee}
.mjsd__round-section{margin-top:17px;background:#fff;border:1px solid var(--mjsd-line);border-radius:13px;box-shadow:0 3px 13px rgba(0,0,0,.04);overflow:hidden}
.mjsd__round-details{margin:0;padding:0}
.mjsd__round-details>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 18px;cursor:pointer;list-style:none;border-bottom:1px solid #eaeaea;user-select:none}
.mjsd__round-details>summary::-webkit-details-marker{display:none}
.mjsd__round-details>summary:focus-visible{outline:2px solid var(--mjsd-gold);outline-offset:-3px}
.mjsd__round-title{font:900 clamp(15px,1.45vw,20px)/1.25 'Fira Sans',Arial,sans-serif;text-transform:uppercase;color:#111}
.mjsd__round-chevron{width:11px;height:11px;border-right:2px solid #7d7d7d;border-bottom:2px solid #7d7d7d;transform:rotate(45deg);transition:transform .15s ease;display:none}
.mjsd__round-body{padding:14px 14px 18px}
.mjsd__round-number{font:700 11px/1.2 'Fira Sans',Arial,sans-serif;color:#8a6b22;margin-bottom:10px}
.mjsd__matches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:5px}
.mjsd__match{display:grid;grid-template-columns:77px minmax(0,1fr) 56px minmax(0,1fr);align-items:center;gap:5px;min-height:53px;border:1px solid #eaeaea;border-radius:8px;background:#fcfcfc;color:#202020!important;text-decoration:none!important;padding:7px 10px;font:600 12px/1.3 'Fira Sans',Arial,sans-serif;transition:background .15s ease}
.mjsd__match:hover{background:#f6f6f6;color:#202020!important}
.mjsd__match--juve{background:#f9edd0!important;border-color:#ead29e}
.mjsd__match-date{color:#575757;font:600 10px/1.25 'Fira Sans',Arial,sans-serif;white-space:nowrap;text-align:left}
.mjsd__match-date small{display:block;color:#888;font-size:10px;font-weight:400}
.mjsd__match-team{display:flex;min-width:0;align-items:center;gap:6px;font:700 12px/1.1 'Fira Sans',Arial,sans-serif}
.mjsd__match-team>span:not(.mjsd__match-no-logo){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mjsd__match-team--home{justify-content:flex-end;text-align:right}
.mjsd__match-team--away{justify-content:flex-start;text-align:left}
.mjsd__match-team img,.mjsd__match-no-logo{display:block;width:26px;height:26px;min-width:26px;object-fit:contain}
.mjsd__match-score{display:flex;align-items:center;justify-content:center;min-width:0;padding:7px 3px;background:#222940;border-radius:4px;color:#fff;font:900 13px/1 'Fira Sans',Arial,sans-serif;white-space:nowrap;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.mjsd__match--juve .mjsd__match-score{background:#171717}
@media (max-width:1279px){.mjsd__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mjsd__panel{padding:15px}.mjsd__panel-title{font-size:16px!important}}
@media (max-width:850px){.mjsd__matches{grid-template-columns:1fr}.mjsd__match{grid-template-columns:76px minmax(0,1fr) 62px minmax(0,1fr)}}
@media (max-width:767px){
  .mjsd{padding:22px 0 95px}
  .mjsd__inner{width:90%}
  .mjsd__section-head{gap:10px;margin-bottom:15px}
  .mjsd__section-head h2{font-size:22px!important;white-space:normal}
  .mjsd__tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 0 9px;max-width:100%}
  .mjsd__tab{border:1px solid #e7e7e7;border-radius:7px;min-width:0;min-height:40px;padding:5px 2px;background:#f0f0f0;color:#191919;font:800 10px/1.2 'Fira Sans',Arial,sans-serif;text-align:center;cursor:pointer;box-shadow:none}
  .mjsd__tab.is-active{background:var(--mjsd-gold);color:#101010;border-color:var(--mjsd-gold)}
  .mjsd__tab:focus-visible{outline:2px solid #997420;outline-offset:2px}
  .mjsd__grid{display:block}
  .mjsd__panel{display:none;margin:0;min-height:310px;padding:12px;border-radius:12px}
  .mjsd__panel.is-active{display:block}
  .mjsd__panel-title{font-size:15px!important;min-height:30px;padding-bottom:7px;margin-bottom:8px!important}
  .mjsd__anwp table{font-size:12px!important}
  .mjsd__anwp :where(table th, table td){padding:9px 4px!important}
  .mjsd__round-section{margin-top:16px}
  .mjsd__round-details>summary{padding:15px 14px;border-bottom:0}
  .mjsd__round-details[open]>summary{border-bottom:1px solid #eee}
  .mjsd__round-chevron{display:block}
  .mjsd__round-details[open] .mjsd__round-chevron{transform:rotate(225deg)}
  .mjsd__round-title{font-size:15px}
  .mjsd__round-body{padding:8px}
  .mjsd__match{min-height:52px;grid-template-columns:43px minmax(0,1fr) 47px minmax(0,1fr);gap:3px;padding:7px 5px;font-size:10px}
  .mjsd__match-team{font-size:10px;gap:3px}
  .mjsd__match-team img,.mjsd__match-no-logo{width:21px;height:21px;min-width:21px}
  .mjsd__match-date,.mjsd__match-date small{font-size:9px}
  .mjsd__match-score{padding:7px 2px;font-size:11px}
}
@media (max-width:375px){.mjsd__tab{font-size:9px}.mjsd__match-team img,.mjsd__match-no-logo{width:17px;height:17px;min-width:17px}.mjsd__match{grid-template-columns:39px minmax(0,1fr) 41px minmax(0,1fr)}.mjsd__match-score{font-size:10px}}
@media (prefers-reduced-motion:reduce){.mjsd__match,.mjsd__round-chevron{transition:none}}

/* Display converted local date without affecting the compact fixture row. */
.mjsd__match-date time{display:inline;font:inherit;color:inherit}

/* 2.8.4: all four season panels use ten clear, equally sized data rows. */
.mjsd__anwp--serie table tbody tr,
.mjsd__anwp--europa table tbody tr,
.mjsd__anwp--goals table tbody tr,
.mjsd__anwp--assists table tbody tr {height:58px!important;min-height:58px!important}
.mjsd__anwp--goals table,.mjsd__anwp--assists table {table-layout:fixed!important}
.mjsd__anwp--goals table th,.mjsd__anwp--assists table th {height:34px!important;background:#f5f5f5!important;color:#555!important;font-size:10px!important;font-weight:800!important;vertical-align:middle!important}
.mjsd__anwp--goals table :is(th,td):nth-child(1),
.mjsd__anwp--assists table :is(th,td):nth-child(1) {width:23px!important;text-align:center!important;padding-left:2px!important;padding-right:2px!important}
.mjsd__anwp--goals table :is(th,td):nth-child(3),
.mjsd__anwp--assists table :is(th,td):nth-child(3) {width:45px!important;text-align:center!important;padding-left:2px!important;padding-right:2px!important;font-variant-numeric:tabular-nums}
.mjsd__anwp--goals table :is(th,td):nth-child(4),
.mjsd__anwp--assists table :is(th,td):nth-child(4) {width:43px!important;text-align:center!important;padding-left:2px!important;padding-right:2px!important;font-variant-numeric:tabular-nums}
.mjsd__anwp--goals table :is(th,td):nth-child(2),
.mjsd__anwp--assists table :is(th,td):nth-child(2) {text-align:left!important;overflow-wrap:anywhere}
.mjsd__anwp--goals table tbody tr:nth-child(n+11),
.mjsd__anwp--assists table tbody tr:nth-child(n+11) {display:none!important}
.mjsd__anwp--goals.is-expanded table tbody tr:nth-child(n+11),
.mjsd__anwp--assists.is-expanded table tbody tr:nth-child(n+11) {display:table-row!important}
/* No flash of ANWP's full league standings even if cached JS is delayed. */
.mjsd__anwp--europa table tbody tr:nth-child(n+11):not(.mjsd__keep-row),
.mjsd__anwp--europa table tbody tr.mjsd__omit-row {display:none!important}
.mjsd__anwp--europa table tbody tr.mjsd__keep-row {display:table-row!important}
.mjsd__anwp table tbody tr.mjsd__juve-row,
.mjsd__anwp table tbody tr.mjsd__juve-row > td {background:#f7e7bd!important;font-weight:800!important}
.mjsd__anwp--serie table tbody tr.mjsd__juve-row > td:first-child,
.mjsd__anwp--europa table tbody tr.mjsd__juve-row > td:first-child {box-shadow:inset 4px 0 0 var(--mjsd-gold)!important}
.mjsd__anwp--serie table tbody td img,
.mjsd__anwp--europa table tbody td img {vertical-align:middle!important;margin-right:6px!important}
.mjsd__anwp--serie table tbody td a,
.mjsd__anwp--europa table tbody td a {vertical-align:middle!important}
.mjsd__leaders-toggle {display:block;width:100%;min-height:37px;margin-top:auto!important;padding:8px 10px;border:1px solid #cbd1d8;border-radius:4px;background:#f7f8fa;color:#2c3035;font:600 12px/1.3 'Fira Sans',Arial,sans-serif;cursor:pointer;text-align:center}
.mjsd__leaders-toggle:hover {background:#f5e9ce;border-color:var(--mjsd-gold)}
.mjsd__leaders-toggle[hidden]{display:none!important}
.mjsd__leaders-toggle:focus-visible {outline:2px solid var(--mjsd-gold);outline-offset:2px}
.mjsd__fallback-head{display:grid;grid-template-columns:minmax(0,1fr) 48px 48px;gap:5px;padding:9px 7px;background:#f5f5f5;color:#555;font:800 10px/1.3 'Fira Sans',Arial,sans-serif}
.mjsd__fallback-head>span:nth-child(n+2){text-align:center}
@media(max-width:767px){
  .mjsd__anwp--serie table tbody tr,
  .mjsd__anwp--europa table tbody tr,
  .mjsd__anwp--goals table tbody tr,
  .mjsd__anwp--assists table tbody tr {height:54px!important;min-height:54px!important}
}

/* ANWP 0.18+ div-based mini standing: matching club position accent. */
.mjsd__anwp--serie .mjsd__juve-row,.mjsd__anwp--europa .mjsd__juve-row,
.mjsd__anwp--serie .mjsd__juve-cell,.mjsd__anwp--europa .mjsd__juve-cell{background:#f7e7bd!important;font-weight:800!important}

/* ===== 2.8.6: Unified presentation of all FOUR ANWP statistics tables =====
   Deliberately scoped to Season Dashboard; no changes to standings values. */
.mjsd {
  --mjsd-cell-stroke: #e1e4e8;
  --mjsd-head-fill: #f2f3f5;
  --mjsd-row-fill: #ffffff;
  --mjsd-row-alt: #fafbfc;
}
/* Shared panel geometry and clean interior. */
.mjsd .mjsd__grid > .mjsd__panel {
  background-color: #fff !important;
  border: 1px solid #dedfe3 !important;
  box-shadow: 0 3px 13px rgba(0,0,0,.055) !important;
}
.mjsd .mjsd__panel .mjsd__anwp table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid var(--mjsd-cell-stroke) !important;
  background: var(--mjsd-row-fill) !important;
  font-family: 'Fira Sans',Arial,sans-serif !important;
  color: #222 !important;
}
/* Use the SAME column header style in both tables and player rankings. */
.mjsd .mjsd__panel .mjsd__anwp table thead > tr {
  height: 36px !important;
  background: var(--mjsd-head-fill) !important;
}
.mjsd .mjsd__panel .mjsd__anwp table thead > tr > :is(th,td) {
  height: 36px !important;
  padding: 7px 5px !important;
  border: 1px solid var(--mjsd-cell-stroke) !important;
  background: var(--mjsd-head-fill) !important;
  color: #62666a !important;
  font: 800 10px/1.25 'Fira Sans',Arial,sans-serif !important;
  text-transform: none !important;
  vertical-align: middle !important;
}
/* All forty visible rows receive identical stripes, borders and text rhythm. */
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr {
  height: 58px !important;
  background: var(--mjsd-row-fill) !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr:nth-child(even) {
  background: var(--mjsd-row-alt) !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr > :is(th,td) {
  height: 58px !important;
  min-height: 58px !important;
  padding: 7px 5px !important;
  border: 1px solid var(--mjsd-cell-stroke) !important;
  background: var(--mjsd-row-fill) !important;
  color: #222 !important;
  font: 600 11.5px/1.3 'Fira Sans',Arial,sans-serif !important;
  vertical-align: middle !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr:nth-child(even) > :is(th,td) {
  background: var(--mjsd-row-alt) !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr:hover > :is(th,td) {
  background: #f7f2e6 !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody td a,
.mjsd .mjsd__panel .mjsd__anwp table tbody td span,
.mjsd .mjsd__panel .mjsd__anwp table tbody td strong {
  font-family: 'Fira Sans',Arial,sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody td img {
  max-width: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
/* Column values align across the leaderboard columns. */
.mjsd .mjsd__panel .mjsd__anwp--goals table :is(thead,tbody) tr > :is(th,td):nth-child(n+3),
.mjsd .mjsd__panel .mjsd__anwp--assists table :is(thead,tbody) tr > :is(th,td):nth-child(n+3) {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}
/* Juventus remains the only highlighted club in either standings table. */
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr.mjsd__juve-row,
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr.mjsd__juve-row > :is(th,td) {
  background: #f7e7bd !important;
  font-weight: 800 !important;
}
.mjsd .mjsd__panel .mjsd__anwp table tbody > tr.mjsd__juve-row > :is(th,td):first-child {
  box-shadow: inset 4px 0 0 var(--mjsd-gold) !important;
}
/* Unified bottom action — one subtle full-width button in all four panels. */
.mjsd .mjsd__panel .mjsd__anwp .mjsd__table-link {
  margin-top: auto !important;
  padding-top: 9px !important;
}
.mjsd .mjsd__panel .mjsd__anwp a.mjsd__table-action,
.mjsd .mjsd__panel .mjsd__anwp .mjsd__table-link a,
.mjsd .mjsd__panel .mjsd__anwp button.mjsd__leaders-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 8px 7px !important;
  border: 1px solid #d6d9df !important;
  border-radius: 5px !important;
  background: #f7f8fa !important;
  color: #33383d !important;
  font: 700 11.5px/1.35 'Fira Sans',Arial,sans-serif !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: normal !important;
  cursor: pointer;
}
.mjsd .mjsd__panel .mjsd__anwp a.mjsd__table-action:hover,
.mjsd .mjsd__panel .mjsd__anwp .mjsd__table-link a:hover,
.mjsd .mjsd__panel .mjsd__anwp button.mjsd__leaders-toggle:hover {
  background: #f6e9ca !important;
  border-color: var(--mjsd-gold) !important;
  color: #161616 !important;
}
/* If ANWP's standing bottom link is wrapped in a generic footer, align it. */
.mjsd .mjsd__panel .mjsd__anwp :is(.anwp-fl-bottom-link,.anwp-fl-standing-bottom-link,.anwp-fl-standing__bottom-link) {
  margin-top: auto !important;
}
@media(max-width:767px) {
  .mjsd .mjsd__panel .mjsd__anwp table tbody > tr,
  .mjsd .mjsd__panel .mjsd__anwp table tbody > tr > :is(th,td) {
    height: 54px !important;
    min-height: 54px !important;
  }
  .mjsd .mjsd__panel .mjsd__anwp table tbody td a,
  .mjsd .mjsd__panel .mjsd__anwp table tbody td span,
  .mjsd .mjsd__panel .mjsd__anwp table tbody td strong {font-size: 11px !important;}
}

/* 2.8.8 — One robust two-column layout for ANWP standings, irrespective
   of whether the source wraps the logo and the team name in one/two links. */
.mjsd .mjsd__anwp--serie td.mjsd__club-cell,
.mjsd .mjsd__anwp--europa td.mjsd__club-cell {
  vertical-align:middle!important;
  text-align:left!important;
}
.mjsd .mjsd__anwp--serie .mjsd__club-identity,
.mjsd .mjsd__anwp--europa .mjsd__club-identity {
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  column-gap:8px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  text-align:left!important;
}
.mjsd .mjsd__anwp--serie .mjsd__crest-slot,
.mjsd .mjsd__anwp--europa .mjsd__crest-slot {
  display:flex!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
}
.mjsd .mjsd__anwp--serie .mjsd__crest-slot a,
.mjsd .mjsd__anwp--europa .mjsd__crest-slot a {
  display:flex!important;
  width:100%!important;
  height:100%!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
}
.mjsd .mjsd__anwp--serie .mjsd__crest-slot img,
.mjsd .mjsd__anwp--europa .mjsd__crest-slot img {
  display:block!important;
  width:30px!important;
  height:30px!important;
  min-width:0!important;
  max-width:30px!important;
  max-height:30px!important;
  object-fit:contain!important;
  object-position:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
.mjsd .mjsd__anwp--serie .mjsd__name-slot,
.mjsd .mjsd__anwp--europa .mjsd__name-slot {
  display:block!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-align:left!important;
  padding:0!important;
  margin:0!important;
}
.mjsd .mjsd__anwp--serie .mjsd__name-slot a,
.mjsd .mjsd__anwp--europa .mjsd__name-slot a,
.mjsd .mjsd__anwp--serie .mjsd__name-slot span,
.mjsd .mjsd__anwp--europa .mjsd__name-slot span {
  display:block!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:left!important;
  margin:0!important;
  padding:0!important;
}
@media(max-width:767px){
  .mjsd .mjsd__anwp--serie .mjsd__club-identity,
  .mjsd .mjsd__anwp--europa .mjsd__club-identity{grid-template-columns:26px minmax(0,1fr)!important;column-gap:6px!important}
  .mjsd .mjsd__anwp--serie .mjsd__crest-slot,
  .mjsd .mjsd__anwp--europa .mjsd__crest-slot{width:26px!important;min-width:26px!important;max-width:26px!important;height:26px!important}
  .mjsd .mjsd__anwp--serie .mjsd__crest-slot img,
  .mjsd .mjsd__anwp--europa .mjsd__crest-slot img{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important}
}

/* 2.8.9: PHP-rendered canonical two-column club identity.
   This must work without JavaScript, including under WP Rocket JS delay. */
.mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell,
.mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell{
  vertical-align:middle!important;
  text-align:left!important;
  padding-left:6px!important;
  padding-right:4px!important;
}
.mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell>.mjsd__club-identity,
.mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell>.mjsd__club-identity{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  column-gap:8px!important;
  align-items:center!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell .mjsd__crest-slot,
.mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell .mjsd__crest-slot{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  margin:0!important;
  padding:0!important;
}
.mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell .mjsd__crest-slot img,
.mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell .mjsd__crest-slot img{
  display:block!important;
  width:30px!important;
  height:30px!important;
  max-width:30px!important;
  max-height:30px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
.mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell .mjsd__name-slot,
.mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell .mjsd__name-slot{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  text-align:left!important;
  overflow:hidden!important;
}
.mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell .mjsd__name-slot>a,
.mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell .mjsd__name-slot>a{
  display:block!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.3!important;
}
@media(max-width:767px){
  .mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell>.mjsd__club-identity,
  .mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell>.mjsd__club-identity{
    grid-template-columns:26px minmax(0,1fr)!important;
    column-gap:6px!important;
  }
  .mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell .mjsd__crest-slot,
  .mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell .mjsd__crest-slot{
    width:26px!important;height:26px!important;min-width:26px!important;
  }
  .mjsd .mjsd__anwp--serie table tbody td.mjsd__club-cell .mjsd__crest-slot img,
  .mjsd .mjsd__anwp--europa table tbody td.mjsd__club-cell .mjsd__crest-slot img{
    width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;
  }
}


/* 2.8.10: ANWP 0.18.x renders mini standings as a flat CSS grid of DIVs,
   NOT a <table>. These are the actual club cells from ANWP's HTML:
   <div class="anwp-grid-table__td standing-table-mini__club ...">
     <img ...> <a class="club__link">...</a>
   </div>
   Equal-sized image BOXES, not equal-sized image artwork, establish a
   stable x-coordinate for every name (including Juventus' narrow crest).
   This applies even when the earlier table/td markup normalizer is unused. */
.mjsd .mjsd__anwp--serie .standing-table-mini .anwp-grid-table__td.standing-table-mini__club,
.mjsd .mjsd__anwp--europa .standing-table-mini .anwp-grid-table__td.standing-table-mini__club {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 8px !important;
  text-align: left !important;
  min-width: 0 !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.mjsd .mjsd__anwp--serie .standing-table-mini .anwp-grid-table__td.standing-table-mini__club > img,
.mjsd .mjsd__anwp--europa .standing-table-mini .anwp-grid-table__td.standing-table-mini__club > img {
  display: block !important;
  box-sizing: border-box !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  object-position: center !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}
.mjsd .mjsd__anwp--serie .standing-table-mini .anwp-grid-table__td.standing-table-mini__club > .club__link,
.mjsd .mjsd__anwp--europa .standing-table-mini .anwp-grid-table__td.standing-table-mini__club > .club__link {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  line-height: 1.25 !important;
}
@media(max-width:767px) {
  .mjsd .mjsd__anwp--serie .standing-table-mini .anwp-grid-table__td.standing-table-mini__club,
  .mjsd .mjsd__anwp--europa .standing-table-mini .anwp-grid-table__td.standing-table-mini__club {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .mjsd .mjsd__anwp--serie .standing-table-mini .anwp-grid-table__td.standing-table-mini__club > img,
  .mjsd .mjsd__anwp--europa .standing-table-mini .anwp-grid-table__td.standing-table-mini__club > img {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }
}


/* 2.8.11 — same vertical rhythm across ANWP DIV standings and HTML player tables. */
.mjsd{--mjsd-stat-head-height:36px;--mjsd-stat-row-height:58px;--mjsd-stat-action-gap:9px}
/* ANWP mini standings are FLAT grids of DIV cells, not table/TR elements.
   Match the physical size of their rows to the player tables. */
.mjsd .mjsd__anwp--serie .standing-table-mini,
.mjsd .mjsd__anwp--europa .standing-table-mini{
  grid-template-rows:var(--mjsd-stat-head-height) repeat(10,var(--mjsd-stat-row-height))!important;
  grid-auto-rows:var(--mjsd-stat-row-height)!important
}
.mjsd .mjsd__anwp--serie .standing-table-mini>.anwp-grid-table__th,
.mjsd .mjsd__anwp--europa .standing-table-mini>.anwp-grid-table__th{
  height:var(--mjsd-stat-head-height)!important;min-height:var(--mjsd-stat-head-height)!important;
  align-self:stretch!important;align-content:center!important
}
.mjsd .mjsd__anwp--serie .standing-table-mini>.anwp-grid-table__td,
.mjsd .mjsd__anwp--europa .standing-table-mini>.anwp-grid-table__td{
  height:var(--mjsd-stat-row-height)!important;min-height:var(--mjsd-stat-row-height)!important;
  align-self:stretch!important;align-content:center!important
}
/* Keep the corrected logo/name GRID from 2.8.10 untouched. */
.mjsd .mjsd__anwp--serie .standing-table-mini>.standing-table-mini__club.anwp-grid-table__td,
.mjsd .mjsd__anwp--europa .standing-table-mini>.standing-table-mini__club.anwp-grid-table__td{
  align-items:center!important
}
.mjsd .mjsd__panel .mjsd__anwp--goals table thead tr,
.mjsd .mjsd__panel .mjsd__anwp--assists table thead tr,
.mjsd .mjsd__panel .mjsd__anwp--goals table thead :is(th,td),
.mjsd .mjsd__panel .mjsd__anwp--assists table thead :is(th,td){
  height:var(--mjsd-stat-head-height)!important;min-height:var(--mjsd-stat-head-height)!important
}
.mjsd .mjsd__panel .mjsd__anwp--goals table tbody tr,
.mjsd .mjsd__panel .mjsd__anwp--assists table tbody tr,
.mjsd .mjsd__panel .mjsd__anwp--goals table tbody :is(td,th),
.mjsd .mjsd__panel .mjsd__anwp--assists table tbody :is(td,th){
  height:var(--mjsd-stat-row-height)!important;min-height:var(--mjsd-stat-row-height)!important
}
/* Match player names to the standings club-name font, not numerical values. */
.mjsd .mjsd__panel .mjsd__anwp--goals table tbody tr>td:nth-child(2),
.mjsd .mjsd__panel .mjsd__anwp--assists table tbody tr>td:nth-child(2),
.mjsd .mjsd__panel .mjsd__anwp--goals table tbody tr>td:nth-child(2) a,
.mjsd .mjsd__panel .mjsd__anwp--assists table tbody tr>td:nth-child(2) a,
.mjsd .mjsd__panel .mjsd__anwp--goals table tbody tr>td:nth-child(2) span:not(.mjsd__player-flag),
.mjsd .mjsd__panel .mjsd__anwp--assists table tbody tr>td:nth-child(2) span:not(.mjsd__player-flag){
  font-size:14px!important;line-height:1.25!important;font-weight:700!important
}
.mjsd .mjsd__panel .mjsd__anwp .mjsd__player-flag{
  display:inline-block!important;vertical-align:middle!important;width:18px!important;height:18px!important;
  min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;
  margin:0!important;flex:none!important;overflow:visible!important
}
/* Assists needs more horizontal room than goals; remaining space belongs to Player. */
.mjsd .mjsd__panel .mjsd__anwp--assists table :is(thead,tbody) tr>:is(th,td):nth-child(4){
  width:65px!important;min-width:65px!important;max-width:65px!important;
  font-size:10px!important;white-space:nowrap!important;text-align:center!important
}
.mjsd .mjsd__panel .mjsd__anwp--assists table :is(thead,tbody) tr>:is(th,td):nth-child(2){width:auto!important;min-width:0!important}
/* The action under both leaderboards gets the same 9px separation as the
   full-standing links, instead of touching the last row. */
.mjsd .mjsd__panel .mjsd__anwp--goals button.mjsd__leaders-toggle,
.mjsd .mjsd__panel .mjsd__anwp--assists button.mjsd__leaders-toggle{
  margin-top:var(--mjsd-stat-action-gap)!important;flex:0 0 auto!important
}
@media(max-width:767px){
  .mjsd{--mjsd-stat-row-height:54px}
  .mjsd .mjsd__panel .mjsd__anwp--goals table tbody tr>td:nth-child(2),
  .mjsd .mjsd__panel .mjsd__anwp--assists table tbody tr>td:nth-child(2),
  .mjsd .mjsd__panel .mjsd__anwp--goals table tbody tr>td:nth-child(2) a,
  .mjsd .mjsd__panel .mjsd__anwp--assists table tbody tr>td:nth-child(2) a{
    font-size:12px!important
  }
  .mjsd .mjsd__panel .mjsd__anwp--assists table :is(thead,tbody) tr>:is(th,td):nth-child(4){
    width:62px!important;min-width:62px!important;max-width:62px!important
  }
}

/* 2.8.13: nationality flags left of names in both leaderboards. */
.mjsd .mjsd__anwp--goals table tbody td:nth-child(2) .mjsd__player-inline,
.mjsd .mjsd__anwp--assists table tbody td:nth-child(2) .mjsd__player-inline{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;max-width:100%!important;min-width:0!important;
  vertical-align:middle!important;text-align:left!important;
}
.mjsd .mjsd__anwp--goals table tbody td:nth-child(2) .mjsd__player-inline>a,
.mjsd .mjsd__anwp--assists table tbody td:nth-child(2) .mjsd__player-inline>a{
  min-width:0!important;margin:0!important;vertical-align:middle!important;
}
.mjsd .mjsd__anwp--goals table tbody td:nth-child(2) .mjsd__player-inline>.mjsd__player-flag,
.mjsd .mjsd__anwp--assists table tbody td:nth-child(2) .mjsd__player-inline>.mjsd__player-flag{
  flex:0 0 18px!important;margin:0!important;order:0!important;
}

/* 2.8.18 — polished Serie A matchweek cards (only .mjsd__round-*).
   Real ANWP club crests and imported expected goals replace football glyphs. */
.mjsd .mjsd__round-section{
  border:1px solid #dfe2e5;
  border-radius:15px;
  background:#fff;
}
.mjsd .mjsd__round-details>summary{
  padding:18px 21px;
  background:#fff;
}
.mjsd .mjsd__round-body{padding:18px 20px 22px}
.mjsd .mjsd__round-number{
  font-size:12px;
  font-weight:800;
  letter-spacing:.012em;
  margin-bottom:14px;
}
.mjsd .mjsd__matches{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:14px;
  row-gap:9px;
}
.mjsd .mjsd__match{
  grid-template-columns:78px minmax(0,1fr) 95px minmax(0,1fr);
  min-height:78px;
  gap:9px;
  padding:10px 12px;
  border:1px solid #e2e5e9;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.025);
  color:#191919!important;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.mjsd .mjsd__match:hover{border-color:#d8bb73;background:#fffaf0;box-shadow:0 4px 12px rgba(0,0,0,.055)}
.mjsd .mjsd__match--juve{
  background:#fbf2da!important;
  border-color:#dcc382!important;
}
.mjsd .mjsd__match--juve:hover{background:#f9ecc8!important}
.mjsd .mjsd__match-date{
  display:flex;flex-direction:column;justify-content:center;
  color:#62666c;font:700 11px/1.3 'Fira Sans',Arial,sans-serif;
  white-space:nowrap;
}
.mjsd .mjsd__match-date small{margin-top:2px;color:#898e95;font-size:11px;font-weight:600}
.mjsd .mjsd__match-team{
  display:flex;
  align-items:center;
  min-width:0;
  gap:9px;
  color:#202020;
  font:800 13px/1.2 'Fira Sans',Arial,sans-serif;
}
.mjsd .mjsd__match-team .mjsd__match-team-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  line-clamp:2;
  min-width:0;
  overflow-wrap:anywhere;
}
.mjsd .mjsd__match-team--home{justify-content:flex-end;text-align:right}
.mjsd .mjsd__match-team--away{justify-content:flex-start;text-align:left}
.mjsd .mjsd__match-team .mjsd__match-crest,
.mjsd .mjsd__match-team .mjsd__match-no-logo{
  display:block;
  flex:0 0 32px;
  width:32px;
  height:32px;
  min-width:32px;
  max-width:32px;
  max-height:32px;
  object-fit:contain;
  margin:0;
  padding:0;
  background:none;
}
.mjsd .mjsd__match-team .mjsd__match-no-logo{
  border:1px solid #e6e6e6;
  border-radius:50%;
}
.mjsd .mjsd__match-middle{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:4px;
  min-width:0;
}
.mjsd .mjsd__match-score{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  padding:7px 4px;
  color:#fff;
  background:#1d2639;
  font:900 16px/1 'Fira Sans',Arial,sans-serif;
  letter-spacing:-.02em;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.mjsd .mjsd__match--juve .mjsd__match-score{background:#181818}
.mjsd .mjsd__match-xg{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:4px;
  align-items:center;
  width:100%;
  min-width:0;
  color:#535a64;
  font:700 10px/1.1 'Fira Sans',Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  text-align:center;
}
.mjsd .mjsd__match-xg b{font-size:10px;color:#b08c39;font-weight:900}
.mjsd .mjsd__match-xg--none{
  display:block;
  color:#999;
  font-weight:500;
  font-size:10px;
  text-align:center;
}
@media(max-width:1100px){
  .mjsd .mjsd__matches{grid-template-columns:1fr}
  .mjsd .mjsd__match{grid-template-columns:76px minmax(0,1fr) 100px minmax(0,1fr)}
}
@media(max-width:767px){
  .mjsd .mjsd__round-body{padding:9px 9px 13px}
  .mjsd .mjsd__round-details>summary{padding:15px 13px}
  .mjsd .mjsd__matches{grid-template-columns:1fr;row-gap:7px}
  .mjsd .mjsd__match{
    grid-template-columns:44px minmax(0,1fr) 63px minmax(0,1fr);
    gap:4px;
    min-height:76px;
    padding:8px 5px;
    border-radius:8px;
  }
  .mjsd .mjsd__match-date,.mjsd .mjsd__match-date small{font-size:9px}
  .mjsd .mjsd__match-team{font-size:10px;gap:3px}
  .mjsd .mjsd__match-team .mjsd__match-crest,
  .mjsd .mjsd__match-team .mjsd__match-no-logo{
    width:23px;height:23px;min-width:23px;max-width:23px;max-height:23px;flex-basis:23px;
  }
  .mjsd .mjsd__match-score{font-size:12px;padding:7px 2px}
  .mjsd .mjsd__match-xg{font-size:8px;gap:1px}
  .mjsd .mjsd__match-xg b{font-size:8px}
}
@media(max-width:375px){
  .mjsd .mjsd__match{grid-template-columns:37px minmax(0,1fr) 58px minmax(0,1fr);gap:3px}
  .mjsd .mjsd__match-team .mjsd__match-crest,
  .mjsd .mjsd__match-team .mjsd__match-no-logo{
    width:20px;height:20px;min-width:20px;max-width:20px;max-height:20px;flex-basis:20px;
  }
}
