/* Direttagoal livescore */
.dg {
  --dg-navy: #123456;
  --dg-accent: #ff8040;
  --dg-live: #e0173f;
  --dg-bg: #f2f4f7;
  --dg-card: #fff;
  --dg-bar: #f3f5f9;
  --dg-line: #e3e7ee;
  --dg-text: #101828;
  --dg-muted: #667085;
  --dg-win: #12813f;
  --dg-draw: #b7791f;
  --dg-loss: #c62828;

  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  flex: 1 1 100%;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
  padding: 20px 16px 40px;
  box-sizing: border-box;
  color: var(--dg-text);
  font-size: 14px;
  line-height: 1.35;
}
.dg *, .dg *::before, .dg *::after { box-sizing: border-box; }
.dg a { color: inherit; text-decoration: none; }
.dg a:hover { color: var(--dg-accent); }
.dg button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dg :focus-visible { outline: 2px solid var(--dg-accent); outline-offset: 2px; border-radius: 4px; }
.dg img { max-width: none; vertical-align: middle; }
.dg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.dg-page { background: var(--dg-bg, #eef1f5); }

/* colonne */
.dg-side, .dg-main > *, .dg-ad { background: var(--dg-card); border-radius: 12px; }
.dg-main > .dg-crumbs, .dg-main > .dg-top, .dg-main > .dg-filters { background: transparent; border-radius: 0; }
.dg-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 8px 0; scrollbar-width: thin; }
.dg-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dg-rail { position: sticky; top: 12px; }
.dg-rail { display: flex; flex-direction: column; gap: 12px; }
.dg-ad { width: 300px; min-height: 250px; overflow: hidden; }
.dg-ad.is-empty { display: grid; place-items: center; height: 250px; border: 1px dashed #c5ccd8; background: transparent; color: var(--dg-muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.dg-news { padding: 16px; border-radius: 12px; background: var(--dg-card); }
.dg-news__title { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.dg-news__list { list-style: none; margin: 0; padding: 0; }
.dg-news__list li + li { border-top: 1px solid var(--dg-line); }
.dg-news__list a { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.dg-news__list img { flex: none; border-radius: 6px; object-fit: cover; background: var(--dg-line); }
.dg-news__list span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dg-news__list b { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dg-news__list time { font-size: 11px; color: var(--dg-muted); }

/* menu campionati */
.dg-nav__group + .dg-nav__group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--dg-line); }
.dg-nav__title { margin: 0; padding: 8px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dg-muted); }
.dg-nav__list { list-style: none; margin: 0; padding: 0; }
.dg-nav__list a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 13px; }
.dg-nav__list a:hover { background: var(--dg-bar); color: var(--dg-text); }
.dg-nav__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-nav__all { display: block; padding: 10px 14px 6px; font-size: 13px; font-weight: 600; color: var(--dg-accent) !important; }
.dg-flag { flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 24, 40, .08); }

#dg-pinned[hidden] + .dg-nav__group { margin-top: 0; padding-top: 0; border-top: 0; }

/* titoli */
.dg-top { display: flex; align-items: center; justify-content: space-between; }
.dg-top__link { display: none; margin-right: 12px; padding: 6px 12px; border-radius: 999px; background: var(--dg-bar); font-size: 13px; font-weight: 700; }
.dg-h1 { margin: 0; padding: 14px 16px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.dg-top .dg-h1 { padding: 0 4px; }
.dg-h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.dg-h2 a { text-decoration: none; }
.dg-h3 { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dg-muted); }
.dg-h3:first-child { margin-top: 0; }
.dg-h3 span { font-weight: 600; letter-spacing: 0; }
.dg-h4 { margin: 12px 0 4px; font-size: 12px; font-weight: 700; color: var(--dg-muted); }
.dg-sec { padding: 16px; }
.dg-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--dg-muted); }
.dg-more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--dg-accent) !important; }
.dg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: 12px; color: var(--dg-muted); }
.dg-crumbs > * + *::before { content: "›"; margin-right: 6px; color: var(--dg-line); }

