:root{
  --primary:#7c3aed;--bg:#080b12;--card:#151a25;--text:#f7f8fb;--muted:#9aa4b2;--line:#243044;--panel:#0d121cdd;
  --ui:clamp(14px,.55vw + 12px,22px);
  --row-h:clamp(44px,3.2vh,64px);
  --logo-w:clamp(42px,3.2vw,72px);
  --cat-w:clamp(220px,16vw,340px);
}
*{box-sizing:border-box}
html{font-size:var(--ui)}
html,body,#app{margin:0;width:100%;height:100%;background:var(--bg);color:var(--text);font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;overflow:hidden}
button,input{font:inherit;color:inherit}
.screen{position:absolute;inset:0;background:radial-gradient(circle at 70% 20%,#171d2d,var(--bg) 55%)}.hidden{display:none!important}
body.has-brand-bg,body.has-brand-bg #app{background-color:transparent}
body.has-brand-bg .screen:not(#playerScreen):not(#detail){background:rgba(8,11,18,.45)}
body.has-brand-bg #detail, #detail{background:#070a10!important;background-image:none!important}
.center{display:flex;align-items:center;justify-content:center;flex-direction:column}
.panel{width:min(720px,88vw);padding:2.2rem;border-radius:1.4rem;background:#10151f;border:1px solid #273044;text-align:center}
.logoText{font-size:clamp(2rem,4vw,3rem);font-weight:900;letter-spacing:.12em;text-align:center}
.code{font-size:clamp(2.2rem,7vw,4.6rem);font-weight:900;letter-spacing:.12em;margin:1.4rem 0;color:#fff}
.muted{color:var(--muted)}
.spinner{width:2.2rem;height:2.2rem;border:.25rem solid #333;border-top-color:#fff;border-radius:50%;margin:1.4rem auto;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.topBar{height:clamp(56px,7vh,84px);padding:0 1rem;display:flex;align-items:center;gap:.85rem;background:#090d14e6;border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.brand{display:flex;gap:.75rem;align-items:center;font-size:clamp(1.1rem,1.6vw,1.6rem);font-weight:900;min-width:0}
.brand.compact{margin-left:auto}
.brand img{height:clamp(32px,4.2vh,48px);max-width:9rem;object-fit:contain}
.clock{opacity:.85;font-variant-numeric:tabular-nums;min-width:4rem;text-align:right;font-size:1rem}
.iconBtn,.backBtn{border:0;border-radius:.75rem;background:#1a2130;padding:.55rem 1rem;font-size:1.25rem;cursor:pointer;min-height:var(--row-h)}
.sectionTabs{display:flex;gap:.5rem}
.tabBtn{border:1px solid #2a354a;background:#121824;border-radius:.75rem;padding:.55rem 1.1rem;font-weight:800;cursor:pointer;font-size:1rem;min-height:var(--row-h)}
.tabBtn.active{outline:.2rem solid var(--primary);background:#1a1430}
.searchWrap{flex:1;max-width:24rem}
.searchInput{width:100%;border:1px solid #2a354a;background:#0f1520;border-radius:.75rem;padding:.65rem .9rem;font-size:1rem;min-height:var(--row-h)}
.searchInput.small{margin:.65rem;width:calc(100% - 1.3rem)}

.homeMain{padding:6vh 6vw}
.hero h1{font-size:clamp(2rem,5vw,4rem);margin-bottom:.5rem}.hero p{color:var(--muted);font-size:clamp(1rem,1.5vw,1.35rem)}
.mainButtons{display:flex;gap:2vw;margin-top:6vh}
.mainBtn{width:30%;min-height:clamp(110px,18vh,180px);border:1px solid #293249;border-radius:1.4rem;background:linear-gradient(145deg,#171d2a,#10141e);font-size:clamp(1.5rem,4vw,3.2rem);font-weight:900;cursor:pointer}
.playlistButtons{display:flex;flex-wrap:wrap;gap:.9rem;margin:3vh 0 1vh}
.playlistBtn{min-width:11rem;min-height:var(--row-h);padding:.85rem 1.3rem;border:1px solid #293249;border-radius:1rem;background:#121824;font-size:1.15rem;font-weight:800;cursor:pointer}
.playlistBtn.selected{outline:.25rem solid var(--primary);background:#1a1430}
.message{padding:1rem 1.2rem;background:#272034;border-left:.3rem solid var(--primary);border-radius:.6rem;margin-bottom:1rem;font-size:1rem}

.browseLayout{height:calc(100% - clamp(56px,7vh,84px));display:grid;grid-template-columns:var(--cat-w) minmax(280px,1fr) minmax(320px,1.15fr);gap:0}
.browseLayout.vodMode{grid-template-columns:var(--cat-w) 1fr}
.browseLayout.vodMode .col.preview{display:none}
.col{min-height:0;overflow:hidden}
.col.cats{border-right:1px solid var(--line);background:#0b1018cc;display:flex;flex-direction:column}
.col.channels{border-right:1px solid var(--line);background:#0b1018b8;display:flex;flex-direction:column}
.browseLayout.vodMode .col.channels{border-right:0}
.col.preview{background:#0a0e16cc;display:flex;flex-direction:column;padding:.9rem;gap:.65rem;min-height:0}
.groupList,.channelList{overflow:auto;flex:1;padding:.4rem .5rem 1rem}
.groupBtn{width:100%;text-align:left;padding:.75rem .85rem;margin:.2rem 0;border:0;border-radius:.65rem;background:transparent;cursor:pointer;display:flex;justify-content:space-between;gap:.5rem;font-size:clamp(1rem,1.15vw,1.25rem);min-height:var(--row-h)}
.groupBtn .count{color:var(--muted);font-size:.85em}
.groupBtn.active,.groupBtn:focus{background:#1a1430;outline:.15rem solid var(--primary)}
.channelMeta{padding:.7rem 1rem;border-bottom:1px solid var(--line);color:var(--muted);font-size:.95rem}
.channelRow{width:100%;display:grid;grid-template-columns:2.6rem var(--logo-w) 1fr;align-items:center;gap:.7rem;text-align:left;padding:.55rem .7rem;margin:.15rem 0;border:0;border-radius:.65rem;background:transparent;cursor:pointer;min-height:var(--row-h)}
.channelRow .num{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem}
.channelRow .logo{width:var(--logo-w);height:calc(var(--logo-w) * .66);object-fit:contain;background:#182032;border-radius:.3rem}
.channelRow .logo.ph{display:flex;align-items:center;justify-content:center;color:#445;font-size:1rem;background:transparent;border:1px dashed #334}
.channelRow .name{font-weight:700;font-size:clamp(1rem,1.2vw,1.35rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channelRow.active,.channelRow:focus{background:#1a1430;outline:.15rem solid var(--primary)}
.channelRow img.broken{display:none}

/* Poster grid (FILM / SERIE) */
.posterGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(120px,11vw,180px),1fr));gap:clamp(.7rem,1.2vw,1.2rem);padding:.8rem 1rem 1.4rem;overflow:auto;flex:1;align-content:start}
.posterCard{display:flex;flex-direction:column;gap:.45rem;border:0;background:transparent;padding:0;cursor:pointer;text-align:left;border-radius:.7rem;min-width:0}
.posterCard:focus,.posterCard.focused{outline:.2rem solid var(--primary);outline-offset:.15rem}
.posterCard .posterArt{position:relative;width:100%;aspect-ratio:2/3;border-radius:.7rem;overflow:hidden;background:#121824;border:1px solid var(--line)}
.posterCard .posterArt img{width:100%;height:100%;object-fit:cover;display:block}
.posterCard .posterArt .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#556;font-size:2rem;background:linear-gradient(160deg,#1a2130,#0d121c)}
.posterCard .posterTitle{font-size:clamp(.85rem,1vw,1.05rem);font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.posterCard .posterMeta{font-size:.8rem;color:var(--muted)}

.previewPlayer{position:relative;width:100%;aspect-ratio:16/9;flex:0 0 auto;background:#000;border-radius:.9rem;overflow:hidden;border:1px solid var(--line)}
.previewPlayer video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.previewEmpty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);pointer-events:none;z-index:1;font-size:1rem}
.previewEmpty.hide{display:none}
.previewBar{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;flex:0 0 auto}
.previewInfo{padding:.1rem;min-width:0;flex:1}
.nowTitle{font-size:clamp(1.1rem,1.5vw,1.45rem);font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nowEpg{margin-top:.25rem;font-size:.9rem;min-height:1.2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.actionBtn{border:1px solid #2a354a;background:#121824;border-radius:.75rem;padding:.65rem .9rem;font-weight:800;cursor:pointer;white-space:nowrap;flex:0 0 auto;min-height:var(--row-h);font-size:1rem}
.epgPanel{flex:1;min-height:8rem;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:.9rem;background:#0c121ccc;overflow:hidden}
.epgHead{padding:.7rem 1rem;font-weight:800;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
.epgList{flex:1;overflow:auto;padding:.5rem}
.epgItem{display:grid;grid-template-columns:6rem 1fr;gap:.65rem;padding:.65rem;border-radius:.65rem;border:1px solid transparent}
.epgItem.now{background:#1a1430;border-color:#3b2a66}
.epgItem .epgTime{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums;line-height:1.35}
.epgItem .epgTitle{font-weight:700;font-size:1rem;line-height:1.35}
.epgItem .epgDesc{margin-top:.25rem;color:var(--muted);font-size:.85rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.epgEmpty{padding:1.1rem .75rem;text-align:center}

/* Detail page */
#detail{display:flex;flex-direction:column;background:#070a10}
.detailBg{display:none!important}
.detailTop{position:relative;z-index:2;height:clamp(56px,7vh,84px);padding:0 1rem;display:flex;align-items:center;gap:.85rem}
.detailBody{position:relative;z-index:2;flex:1;min-height:0;overflow:auto;padding:1rem clamp(1rem,3vw,2.5rem) 2rem;display:grid;grid-template-columns:clamp(160px,18vw,280px) 1fr;gap:clamp(1rem,2.5vw,2.2rem);align-items:start}
.detailPoster{width:100%;aspect-ratio:2/3;border-radius:1rem;overflow:hidden;background:#121824;border:1px solid var(--line);box-shadow:0 12px 40px #0008}
.detailPoster img{width:100%;height:100%;object-fit:cover;display:block}
.detailPoster .ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:3rem;color:#445}
.detailInfo{min-width:0}
.detailTitle{font-size:clamp(1.6rem,3.2vw,3rem);font-weight:900;line-height:1.15;margin:0 0 .6rem}
.detailTags{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1rem}
.detailTag{padding:.35rem .7rem;border-radius:999px;background:#1a2130;border:1px solid #2a354a;font-size:.9rem;color:var(--muted)}
.detailTag.score{color:#fbbf24;border-color:#5b4a1e;background:#2a220f}
.detailOverview{font-size:clamp(1rem,1.25vw,1.2rem);line-height:1.55;color:#d7dde8;max-width:52rem;margin-bottom:1.2rem}
.detailActions{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1.4rem}
.playBtn{border:0;border-radius:.9rem;background:var(--primary);color:#fff;padding:.85rem 1.6rem;font-size:1.15rem;font-weight:900;cursor:pointer;min-height:clamp(48px,6vh,64px)}
.playBtn:disabled{opacity:.45;cursor:default}
.seasonRow{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .9rem}
.seasonBtn{border:1px solid #2a354a;background:#121824;border-radius:.7rem;padding:.55rem 1rem;font-weight:800;cursor:pointer;min-height:var(--row-h)}
.seasonBtn.active{outline:.18rem solid var(--primary);background:#1a1430}
.epList{display:flex;flex-direction:column;gap:.4rem;max-width:52rem;max-height:42vh;overflow:auto;padding-right:.3rem}
.epBtn{display:grid;grid-template-columns:4.2rem 1fr auto;gap:.75rem;align-items:center;text-align:left;border:1px solid #243044;background:#0f1520;border-radius:.75rem;padding:.7rem .9rem;cursor:pointer;min-height:var(--row-h)}
.epBtn.active,.epBtn:focus{outline:.18rem solid var(--primary);background:#1a1430}
.epBtn .epNum{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:700}
.epBtn .epName{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epBtn .epPlay{font-weight:800;color:var(--primary)}

.nav:focus,.focused{outline:.2rem solid var(--primary)!important;outline-offset:2px}
#playerScreen{background:#000}
#videoFull{width:100%;height:100%;background:#000}
.playerTop{position:absolute;top:1.2rem;left:1.2rem;right:1.2rem;display:flex;gap:1rem;align-items:center;padding:.75rem;background:#0009;border-radius:.9rem;font-size:1.1rem;z-index:6;opacity:1;transform:translateY(0);transition:opacity .35s ease,transform .35s ease;pointer-events:auto}
#playerScreen.chrome-hidden .playerTop{opacity:0;transform:translateY(-12px);pointer-events:none}

@media (min-width:1600px){
  :root{--ui:18px;--row-h:56px;--logo-w:64px;--cat-w:300px}
  .posterGrid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
}
@media (min-width:1920px){
  :root{--ui:20px;--row-h:60px;--logo-w:72px;--cat-w:320px}
  .browseLayout:not(.vodMode){grid-template-columns:320px minmax(360px,1fr) minmax(420px,1.15fr)}
  .posterGrid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:1.1rem}
  .channelRow .name{font-size:1.25rem}
  .groupBtn{font-size:1.2rem}
}
@media (min-width:2560px){
  :root{--ui:24px;--row-h:68px;--cat-w:380px}
}

@media(max-width:980px) and (orientation:portrait){
  .browseLayout{grid-template-columns:200px 1fr;grid-template-rows:1fr 42vh}
  .browseLayout.vodMode{grid-template-columns:180px 1fr;grid-template-rows:1fr}
  .col.preview{grid-column:1 / -1;min-height:0}
  .mainButtons{flex-direction:column}.mainBtn{width:100%;min-height:100px}
  .searchWrap{max-width:none;flex:1}
  .brand.compact .brandName{display:none}
  .detailBody{grid-template-columns:140px 1fr}
}
@media(max-width:700px) and (orientation:portrait){
  .browseLayout{grid-template-columns:1fr;grid-template-rows:28vh 36vh 1fr}
  .browseLayout.vodMode{grid-template-rows:auto 1fr}
  .sectionTabs .tabBtn{padding:.45rem .7rem;font-size:.9rem}
  .detailBody{grid-template-columns:1fr}
  .detailPoster{max-width:220px;margin:0 auto}
  .posterGrid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
}
@media(max-width:980px) and (orientation:landscape){
  .mainButtons{gap:1.2vw}
  .mainBtn{min-height:clamp(90px,28vh,140px);font-size:clamp(1.3rem,3.5vw,2.2rem)}
  .detailBody{grid-template-columns:clamp(120px,22vw,200px) 1fr;padding-top:.5rem}
}

.playerError{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000c;z-index:5;padding:2rem}
.playerError.hidden{display:none!important}
.playerErrorBox{max-width:36rem;text-align:center;background:#121824;border:1px solid var(--line);border-radius:1rem;padding:1.6rem 1.4rem}
.playerErrorTitle{font-size:clamp(1.2rem,2vw,1.7rem);font-weight:900;margin-bottom:.6rem}
.playerErrorText{font-size:1.05rem;line-height:1.45;margin-bottom:1.2rem}

/* TV app mode — remote only, no mouse arrow, immersive fullscreen UI */
html.tv-mode,body.tv-mode{
  width:100%!important;height:100%!important;
  width:100vw!important;height:100vh!important;
  height:100dvh!important;
  overflow:hidden!important;
  margin:0!important;padding:0!important;
  background:#080b12!important;
}
body.tv-mode,body.tv-mode *{cursor:none!important}
body.tv-mode.tv-no-cursor,body.tv-mode.tv-no-cursor *{cursor:none!important}
body.tv-mode #app{
  position:fixed!important;inset:0!important;
  width:100%!important;height:100%!important;
  overflow:hidden!important;
}
body.tv-mode .screen{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
}
body.tv-mode .topBar{
  height:clamp(64px,8vh,96px);
  padding:0 1.4rem;
  padding-left:max(1.4rem, env(safe-area-inset-left));
  padding-right:max(1.4rem, env(safe-area-inset-right));
}
body.tv-mode .browseLayout,
body.tv-mode #browseLayout{
  height:calc(100% - clamp(64px,8vh,96px))!important;
  gap:1rem;
}
body.tv-mode .homeMain{
  padding:clamp(4vh,8vh,10vh) clamp(3vw,5vw,6vw);
  height:calc(100% - clamp(64px,8vh,96px));
  box-sizing:border-box;
}
body.tv-mode .mainBtn{
  min-height:clamp(140px,22vh,220px);
  font-size:clamp(1.8rem,4.5vw,3.6rem);
}
/* Selection ring — yellow, always visible (not only :focus, TVs often lack real focus) */
body.tv-mode .tv-focus,
body.tv-mode .nav.tv-focus,
body.tv-mode button.tv-focus{
  outline:4px solid #f5c542!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 8px rgba(245,197,66,.35),0 0 24px rgba(245,197,66,.45)!important;
  z-index:5!important;
  position:relative;
}
body.tv-mode .channelRow.tv-focus,
body.tv-mode .groupBtn.tv-focus{
  background:#2a2410!important;transform:scale(1.03);
}
body.tv-mode .mainBtn.tv-focus{transform:scale(1.05);background:linear-gradient(145deg,#3a3010,#1a1430)}
body.tv-mode .posterCard.tv-focus{transform:scale(1.08)}
body.tv-mode .tabBtn.tv-focus,
body.tv-mode .actionBtn.tv-focus{background:#2a2410!important}
body.tv-mode .nav:focus,body.tv-mode button:focus,body.tv-mode .focused{
  outline:3px solid var(--primary)!important;
  outline-offset:3px;
  box-shadow:0 0 0 6px color-mix(in srgb,var(--primary) 40%,transparent);
  z-index:2;
}
body.tv-mode .tv-focus:focus,
body.tv-mode .tv-focus.focused{
  outline:4px solid #f5c542!important;
  box-shadow:0 0 0 8px rgba(245,197,66,.35),0 0 24px rgba(245,197,66,.45)!important;
}
body.tv-mode .searchWrap,
body.tv-mode #groupSearch{display:none!important} /* TV: no keyboard search, only D-pad */
body.tv-mode .browseTop{justify-content:flex-start}
body.tv-mode #homeHint{font-size:clamp(1.05rem,1.6vw,1.35rem);color:#c5cde0}
body.tv-mode #playerScreen,
body.tv-mode #videoFull{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
}
.tvBadge{
  display:none;margin-top:1.2rem;padding:.7rem 1rem;border:1px solid #3b2a66;border-radius:.8rem;
  background:#1a1430;color:#ddd6fe;font-size:.95rem;max-width:36rem;
}
body.tv-mode .tvBadge{display:block}
.tvHelp{
  position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  background:#000c;padding:2rem;
}
.tvHelp.hidden{display:none!important}
.tvHelpCard{
  width:min(720px,92vw);max-height:86vh;overflow:auto;background:#121824;border:2px solid #f5c542;
  border-radius:1rem;padding:1.4rem 1.6rem;color:#f7f8fb;font-size:1.05rem;line-height:1.45;
}
.tvHelpCard h2{margin:0 0 .8rem;font-size:1.6rem}
.tvHelpCard ul{margin:.4rem 0 1rem;padding-left:1.2rem}
.tvHelpCard li{margin:.35rem 0}
.tvHelpCard hr{border:0;border-top:1px solid #2a354a;margin:1rem 0}
.tvHelpCard code{color:#f5c542}
.tvHelpBtn{
  display:inline-block;margin-top:1rem;border:1px solid #f5c542;background:#2a2410;color:#f5c542;
  border-radius:.8rem;padding:.7rem 1.1rem;font-weight:800;cursor:pointer;font-size:1rem;
}

/* Native fullscreen element styling */
:fullscreen,:-webkit-full-screen{
  background:#080b12!important;
  width:100%!important;height:100%!important;
}
:fullscreen #app,:-webkit-full-screen #app{
  width:100%!important;height:100%!important;
}



/* Phone portrait: categorie sopra, lista sotto; play apre player fullscreen */
@media (max-width:900px) and (orientation:portrait){
  #browseLayout{
    grid-template-columns:1fr !important;
    grid-template-rows:min(30vh,200px) 1fr !important;
    height:calc(100% - clamp(52px,8vh,72px));
  }
  #browseLayout.vodMode{
    grid-template-rows:min(28vh,180px) 1fr !important;
  }
  #browseLayout .col.preview{display:none !important}
  #browseLayout .col.cats{max-height:30vh;overflow:auto;border-bottom:1px solid var(--line);border-right:0}
  #browseLayout .col.channels{min-height:0;overflow:auto}
  .browseTop .searchWrap{flex:1;min-width:0}
  .browseTop .brand.compact,.browseTop .clock{display:none}
  #playerScreen{z-index:60}
  #videoFull{width:100%;height:100%;object-fit:contain;background:#000}
}

/* Phone / tablet landscape: categorie | canali affiancati (LIVE, FILM, SERIE) */
@media (max-width:1100px) and (orientation:landscape){
  .topBar.browseTop{
    height:clamp(44px,12vh,58px);
    padding:0 .55rem;
    gap:.45rem;
  }
  .browseTop .tabBtn{padding:.35rem .7rem;font-size:.88rem;min-height:2.4rem}
  .browseTop .searchInput{padding:.4rem .65rem;min-height:2.4rem;font-size:.9rem}
  .browseTop .iconBtn{padding:.35rem .7rem;min-height:2.4rem}
  .browseTop .brand.compact,.browseTop .clock{display:none}
  .browseTop .searchWrap{flex:1;min-width:0;max-width:none}

  #browseLayout{
    grid-template-columns:minmax(140px,26vw) minmax(0,1fr) !important;
    grid-template-rows:1fr !important;
    height:calc(100% - clamp(44px,12vh,58px));
  }
  #browseLayout.vodMode{
    grid-template-columns:minmax(140px,24vw) minmax(0,1fr) !important;
  }
  #browseLayout .col.preview{display:none !important}
  #browseLayout .col.cats{
    max-height:none;
    border-bottom:0;
    border-right:1px solid var(--line);
  }
  #browseLayout .col.channels{border-right:0;min-height:0}
  .searchInput.small{margin:.4rem;width:calc(100% - .8rem);padding:.4rem .55rem;min-height:2.2rem;font-size:.85rem}
  .groupBtn{padding:.55rem .65rem;font-size:.95rem;min-height:2.4rem}
  .channelMeta{padding:.45rem .75rem;font-size:.85rem}
  .channelRow{padding:.4rem .55rem;min-height:2.5rem;gap:.5rem;grid-template-columns:2.2rem clamp(36px,6vw,56px) 1fr}
  .channelRow .name{font-size:1rem}
  .posterGrid{
    grid-template-columns:repeat(auto-fill,minmax(clamp(88px,12vw,130px),1fr));
    gap:.55rem;
    padding:.55rem .7rem 1rem;
  }
  .posterCard .posterTitle{font-size:.8rem;min-height:2.2em}
  #playerScreen{z-index:60}
  #videoFull{width:100%;height:100%;object-fit:contain;background:#000}
}

/* Landscape più largo: anteprima LIVE a destra se c’è spazio */
@media (min-width:901px) and (max-width:1100px) and (orientation:landscape){
  #browseLayout:not(.vodMode){
    grid-template-columns:minmax(150px,22vw) minmax(220px,1fr) minmax(260px,1.05fr) !important;
  }
  #browseLayout:not(.vodMode) .col.preview{display:flex !important}
}


/* No aim dot — D-pad selector only */
.tvPointer{display:none!important}


.uiVer{display:none;position:fixed;top:.6rem;right:.8rem;z-index:99999;padding:.35rem .7rem;border-radius:.5rem;background:#f5c542;color:#111;font-weight:900;font-size:.85rem;letter-spacing:.02em;pointer-events:none}
.uiVer.on,body.tv-mode .uiVer{display:block}
