:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#071525;color:#f4f7fb}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,a{font:inherit}
button{cursor:pointer}
a{color:inherit}
button:focus-visible,a:focus-visible{outline:2px solid #f7c94c;outline-offset:3px}
.site-header{background:#091729}
.header-inner{border-bottom:1px solid #a88330;padding:16px clamp(12px,3vw,30px);display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{color:#f7c94c;font-size:clamp(17px,2.2vw,22px);font-weight:800;letter-spacing:.04em;text-decoration:none}
.home-link{padding:7px 12px;border:1px solid #f7c94c;border-radius:8px;text-decoration:none}
.competition-nav{display:flex;align-items:center;gap:5px;flex-wrap:wrap;background:#0d2135;border-bottom:1px solid #31506b;padding:9px clamp(12px,2vw,24px)}
.competition-nav button{border:1px solid transparent;border-radius:7px;color:#c9d6e4;background:transparent;padding:8px 7px;white-space:nowrap}
.competition-nav button[aria-pressed=true]{color:#f7c94c;background:#1b3b54;border-color:#54708b}
.login-link{display:inline-block;background:#f7c94c;color:#071525;font-weight:800;padding:8px 10px;border-radius:7px;text-decoration:none;white-space:nowrap}
.page-heading{padding:20px clamp(12px,3vw,30px);display:flex;justify-content:space-between;align-items:end;gap:12px;border-bottom:1px solid #31506b}
.page-heading h1{margin:0;font-size:clamp(21px,2.3vw,27px)}
.page-heading p{margin:4px 0 0;color:#b9c9d9}
.page-heading time{white-space:nowrap;color:#f7c94c;font-weight:700}
.content-layout{display:grid;grid-template-columns:minmax(170px,215px) minmax(0,1fr) minmax(190px,240px);min-height:420px}
.content-layout aside{padding:18px 12px;background:#0a1c2f}
.content-layout h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#b9c9d9;margin:0 7px 12px}
.leagues-panel{border-right:1px solid #31506b}
.favorites-panel{border-bottom:1px solid #31506b;margin-bottom:15px;padding-bottom:13px}
.favorites-panel button{display:block;width:100%;border:1px solid #54708b;border-radius:8px;background:#102840;color:#f7c94c;padding:9px;text-align:left;font-weight:700}
.favorites-panel button[aria-pressed=true]{background:#f7c94c;color:#071525}
.favorites-panel p{font-size:11px;line-height:1.4;color:#b9c9d9;margin:8px 7px 0}
.league-list button{display:block;width:100%;border:0;background:transparent;color:#f4f7fb;padding:10px;text-align:left;border-radius:8px}
.league-list button[aria-pressed=true]{background:#1b3b54;color:#f7c94c}
.league-list small{display:block;color:#b9c9d9;margin-top:2px}
.other-leagues{border-top:1px solid #31506b;margin-top:12px;padding-top:14px}
.country-list{border-bottom:1px solid #294357}
.country-list summary{cursor:pointer;padding:8px 9px;color:#c9d6e4;font-size:13px}
.country-list button{display:block;width:100%;text-align:left;border:0;border-radius:6px;padding:7px 11px;background:transparent;color:#f4f7fb;font-size:12px}
.country-list button[aria-pressed=true]{background:#1b3b54;color:#f7c94c}
.results-panel{padding:22px clamp(16px,2vw,28px) 30px;min-width:0;background:#071525}
.result-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #31506b}
.result-tabs button{background:#0c2035;color:#f4f7fb;border:1px solid #31506b;border-radius:8px;padding:8px 14px}
.result-tabs button[aria-pressed=true]{background:#f7c94c;border-color:#f7c94c;color:#071525;font-weight:800}
.calendar-days{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;padding:10px;background:#0c2035;border:1px solid #31506b;border-radius:8px}
.calendar-days[hidden]{display:none}
.calendar-days button{background:#102840;color:#f4f7fb;border:1px solid #54708b;border-radius:7px;padding:8px 10px;text-transform:capitalize}
.calendar-days button[aria-pressed=true]{background:#f7c94c;color:#071525;font-weight:800}
.feed-status{font-size:12px;color:#b9c9d9;margin:12px 0 18px}
.feed-status:empty{display:none}
.country-heading{font-size:15px;color:#b9c9d9;margin:20px 2px 10px;padding-left:9px;border-left:3px solid #f7c94c}
.match-group{background:#0c2035;border:1px solid #31506b;border-radius:10px;overflow:hidden;margin-bottom:18px;box-shadow:0 6px 20px #0002}
.match-group h3{margin:0;background:#18344b;padding:9px 12px;color:#f7c94c;font-size:14px}
.match-line{display:flex;align-items:stretch;border-top:1px solid #294357;position:relative}
.match-line.has-goal{background:#103c36;box-shadow:inset 3px 0 #56e0af}
.goal-scorer{color:#84ffd2;font-weight:800}
.goal-flash{display:inline-flex;align-items:center;max-width:100%;margin:7px 0 2px;border:1px solid #56e0af;border-radius:6px;background:#07372f;color:#e8fff7;font-size:12px;font-weight:900;letter-spacing:.07em;padding:4px 8px;white-space:nowrap;box-shadow:0 0 14px #56e0af66;animation:goal-pop .55s ease-out}
@keyframes goal-pop{from{opacity:0;transform:scale(.65)}to{opacity:1;transform:scale(1)}}
.match-row{display:grid;grid-template-columns:57px minmax(0,1fr) 38px;gap:10px;align-items:center;flex:1;min-width:0;padding:10px 12px;text-align:left;border:0;background:transparent;color:#f4f7fb}
.match-row:hover,.match-row[aria-current=true]{background:#16344b}
.match-row[aria-current=true]{box-shadow:inset 3px 0 #f7c94c}
.favorite-toggle{border:0;background:transparent;color:#f7c94c;font-size:23px;padding:2px 14px;min-width:49px}
.favorite-toggle:hover,.favorite-toggle[aria-pressed=true]{background:#16344b}
.match-time{font-size:12px;color:#b9c9d9}
.match-time.is-live{color:#ff7777;font-weight:800}
.match-teams{min-width:0}
.match-teams span,.match-score span{display:block}
.match-teams span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.55}
.match-score{font-size:16px;color:#f7c94c;font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
.empty{padding:28px 12px;color:#b9c9d9;text-align:center}
.details-panel{border-left:1px solid #31506b;position:sticky;top:0;align-self:start;max-height:100vh;overflow-y:auto}
.detail-card{background:#102840;border:1px solid #31506b;border-radius:9px;padding:16px;line-height:1.5;overflow-wrap:anywhere}
.detail-close{float:right;margin:-4px -4px 8px 8px;padding:4px 8px;border:1px solid #54708b;border-radius:6px;background:#0c2035;color:#f4f7fb;font-size:12px}
.detail-close:hover{border-color:#f7c94c;color:#f7c94c}
.detail-card .minor{font-size:12px;color:#b9c9d9}
.detail-card .teams{font-size:18px;font-weight:700;margin:12px 0}
.detail-card .result{font-size:24px;font-weight:800;color:#f7c94c}
.detail-card .phase{font-size:12px;color:#56e0af}
.game-promos{margin-top:22px}
.game-promos h2{margin:0 0 10px;font-size:11px;letter-spacing:.12em;color:#b9c9d9}
.game-promo-list{display:grid;gap:14px}
.game-promo{overflow:hidden;border:1px solid #31506b;border-radius:9px;background:#102840}
.game-promo-image{display:block;line-height:0}
.game-promo-image img{display:block;width:100%;height:auto;aspect-ratio:1.55;object-fit:cover;object-position:center top}
.game-promo-cta{display:block;margin:8px;text-align:center;text-decoration:none;border-radius:6px;background:#f7c94c;color:#071525;font-size:12px;font-weight:800;padding:7px 8px}
.game-promo-cta:hover{background:#ffe088}

.site-footer{border-top:1px solid #a88330;background:#091729;padding:22px clamp(12px,3vw,30px);display:flex;gap:16px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;color:#b9c9d9}
.site-footer strong{color:#f7c94c}
.site-footer p{margin:5px 0}
.site-footer a{margin-right:16px;color:#f4f7fb}
.site-footer small{width:100%;border-top:1px solid #31506b;padding-top:10px}
@media(max-width:900px){.content-layout{grid-template-columns:180px minmax(0,1fr)}
.details-panel{grid-column:1/-1;border-left:0;border-top:1px solid #31506b;position:static;max-height:none}
.game-promo-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.game-promo-image img{max-height:160px}
.competition-nav button,.login-link{font-size:12px;padding:7px 6px}
}
@media(max-width:590px){.content-layout{display:block}
.leagues-panel{border-right:0;border-bottom:1px solid #31506b}
.league-list{display:flex;gap:5px;overflow-x:auto}
.favorites-panel{padding-bottom:10px}
.league-list button{white-space:nowrap;width:auto}
.league-list small{display:none}
.other-leagues{max-height:180px;overflow:auto}
.results-panel{padding:16px 13px 24px}
.result-tabs{margin-bottom:18px;padding-bottom:14px}
#matches{scroll-margin-top:12px}
.page-heading{align-items:start}
.page-heading time{font-size:12px}
.match-row{grid-template-columns:48px minmax(0,1fr) 33px;gap:7px}
.favorite-toggle{padding:2px 8px;min-width:38px}
.goal-flash{font-size:11px;padding:3px 6px}
.competition-nav{gap:3px}
.competition-nav button,.login-link{font-size:12px;padding:7px 6px}
}

/* Cartellini accanto alla squadra, senza coprire risultato o preferiti. */
.team-name{display:flex!important;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap}
.team-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-badge{display:inline-flex!important;align-items:center;flex:none;border:1px solid #78672f;border-radius:4px;background:#283044;color:#f4f7fb;padding:0 3px;font-size:11px;line-height:1.35;font-variant-numeric:tabular-nums}
.card-badge.red{border-color:#a6474e}
.card-events{margin-top:14px;padding-top:10px;border-top:1px solid #31506b;font-size:12px}
.card-events div{margin-top:5px}
.match-time{white-space:nowrap}
.match-time.is-live{font-size:clamp(10px,1vw,12px)}
@media(max-width:590px){.match-row{grid-template-columns:65px minmax(0,1fr) 33px}.match-time.is-live{font-size:10px}.card-badge{font-size:10px}}

/* Ogni campionato puo essere richiuso, con una freccia gialla visibile. */
.match-group>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;background:#18344b;padding:7px 10px 7px 12px;color:#f7c94c;font-size:14px;font-weight:800}
.match-group>summary::-webkit-details-marker{display:none}
.match-group>summary:hover,.match-group>summary:focus-visible{background:#21465e}
.match-group-title{min-width:0;flex:1;display:flex;align-items:center;gap:8px}
.league-icon{width:21px;height:16px;flex:none;object-fit:contain}
.match-group-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-group-count{color:#b9c9d9;font-size:11px;font-weight:600;white-space:nowrap}
.league-caret{position:relative;display:block;width:29px;height:29px;flex:none;border:2px solid #f7c94c;border-radius:6px;background:#f7c94c;color:#071525}
.league-caret::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;translate:-50% -50%;rotate:225deg;transition:rotate .15s ease}
.match-group:not([open]) .league-caret::after{rotate:45deg}
.match-group:not([open])>summary{border-bottom:0}
@media(max-width:590px){.match-group>summary{gap:7px}.match-group-count{font-size:10px}.league-caret{width:27px;height:27px}}

/* Icone nel menu campionati, con lo stesso spazio su desktop e telefono. */
.league-list button{display:flex;align-items:center;gap:8px}
.sidebar-league-label{min-width:0}
.country-list summary{display:flex;align-items:center;gap:8px}
.country-list summary::before{content:"▸";color:#f7c94c;flex:none}
.country-list[open] summary::before{content:"▾"}
.country-list summary::-webkit-details-marker{display:none}
.country-list summary{list-style:none}
.country-list button.sidebar-league{display:flex;align-items:center;gap:8px}
.sidebar-league span{min-width:0;overflow-wrap:anywhere}
.international-icon{width:21px;flex:none;text-align:center}
@media(max-width:590px){.result-tabs{gap:6px}.result-tabs button{padding:8px 10px;font-size:13px}.league-list button{flex:none}}

/* Keep supplied partner artwork fully visible in the existing banner frames. */
.partner-promos .game-promo-image img{object-fit:contain;background:#fff}

/* Original Triple Star logo, compact beside the Diretta title. */
.brand{display:inline-flex;align-items:center;gap:10px;min-width:0}
.brand-logo{display:block;width:40px;height:40px;flex:none;object-fit:contain;border-radius:7px}
@media(max-width:590px){.brand{gap:7px;font-size:clamp(13px,3.7vw,17px);letter-spacing:.02em}.brand-logo{width:32px;height:32px;border-radius:5px}}

/* Compact ADM artwork beside the footer title and description. */
.footer-brand-group{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.site-footer .footer-links{margin-left:auto}
.site-footer .responsible-banner{display:block;flex:none;margin:0;line-height:0}
.responsible-banner img{display:block;width:190px;max-width:100%;height:auto;border-radius:3px}
.responsible-banner:focus-visible{outline:2px solid #f7c94c;outline-offset:4px}
@media(max-width:590px){.footer-brand-group{gap:12px}.responsible-banner img{width:180px}}

/* Compact access button, aligned with the competition menu. */
.competition-nav .login-link{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;line-height:1.25;padding:6px 9px;border-radius:5px}
.competition-nav .login-link:hover{background:#ffe088}
