/* pages.css — Home, Live TV, Guida TV, Cinema. */

/* ================= HOME ================= */
.home { margin-top: calc(-1 * var(--top)); padding-bottom: 40px; }
.hero { position: relative; display: grid; align-items: end; min-height: min(84vh, 800px); padding: calc(var(--top) + 48px) var(--gut) clamp(40px, 6vw, 76px); overflow: hidden; isolation: isolate; }
.hero-back { position: absolute; inset: -6%; z-index: -3; }
.hero-back .poster { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: .6; filter: blur(46px) saturate(1.5); transform: scale(1.15); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--void) 0, rgba(3, 4, 10, .78) 38%, rgba(3, 4, 10, .15) 75%), linear-gradient(0deg, var(--void) 0, transparent 34%); }
/* il raggio del proiettore: parte dal logo in alto a sinistra e illumina la locandina */
.hero-beam { position: absolute; inset: 0; z-index: -1; background: conic-gradient(from 97deg at 3% 4%, transparent 0deg, hsl(var(--ah) 100% 72% / .2) 9deg, hsl(var(--ah) 100% 72% / .06) 24deg, transparent 31deg); animation: breathe 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }
.hero-text { max-width: 660px; display: grid; gap: 16px; justify-items: start; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--accent-hi); }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: breathe 1.6s ease-in-out infinite alternate; }
.hero h1 { font-size: clamp(42px, 7vw, 104px); font-weight: 700; line-height: .92; letter-spacing: -.005em; text-shadow: 0 0 60px hsl(var(--ah) 100% 60% / .35); overflow-wrap: anywhere; }
.hero-syn { color: var(--tx2); font-size: clamp(15px, 1.25vw, 18px); max-width: 58ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-lic { font-size: 13px; color: var(--tx3); }
.hero-poster { position: absolute; right: calc(var(--gut) + 2vw); bottom: clamp(40px, 6vw, 76px); width: clamp(210px, 22vw, 340px); border-radius: var(--r3); --rz: 3deg; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, -8deg)) rotateZ(var(--rz)); }
.hero-poster .poster { border-radius: var(--r3); box-shadow: 0 0 0 1.5px hsl(var(--ah) 100% 75% / .7), 0 0 90px -10px var(--accent-glow), 0 40px 80px -30px #000; }
.hero.skel { align-items: end; } .hero.skel .hero-text { width: min(100%, 600px); display: block; }
.hero-spacer { height: calc(var(--top) + 8px); }
.home-empty { min-height: 72vh; display: grid; place-items: center; padding-top: var(--top); }
.hero-empty .empty-art { width: 128px; height: 128px; } .hero-empty .empty-art .ic { width: 54px; height: 54px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 0 18px; border-radius: var(--r2); border: 1px solid var(--line); background: linear-gradient(120deg, hsl(var(--ah) 90% 55% / .22), rgba(13, 17, 36, .7) 70%); font: 600 19px/1.1 var(--font-display); letter-spacing: .02em; transition: border-color .3s; }
.cat:hover, .cat:focus-visible { border-color: var(--accent); }
.cat .ic { color: var(--accent); width: 18px; height: 18px; transition: transform .3s var(--ease); } .cat:hover .ic { transform: translateX(4px); }
.foot { margin-top: 64px; padding: 24px var(--gut) 8px; border-top: 1px solid var(--line); color: var(--tx3); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { border-bottom: 1px solid var(--line-strong); margin-right: 12px; } .foot a:hover { color: #fff; }

/* ================= LIVE TV ================= */
.live { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 400px); gap: clamp(16px, 2vw, 28px); padding: 14px var(--gut) 48px; align-items: start; }
.stage { min-width: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; max-height: calc(100dvh - var(--top) - 40px); width: 100%; background: #000; border-radius: var(--r3); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 0 0 1px var(--accent-soft), 0 30px 90px -30px var(--accent-glow); isolation: isolate; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen:fullscreen { border-radius: 0; border: 0; max-height: none; }
/* salto di frequenza: una passata di righe e un piccolo scarto, una volta sola */
.screen-fx { position: absolute; inset: -20% 0; z-index: 2; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 5px), linear-gradient(0deg, transparent 40%, hsl(var(--ah) 100% 70% / .35) 50%, transparent 60%); }
.screen.jump .screen-fx { animation: scan .5s ease-out both; }
.screen.jump video { animation: hop .5s var(--ease) both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-18%); } 30% { opacity: .8; } 100% { opacity: 0; transform: translateY(18%); } }
@keyframes hop { 0% { opacity: .35; transform: translateX(-1.6%) skewX(-2deg) scale(1.02); } 45% { opacity: .8; transform: translateX(.8%) skewX(1deg) scale(1.01); } 100% { opacity: 1; transform: none; } }
.spinner { position: absolute; left: 50%; top: 50%; z-index: 3; width: 54px; height: 54px; margin: -27px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); opacity: 0; animation: spin .9s linear infinite; pointer-events: none; transition: opacity .2s .25s; }
.screen[data-state="loading"] .spinner { opacity: 1; }
.screen-panel { position: absolute; inset: 0; z-index: 3; display: none; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--tx2); background: radial-gradient(ellipse at 50% 40%, hsl(var(--ah) 70% 30% / .35), transparent 65%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px), #05070f; }
.screen:is([data-state="offair"], [data-state="error"], [data-state="gap"]) .screen-panel { display: grid; }
.screen:is([data-state="offair"], [data-state="error"], [data-state="gap"]) video { visibility: hidden; }
.screen-panel strong { font: 600 clamp(22px, 3.2vw, 40px)/1.05 var(--font-display); color: #fff; letter-spacing: .02em; }
.screen-panel > span:not(.panel-art) { max-width: 44ch; font-size: clamp(13px, 1.3vw, 16px); }
.panel-art { display: grid; place-items: center; width: clamp(54px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); margin-bottom: 4px; }
.panel-art .ic { width: 46%; height: 46%; }
.screen[data-state="error"] .panel-art { color: var(--am); }
.osd { position: absolute; left: clamp(12px, 2.4vw, 30px); top: clamp(12px, 2.4vw, 30px); z-index: 4; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 14px; border-radius: 18px; background: rgba(4, 6, 16, .72); border: 1px solid hsl(var(--ah) 100% 70% / .5); box-shadow: 0 0 40px -8px var(--accent-glow); opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; max-width: calc(100% - 24px); }
.osd.show { opacity: 1; transform: none; transition-duration: .18s; }
.osd-num { font: 700 clamp(40px, 6vw, 76px)/.9 var(--font-display); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 0 26px var(--accent-glow); }
.osd-txt { display: grid; min-width: 0; } .osd-txt b { font: 600 clamp(15px, 1.6vw, 21px)/1.2 var(--font-display); letter-spacing: .03em; }
.osd-txt span, .osd-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .osd-txt span { color: var(--tx2); font-size: 14px; }
.digits { position: absolute; right: clamp(12px, 2.4vw, 30px); top: clamp(12px, 2.4vw, 30px); z-index: 4; padding: 8px 16px; border-radius: 14px; background: rgba(4, 6, 16, .8); border: 1px solid var(--line-strong); font: 700 clamp(26px, 3.6vw, 46px)/1 var(--font-display); letter-spacing: .12em; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .25s; pointer-events: none; }
.digits.show { opacity: 1; }
.bigbtn { position: relative; overflow: hidden; }
.unmute { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 0 clamp(18px, 3vw, 34px); min-height: clamp(52px, 7vw, 76px); border-radius: 999px; background: #fff; color: #05070f; font: 700 clamp(16px, 2vw, 24px)/1 var(--font-display); letter-spacing: .03em; box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 20px 60px -10px #000; white-space: nowrap; }
.unmute .ic { width: 28px; height: 28px; }
.controls { position: absolute; inset: auto 0 0 0; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 28px clamp(10px, 1.6vw, 20px) 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); opacity: 0; transition: opacity .3s; }
.screen:hover .controls, .screen.active .controls, .screen:focus-within .controls, .screen:not([data-state="playing"]) .controls { opacity: 1; }
@media (hover: none) { .controls { opacity: 1; } }
.livebadge { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font: 600 14px/1 var(--font-display); letter-spacing: .08em; color: #fff; }
.vol { width: clamp(70px, 9vw, 120px); accent-color: var(--accent); height: 28px; }
.nowinfo { display: grid; gap: 12px; padding: 22px 4px 0; }
.nowinfo-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nowinfo-name { font: 500 17px/1 var(--font-display); letter-spacing: .04em; color: var(--tx2); margin-right: 6px; }
.nowinfo h1 { font-size: clamp(28px, 3.6vw, 52px); overflow-wrap: anywhere; }
.nowinfo-time { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; font-size: 15px; }
.nowinfo-syn { color: var(--tx2); max-width: 72ch; }
.nowinfo-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--panel); justify-self: start; }
.nowinfo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chlist { position: sticky; top: calc(var(--top) + 14px); max-height: calc(100dvh - var(--top) - 28px); display: flex; flex-direction: column; border-radius: var(--r3); border: 1px solid var(--line); background: var(--panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; }
.chlist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.chlist-head h2 { font-size: 21px; }
.chlist-items { overflow-y: auto; padding: 8px; display: grid; gap: 4px; overscroll-behavior: contain; }
.chrow { position: relative; display: grid; grid-template-columns: 52px 40px minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; padding: 10px 12px 10px 10px; border-radius: 16px; border: 1px solid transparent; text-align: left; transition: background .2s, border-color .2s; }
.chrow:hover { background: rgba(255, 255, 255, .05); }
.chrow[aria-selected="true"] { background: linear-gradient(100deg, var(--accent-soft), transparent 80%); border-color: hsl(var(--ah) 100% 70% / .55); box-shadow: inset 3px 0 0 var(--accent), 0 0 30px -12px var(--accent-glow); }
.chrow .chnum { font-size: 24px; text-align: center; }
.chrow-txt { display: grid; gap: 3px; min-width: 0; }
.chrow .chname { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrow .chnow { font-size: 16px; -webkit-line-clamp: 1; }
.chrow.off .chnow { color: var(--tx3); font-weight: 400; }
.chrow .prog { height: 3px; margin-top: 3px; }

@media (max-width: 960px) {
  .live { display: block; padding: 0 0 32px; }
  .stage { display: contents; }
  /* su telefono il player resta fisso in alto e l'elenco scorre sotto */
  .screen { position: sticky; top: var(--top); z-index: 20; border-radius: 0; border-width: 0 0 1px; max-height: 46dvh; }
  .nowinfo { padding: 18px var(--gut) 20px; }
  .chlist { position: static; max-height: none; border-radius: 0; border-width: 1px 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chlist-items { overflow: visible; }
  .osd-num { font-size: 36px; }
}

/* ================= GUIDA TV ================= */
.guide { display: flex; flex-direction: column; height: calc(100dvh - var(--top) - var(--tabs)); padding: 10px var(--gut) 0; }
.guide-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; padding-bottom: 14px; }
.guide-bar h1 { font-size: clamp(28px, 3.4vw, 46px); }
.guide-day { color: var(--tx2); padding-bottom: 5px; }
.guide-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.grid-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r2) var(--r2) 0 0; background: rgba(8, 11, 26, .72); scrollbar-width: thin; }
.grid-inner { position: relative; }
.grid-top { position: sticky; top: 0; z-index: 6; display: flex; height: 44px; background: var(--panel-solid); border-bottom: 1px solid var(--line-strong); }
.corner { position: sticky; left: 0; z-index: 7; flex: none; width: var(--chw); display: grid; place-items: center; background: var(--panel-solid); border-right: 1px solid var(--line-strong); color: var(--tx3); }
.time-head { position: relative; flex: none; height: 44px; }
.tick { position: absolute; left: 0; top: 34px; height: 10px; border-left: 1px solid var(--line); }
.tick.hour { top: 0; height: 44px; padding-left: 9px; border-left-color: var(--line-strong); font: 500 15px/44px var(--font-display); letter-spacing: .06em; color: var(--tx2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tick em { font-style: normal; margin-left: 10px; color: var(--am); font-size: 13px; }
.now-pill { position: absolute; left: 0; top: 9px; z-index: 2; width: 58px; margin-left: -29px; border-radius: 999px; background: var(--live); color: #fff; font: 700 13px/26px var(--font-display); letter-spacing: .06em; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 18px var(--live); }
.g-row { display: flex; height: var(--rowh); border-bottom: 1px solid var(--line); }
.gch { position: sticky; left: 0; z-index: 4; flex: none; width: var(--chw); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--panel-solid); border-right: 1px solid var(--line-strong); transition: background .2s; }
.gch:hover, .gch:focus-visible { background: #121838; }
.gch .chnum { min-width: 44px; }
.gch-name { font-size: 13.5px; line-height: 1.2; color: var(--tx2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcells { position: relative; flex: none; height: 100%; }
.gcell { position: absolute; left: 0; top: 6px; bottom: 6px; display: grid; align-content: center; gap: 2px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(150, 180, 255, .06); text-align: left; overflow: hidden; transition: background .2s, border-color .2s; }
.gcell.tiny { padding: 0; }
.gcell b { font: 600 15.5px/1.15 var(--font-display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcell span { font-size: 12px; color: var(--tx3); white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; }
.gcell:hover { background: rgba(150, 180, 255, .14); border-color: var(--line-strong); }
.gcell:focus-visible { outline-offset: -2px; z-index: 1; }
.gcell[data-state="past"] { opacity: .42; }
.gcell[data-state="now"] { border-color: hsl(var(--ah) 100% 70% / .7); background: linear-gradient(100deg, hsl(var(--ah) 100% 60% / .3), hsl(var(--ah) 100% 60% / .08)); box-shadow: 0 0 26px -8px var(--accent-glow); }
.gcell[data-state="now"] span { color: var(--tx2); }
.gcell-off { position: sticky; left: calc(var(--chw) + 16px); display: inline-block; line-height: var(--rowh); color: var(--tx3); font-size: 14px; }
/* la linea dell'ora: un raggio di luce, con un bagliore che scorre */
.now-line { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; width: 2px; margin-left: -1px; background: linear-gradient(var(--live), #ff7a90 50%, var(--live)); box-shadow: 0 0 14px 1px var(--live), 0 0 40px 2px rgba(255, 51, 85, .35); pointer-events: none; overflow: visible; }
.now-line i { position: absolute; left: -3px; top: 0; width: 8px; height: 90px; border-radius: 8px; background: linear-gradient(transparent, #fff, transparent); opacity: .9; animation: beam 3.2s linear infinite; }
@keyframes beam { from { transform: translateY(-90px); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } to { transform: translateY(70vh); opacity: 0; } }
.guide-skel { padding: 6px; }
.prog-ch { display: flex; align-items: center; gap: 10px; color: var(--tx2); }
.prog-when { font-variant-numeric: tabular-nums; }
.prog-more { display: grid; gap: 8px; color: var(--tx2); min-height: 48px; }
@media (max-width: 760px) {
  .guide { padding: 6px 0 0; }
  .guide-bar { padding: 0 var(--gut) 10px; } .guide-day { display: none; }
  .guide-tools { margin-left: 0; width: 100%; } .guide-tools .field-inline { flex: 1; } .guide-tools .field-inline > span { display: none; }
  .grid-scroll { border-radius: 0; border-inline: 0; }
  .gch { flex-direction: column; justify-content: center; gap: 2px; padding: 0 4px; } .gch-name { display: none; } .gch .chnum { font-size: 18px; min-width: 0; } .gch .chlogo { min-width: 28px; height: 26px; font-size: 14px; }
  .gcell b { font-size: 14px; }
}

/* ================= CINEMA ================= */
.cinema { padding: 10px var(--gut) 56px; }
.catalog-head { display: grid; gap: 6px; margin-bottom: 20px; }
.catalog-head h1 { font-size: clamp(34px, 5vw, 68px); font-weight: 700; }
.lead { color: var(--tx2); max-width: 60ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px; border-radius: var(--r3); border: 1px solid var(--line); background: var(--panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.searchbox { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.searchbox .ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--tx3); pointer-events: none; }
.search { width: 100%; height: 46px; padding-left: 42px; border-radius: 999px; font-size: 16px; }
.search:focus-visible { border-color: var(--accent); border-radius: 999px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.count { margin: 18px 2px 12px; color: var(--tx3); font-size: 14px; min-height: 21px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 13vw, 190px), 1fr)); gap: clamp(14px, 1.8vw, 26px) clamp(12px, 1.4vw, 20px); }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 18px; color: var(--tx2); font-weight: 600; } .backlink:hover { color: #fff; } .backlink .ic { width: 18px; height: 18px; }
.detail { position: relative; isolation: isolate; }
.detail-back { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.detail-back .poster { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: .28; filter: blur(60px) saturate(1.5); transform: scale(1.2); }
.detail-main { display: grid; grid-template-columns: clamp(200px, 24vw, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.detail-poster { position: relative; border-radius: var(--r3); }
.detail-poster .poster { border-radius: var(--r3); box-shadow: 0 0 0 1.5px hsl(var(--ah) 100% 75% / .6), 0 0 80px -14px var(--accent-glow), 0 40px 80px -30px #000; }
.detail-text { display: grid; gap: 18px; justify-items: start; padding-top: 6px; }
.detail-text h1 { font-size: clamp(34px, 5.4vw, 78px); font-weight: 700; line-height: .95; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-syn { color: var(--tx2); font-size: 17px; max-width: 66ch; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; font-size: 15px; }
.facts dt, .rights dt { color: var(--tx3); }
.rights { margin-top: clamp(28px, 4vw, 52px); padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r3); border: 1px solid hsl(var(--ah) 100% 70% / .35); background: linear-gradient(140deg, hsl(var(--ah) 80% 45% / .14), rgba(10, 13, 30, .8) 60%); max-width: 980px; }
.rights h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 30px); } .rights h2 .ic { color: var(--gr); }
.rights-lead { color: var(--tx2); margin: 6px 0 18px; max-width: 70ch; font-size: 14.5px; }
.rights dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px 24px; font-size: 15px; }
.rights dd { overflow-wrap: anywhere; }
.licbadge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--gr); color: #02130b; font-weight: 700; font-size: 13.5px; margin-right: 6px; }
.rightlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 18px; }
.rightlist li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 14px; }
.rightlist li[data-v="true"] b { color: var(--gr); } .rightlist li[data-v="false"] b { color: var(--live); } .rightlist li b { color: var(--tx3); font-weight: 600; white-space: nowrap; }
.detail .rail { margin-inline: calc(-1 * var(--gut)); }
.detail.skel { display: grid; grid-template-columns: clamp(200px, 24vw, 340px) 1fr; gap: 40px; padding-top: 50px; } .sk-poster { aspect-ratio: 2 / 3; border-radius: var(--r3); }
.vplayer { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #000; animation: fade .25s ease both; }
.vplayer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 2vw, 24px); background: #05070f; border-bottom: 1px solid var(--line); }
.vplayer-top strong { font: 600 19px/1.2 var(--font-display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vplayer-frame { position: relative; flex: 1; min-height: 0; }
.vplayer video { width: 100%; height: 100%; object-fit: contain; }
.vplayer-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; background: #05070f; color: var(--tx2); }
.vplayer-msg .ic { width: 44px; height: 44px; color: var(--am); } .vplayer-msg strong { font: 600 28px/1.1 var(--font-display); color: #fff; }

@media (max-width: 760px) {
  .hero { min-height: 78vh; padding-top: calc(var(--top) + 24px); }
  .hero-back .poster { filter: blur(22px) saturate(1.4); opacity: .75; }
  .hero::before { background: linear-gradient(0deg, var(--void) 4%, rgba(3, 4, 10, .7) 46%, rgba(3, 4, 10, .2) 80%); }
  .hero-poster { display: none; }
  .hero-actions { width: 100%; } .hero-actions .btn { flex: 1; }
  .detail-main, .detail.skel { grid-template-columns: 1fr; }
  .detail-poster { width: min(62vw, 260px); }
  .rights dl { grid-template-columns: 1fr; gap: 2px; } .rights dd { margin-bottom: 10px; }
  .tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .tools .field-inline select { width: 100%; }
  .toolbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .detail-actions { width: 100%; } .detail-actions .btn { flex: 1; }
}
@media (max-width: 760px) {
  /* su telefono la locandina in evidenza si vede nitida dietro al titolo */
  .hero-back { inset: 0; }
  .hero-back .poster { filter: none; opacity: .9; transform: none; }
  .hero-back .poster img { object-position: 50% 20%; }
}
/* gruppo di programmi brevissimi nella guida */
.gcell.ggroup { padding: 0 8px; border-style: dashed; background: repeating-linear-gradient(90deg, rgba(150, 180, 255, .1) 0 3px, transparent 3px 7px); }
.gcell.ggroup span { color: var(--tx2); }
.shortlist { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.shortlist button { display: grid; grid-template-columns: 56px 1fr; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; }
.shortlist button:hover { background: rgba(255, 255, 255, .07); } .shortlist time { color: var(--tx2); font-variant-numeric: tabular-nums; }
