:root{--navy:#213A70;--navy7:#1B3361;--sky:#48A8D6;--sky6:#3BA0D0;--sky7:#2E91C2;--sky3:#9CD2EC;--sky1:#E6F4FB;--sky05:#F3FAFD;--g2:#DDE3EC;--g3:#C2CAD6;--g5:#6B7686;--g7:#353E4C;--g8:#232A35;--err:#D8453B;--r:18px;--rm:12px;--sh:0 8px 24px rgba(33,58,112,.10);--shl:0 18px 48px rgba(33,58,112,.18);--fd:'Poppins',system-ui,sans-serif;--fb:'Mulish',system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--g8);font-family:var(--fb);color:var(--g7)}
a{color:var(--sky7);text-decoration:none}a:hover{color:var(--navy)}
button{font:inherit;border:0;cursor:pointer;color:inherit;background:none}
button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 2px #fff}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
[hidden]{display:none!important}
#stage{position:fixed;inset:0;overflow:hidden}
#screen{position:absolute;inset:0}
#player{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;object-fit:contain}
#perr{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center;color:#fff;background:rgba(0,0,0,.72)}
#perr[hidden]{display:none}
#perr button{font:600 15px Mulish,sans-serif;padding:10px 22px;border:0;border-radius:999px;background:#fff;color:#0b2a4a;cursor:pointer}
#tlImg{position:absolute;inset:0;background:var(--g8) center/cover no-repeat}
.glass{background:rgba(255,255,255,.84);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 2px 8px rgba(33,58,112,.08)}
.brand{position:absolute;top:20px;left:24px;display:flex;align-items:center;gap:12px;padding:10px 16px;border-radius:999px;max-width:calc(100% - 48px)}
.brand>i{font-size:22px;color:var(--sky6)}
.logo{margin:0;font-family:var(--fd);font-weight:700;font-size:16px;color:var(--navy7);white-space:nowrap}.logo b{color:var(--sky6)}
.sep{width:1px;height:18px;background:var(--g3)}
.now{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--navy7);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live{margin-right:8px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#B3261E}
.muted{color:#566071;font-weight:600}
.muted:not(:empty){margin-left:8px}
.tools{position:absolute;top:20px;right:24px;display:flex;gap:8px}
.round{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--navy7)}
.tool{height:40px;padding:0 14px;border-radius:999px;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--navy7)}
.tool.on{background:var(--navy);color:#fff}
.round:hover,.tool:hover{background:#fff}.tool.on:hover{background:var(--navy7)}
.card{background:rgba(255,255,255,.6);border-radius:var(--r);box-shadow:var(--sh)}
.wx{position:absolute;top:76px;right:24px;width:300px;padding:20px;display:flex;flex-direction:column;gap:14px}
.wx-main{display:flex;align-items:center;gap:14px}.wx-main>i{font-size:48px;color:var(--sky)}
.temp{font-family:var(--fd);font-size:44px;font-weight:600;color:var(--navy7);line-height:1}
#wxLabel{font-size:14px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stats div{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.25}.stats i{color:var(--sky7);font-size:16px}.stats b{color:var(--navy7)}
.fc{display:flex;justify-content:space-between;padding-top:12px;border-top:1px solid var(--g2)}
.fc div{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px}.fc b{color:var(--navy7)}.fc i{font-size:18px;color:var(--sky7)}
.snowlink{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:var(--rm);background:var(--sky05);font-size:13px;color:var(--navy7);text-align:left}
.snowlink i{font-size:18px;color:var(--sky7)}.snowlink i:last-child{margin-left:auto}.snowlink:hover{background:var(--sky1)}
.bottom{position:absolute;left:24px;right:24px;bottom:72px;display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.bar{display:flex;flex-direction:column;gap:6px;max-width:960px;padding:8px;border-radius:var(--r);background:rgba(128,128,128,.6)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips button{padding:8px 14px;min-height:36px;border-radius:999px;font-size:14px;font-weight:700;color:var(--navy7)}
.chips button:hover{background:var(--sky1)}
.chips button.on{background:rgba(33,58,112,.9);color:#fff}
.chips.cams{padding-top:6px;border-top:1px solid rgba(255,255,255,.35)}
.chips.cams button{display:flex;align-items:center;gap:6px;font-weight:600;background:rgba(255,255,255,.2);border:1px solid rgba(221,227,236,.5)}
.chips.cams button i{color:var(--sky7)}
.chips.cams button.on{background:rgba(255,255,255,.5);border-color:rgba(156,210,236,.5);color:var(--navy7)}
.tlbar{flex:1 1 auto;padding:12px 14px;gap:8px}
.tlrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.play{width:38px;height:38px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--navy);font-size:18px}
.seg{display:flex;gap:4px;padding:3px;border-radius:999px;background:rgba(255,255,255,.85)}
.seg button{padding:5px 12px;border-radius:999px;font-size:13px;font-weight:700;color:var(--navy7)}.seg button.on{background:var(--navy);color:#fff}
.tllabel{font-family:var(--fd);font-weight:600;font-size:15px;color:#fff}
.tlnote{margin-left:auto;font-size:12px;color:#fff}
.x{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;color:var(--navy7);flex:0 0 auto}
.frames{display:flex;gap:2px;align-items:flex-end;height:30px;border-radius:4px}
.frames span{flex:1 1 0;min-width:0;border-radius:2px;cursor:pointer;background:rgba(255,255,255,.35)}
.frames span.past{background:rgba(255,255,255,.7)}.frames span.on{background:#fff}
.tlends{display:flex;justify-content:space-between;font-size:12px;color:#fff}
.powered{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.75);font-size:12px;color:var(--g7);white-space:nowrap}
.powered img{height:13px}.powered b{color:var(--navy)}
.foot{display:flex;align-items:center;gap:6px}
button.powered{font-weight:600}button.powered i{font-size:13px;color:var(--navy)}button.powered:hover,a.powered:hover{background:#fff}
.ck{position:fixed;left:24px;bottom:24px;z-index:20;width:440px;max-width:calc(100% - 48px);padding:20px;background:#fff;box-shadow:var(--shl);display:flex;flex-direction:column;gap:10px}
.ck h2{margin:0;font-family:var(--fd);font-size:18px;color:var(--navy7)}
.ck p{margin:0;font-size:14px;line-height:1.5}.ck p a{font-weight:700}
.ck .x{background:var(--sky05)}
.ckbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ckb{height:42px;border-radius:999px;background:var(--navy);color:#fff;font-size:14px;font-weight:700}.ckb:hover{background:var(--navy7)}
.modal{position:absolute;inset:0;background:rgba(18,32,64,.35);display:flex;align-items:center;justify-content:center;padding:16px;z-index:10}
.dialog{width:460px;max-width:100%;max-height:100%;overflow:auto;padding:24px;background:#fff;box-shadow:var(--shl);display:flex;flex-direction:column;gap:12px}
.dialog.share{width:560px;padding:20px}
.dhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dhead h2{margin:0;font-family:var(--fd);font-size:22px;color:var(--navy7)}.dhead p{margin:4px 0 0;font-size:14px;line-height:1.5}
.dialog .x{background:var(--sky05)}
.lbl{font-size:13px;font-weight:700;color:var(--navy7);margin-top:4px}
.chips.light button{border:1px solid var(--g2);background:#fff}.chips.light button.on{background:var(--sky1);border-color:var(--sky3);color:var(--navy7)}
.soglie{display:flex;gap:6px}.soglie button{flex:1 1 0;padding:8px 0;border-radius:var(--rm);font-size:14px;font-weight:700;border:1px solid var(--g2);color:var(--navy7)}
.soglie button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.alfc{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:var(--rm);background:var(--sky05);font-size:13px;color:var(--navy7)}
.aldays{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:end}
.aldays div{display:flex;flex-direction:column;align-items:center;gap:3px}.aldays b{font-size:12px}.aldays small{font-size:12px;color:#566071}
.aldays span{width:70%;border-radius:3px;background:var(--sky3)}.aldays span.hit{background:var(--navy)}
.alwrap{display:flex;flex-direction:column;gap:10px}
.alform{display:flex;gap:8px}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--g7);cursor:pointer}
.consent input{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0;accent-color:var(--navy)}
.consent a{font-weight:700}
.captcha{min-height:0}.captcha:empty{display:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.cta:disabled{opacity:.6;cursor:wait}
.alform input{flex:1 1 auto;min-width:0;height:42px;padding:0 14px;border-radius:var(--rm);border:1px solid var(--g3);font:inherit;font-size:14px;color:var(--navy7)}
.cta{height:42px;padding:0 18px;border-radius:999px;background:var(--navy);color:#fff;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;white-space:nowrap}.cta:hover{background:var(--navy7)}
.shareimg{position:relative;aspect-ratio:16/9;border-radius:var(--rm);overflow:hidden;background:var(--g8) center/cover no-repeat}
.wm{position:absolute;top:10px;right:12px;font-size:11px;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.strip{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:var(--rm);background:rgba(255,255,255,.9)}
.strip>i{font-size:28px;color:var(--sky)}.strip div{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.strip b{font-family:var(--fd);font-size:15px;color:var(--navy7)}.strip small{font-size:12px}
.shtemp{font-family:var(--fd);font-size:28px;font-weight:600;color:var(--navy7)}
.actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.actions a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 0;border-radius:var(--rm);background:var(--sky05);font-size:13px;font-weight:700;color:var(--navy7)}
.actions a:hover{background:var(--sky1)}.actions i{font-size:20px;color:var(--sky7)}
@media (max-width:1320px){
  .tool span{display:none}.tool{width:40px;padding:0;justify-content:center}
  .brand{max-width:calc(100% - 48px - 312px)}
}
@media (max-height:640px) and (min-width:901px){
  .wx .fc{display:none}
  .bar{max-width:calc(100% - 340px - 200px)}
}
@media (max-width:700px) and (orientation:portrait){
  html,body{background:var(--sky05);height:auto}
  #stage{position:static;display:flex;flex-direction:column;min-height:100vh;overflow:visible;padding-bottom:env(safe-area-inset-bottom)}
  .bottom{display:contents}
  .brand{position:static;order:1;margin:calc(12px + env(safe-area-inset-top)) 12px 0;max-width:none;background:#fff}
  .brand .sep{display:none}
  .brand{flex-wrap:wrap;row-gap:2px;border-radius:var(--r)}
  .now{flex:1 0 100%}
  #screen{position:relative;order:2;aspect-ratio:16/9;margin-top:12px;background:var(--g8)}
  #selector,#tlBar{order:3;margin:12px 12px 0;max-width:none;background:#fff;box-shadow:var(--sh)}
  #tlBar{background:var(--navy7);flex:0 0 auto}
  .chips.cams{border-top-color:var(--g2)}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .chips::-webkit-scrollbar{display:none}
  .chips button{flex:0 0 auto}
  .chips.cams{border-top-color:var(--g2)}
  .tools{position:static;order:4;margin:12px 12px 0;justify-content:space-between}
  .tools .glass{background:#fff}
  .tool span{display:none}.tool{width:44px;height:44px;padding:0;justify-content:center}.round{width:44px;height:44px}
  .chips button{min-height:44px}.x{width:44px;height:44px}.ckb,.cta{height:48px}
  .wx{position:static;order:5;margin:12px;width:auto;background:#fff}
  .foot{order:6;align-self:center;margin:4px 0 20px}
  .ck{left:0;right:0;bottom:0;width:100%;max-width:none;border-radius:var(--r) var(--r) 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .modal{position:fixed;align-items:flex-end;padding:0}
  .dialog{border-radius:var(--r) var(--r) 0 0;width:100%;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .alform{flex-direction:column}.cta{justify-content:center}
  .actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-height:500px) and (orientation:landscape){
  .brand{top:8px;left:8px;padding:6px 12px;gap:8px;max-width:calc(100% - 16px - 300px)}
  .brand .logo,.brand .sep{display:none}
  .tools{top:8px;right:8px}
  .tool span{display:none}.tool{width:40px;padding:0;justify-content:center}
  .wx{top:56px;right:8px;width:230px;padding:12px;gap:8px}
  .wx .stats,.wx .fc,.wx .snowlink{display:none}
  .temp{font-size:30px}.wx-main>i{font-size:32px}
  .bottom{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom))}
  .bar{max-width:calc(100% - 170px);padding:6px}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chips button{flex:0 0 auto;padding:5px 10px}
  .tlbar{max-width:none}
  .dialog{max-height:calc(100vh - 16px)}
}
#player::-webkit-media-controls-timeline,#player::-webkit-media-controls-current-time-display,#player::-webkit-media-controls-time-remaining-display{display:none}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media (forced-colors:active){.chips button.on,.tool.on,.seg button.on{outline:2px solid CanvasText}}
