/* Layout shared by the public catalog and both administration areas. */
html{scroll-padding-top:130px;-webkit-text-size-adjust:100%}body{overflow-wrap:break-word}img,video,canvas,svg{max-width:100%}input,select,textarea,button{min-width:0}input,select,textarea{font-size:16px}textarea{resize:vertical}button,.button{min-height:44px;touch-action:manipulation}a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.button,nav a{transition:background-color .16s ease,border-color .16s ease,color .16s ease}nav a:focus-visible,button:focus-visible,a.button:focus-visible{outline:2px solid #cbfb72;outline-offset:3px}header:not(.top){flex-wrap:wrap;gap:18px 28px}header:not(.top) .brand{flex-shrink:0}header:not(.top) nav{min-width:0;flex-wrap:wrap;gap:6px}header:not(.top) nav a{display:flex;align-items:center;justify-content:center;padding:11px 14px;border-radius:24px;font-size:13px;white-space:nowrap;min-height:44px}header:not(.top) nav a:hover,header:not(.top) nav a[aria-current=page]{background:#cbfb7214;color:#cbfb72}.events,.posters,.studio,.settings-grid,.live-grid,.sport-grid,.share-layout,.live-tools,.sport-filters{min-width:0}.events>*,.posters>*,.studio>*,.settings-grid>*,.live-grid>*,.sport-grid>*,.share-layout>*,.live-tools>*,.sport-filters>*{min-width:0}p,h1,h2,h3,.channel,.sport-watch,.channels,.event-choice{overflow-wrap:anywhere}input[type=file]{padding:12px;font-size:13px;max-width:100%}input[type=file]::file-selector-button{border:1px solid #ffffff35;border-radius:6px;background:#ffffff08;color:inherit;padding:9px 12px;margin-right:10px;cursor:pointer}.check{min-height:44px}.check input{width:20px;height:20px;flex-shrink:0;accent-color:#cbfb72}.settings summary{min-height:44px;line-height:1.5}.toolbar{flex-wrap:wrap}.toolbar input{min-width:160px}.toolbar button{white-space:normal}.preview{max-width:100%}.event-choice.selected{box-shadow:inset 3px 0 #cbfb72}.event-choice small{line-height:1.6}dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overscroll-behavior:contain;overflow-y:auto}dialog button[aria-label^=Chiudi]{min-width:44px;min-height:44px}.live-tools select,.sport-filters select{width:100%}.source-note,.muted{line-height:1.7}footer{flex-wrap:wrap;align-items:center;gap:16px}footer a{display:inline-flex;align-items:center;min-height:44px}.catalog-nav{gap:8px!important}.catalog-nav a{padding:10px 14px;border:1px solid #ffffff1a;border-radius:24px;min-height:44px;display:inline-flex;align-items:center}.catalog-nav a:hover{background:#cbfb7212}.top .search{min-width:0}.grid>.card{min-width:0}
@media(min-width:1600px){header:not(.top),body>main,body>footer{max-width:1480px}.hero,.sport-hero{padding-top:75px}}
@media(max-width:1200px){.posters{grid-template-columns:repeat(4,minmax(0,1fr))}.studio{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid label:first-child{grid-column:1/-1}.hero h1{font-size:clamp(42px,6vw,74px)}header:not(.top)>.pill{display:none}}
@media(max-width:950px){header:not(.top){padding-top:18px;padding-bottom:14px}.studio{grid-template-columns:1fr}.studio>aside,#event-list,#sport-admin-list{max-height:45dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.panel{padding:24px}.live-grid,.sport-grid,.events{grid-template-columns:repeat(2,minmax(0,1fr))}.share-layout{gap:30px}.share-copy h1{font-size:clamp(38px,6vw,58px)}.share-layout .qr-panel{padding:25px}.orb{width:220px;height:220px;font-size:54px;right:-30px}.sport-symbol{flex-shrink:0;width:180px;height:180px;font-size:78px}.admin{padding-top:35px}}
@media(max-width:700px){html{scroll-padding-top:135px}header:not(.top){position:sticky;top:0;z-index:20;background:#0c1014f5;backdrop-filter:blur(14px);display:flex;padding:12px 5% 9px;gap:8px 14px}.brand img{width:120px;height:40px}header:not(.top) nav{flex-basis:100%;width:100%;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;justify-content:flex-start;gap:6px;padding:3px 2px 5px;overscroll-behavior-x:contain}header:not(.top) nav::-webkit-scrollbar{display:none}header:not(.top) nav a{flex-shrink:0;background:#ffffff05;border:1px solid #ffffff10;padding:10px 14px;font-size:12px}header:not(.top) nav a[aria-current=page]{border-color:#cbfb7240}header:not(.top)>a:not(.brand){font-size:12px;min-height:44px;display:flex;align-items:center}header:not(.top)>a:nth-child(2){margin-left:auto}body>main,body>footer{padding-left:5%;padding-right:5%}h1,.admin h1{font-size:clamp(32px,8.5vw,48px)!important;letter-spacing:-1.8px!important;line-height:1.1;margin:20px 0}h2{font-size:24px;line-height:1.2}.hero{padding:35px 0 40px}.hero p,.sport-hero p,.share-copy>p{font-size:14px}.hero .orb{right:-90px;top:50px;opacity:.15}.hero>.eyebrow,.eyebrow{font-size:10px;letter-spacing:1.8px}.search{display:block;margin:25px 0 35px}.search label{font-size:17px;white-space:normal}.search input{margin-top:12px}.section-title{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px}.section-title .button,.section-title button{font-size:12px;padding:11px 14px}section{margin-bottom:40px}.posters{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.poster h3{font-size:13px;margin:10px 10px 5px}.poster p{margin:0 10px 12px}.poster .cover{font-size:18px;padding:12px}.live-intro,.sport-hero{padding-top:24px}.live-intro{margin-bottom:22px}.live-intro h1,.sport-hero h1{font-size:clamp(36px,9vw,52px)!important}.live-tools,.sport-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.live-tools input,.sport-filters input{grid-column:1/-1}.live-tools select,.sport-filters select{font-size:14px;padding:12px 9px}.epg-help{margin-bottom:16px}.epg-help h2{font-size:20px}.epg-help p{font-size:13px}.live-grid,.sport-grid,.events{gap:14px}.sport-dates{display:block}.sport-dates>label{max-width:none;margin-top:18px}.sport-dates label input{max-width:100%}#sport-days{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin}#sport-days button{flex-shrink:0;padding:12px 16px}.sport-info,.live-card .info,.event .info{padding:18px}.sport-score{font-size:24px}.sport-team strong{font-size:13px}.sport-team img{width:38px;height:38px}.sport-teams{gap:7px}.sport-symbol{display:none}.sport-match-top{margin:12px 0 18px}.sport-watch{font-size:12px}.sport-open,.open-event{font-size:13px}.sport-grid .sport-info{padding:16px}.share-layout{grid-template-columns:1fr;padding:30px 0;gap:28px}.share-layout .qr-panel{max-width:440px;width:100%;margin:auto}.share-copy .invite{width:100%}.share-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.share-buttons .button{text-align:center;padding:13px 8px;font-size:12px}.copy-row{flex-wrap:wrap}.copy-row input{flex-basis:100%;font-size:16px}.copy-row button{width:100%}.settings-grid{grid-template-columns:1fr;gap:0}.panel{padding:20px}.settings summary{font-size:18px}.admin>p{font-size:14px}.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.toolbar input{min-width:0;width:100%;grid-column:1/-1}.toolbar button{width:100%;font-size:12px;padding:12px}.toolbar input[type=date]{max-width:none!important}.panel>.button{margin:5px 0;max-width:100%}.panel label{font-size:13px}.studio{gap:20px}.event-choice{padding:14px;font-size:14px}.studio>aside,#event-list,#sport-admin-list{max-height:38dvh}dialog{max-width:calc(100vw - 20px);width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px;border-radius:14px}#event-detail h2,#sport-detail h2{font-size:25px;letter-spacing:-.8px;padding-right:35px}.source-note{font-size:11px}footer{padding-top:20px;padding-bottom:max(20px,env(safe-area-inset-bottom));font-size:12px}button,.button{border-radius:9px}.top .top-inner{padding:12px 5%;gap:10px}.top .brand img{width:110px;height:38px}.catalog-nav{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding:3px 1px 12px;margin:0 0 22px!important}.catalog-nav a{white-space:nowrap;flex-shrink:0;font-size:12px}.catalog-intro h1{font-size:36px!important}.catalog-intro p{font-size:14px}.wrap{padding-left:5%!important;padding-right:5%!important}.wrap .toolbar{display:flex;flex-direction:column;align-items:stretch}.wrap .tabs{width:100%;display:flex}.wrap .tabs button{min-height:44px;flex:1;padding:10px 6px;font-size:12px;white-space:nowrap}.wrap .filters{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.wrap .filters select{width:100%;font-size:13px;min-height:44px;min-width:0}.modal .modal-inner{padding:16px}.modal .close{min-width:44px;min-height:44px}.modal h2{font-size:24px}}
@media(max-width:480px){.posters{grid-template-columns:repeat(2,minmax(0,1fr))}.live-grid,.sport-grid,.events{grid-template-columns:1fr}.sport-info,.sport-grid .sport-info{padding:22px}.sport-team img{width:48px;height:48px}.sport-team strong{font-size:15px}.sport-score{font-size:28px}.sport-match-top{font-size:12px}.live-card h3,.event h3{font-size:22px}.empty{padding:22px;font-size:14px;line-height:1.6}.share-buttons{grid-template-columns:1fr}.share-buttons .button{font-size:14px}.section-title>select{width:100%}.settings form>button,.settings form>a{max-width:100%;font-size:13px}.panel{padding:18px}.wrap .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wrap .card h3{font-size:13px}.wrap .filters{grid-template-columns:1fr}.score-panel{gap:8px;padding:12px}.score-panel strong{font-size:11px}.score-panel b{font-size:22px}}
@media(max-width:350px){h1,.admin h1{font-size:31px!important}.live-tools,.sport-filters{grid-template-columns:1fr}.brand img{width:105px}.sport-team strong{font-size:13px}.sport-info,.sport-grid .sport-info{padding:17px}.qr-panel{padding:20px!important}.toolbar{grid-template-columns:1fr}.wrap .tabs button{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:480px){.modal .hero{height:120px;padding:0;margin:0}.modal .detail{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:14px}.modal .detail>.poster{width:72px;max-width:72px;align-self:start}.modal .detail>div{min-width:0}.modal .detail h2{font-size:20px;line-height:1.25;letter-spacing:-.4px;overflow-wrap:normal;word-break:normal}.modal .sub{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:12px}.modal .facts{grid-template-columns:55px minmax(0,1fr);gap:8px}.modal .facts dd{min-width:0;margin-left:0}.modal .chip{white-space:normal;text-align:left}.modal .location{padding:14px}.modal .seasons{display:flex;flex-wrap:wrap;gap:8px}.modal .plot{font-size:14px;line-height:1.7}}
