/* SUNET TV — interfaccia streaming per il canale YouTube @sunetmarketing */
:root {
  --bg: #07132c;
  --red: #f42a06;
  --yellow: #ffca28;
  --grad: linear-gradient(100deg,#d9000b 0%,#f42a06 50%,#ff5a00 100%);
  --red-dark: #d9000b;
  --text: #fff;
  --muted: #b3b3b3;
  --dim: #808080;
  --card: #0d1c42;
  --line: rgba(255,255,255,.4);
  --gutter: 4%;
  --per-row: 6;
  --per-row-v: 9;
  --gap: .4vw;
  --font: "Inter", "SF Pro Display", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
@media (max-width: 1399px) { :root { --per-row: 5; --per-row-v: 8; } }
@media (max-width: 1099px) { :root { --per-row: 4; --per-row-v: 6; } }
@media (max-width: 799px)  { :root { --per-row: 3; --per-row-v: 4.3; --gap: 6px; } }
@media (max-width: 499px)  { :root { --per-row: 2.3; --per-row-v: 3.3; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.4; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Barra di navigazione ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(0,0,0,.7) 10%, transparent); transition: background-color .4s; }
.nav.solid { background-color: var(--bg); }
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-weight: 800; color: #fff; font-size: 24px; letter-spacing: -.02em; line-height: 1; margin-right: 26px; flex: none; }
.logo b { padding: 3px 7px 4px; border-radius: 6px; background: var(--yellow); color: #07132c; font-size: .72em; letter-spacing: .02em; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: #e5e5e5; transition: color .4s; white-space: nowrap; }
.nav-links a:hover { color: var(--muted); }
.nav-links a.active { color: #fff; font-weight: 700; cursor: default; }
.nav-browse { display: none; font-size: 14px; font-weight: 600; align-items: center; gap: 6px; }
.caret { width: 0; height: 0; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; display: inline-block; transition: transform .3s; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.icon-btn { font-size: 24px; display: grid; place-items: center; }
.nav-text { font-size: 14px; }
.search { display: flex; align-items: center; border: 1px solid transparent; transition: width .35s, background .35s, border-color .35s; width: 34px; height: 34px; padding: 0 5px; overflow: hidden; }
.search input { background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; width: 0; padding: 0; }
.search.open { width: 260px; background: rgba(0,0,0,.75); border-color: #fff; }
.search.open input { width: 100%; padding-left: 8px; }
.bell { position: relative; }
.bell-count { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 9px; }
.profile { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: #f42a06; }
.avatar.sm { width: 32px; height: 32px; }
.profile:hover .caret { transform: rotate(180deg); }
.profile-menu { position: absolute; top: calc(100% + 18px); right: 0; width: 230px; background: rgba(7,19,44,.96); border: 1px solid rgba(255,255,255,.15); padding: 10px 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; font-size: 13px; }
.profile-menu::before { content: ""; position: absolute; top: -26px; left: 0; right: 0; height: 26px; }
.profile:hover .profile-menu, .profile:focus-within .profile-menu { opacity: 1; visibility: visible; }
.profile-menu a, .profile-menu button, .pm-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; width: 100%; text-align: left; }
.profile-menu a:hover, .profile-menu button:hover { text-decoration: underline; }
.pm-row { border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 12px; margin-bottom: 6px; font-weight: 600; }
.notif-panel { position: absolute; top: 68px; right: calc(var(--gutter) + 60px); width: 400px; max-width: 92vw; background: rgba(0,0,0,.95); border-top: 2px solid #e5e5e5; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; max-height: 70vh; overflow: auto; }
.notif-panel.open { opacity: 1; visibility: visible; }
.notif { display: flex; gap: 14px; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.12); cursor: pointer; font-size: 13px; }
.notif:hover { background: rgba(255,255,255,.06); }
.notif img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; flex: none; }
.notif b { display: block; color: #fff; font-weight: 600; margin-bottom: 3px; }
.notif span { color: var(--muted); }
.notif small { display: block; color: var(--dim); margin-top: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 56.25vw; min-height: 520px; max-height: 100vh; margin-bottom: -9vw; overflow: hidden; }
.hero-media, .hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 30%; animation: heroZoom 18s ease-out forwards; }
.hero-video { opacity: 0; transition: opacity 1.2s; pointer-events: none; overflow: hidden; }
.hero-video.on { opacity: 1; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%) scale(1.18); border: 0; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-vignette { position: absolute; inset: 0; background:
  linear-gradient(77deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 38%, transparent 70%),
  linear-gradient(180deg, transparent 62%, rgba(7,19,44,.55) 78%, var(--bg) 100%); }
.hero-info { position: absolute; left: var(--gutter); bottom: 35%; width: 38%; z-index: 2; }
.hero-kind { display: flex; align-items: center; gap: 8px; font-size: clamp(11px, 1vw, 16px); letter-spacing: .32em; color: #ddd; font-weight: 600; margin-bottom: 1vw; }
.s-mark { display: inline-block; padding: 5px 10px; border-radius: 6px; background: var(--yellow); color: #07132c; font-size: .8em; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.hero-title { font-family: var(--font); font-weight: 800; font-size: clamp(30px, 4.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; margin: 0 0 1.2vw; text-shadow: 2px 4px 18px rgba(0,0,0,.6); transform-origin: left bottom; transition: transform 1.3s cubic-bezier(.2,.8,.2,1); }
.hero-title small { display: block; font-size: .42em; letter-spacing: .06em; color: #f2f2f2; margin-top: .25em; }
.hero.playing .hero-title { transform: scale(.72) translateY(14%); }
.hero-rank { display: flex; align-items: center; gap: 12px; font-size: clamp(14px, 1.55vw, 26px); font-weight: 700; margin-bottom: 1vw; text-shadow: 1px 1px 6px rgba(0,0,0,.5); }
.top10 { display: inline-grid; place-items: center; width: 1.45em; height: 1.6em; background: var(--grad); border-radius: 2px; font-size: .62em; line-height: .95; font-weight: 800; letter-spacing: .02em; padding-top: 1px; }
.top10 b { display: block; font-size: 1.55em; line-height: .9; letter-spacing: -.04em; }
.hero-desc { font-size: clamp(14px, 1.3vw, 22px); line-height: 1.35; margin: 0 0 1.5vw; text-shadow: 2px 2px 4px rgba(0,0,0,.45); max-height: 10em; overflow: hidden; transition: opacity .8s, max-height .8s; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.hero.playing .hero-desc { opacity: 0; max-height: 0; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 4px; padding: .7rem 2.1rem .7rem 1.65rem; font-size: clamp(15px, 1.25vw, 20px); font-weight: 700; transition: background .2s; }
.btn svg { font-size: 1.5em; }
.btn-play { background: #fff; color: #000; }
.btn-play svg { fill: #000; stroke: none; }
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-more { background: rgba(109,109,110,.7); color: #fff; }
.btn-more:hover { background: rgba(109,109,110,.4); }
.hero-side { position: absolute; right: 0; bottom: 35%; display: flex; align-items: center; gap: 12px; z-index: 2; }
.round-btn { width: clamp(36px, 3.1vw, 48px); height: clamp(36px, 3.1vw, 48px); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; display: grid; place-items: center; font-size: 1.15em; transition: background .2s, border-color .2s; }
.round-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.round-btn .sound-ico, .hero.unmuted .round-btn .muted-ico { display: none; }
.hero.unmuted .round-btn .sound-ico { display: block; }


/* ---------- Righe ---------- */
.rows { position: relative; z-index: 3; padding-bottom: 3vw; }
.row { margin: 0 0 3vw; position: relative; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--gutter); margin-bottom: .55em; }
.row-title { font-size: clamp(15px, 1.4vw, 24px); font-weight: 700; color: #e5e5e5; margin: 0; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.row-title .explore { font-size: .62em; font-weight: 700; color: #54b9c5; opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .4s; white-space: nowrap; }
.row-title:hover .explore { opacity: 1; transform: none; }
.row-title .explore::after { content: " ›"; font-size: 1.4em; }
.pager { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .3s; }
.row:hover .pager { opacity: 1; }
.pager i { width: 12px; height: 2px; background: #4d4d4d; }
.pager i.on { background: #aaa; }
.slider { position: relative; padding: 0 var(--gutter); }
.track { display: flex; gap: var(--gap); overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.track::-webkit-scrollbar { display: none; }
.arrow { position: absolute; top: 0; bottom: 0; width: calc(var(--gutter) - 4px); z-index: 4; background: rgba(7,19,44,.5); display: grid; place-items: center; font-size: clamp(22px, 2.6vw, 44px); opacity: 0; transition: opacity .2s, background .2s; }
.arrow svg { transition: transform .15s; stroke-width: 2.6; }
.arrow:hover { background: rgba(7,19,44,.7); }
.arrow:hover svg { transform: scale(1.25); }
.arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.arrow.next { right: 0; border-radius: 4px 0 0 4px; }
.row:hover .arrow { opacity: 1; }
.arrow[disabled] { visibility: hidden; }

.card { flex: none; width: calc((var(--vw, 100vw) - 2 * var(--gutter) - (var(--per-row) - 1) * var(--gap)) / var(--per-row)); scroll-snap-align: start; position: relative; cursor: pointer; border-radius: 4px; overflow: hidden; background: #15264f; aspect-ratio: 16/9; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card .s-badge { display: none; }
.card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); pointer-events: none; }
.card.rank::after { display: none; }
.card .c-title { position: absolute; left: 8%; right: 8%; bottom: 8%; z-index: 1; font-size: clamp(11px, .95vw, 15px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.card .tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--red); color: #fff; font-size: clamp(11px, .72vw, 12px); font-weight: 700; padding: 3px 7px; border-radius: 2px 2px 0 0; white-space: nowrap; z-index: 2; }
.card .tag + .c-title { bottom: 19%; }
.card .top-badge { position: absolute; top: 0; right: 4px; background: var(--grad); font-size: 11px; font-weight: 800; line-height: .95; text-align: center; padding: 3px 4px 4px; border-radius: 0 0 2px 2px; }
.card .top-badge b { display: block; font-size: 16px; letter-spacing: -.04em; }
.progress { position: absolute; left: 8%; right: 8%; bottom: 8px; height: 3px; background: rgba(110,110,110,.85); z-index: 3; }
.progress i { display: block; height: 100%; background: var(--red); }
.card.has-progress .c-title { bottom: 17%; }

/* Top 10 */
.card.rank { aspect-ratio: 1.4 / 1; background: none; overflow: visible; display: flex; border-radius: 0; }
.rank-num { flex: 0 0 50%; position: relative; }
.rank-num svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.rank-num text { font-family: "Inter", Arial, sans-serif; font-weight: 900; fill: var(--bg); stroke: #595959; stroke-width: 4; letter-spacing: -14px; }
.rank-poster { flex: 0 0 50%; position: relative; border-radius: 4px; overflow: hidden; background: #15264f; margin-left: -4%; }
.rank-poster img { width: 100%; height: 100%; object-fit: cover; }

.rank-poster .p-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40% 7% 10%; font-family: var(--font); font-weight: 800; font-size: clamp(12px, 1vw, 17px); line-height: 1.15; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.9)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Shorts (verticali) */
.row.vertical .card { aspect-ratio: 9 / 14; width: calc((var(--vw, 100vw) - 2 * var(--gutter) - (var(--per-row-v) - 1) * var(--gap)) / var(--per-row-v)); }
.row.vertical .card .c-title { -webkit-line-clamp: 3; }

/* ---------- Anteprima hover ---------- */
.preview { position: absolute; z-index: 60; width: 0; background: var(--card); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.75); opacity: 0; transform: scale(.67); transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; pointer-events: none; overflow: hidden; }
.preview.open { opacity: 1; transform: scale(1); pointer-events: auto; }
.pv-media { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.pv-media img, .pv-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.pv-media iframe { opacity: 0; transition: opacity .6s; pointer-events: none; transform: scale(1.02); }
.pv-media iframe.on { opacity: 1; }
.pv-media .pv-title { position: absolute; left: 6%; bottom: 8%; right: 6%; font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.pv-body { padding: 14px 16px 18px; }
.pv-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(21,38,79,.6); display: grid; place-items: center; font-size: 18px; transition: border-color .2s; flex: none; }
.circle:hover { border-color: #fff; }
.circle.white { background: #fff; border-color: #fff; color: #000; }
.circle.white svg { fill: #000; stroke: none; }
.circle.white:hover { background: #e6e6e6; }
.circle.push { margin-left: auto; }
.circle.on svg.ico-check { display: block; }
.circle svg.ico-check, .circle.on svg.ico-plus { display: none; }
.circle.liked { background: #fff; color: #000; }
.pv-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #bcbcbc; margin-bottom: 8px; }
.match { color: #46d369; font-weight: 700; }
.badge-box { border: 1px solid rgba(255,255,255,.4); padding: 0 .4em; font-size: .8em; line-height: 1.5; }
.hd { border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 .3em; font-size: .7em; font-weight: 600; line-height: 1.4; }
.pv-tags { display: flex; flex-wrap: wrap; font-size: 13px; color: #fff; }
.pv-tags span + span::before { content: "•"; color: #646464; margin: 0 6px; }

/* ---------- Modal Altre info ---------- */
.modal { position: fixed; inset: 0; z-index: 80; overflow-y: auto; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: min(850px, 94vw); margin: 32px auto 40px; background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: 0 3px 30px rgba(0,0,0,.6); transform: translateY(30px) scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.modal.open .modal-card { transform: none; opacity: 1; }
.m-media { position: relative; aspect-ratio: 16/9; background: #000; }
.m-media img, .m-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.m-media iframe { pointer-events: none; transform: scale(1.2); }
.m-media { overflow: hidden; }
.m-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card) 0%, transparent 45%); pointer-events: none; }
.m-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: #0d1c42; display: grid; place-items: center; font-size: 20px; }
.m-head { position: absolute; left: 48px; right: 48px; bottom: 7%; z-index: 2; }
.m-head h2 { font-family: var(--font); font-weight: 800; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; text-shadow: 0 2px 10px rgba(0,0,0,.7); max-width: 75%; }
.m-head .row-btns { display: flex; align-items: center; gap: 10px; }
.m-head .btn { padding: .45rem 1.8rem .45rem 1.3rem; font-size: 17px; }
.m-head .circle { width: 42px; height: 42px; }
.m-mute { position: absolute; right: 48px; bottom: 7%; z-index: 2; }
.m-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding: 6px 48px 24px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #bcbcbc; margin-bottom: 10px; }
.m-rank { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin: 10px 0 14px; }
.m-desc { font-size: 15px; line-height: 1.5; white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.m-side { font-size: 14px; color: #777; line-height: 1.5; }
.m-side p { margin: 0 0 10px; }
.m-side span { color: #ddd; }
.m-side a { color: #ddd; }
.m-side a:hover { text-decoration: underline; }
.m-section { padding: 0 48px 24px; }
.m-section h3 { font-size: 24px; margin: 18px 0 16px; display: flex; justify-content: space-between; align-items: baseline; }
.m-section h3 small { font-size: 16px; color: #d2d2d2; font-weight: 600; }
.ep { display: grid; grid-template-columns: 36px 130px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 16px; border-bottom: 1px solid #22355f; border-radius: 4px; cursor: pointer; }
.ep:first-of-type, .ep.current { background: #333; }
.ep:hover { background: #2b2b2b; }
.ep-n { font-size: 24px; color: #d2d2d2; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
.ep:hover .ep-thumb::after { opacity: 1; }
.ep-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ep-top span:last-child { font-weight: 400; flex: none; }
.ep-desc { font-size: 13px; color: #d2d2d2; margin: 0; }
.sim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sim { background: #2f2f2f; border-radius: 4px; overflow: hidden; cursor: pointer; }
.sim-thumb { position: relative; aspect-ratio: 16/9; }
.sim-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sim-thumb b { position: absolute; top: 6px; right: 8px; font-size: 13px; font-weight: 700; text-shadow: 0 0 4px #000; }
.sim-body { padding: 14px; }
.sim-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.sim-body p { font-size: 13px; color: #d2d2d2; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.about-box { border-top: 1px solid #22355f; padding-top: 10px; }

/* ---------- Player ---------- */
.watch { position: fixed; inset: 0; z-index: 100; background: #000; display: none; }
.watch.open { display: block; }
.watch-frame, .watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-back { position: absolute; top: 22px; left: 22px; z-index: 2; font-size: 40px; opacity: .85; transition: opacity .2s, transform .2s; }
.watch-back:hover { opacity: 1; transform: scale(1.15); }

/* ---------- Pagine a griglia ---------- */
.grid-page { padding: 120px var(--gutter) 60px; min-height: 70vh; }
.grid-page h2 { font-size: clamp(22px, 2.4vw, 38px); margin: 0 0 24px; font-weight: 600; }
.grid-page h2 small { display: block; font-size: 15px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 4.5vw var(--gap); }
@media (max-width: 499px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid .card { width: auto; }
.empty { color: var(--muted); font-size: 16px; padding: 30px 0; }
.empty b { color: #fff; display: block; font-size: 20px; margin-bottom: 6px; }
body.page-grid .hero { display: none; }

/* ---------- Footer ---------- */
.footer { max-width: 980px; margin: 0 auto; padding: 20px var(--gutter) 40px; color: var(--dim); font-size: 13px; }
.social { display: flex; gap: 22px; margin-bottom: 18px; }
.social a { font-size: 26px; color: #fff; }
.social svg { fill: #fff; stroke: none; }
.social svg.stroke { fill: none; stroke: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.footer-links a:hover { text-decoration: underline; }


.copy { font-size: 11px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a[data-page="playlist"] { display: none; }
}
@media (max-width: 899px) {
  .nav-links { display: none; position: absolute; top: 68px; left: var(--gutter); flex-direction: column; gap: 0; width: 260px; background: rgba(7,19,44,.96); border-top: 2px solid #e5e5e5; padding: 6px 0; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links a[data-page="playlist"] { display: block; padding: 12px 20px; text-align: center; color: #b3b3b3; }
  .nav-links a.active { color: #fff; background: rgba(255,255,255,.06); }
  .nav-browse { display: inline-flex; }
  .nav-text { display: none; }
  .logo { font-size: 30px; margin-right: 0; }
  .search.open { width: 180px; }
  .hero-info { width: 70%; bottom: 30%; }
  .hero-side { bottom: 30%; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .m-body { grid-template-columns: 1fr; gap: 10px; }
  .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .nav { gap: 12px; height: 60px; }
  .nav-right { gap: 14px; }
  .bell { display: none; }
  .search.open { position: absolute; left: 16px; right: 16px; top: 64px; width: auto; }
  .hero { height: 128vw; min-height: 0; margin-bottom: -6vw; }
  .hero-media img { object-position: 38% center; }
  .hero-vignette { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 45%, rgba(7,19,44,.85) 75%, var(--bg) 100%); }
  .hero-info { left: 16px; right: 16px; width: auto; bottom: 9%; text-align: center; }
  .hero-kind, .hero-rank, .hero-buttons { justify-content: center; }
  .hero-desc { display: none; }
  .hero-side { display: none; }
  .btn { padding: .55rem 1.3rem .55rem 1rem; }
  :root { --gutter: 16px; }
  .m-head, .m-body, .m-section { padding-left: 18px; padding-right: 18px; }
  .m-head { left: 18px; right: 18px; }
  .m-head h2 { max-width: 100%; }
  .m-mute { display: none; }
  .ep { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 8px; }
  .ep-n { display: none; }
  .sim-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sim-body p { display: none; }
  .arrow { display: none; }
  .row-title .explore, .pager { display: none; }
  .modal-card { margin: 0; width: 100%; min-height: 100vh; border-radius: 0; }
}
@media (hover: none) { .preview { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Barra in alto: iscrizione al canale e invito alla call */
.nav-sub { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.nav-sub:hover { text-decoration: underline; }
.nav-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s; }
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 799px) { .nav-sub { display: none; } .nav-cta { height: 34px; padding: 0 14px; font-size: 13px; } }

/* Fascia con l'invito alla call tra le righe */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 1.6vw var(--gutter) 2.4vw; padding: 22px 26px; border-radius: 16px; background: linear-gradient(140deg, rgba(255,90,0,.18), rgba(255,255,255,.03)); border: 1px solid rgba(255,120,40,.4); }
.cta-band b { display: block; font-size: 19px; }
.cta-band span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.cta-band a { flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 799px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 18px; } .cta-band a { width: 100%; justify-content: center; } }
