/* Shared responsive layer: public pages, embedded profiles and community. */
.mobile-menu-toggle{display:none}
@media(max-width:760px){
html{scroll-padding-top:calc(var(--masthead-height,70px) + 12px);-webkit-text-size-adjust:100%}body{min-width:0}main,section,article,aside,nav,form,.team-sheet,.source-card{min-width:0}h1,h2,h3,h4,p,a,td,th{overflow-wrap:anywhere}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%}button,.btn,.portal-button,.details{min-height:44px}.mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:70px;min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:600 15px Barlow,Arial,sans-serif}.js-mobile-nav>nav{display:none!important}.js-mobile-nav.nav-open>nav{display:flex!important;flex-basis:100%;width:100%;max-height:45dvh;overflow:auto;gap:6px 12px;flex-wrap:wrap;padding:8px 0}.js-mobile-nav>nav a{display:flex;align-items:center;min-height:44px;padding:6px 10px}.site-masthead>header,.portal-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:8px 4%}.site-masthead .brand b,.portal-brand{font-size:21px}.brand small{font-size:9px!important}.edition{display:none}.site-masthead .match-banner{display:grid;grid-template-columns:minmax(0,1fr)}.site-masthead .hero-card,.site-masthead .next-card{padding:7px 4%!important;min-height:60px!important;height:auto!important;grid-template-columns:92px minmax(0,1fr)!important;gap:3px 8px!important}.site-masthead .live-title{font-size:9px!important;letter-spacing:.4px;line-height:1.4}.site-masthead .scoreline,.site-masthead .next-card h3{font-size:15px!important;line-height:1.4;min-width:0;gap:5px!important;flex-wrap:wrap;white-space:normal}.site-masthead .scoreline strong{font-size:19px}.site-masthead .match-crest{width:18px;height:22px}.site-masthead .forum-banner-link{font-size:12px!important;line-height:1.3;padding:5px 3px!important;min-height:30px}.site-masthead .match-meta{font-size:10px!important;margin:0!important;padding:0!important}.site-masthead .next-precedents{font-size:10px;max-width:100%;line-height:1.4}.site-masthead .precedents-link{min-height:30px;font-size:11px}.anniversary-inner{min-height:48px!important;padding:5px 4%!important;gap:8px}.anniversary-label{font-size:9px;max-width:88px}.anniversary-label small{font-size:10px}.anniversary-event{padding:0 10px}.anniversary-event .scoreline{font-size:13px;white-space:nowrap}.anniversary-event .btn{min-height:36px;padding:4px 7px}.news-ribbon{min-height:44px!important}.news-label{font-size:9px!important;min-width:88px!important}.news-headline{min-height:44px;font-size:13px!important}.ticker-pause{min-height:30px;font-size:10px}
main{padding:20px 4% 30px}.story-grid,.leaders-grid,.portal-grid,.forum-layout{grid-template-columns:minmax(0,1fr)!important;gap:16px}.story-grid>.hero,.story-grid>.palmares,#archivio{padding:20px}.hero h1{font-size:37px;letter-spacing:-1px}.hero .intro{font-size:16px}.leader-card{padding:20px}.leader-player{font-size:16px}.leader-total{font-size:22px}.balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.balance-card{padding:13px}.balance-card strong{font-size:30px}.balance-card span,.balance-card small{font-size:12px}.filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.filters>label:first-child,.filters>.search{grid-column:1/-1}.filters input,.filters select{width:100%;min-width:0}.current-season{width:92%;padding:16px}.table-wrap{overflow-x:auto;max-width:100%;min-width:0}.table-wrap>table{min-width:0;width:100%;table-layout:auto}.table-wrap>table>thead{display:none}.table-wrap>table>tbody{display:grid;gap:10px}.table-wrap>table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px;border-radius:12px;border:1px solid #b9b7a8;gap:5px}.table-wrap>table>tbody>tr>td{display:block;width:auto!important;min-width:0;padding:7px!important;border:0!important;text-align:left!important}.table-wrap td[data-label]:before{content:attr(data-label);display:block;font-size:10px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px;opacity:.8}.table-wrap td.teams{grid-column:1/-1;grid-row:1;font-size:17px}.table-wrap td:last-child{text-align:right!important}.table-wrap td.result{font-size:23px}.result-head,.paging{gap:12px;flex-wrap:wrap}.paging .btn{min-width:44px}.table-wrap .details{min-width:44px;font-size:21px}
#detail{width:calc(100% - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;margin:auto;padding:16px!important;border-radius:16px;box-sizing:border-box}#detail .close{position:sticky;top:0;float:none;display:block;margin-left:auto;background:#fffef8;z-index:2;min-height:44px}#detail .lineup-grid,#detail .match-events{grid-template-columns:minmax(0,1fr)!important;gap:14px}#detail .detail-match-header h3{font-size:23px;line-height:1.4}#detail .sheet-section,#detail .sheet-team-title{padding:16px}#detail .substitution-list li:has(.sub-player-rating){display:grid;grid-template-columns:32px minmax(0,1fr) 52px;gap:6px}.starter-ratings th,.starter-ratings td{padding:9px 4px}.match-community-rating{padding:16px}.match-community-rating h4{font-size:20px}.match-community-rating strong{margin:8px 0 0;display:block}.news-frame{height:65dvh;min-height:240px;width:100%}.press-gallery figure{margin:0}.press-gallery img{width:100%;height:auto}
.footer-nav-inner{align-items:flex-start;flex-direction:column;gap:15px}.footer-nav-links{gap:8px 16px}.footer-nav-links a,.footer-management{min-height:44px;display:inline-flex;align-items:center}.footer-grid{grid-template-columns:minmax(0,1fr)!important;gap:22px}.footer-bottom{align-items:flex-start;flex-direction:column;gap:20px}.abimage-signature img{width:min(260px,100%)}
.portal-main{width:92%;margin-top:20px}.portal-header nav form{margin:0}.portal-panel{padding:18px}.portal-main h1{font-size:34px}.forum-layout aside{width:100%}.forum-score{font-size:24px!important;line-height:1.4}.forum-author{gap:8px}.forum-comment time{width:100%;padding-left:43px}.forum-body{font-size:17px}.vote-row{gap:10px}.vote-row select{min-height:44px}.auth-main{width:92%;margin:24px auto}.auth-panel{width:100%;padding:22px}.auth-panel h1{font-size:30px}.auth-panel .otp-code{font-size:28px!important;letter-spacing:7px}.sources-main{width:92%;padding:24px 0}.sources-grid{grid-template-columns:1fr!important}.source-card a{display:inline-block;padding:8px 0;min-height:44px}.seo-navigation{padding:18px}.seo-navigation ul{grid-template-columns:1fr}
body:has(.career-table) main{padding-left:4%;padding-right:4%;margin:22px auto}body:has(.career-table) .bio,body:has(.career-table) main>section{padding:18px}body:has(.career-table) .grid{grid-template-columns:minmax(0,1fr)}.career-table{font-size:14px}.career-table td,.career-table th{padding:9px 6px}.scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.scroll table{min-width:0}.player-match-pages{display:flex;flex-wrap:wrap;gap:12px}.player-match-pages a{display:inline-flex;align-items:center;min-height:44px}.embedded-player main{padding:0}.embedded-player h1{font-size:30px}.embedded-player section,.embedded-player .bio{padding:16px}.embedded-player .stats{gap:18px;flex-wrap:wrap}.embedded-player img{max-width:100%;height:auto}
}
@media(max-width:380px){.site-masthead .brand b{font-size:18px}.site-masthead .hero-card,.site-masthead .next-card{grid-template-columns:80px minmax(0,1fr)!important}.site-masthead .scoreline,.site-masthead .next-card h3{font-size:13px!important}.mobile-menu-toggle{min-width:60px}.leader-list>li{gap:7px}.table-wrap td.teams{font-size:15px}.hero h1{font-size:33px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

@media(max-width:760px){.player-page header{padding:16px 4%}.player-page header a{font-size:21px}.player-page main{padding:0 4%;margin:22px auto}.player-page section,.player-page .bio{padding:18px}.player-page .grid{grid-template-columns:minmax(0,1fr)}.player-page form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.player-page form label{max-width:100%}.player-page input[name=q]{width:100%}.player-page .stats{gap:18px;flex-wrap:wrap}.player-page .scroll table{font-size:14px}.player-page .scroll td,.player-page .scroll th{padding:9px 6px}}
@media(max-width:760px){#last .scoreline{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;gap:4px!important}#last .scoreline>span{min-width:0;white-space:normal;text-align:center;line-height:1.3}#last .scoreline .ternana-team{white-space:normal;gap:4px}#last .scoreline .ternana-team b{white-space:normal;overflow-wrap:anywhere}#last .scoreline>strong{font-size:19px;white-space:nowrap}#last .scoreline>.forum-banner-link{grid-column:1/-1}.site-masthead .next-card .next-match-label{white-space:normal}.site-masthead .next-card .ternana-team{white-space:normal}.site-masthead .next-card .ternana-team b{white-space:normal}}
@media(max-width:760px){.site-masthead .match-banner{grid-template-rows:auto auto!important}.site-masthead #last{min-height:90px!important}.site-masthead #last .scoreline{align-self:start}.site-masthead #last .match-meta{align-self:end}.site-masthead .next-card{min-height:72px!important}}
@media(max-width:760px){.filters>.field:first-child{grid-column:1/-1}.field{min-width:0}.field label{font-size:12px}.tab,.season{min-height:44px}}
