.app { grid-template-rows: auto 1fr; }
.regia-main { padding: 14px; }
.clock { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; letter-spacing: .04em; }

/* Panoramica */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 8px; border-top: 3px solid var(--c, var(--line)); }
.card:hover { border-color: #3d4250; }
.card .name { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card .now { min-height: 36px; }
.card .now b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .now span { color: var(--muted); font-size: 12px; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; background: var(--panel-2); color: var(--muted); }
.badge.live { background: var(--accent); color: #fff; }
.badge.manual { background: var(--warn); color: #000; }
.badge.ok { background: #14532d; color: #86efac; }
.badge.err { background: #450a0a; color: #fca5a5; }

/* Barra di avanzamento */
.bar { position: relative; height: 8px; background: #0b0c10; border-radius: 4px; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), #ff4d5e); }
.bar .intro { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255, 204, 0, .35); }
.bar .mix { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent-2); }

/* Dettaglio radio */
.deck-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px; height: calc(100vh - 90px); }
.onair { grid-column: 1 / -1; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 12px; border-left: 4px solid var(--c, var(--accent)); }
.onair .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.onair .title { font-size: 26px; font-weight: 800; line-height: 1.15; }
.onair .artist { font-size: 17px; color: var(--muted); }
.countdown { font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 800; line-height: 1; min-width: 150px; text-align: right; }
.countdown.warn { color: var(--warn); }
.countdown.end { color: var(--bad); }
.intro-cd { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 800; color: var(--accent-2); }
.onair .bar { height: 12px; }
.overlays { display: flex; gap: 8px; flex-wrap: wrap; }
.overlay { background: var(--panel-2); border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.controls .btn { padding: 9px 16px; font-size: 14px; }
.mode-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mode-toggle button { background: var(--panel-2); border: 0; padding: 9px 14px; cursor: pointer; font-weight: 700; color: var(--muted); }
.mode-toggle button.on { background: var(--accent); color: #fff; }
.mode-toggle button.on.manual { background: var(--warn); color: #000; }

.col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-height: 0; }
.col h3 { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.col .scroll { overflow: auto; flex: 1; }
.right-col { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-height: 0; }
.q-row td { padding: 5px 8px; }
.q-row .eta { font-variant-numeric: tabular-nums; color: var(--accent-2); font-weight: 700; width: 64px; }
.q-row .sched { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11px; width: 60px; }
.q-row.nonsong td { color: var(--muted); font-style: italic; }
.q-row.next td { background: #1b1e26; }
.q-row .actions .btn { visibility: hidden; }
.q-row:hover .actions .btn { visibility: visible; }
.cartwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; padding: 10px; max-height: 260px; overflow: auto; }
.cart { border: 0; border-radius: 6px; padding: 10px 8px; font-weight: 700; font-size: 12px; cursor: pointer; text-align: left; min-height: 48px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.cart:active { transform: scale(.97); }
.cart small { display: block; font-weight: 500; opacity: .8; }
.search-row { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.search-row input { flex: 1; }
.results { max-height: 200px; overflow: auto; }

@media (max-width: 1000px) {
  .deck-layout { grid-template-columns: 1fr; height: auto; }
  .col { max-height: 70vh; }
  .countdown { font-size: 34px; }
}

.onair-cover { width: 110px; height: 110px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.card-cover { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; flex: none; }

/* Pannello Musica */
.music-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; justify-content: center; align-items: flex-start; padding: 4vh 16px; z-index: 60; }
.music-panel { width: min(1100px, 100%); height: 92vh; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.music-panel header { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.music-panel h2 { margin: 0; font-size: 16px; }
.music-list { flex: 1; overflow: auto; padding: 4px 8px; }
.music-row { display: grid; grid-template-columns: 64px 1fr 90px auto; gap: 14px; align-items: center; padding: 8px; border-radius: 8px; }
.music-row:hover { background: #1b1e26; }
.music-row.playing { background: #24151a; box-shadow: inset 3px 0 var(--accent); }
.music-text b { display: block; font-size: 15px; }
.music-text div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-meta { text-align: right; font-variant-numeric: tabular-nums; }
.music-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cover-btn { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--panel-2); }
.cover-btn img, .cover-btn .nocover { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.cover-btn span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s; }
.cover-btn:hover span, .music-row.playing .cover-btn span { opacity: 1; }
.mini-player { display: none; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: #11131a; }
.mini-player.on { display: flex; }

/* Processore audio */
.badge.proc { background: #1e2a44; color: #9cc0ff; }
.proc-panel { height: auto; max-height: 92vh; width: min(900px, 100%); }
.proc-body { padding: 14px 18px; overflow: auto; }
.proc-body h3 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.proc-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.proc-switch { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.proc-switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.proc-switch span { display: flex; flex-direction: column; }
.proc-ab button { min-width: 130px; }
.proc-meters { display: grid; gap: 6px; margin-top: 14px; }
.proc-meter { display: grid; grid-template-columns: 80px 1fr 64px; gap: 10px; align-items: center; }
.proc-meter b { text-align: right; font-variant-numeric: tabular-nums; }
.proc-meter-bar { height: 10px; background: #0b0d12; border-radius: 5px; overflow: hidden; }
.proc-meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #eab308 75%, #ef4444); transition: width .4s; }
.proc-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.proc-preset { text-align: left; background: #1b1e26; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.proc-preset small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.proc-preset.on { border-color: var(--accent); background: #2a1519; }
.proc-sliders { display: grid; gap: 10px; }
.proc-slider { display: grid; grid-template-columns: 120px 1fr 70px; gap: 4px 12px; align-items: center; }
.proc-slider small { grid-column: 2 / 4; font-size: 11px; }
.proc-slider input[type=range] { accent-color: var(--accent); }
.proc-slider input[type=checkbox] { justify-self: start; width: 18px; height: 18px; accent-color: var(--accent); }
.proc-slider b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .proc-slider { grid-template-columns: 90px 1fr 56px; } .proc-meter { grid-template-columns: 64px 1fr 56px; } }

/* Forme d'onda in onda con marker modificabili */
.wave-wrap { position: relative; }
.wave-live { display: block; width: 100%; background: #0b0c10; border-radius: 6px; touch-action: none; }
.wave-tip { display: none; position: absolute; top: -22px; transform: translateX(-50%); background: #000; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.live-note { font-size: 12px; color: #facc15; }
.next-box { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.next-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.next-head img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; }
.next-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.next-text { min-width: 0; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-head label { display: flex; align-items: center; gap: 4px; cursor: pointer; }

/* BPM */
.bpm-badge { background: #1e1b4b; color: #a5b4fc; }
td.bpm { color: #a5b4fc; font-variant-numeric: tabular-nums; }

/* Mix / DJ set in onda */
.mix-line { margin-top: 4px; font-size: 13px; color: #c4b5fd; }
.mix-next { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Vista DJ */
.deck-layout.dj-mode { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
.deck-layout.dj-mode .dj-panel { grid-column: 1 / -1; }
.dj-panel h3 { display: flex; align-items: center; gap: 8px; }
.dj-panel h3 label { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.dj-wrap { position: relative; padding: 0 6px 8px; overflow-y: auto; max-height: 60vh; }
.dj-canvas { display: block; width: 100%; touch-action: none; }
.deck-layout.dj-mode { height: auto; min-height: calc(100vh - 90px); }

/* Vista classica: tre righe */
.decks { display: grid; gap: 8px; }
.deck { background: #12141a; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; will-change: transform; }
.deck.onair { border-color: rgba(226,0,26,.6); box-shadow: inset 3px 0 var(--accent); }
.deck.out { opacity: .75; }
.deck.empty { display: flex; gap: 10px; align-items: center; }
.deck-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deck-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: #2a2e38; color: var(--muted); min-width: 78px; text-align: center; }
.deck-tag.onair { background: var(--accent); color: #fff; }
.deck-tag.out { background: #3f1d1d; color: #fca5a5; }
.deck-tag.next { background: #0c4a6e; color: #bae6fd; }
.deck-cover { width: 42px; height: 42px; border-radius: 5px; object-fit: cover; flex: none; }
.deck.onair .deck-cover { width: 64px; height: 64px; }
.deck-cover.none { display: grid; place-items: center; background: #1f2229; color: #555; }
.deck-text { min-width: 0; max-width: 520px; }
.deck-text b { font-size: 15px; }
.deck.onair .deck-text b { font-size: 22px; }
.deck-count { text-align: right; }
.deck-time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }
.deck-in { animation: deckIn .6s ease; }
@keyframes deckIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Outro: zona dello speaker */
.intro-cd.outro-live { color: #2dd4bf; font-weight: 800; animation: pulseOutro 1s infinite alternate; }
@keyframes pulseOutro { from { opacity: 1; } to { opacity: .55; } }

/* "+" tra le righe e pannello di inserimento */
.deck-plus { justify-self: center; width: 34px; height: 34px; margin: -4px 0; border-radius: 50%; border: 2px solid var(--accent); background: #1a0b0e; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 2; }
.deck-plus:hover { background: var(--accent); }
body.inserting #view { padding-bottom: 52vh; }
.ins-sheet { position: fixed; left: 0; right: 0; bottom: 0; height: 50vh; z-index: 70; background: var(--panel); border-top: 2px solid var(--accent); box-shadow: 0 -10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.ins-sheet header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ins-tools { display: flex; gap: 10px; align-items: center; padding: 8px 14px; flex-wrap: wrap; }
.ins-tools input[type=search] { flex: 1; min-width: 200px; }
.ins-tools label { display: flex; gap: 4px; align-items: center; }
.ins-list { flex: 1; overflow: auto; padding: 0 10px 10px; }
.ins-group { position: sticky; top: 0; background: var(--panel); padding: 8px 6px 4px; font-weight: 800; font-size: 12px; color: var(--muted); letter-spacing: .06em; z-index: 1; }
.ins-row { display: grid; grid-template-columns: 46px minmax(180px, 1.6fr) 50px 76px auto 46px minmax(200px, 2fr) auto; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.ins-row:hover { background: #1b1e26; }
.ins-row.warn { background: rgba(245,158,11,.06); }
.ins-text { min-width: 0; display: flex; flex-direction: column; }
.ins-text b, .ins-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-text span { color: var(--muted); font-size: 12px; }
.ins-warn { display: flex; gap: 4px; flex-wrap: wrap; }
.warn-chip { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(245,158,11,.18); color: #fbbf24; }
.ok-chip { font-size: 11px; color: #4ade80; }
.cover-btn.small { width: 42px; height: 42px; }
.cover-btn.small img, .cover-btn.small .nocover { width: 42px; height: 42px; }

.dj-help { font-size: 11px; padding: 0 14px 6px; }

/* menu del tasto destro nella timeline DJ */
.dj-menu { position: fixed; z-index: 50; min-width: 260px; max-width: 320px; background: #1c1c22; border: 1px solid #3a3a44; border-radius: 8px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.dj-menu-title { font-size: 11px; color: #9ca3af; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-menu button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; color: #e5e7eb; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 5px; cursor: pointer; }
.dj-menu button:hover:not(:disabled) { background: #e2001a; color: #fff; }
.dj-menu button:disabled { opacity: .4; cursor: default; }
.dj-menu hr { border: 0; border-top: 1px solid #3a3a44; margin: 4px 0; }

/* menu BPM: da -10 a +10 */
.dj-menu .bpm-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 4px; }
.dj-menu .bpm-grid button { flex-direction: column; align-items: center; gap: 0; padding: 4px 0; border: 1px solid #3a3a44; }
.dj-menu .bpm-grid button small { font-size: 10px; color: #9ca3af; }
.dj-menu .bpm-grid button.down b { color: #93c5fd; }
.dj-menu .bpm-grid button.up b { color: #fca5a5; }
.dj-menu .bpm-note { font-size: 11px; padding: 4px 8px; white-space: normal; }
.dj-menu:has(.bpm-grid) { max-width: 520px; min-width: 460px; }
/* menu EQ: tre cursori bassi, medi, alti */
.dj-menu:has(.eq-box) { min-width: 380px; max-width: 420px; }
.dj-menu .eq-box { padding: 4px 8px; }
.dj-menu .eq-row { display: grid; grid-template-columns: 48px 1fr 92px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.dj-menu .eq-row input { width: 100%; accent-color: #2dd4bf; }
.dj-menu .eq-row b { font-size: 12px; text-align: right; color: #5eead4; }
.dj-menu .eq-row select { width: 100%; }
.dj-menu .fx-types { display: flex; gap: 6px; padding: 4px 0 8px; }
.dj-menu .fx-types button { flex: 1; justify-content: center; border: 1px solid #3a3a44; }
.dj-menu .fx-types button.on { background: #7c3aed; color: #fff; border-color: #7c3aed; }

/* Regia TV: monitor PROGRAMMA grande al centro, ANTEPRIMA accanto, sotto scaletta e grafica */
.tv-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto minmax(260px, 1fr); gap: 14px; height: calc(100vh - 90px); }
.tv-mon { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tv-mon.pgm { border-top: 3px solid var(--bad, #e2001a); }
.tv-mon.pvw { border-top: 3px solid #22c55e; }
.tv-mon-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tv-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; flex: none; }
.tv-tag.pgm { background: #dc2626; color: #fff; }
.tv-tag.pvw { background: #16a34a; color: #fff; }
.tv-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.tv-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.tv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-pvw-box, .tv-pvw-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv-novideo { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #666; }
.tv-novideo img { max-height: 70%; border-radius: 6px; }
.tv-times { display: flex; align-items: center; gap: 10px; }
.tv-times .bar { flex: 1; }
.tv-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tv-left { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 30px; line-height: 1; min-width: 120px; text-align: right; }
.tv-left.warn { color: var(--warn); }
.tv-left.end { color: var(--bad); animation: tv-blink 1s steps(2) infinite; }
@keyframes tv-blink { 50% { opacity: .45; } }
.tv-scrub { flex: 1; accent-color: #22c55e; }
.tv-transport { display: grid; gap: 8px; }
.tv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 0; }
.tv-gfx .tv-row { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tv-gfx input[type=text] { flex: 1; min-width: 160px; }
.btn.tv-take, .btn.tv-mix { font-size: 16px; font-weight: 800; letter-spacing: .06em; padding: 14px 22px; }
.btn.tv-take { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.tv-mix { background: #2563eb; border-color: #2563eb; color: #fff; }
.tv-meters { display: grid; gap: 4px; }
.tv-chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; cursor: pointer; }
.tv-thumb { width: 80px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; background: #000; }
.tv-thumb.none { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.tv-flags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tv-q td { vertical-align: middle; }
@media (max-width: 1000px) { .tv-layout { grid-template-columns: 1fr; height: auto; } }
.tv-logo-prev { height: 34px; max-width: 120px; object-fit: contain; background: repeating-conic-gradient(#333 0 25%, #222 0 50%) 0 0 / 12px 12px; border-radius: 4px; padding: 2px; }
.tv-slider { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tv-slider input { width: 110px; }
.tv-val { min-width: 36px; color: var(--text, #fff); font-variant-numeric: tabular-nums; }
/* la regia TV si allunga e scorre: il pannello Grafica non viene mai coperto */
.tv-layout { height: auto; min-height: calc(100vh - 90px); grid-template-rows: auto auto; align-items: start; }
.tv-layout .right-col { grid-template-rows: auto auto; align-content: start; }
.tv-layout .tv-rundown .scroll { max-height: 62vh; }
.tv-layout .right-col .scroll { max-height: 40vh; }
.tv-gfx { overflow: visible; }
.tv-logo-set { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tv-corners { display: grid; grid-template-columns: 44px 44px; grid-template-rows: 30px 30px; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 8px; background: #0b0c10; }
.tv-corners button { border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); color: var(--muted); font-size: 16px; cursor: pointer; }
.tv-corners button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tv-sliders { display: grid; gap: 6px; min-width: 0; }
.tv-sliders .tv-slider { display: grid; grid-template-columns: 82px 1fr 48px; }
.tv-sliders .tv-slider input { width: 100%; }
.tv-layout > * { min-width: 0; }
.tv-layout .col .scroll { overflow-x: auto; }
@media (max-width: 1000px) { .tv-layout { grid-template-columns: minmax(0, 1fr); } }
/* finestre strette: la barra in alto non allarga la pagina oltre lo schermo */
.app { grid-template-columns: minmax(0, 1fr); }
.app > header.top { min-width: 0; overflow-x: auto; }
.tv-pvw-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