/* barra dei giorni, a tutta larghezza sotto l'header */
.dg-daybar { background: #0e2a47; color: #fff; }
.dg-daybar__in { display: flex; gap: 2px; max-width: 1280px; margin: 0 auto; padding: 6px 16px; overflow-x: auto; scrollbar-width: none; }
.dg-daybar__in::-webkit-scrollbar { display: none; }
.dg-daybar__d { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 8px; color: rgba(255, 255, 255, .72); font-size: 11px; line-height: 1.3; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.dg-daybar__d b { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dg-daybar__d:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dg-daybar__d.is-today { color: #ffb48a; }
.dg-daybar__d.is-current, .dg-daybar__d.is-current b { background: #ff8040; color: #10233b; }
.dg-daybar__d:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* filtri */
.dg-filters { display: flex; gap: 8px; padding: 0 0 2px; overflow-x: auto; scrollbar-width: none; }
.dg-filters button { flex: none; min-height: 38px; padding: 0 16px; border: 1px solid var(--dg-line); border-radius: 999px; background: var(--dg-card); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dg-filters button:hover { border-color: #c5ccd8; }
.dg-filters button[aria-selected="true"] { border-color: var(--dg-navy); background: var(--dg-navy); color: #fff; }
.dg-filters__live span:not(:empty) { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--dg-live); color: #fff; font-size: 12px; font-weight: 700; }
.dg-filters .dg-filters__live[aria-selected="true"] { border-color: var(--dg-live); background: var(--dg-live); }
.dg-filters__live[aria-selected="true"] span { background: #fff; color: var(--dg-live); }
#dg-fav-n:not(:empty) { margin-left: 4px; color: var(--dg-accent); font-weight: 700; }

/* blocco campionato */
.dg-list { background: transparent !important; display: flex; flex-direction: column; gap: 12px; }
.dg-list > .dg-empty { background: var(--dg-card); border-radius: 10px; }
.dg-lg { background: var(--dg-card); border-radius: 12px; overflow: hidden; }
.dg-lg__head { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px 0 6px; border-bottom: 1px solid var(--dg-line); }
.dg-lg__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.dg-lg__country { font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--dg-muted); margin-right: 2px; }
.dg-lg__more { flex: none; font-size: 12px; font-weight: 600; color: var(--dg-muted) !important; }
.dg-lg__more:hover { color: var(--dg-accent) !important; }

/* stelle */
.dg-pin, .dg-fav { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.dg-m > .dg-fav { align-self: center; }
.dg-pin svg, .dg-fav svg { fill: none; stroke: #a6adbb; stroke-width: 1.6; stroke-linejoin: round; }
.dg-pin:hover svg, .dg-fav:hover svg { stroke: var(--dg-accent); }
.dg-pin[aria-pressed="true"] svg, .dg-fav[aria-pressed="true"] svg { fill: var(--dg-accent); stroke: var(--dg-accent); }
.dg .dg-pin--big, .dg .dg-fav--big { width: auto; height: 36px; padding: 0 14px 0 10px; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--dg-line) !important; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* riga partita */
.dg-rows { border-top: 1px solid var(--dg-line); }
.dg-m { display: flex; align-items: stretch; border-bottom: 1px solid var(--dg-line); }
.dg-m:last-child { border-bottom: 0; }
.dg-m:hover { background: #fafbfc; }
.dg-m__link { flex: 1; min-width: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 34px auto; align-items: center; gap: 8px; min-height: 58px; padding: 8px 14px 8px 0; color: var(--dg-text) !important; }
.dg-m--dated .dg-m__link { grid-template-columns: 76px minmax(0, 1fr) auto 34px auto; }
.dg-m__time { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--dg-muted); font-variant-numeric: tabular-nums; text-align: center; }
.dg-m__date { font-size: 11px; }
.dg-m.is-live .dg-m__status { color: var(--dg-live); font-weight: 800; }
.dg-m.is-live .dg-m__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--dg-live); vertical-align: 2px; animation: dg-pulse 1.6s ease-in-out infinite; }
@keyframes dg-pulse { 50% { opacity: .25; } }
.dg-m__teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; }
.dg-m__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dg-m__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-m__team.is-winner .dg-m__name { font-weight: 700; }
.dg-logo { flex: none; object-fit: contain; }
.dg-rc { flex: none; min-width: 11px; height: 15px; padding: 0 2px; border-radius: 2px; background: var(--dg-live); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.dg-m__score { display: flex; flex-direction: column; gap: 6px; min-width: 20px; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.dg-m__score b { font-weight: 800; }
.dg-m.is-live .dg-m__score b { color: var(--dg-live); }
.dg-m__extra { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--dg-muted); text-align: center; font-variant-numeric: tabular-nums; }
.dg-m.is-goal { animation: dg-goal 8s ease-out; }
@keyframes dg-goal { 0%, 60% { background: #fff1e8; } 100% { background: transparent; } }
.dg-out { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }
.dg-out--v { background: var(--dg-win); }
.dg-out--n { background: var(--dg-draw); }
.dg-out--p { background: var(--dg-loss); }
[hidden], .dg .is-hidden { display: none !important; }

/* intestazione partita */
.dg-mh { position: relative; padding: 16px 16px 20px; text-align: center; }
.dg-mh__when { margin: 0 0 14px; font-size: 12px; color: var(--dg-muted); }
.dg-mh__when::first-letter { text-transform: uppercase; }
.dg-mh__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.dg-mh__team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; text-align: center; }
.dg-mh__team small { font-size: 12px; font-weight: 500; color: var(--dg-muted); }
.dg-mh__logo { width: 72px; height: 72px; object-fit: contain; }
.dg-mh__center { min-width: 120px; }
.dg-mh__score { display: flex; justify-content: center; align-items: baseline; gap: 8px; font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dg-mh__score span { color: var(--dg-muted); font-weight: 600; }
.dg-mh.is-live .dg-mh__score b, .dg-mh.is-live .dg-mh__status { color: var(--dg-live); }
.dg-mh__status { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.dg-mh__sub { margin: 2px 0 0; font-size: 12px; color: var(--dg-muted); }
.dg-mh .dg-fav--big { margin-top: 16px; }

/* schede */
.dg-tabs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.dg-tabs a { flex: none; padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--dg-muted); }
.dg-tabs a:hover { background: var(--dg-bar); color: var(--dg-text); }
.dg-tabs a.is-current { background: var(--dg-navy); color: #fff; }

/* cronaca */
.dg-tl { list-style: none; margin: 0; padding: 0; }
.dg-tl__sep { margin: 12px 0 4px; padding: 6px 10px; border-radius: 6px; background: var(--dg-bar); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dg-muted); }
.dg-tl__sep:first-child { margin-top: 0; }
.dg-tl__it { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--dg-line); }
.dg-tl__it--away { flex-direction: row-reverse; text-align: right; }
.dg-tl__min { flex: none; width: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dg-tl__txt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.dg-tl__it--away .dg-tl__txt { justify-content: flex-end; }
.dg-tl__p { font-weight: 600; }
.dg-tl__score { padding: 1px 6px; border-radius: 4px; background: var(--dg-navy); color: #fff; font-size: 12px; }
.dg-tl__note { font-size: 12px; color: var(--dg-muted); }
.dg-ico { flex: none; width: 16px; height: 16px; display: inline-block; background: center / contain no-repeat; }
.dg-ico--yellow, .dg-ico--red, .dg-ico--yr { width: 11px; height: 15px; margin: 0 2.5px; border-radius: 2px; background: #f5c518; }
.dg-ico--red { background: var(--dg-live); }
.dg-ico--yr { background: linear-gradient(135deg, #f5c518 50%, var(--dg-live) 50%); }
.dg-ico--goal, .dg-ico--pen, .dg-ico--own, .dg-ico--miss { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23fff' stroke='%23101828' stroke-width='2'/%3E%3Cpath d='M12 7l4.5 3.3-1.7 5.2H9.2L7.5 10.3z' fill='%23101828'/%3E%3C/svg%3E"); }
.dg-ico--own, .dg-ico--miss { filter: hue-rotate(0) drop-shadow(0 0 0 red); opacity: .55; }
.dg-ico--sub { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V6m0 0L3.5 9.5M7 6l3.5 3.5' stroke='%2312813f'/%3E%3Cpath d='M17 4v14m0 0l-3.5-3.5M17 18l3.5-3.5' stroke='%23c62828'/%3E%3C/svg%3E"); }
.dg-ico--var { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='13' rx='2' fill='none' stroke='%23101828' stroke-width='2'/%3E%3Cpath d='M9 21h6' stroke='%23101828' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.dg-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 16px 0 0; }
.dg-info div { display: flex; flex-direction: column; }
.dg-info dt { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dg-muted); }
.dg-info dd { margin: 0; font-weight: 600; }

/* statistiche */
.dg-stats { display: flex; flex-direction: column; gap: 12px; }
.dg-stat__head { display: grid; grid-template-columns: 60px 1fr 60px; align-items: baseline; font-variant-numeric: tabular-nums; }
.dg-stat__head span { text-align: center; font-size: 13px; color: var(--dg-muted); }
.dg-stat__head b:last-child { text-align: right; }
.dg-stat__bar { display: flex; gap: 4px; margin-top: 4px; }
.dg-stat__bar span { height: 6px; min-width: 4px; border-radius: 3px; background: #cfd5df; }
.dg-stat__bar span.is-lead { background: var(--dg-navy); }
.dg-stat__bar span:first-child { margin-left: auto; }
.dg-stat__bar { justify-content: center; }

/* formazioni */
.dg-pitch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border-radius: 10px; overflow: hidden; background: #1c7a43; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 10%, transparent 10% 20%); color: #fff; aspect-ratio: 16 / 9; min-height: 300px; }
.dg-pitch__half { position: relative; display: flex; padding: 22px 6px 8px; }
.dg-pitch__half--home { border-right: 2px solid rgba(255, 255, 255, .5); }
.dg-pitch__half--away { flex-direction: row-reverse; }
.dg-pitch__formation { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 700; opacity: .85; }
.dg-pitch__half--away .dg-pitch__formation { left: auto; right: 8px; }
.dg-pitch__line { flex: 1; display: flex; flex-direction: column; justify-content: space-around; align-items: center; min-width: 0; }
.dg-pitch__half--away .dg-pitch__line { flex-direction: column-reverse; }
.dg-pl { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; font-size: 11px; line-height: 1.1; text-align: center; }
.dg-pl i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--dg-navy); font-style: normal; font-size: 11px; font-weight: 800; }
.dg-pitch__half--away .dg-pl i { background: var(--dg-navy); color: #fff; }
.dg-pl span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.dg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.dg-note { margin: 0; font-size: 13px; color: var(--dg-muted); }
.dg-why { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.dg-why--inj { background: #fdecec; color: #a11919; }
.dg-why--ban { background: #fff4d6; color: #7a5200; }

/* confronto rapido e testa a testa */
.dg-vs { display: flex; flex-direction: column; gap: 2px; margin: 16px 0 0; border-radius: 10px; background: var(--dg-bar); padding: 6px 14px; }
.dg-vs:first-child, .dg-h2 + .dg-vs { margin-top: 0; }
.dg-vs__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 40px; }
.dg-vs__row + .dg-vs__row { border-top: 1px solid var(--dg-line); }
.dg-vs__side { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.dg-vs__side--away { justify-content: flex-end; }
.dg-vs__side b { font-size: 18px; font-weight: 800; }
.dg-vs__label { font-size: 12px; color: var(--dg-muted); text-align: center; }
.dg-h2h__nums { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; font-size: 13px; color: var(--dg-muted); }
.dg-h2h__nums span:first-child { text-align: left; }
.dg-h2h__nums span:last-child { text-align: right; }
.dg-h2h__nums b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--dg-text); font-variant-numeric: tabular-nums; }
.dg-h2h__bar { display: flex; gap: 3px; height: 8px; margin: 10px 0 4px; }
.dg-h2h__bar span { flex-basis: 0; min-width: 0; border-radius: 4px; }
.dg-h2h__bar .is-home { background: var(--dg-navy); }
.dg-h2h__bar .is-draw { background: #cfd5df; }
.dg-h2h__bar .is-away { background: var(--dg-accent); }
.dg-players { list-style: none; margin: 0; padding: 0; }
.dg-players li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--dg-line); }
.dg-players i { flex: none; width: 22px; font-style: normal; font-size: 12px; color: var(--dg-muted); text-align: right; font-variant-numeric: tabular-nums; }
.dg-players span { flex: 1; min-width: 0; }
.dg-players small { color: var(--dg-muted); }
.dg-rating { padding: 1px 6px; border-radius: 4px; background: var(--dg-bar); font-size: 12px; font-variant-numeric: tabular-nums; }
.dg-coach { margin: 12px 0 0; font-size: 13px; color: var(--dg-muted); }
.dg-coach b { color: var(--dg-text); }

/* tabelle */
.dg-table-wrap { overflow-x: auto; }
.dg-table-wrap + .dg-table-wrap { margin-top: 16px; }
.dg-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.dg-table th, .dg-table td { padding: 8px 6px; border: 0; border-bottom: 1px solid var(--dg-line); text-align: center; white-space: nowrap; font-weight: 400; }
.dg-table thead th { font-size: 11px; font-weight: 700; color: var(--dg-muted); text-transform: uppercase; background: var(--dg-bar); }
.dg-table .dg-t-team { text-align: left; font-weight: 600; }
.dg-table .dg-t-rank { width: 34px; color: var(--dg-muted); }
.dg-table .dg-t-pts { font-weight: 800; }
.dg-table tr.is-highlight > * { background: #fff4ec; }
.dg-table .dg-logo { margin-right: 6px; }

/* intestazione campionato / squadra */
.dg-ph { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.dg-ph > div { flex: 1; min-width: 0; }
.dg-ph .dg-h1 { padding: 0; }
.dg-ph__sub { margin: 2px 0 0; font-size: 13px; color: var(--dg-muted); }
.dg-ph__logo { object-fit: contain; }
.dg-ph__form { display: flex; gap: 4px; margin: 6px 0 0; }
.dg-comp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; }
.dg-comp-list a { display: block; padding: 6px 0; font-weight: 600; }
.dg-comp-list small { font-weight: 400; color: var(--dg-muted); }

/* rosa e scheda giocatore */
.dg-squad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.dg-squad li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--dg-line); }
.dg-squad i { flex: none; width: 24px; font-style: normal; font-weight: 700; color: var(--dg-muted); text-align: right; font-variant-numeric: tabular-nums; }
.dg-squad a, .dg-squad span { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-squad small { flex: none; display: flex; align-items: center; gap: 6px; color: var(--dg-muted); }
.dg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.dg-kpis--6 { grid-template-columns: repeat(6, 1fr); }
.dg-kpis--6 dd { font-size: 19px; white-space: nowrap; }
.dg-kpis div { padding: 12px; border-radius: 8px; background: var(--dg-bar); }
.dg-kpis dd { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dg-kpis dt { margin-top: 2px; font-size: 12px; color: var(--dg-muted); }
.dg-ph__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dg-tl__p a, .dg-players a, .dg-table a { text-decoration: none; }

/* quote e pronostici */
.dg-odd { display: inline-block; min-width: 48px; padding: 4px 8px; border-radius: 6px; background: var(--dg-bar); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.dg-odd.is-best { background: #fff1e8; color: #b54708; }
.dg-legal { margin: 14px 0 0; font-size: 12px; color: var(--dg-muted); }
.dg-legal--page { padding: 12px 16px; }
.dg-tips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.dg-tips li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--dg-bar); }
.dg-tips img, .dg-tips__ph { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dg-tips__ph { display: grid; place-items: center; background: var(--dg-navy); color: #fff; font-weight: 700; }
.dg-tips__who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--dg-muted); }
.dg-tips__who b { font-size: 14px; color: var(--dg-text); }
.dg-main:not(.is-tabbed) > .dg-js-only { display: none; }

.dg-ph__num { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--dg-navy); color: #fff; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dg-players--stats small { flex: none; }
.dg-players--stats li { padding: 8px 0; }

/* notifiche live */
.dg-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 360px; max-width: calc(100vw - 24px); font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; pointer-events: none; }
.dg-toasts > * { pointer-events: auto; }
.dg-toasts__list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dg-toasts__clear { padding: 6px 12px; border: 0; border-radius: 999px; background: #10233b; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(16, 35, 59, .25); }
.dg-toasts__clear:hover { background: #1b3a5e; }
.dg-toast { position: relative; overflow: hidden; border-radius: 14px; background: #10233b; color: #fff; box-shadow: 0 14px 36px rgba(16, 35, 59, .38), 0 2px 6px rgba(16, 35, 59, .2); animation: dg-toast-in .28s cubic-bezier(.2, .8, .2, 1); }
.dg-toast.is-leaving { opacity: 0; transform: translateX(24px); transition: opacity .2s, transform .2s; }
@keyframes dg-toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.dg-toast__head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0 14px; }
.dg-toast__kind { flex: none; padding: 3px 10px; border-radius: 999px; background: #ff8040; color: #10233b; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dg-toast--red .dg-toast__kind { background: #e0173f; color: #fff; }
.dg-toast--var .dg-toast__kind { background: #e6ebf2; color: #10233b; }
.dg-toast__detail { flex: 1; min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .78); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dg-toast__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer; }
.dg-toast__close:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.dg-toast__close:focus-visible, .dg-toast__body:focus-visible, .dg-toasts__clear:focus-visible { outline: 2px solid #ff8040; outline-offset: -2px; }
.dg-toast__body { display: flex; flex-direction: column; gap: 6px; padding: 8px 16px 16px 14px; color: #fff; text-decoration: none; }
a.dg-toast__body:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.dg-toast__team { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.dg-toast__team img { flex: none; width: 22px; height: 22px; object-fit: contain; }
.dg-toast__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-toast__score { flex: none; min-width: 22px; font-size: 20px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.dg-toast__team.is-actor { color: #fff; font-weight: 700; }
.dg-toast--goal .dg-toast__team.is-actor .dg-toast__score { color: #ff8040; }
.dg-toast__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #ff8040; transform-origin: left; animation: dg-toast-bar 12s linear forwards; }
.dg-toast--red .dg-toast__bar { background: #e0173f; }
.dg-toast--var .dg-toast__bar { background: #9aa6b8; }
.dg-toast.is-paused .dg-toast__bar { animation: none; transform: none; }
@keyframes dg-toast-bar { to { transform: scaleX(0); } }
@media (max-width: 782px) {
  .dg-toasts { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-toast { animation: none; }
  .dg-toast.is-leaving { transition: none; }
  .dg-toast__bar { animation: none; transform: scaleX(0); }
}

/* schede partita attive solo con JS */
.dg-main.is-tabbed > .dg-sec[id]:not(.is-active) { display: none; }
.dg-main.is-tabbed > .dg-sec > .dg-h2:first-child { display: none; }

@media (max-width: 1100px) {
  .dg { grid-template-columns: 220px minmax(0, 1fr); }
  .dg-rail { display: none; }
}
@media (max-width: 782px) {
  .dg { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 8px; }
  .dg-side { display: none; }
  .dg-top__link { display: block; }
  .dg-h1 { font-size: 19px; padding: 12px; }
  .dg-sec { padding: 12px; }
  .dg-m__link { grid-template-columns: 46px minmax(0, 1fr) auto 28px auto; padding-right: 10px; }
  .dg-m--dated .dg-m__link { grid-template-columns: 70px minmax(0, 1fr) auto 28px auto; }
  .dg-lg__more { display: none; }
  .dg-mh__team { font-size: 14px; }
  .dg-mh__logo { width: 56px; height: 56px; }
  .dg-mh__score { font-size: 36px; }
  .dg-mh__center { min-width: 96px; }
  .dg-cols { grid-template-columns: 1fr; gap: 16px; }
  .dg-kpis, .dg-kpis--6 { grid-template-columns: repeat(3, 1fr); }
  .dg-daybar__in { padding: 6px 8px; }
  .dg-pitch { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: auto; min-height: 520px; }
  .dg-pitch__half, .dg-pitch__half--away { flex-direction: column; padding: 20px 6px 6px; }
  .dg-pitch__half--away { flex-direction: column-reverse; padding: 6px 6px 20px; }
  .dg-pitch__half--home { border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, .5); }
  .dg-pitch__line, .dg-pitch__half--away .dg-pitch__line { flex-direction: row; }
  .dg-pitch__half--away .dg-pitch__formation { top: auto; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-m.is-goal { animation: none; background: #fff1e8; }
  .dg-m.is-live .dg-m__status::before { animation: none; }
}
