/* Music Meter - stile "regia": fondo blu inchiostro, ambra per ciò che è in onda. */
:root {
  --ground: #0f1522;
  --surface: #161e2e;
  --raised: #1d2739;
  --line: #28344c;
  --text: #e8ebf2;
  --muted: #a3aec3;
  --amber: #ffb020;
  --amber-deep: #3a2a0c;
  --cyan: #3fd0e8;
  --red: #ff6b6b;
  --green: #4ade80;
  --head: "Bahnschrift", "DIN Alternate", "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 15px/1.5 var(--body); font-variant-numeric: tabular-nums;
}
a { color: var(--amber); }
a:hover { color: #ffd27a; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: 21px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }

/* barra in alto */
.topbar {
  display: flex; align-items: center; gap: 24px; padding: 0 28px; min-height: 64px;
  background: #0b101b; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); }
.brand strong { font-family: var(--head); font-size: 24px; letter-spacing: .3px; }
.brand span { color: var(--muted); font-size: 12px; }
.brand::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px var(--amber); align-self: center;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.on { color: var(--text); background: var(--raised); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.who form { margin: 0; }

main { max-width: 1280px; margin: 0 auto; padding: 32px 28px 64px; display: flex; flex-direction: column; gap: 24px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head .sub { color: var(--muted); margin-top: 6px; }

/* pulsanti e moduli */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: #3a4868; color: var(--text); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1f1400; }
.btn.primary:hover { background: #ffc34d; }
.btn.danger { color: var(--red); }
.btn.link { background: none; border: none; color: var(--muted); padding: 0 8px; }
.seg { display: flex; gap: 6px; }
.seg a { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.seg a.on { background: var(--raised); color: var(--text); border-color: #3a4868; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--ground); color: var(--text); font: inherit;
}
textarea { min-height: 88px; resize: vertical; }
input[type=date] { color-scheme: dark; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.fields .wide { grid-column: 1 / -1; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); font-size: 15px; margin: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--amber); }
.check .taken { color: var(--muted); font-size: 13px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
legend { padding: 0 8px; font-weight: 600; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* messaggi */
.flash { padding: 14px 18px; border-radius: 10px; border: 1px solid; }
.flash.ok { border-color: #2c6b45; background: #10281b; color: #b9f5cf; }
.flash.error { border-color: #7a3030; background: #2c1414; color: #ffd0d0; }
.warn { padding: 14px 18px; border-radius: 10px; background: #2b220d; border: 1px solid #6b5217; color: #ffe2a6; }

/* riquadri */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure { background: var(--surface); padding: 18px 20px; }
.figure b { display: block; font-family: var(--head); font-size: 38px; font-weight: 600; line-height: 1.1; }
.figure span { color: var(--muted); font-size: 13px; }
.figure.live b { color: var(--amber); }

/* in onda: l'unico elemento "acceso" della pagina */
.onair {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 24px 26px; border-radius: 16px; background: linear-gradient(90deg, var(--amber-deep), var(--surface) 70%);
  border: 1px solid #6b4c12;
}
.meter { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.meter i { width: 8px; background: var(--amber); border-radius: 2px; height: 30%; animation: vu 1.1s ease-in-out infinite alternate; }
.meter i:nth-child(2) { animation-delay: -.3s; } .meter i:nth-child(3) { animation-delay: -.7s; }
.meter i:nth-child(4) { animation-delay: -.2s; } .meter i:nth-child(5) { animation-delay: -.9s; }
.meter.off i { animation: none; background: var(--line); }
@keyframes vu { 0% { height: 18%; } 50% { height: 85%; } 100% { height: 40%; } }
@media (prefers-reduced-motion: reduce) { .meter i { animation: none; height: 60%; } }
.onair .label { color: var(--amber); font-weight: 600; font-size: 13px; }
.onair .title { font-family: var(--head); font-size: clamp(24px, 3vw, 36px); font-weight: 600; line-height: 1.1; }
.onair .artist { font-size: 17px; color: #eadfc9; }
.onair .count { text-align: right; }
.onair .count b { font-family: var(--head); font-size: 52px; color: var(--amber); line-height: 1; display: block; }

.usage { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.usage i { display: block; height: 100%; background: var(--cyan); }
.usage.high i { background: var(--red); }

/* barre orizzontali */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar .track { height: 6px; background: var(--line); border-radius: 3px; margin-top: 4px; }
.bar .track i { display: block; height: 100%; background: var(--cyan); border-radius: 3px; }
.empty { color: var(--muted); font-size: 14px; }

/* grafico */
.chart svg { width: 100%; height: 180px; display: block; }
.chart .axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* tabelle */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid #1f2940; vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; }
.scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--raised); color: var(--muted); }
.pill.red { background: #3a1616; color: #ffb3b3; }
.pill.amber { background: #3a2a0c; color: #ffd27a; }
.pill.green { background: #10281b; color: #9df0bb; }

.songs li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #1f2940; font-size: 14px; }
.songs li:last-child { border-bottom: none; }
.songs { list-style: none; margin: 0; padding: 0; }
.songs time { color: var(--muted); min-width: 42px; }

/* accesso */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.login .brand { margin-bottom: 8px; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 22px; padding: 14px 16px; border-radius: 10px;
  background: var(--ground); border: 1px dashed var(--amber); color: var(--amber); user-select: all; }

@media (max-width: 900px) {
  .c3, .c4, .c6, .c8 { grid-column: span 12; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields, .checks { grid-template-columns: 1fr; }
  .onair { grid-template-columns: auto 1fr; }
  .onair .count { grid-column: 1 / -1; text-align: left; }
  main { padding: 24px 16px 48px; }
  .topbar { padding: 8px 16px; gap: 8px; }
  .who { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* nei piani, i campi della promo compaiono solo se la casella promo è spuntata */
.plan:has(input[name=is_promo]:not(:checked)) .promo-only { display: none; }

/* Audience e Programmazione */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k); box-shadow: 0 0 16px var(--k); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--k); opacity: .09; filter: blur(8px); }
.kpi b { font-family: var(--head); font-size: 40px; line-height: 1.05; color: var(--k); text-shadow: 0 0 18px color-mix(in srgb, var(--k) 45%, transparent); }
.k-label { font-size: 13px; color: var(--muted); } .k-sub { font-size: 13px; color: var(--muted); }
.k-cyan { --k: #27e6ff; } .k-pink { --k: #ff3ea5; } .k-amber { --k: #ffb020; } .k-violet { --k: #9d7cff; } .k-green { --k: #3dffb0; }
.chart-svg { width: 100%; display: block; }
.axis-t { fill: #8793ad; font-size: 12px; font-family: var(--body); }
.donut { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-n { fill: #fff; font-family: var(--head); font-size: 34px; font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .lg { flex: 1; } .legend b { font-family: var(--head); font-size: 16px; }
.legend.inline { flex-direction: row; flex-wrap: wrap; gap: 16px; flex: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.heat { display: flex; flex-direction: column; gap: 3px; }
.heat-row { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat-day { font-size: 12px; color: var(--muted); }
.heat-cell { height: 18px; border-radius: 3px; background: linear-gradient(135deg, #27e6ff, #7c5cff); box-shadow: 0 0 6px rgba(39,230,255,.25); }
.heat-h { font-size: 10px; color: var(--muted); }
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.cities li { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 2fr) 50px; gap: 12px; align-items: center; min-height: 34px; }
.cities .rank { font-family: var(--head); font-weight: 700; color: var(--cyan); text-align: right; }
.cities li:nth-child(-n+3) .rank { color: #ff3ea5; }
.cities .cname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cities .cc { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.cities .cbar { height: 8px; background: #18213a; border-radius: 4px; overflow: hidden; }
.cities .cbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7c5cff, #27e6ff); box-shadow: 0 0 10px rgba(39,230,255,.5); }
.cities .cn { text-align: right; font-family: var(--head); }
.pl-song { display: flex; gap: 12px; align-items: center; }
.pl-cover { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg, #1d2a55, #3a1f5e) center/cover no-repeat; }
.trend { font-family: var(--head); font-weight: 600; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.trend.up { color: #3dffb0; background: rgba(61,255,176,.1); } .trend.down { color: #ff6b8b; background: rgba(255,62,165,.1); } .trend.flat { color: var(--muted); background: var(--raised); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cities { grid-template-columns: 1fr; } }

/* mappa del mondo in diretta */
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid #ff3ea5; color: #ffd1ea; font-family: var(--head); font-weight: 600; box-shadow: 0 0 16px rgba(255,62,165,.25); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3ea5; box-shadow: 0 0 10px #ff3ea5; animation: lmblink 1.6s ease-in-out infinite; }
@keyframes lmblink { 50% { opacity: .35; } }
.lm-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 22px; align-items: start; margin-top: 12px; }
.lm-map { position: relative; border-radius: 14px; overflow: hidden; background: #070c19; border: 1px solid #1d2a48; }
.lm-svg { width: 100%; height: auto; display: block; }
.lm-note { position: absolute; left: 16px; bottom: 10px; margin: 0; }
.lm-pulse { transform-box: fill-box; transform-origin: center; animation: lmpulse 2.2s ease-out infinite; }
@keyframes lmpulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lm-pulse, .live-dot { animation: none; } }
.lm-side { display: flex; flex-direction: column; gap: 14px; }
.lm-today { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(39,230,255,.08)); border: 1px solid #2c3a66; display: flex; flex-direction: column; gap: 2px; }
.lm-today b { font-family: var(--head); font-size: 54px; line-height: 1; color: #fff; text-shadow: 0 0 22px rgba(124,92,255,.8); }
.lm-clist { margin-top: 6px; }
.lm-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lm-top li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 80px 36px; gap: 10px; align-items: center; }
.lm-flag { width: 34px; height: 24px; border-radius: 4px; object-fit: cover; background: #1d2739; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.lm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-bar { height: 8px; border-radius: 4px; background: #18213a; overflow: hidden; }
.lm-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff3ea5, #27e6ff); box-shadow: 0 0 10px rgba(39,230,255,.5); }
.lm-top b { font-family: var(--head); font-size: 18px; text-align: right; }
@media (max-width: 900px) { .lm-grid { grid-template-columns: 1fr; } }
.lm-map .lm-svg { cursor: grab; touch-action: none; }
.lm-map .lm-svg:active { cursor: grabbing; }
.lm-ctrl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lm-ctrl button { min-width: 38px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid #2c3a66; background: rgba(8,12,26,.85); color: #e8ebf2; font: 600 13px var(--head); cursor: pointer; }
.lm-ctrl button:hover { border-color: #27e6ff; color: #fff; }
.lm-label { fill: #e8ebf2; font: 600 12px var(--body); paint-order: stroke; stroke: #070c19; stroke-width: 3px; }
.lm-radios { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lm-radios legend { padding: 0; margin-bottom: 8px; }
.lm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #2c3a66; background: #111a30; cursor: pointer; font-size: 14px; }
.lm-chip input { width: 18px; height: 18px; accent-color: #27e6ff; }
.lm-chip:has(input:checked) { border-color: #27e6ff; background: rgba(39,230,255,.12); box-shadow: 0 0 12px rgba(39,230,255,.25); }

/* ===== stile neon in tutto il pannello (v0.11) ===== */
/* marchio retroilluminato */
.brand-neon { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; position: relative; padding: 4px 6px; }
.brand-neon::before { content: ""; position: absolute; inset: -6px -10px; border-radius: 14px; background: radial-gradient(ellipse at 40% 50%, rgba(39,230,255,.22), rgba(255,62,165,.10) 55%, transparent 75%); filter: blur(8px); z-index: -1; }
.bn-text { display: inline-flex; gap: 7px; font-family: var(--head); font-size: 23px; font-weight: 700; letter-spacing: 2.5px; line-height: 1; }
.bn-music { color: #eafcff; text-shadow: 0 0 2px #fff, 0 0 8px #27e6ff, 0 0 18px #27e6ff, 0 0 34px rgba(39,230,255,.7); }
.bn-meter { color: #ffe6f3; text-shadow: 0 0 2px #fff, 0 0 8px #ff3ea5, 0 0 18px #ff3ea5, 0 0 34px rgba(255,62,165,.7); animation: bnflicker 7s infinite; }
.bn-by { align-self: flex-end; font-size: 11px; color: #9aa6d6; letter-spacing: .5px; margin-left: 2px; }
.brand-neon:hover .bn-music { text-shadow: 0 0 2px #fff, 0 0 10px #27e6ff, 0 0 24px #27e6ff, 0 0 44px rgba(39,230,255,.9); }
.bn-mark line { transform-box: fill-box; transform-origin: bottom; animation: bnbar 1.4s ease-in-out infinite alternate; }
.bn-b2 { animation-delay: -.5s !important; } .bn-b3 { animation-delay: -.9s !important; } .bn-b4 { animation-delay: -.2s !important; }
@keyframes bnbar { 0% { transform: scaleY(.55); } 100% { transform: scaleY(1); } }
@keyframes bnflicker { 0%, 91%, 93%, 96%, 100% { opacity: 1; } 92%, 95% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bn-mark line, .bn-meter { animation: none; } }
.brand { display: none; }

/* menu */
.topbar { background: linear-gradient(180deg, #0b101d, #0a0e19); box-shadow: 0 1px 0 #1c2744, 0 8px 30px rgba(0,0,0,.35); }
.nav a { position: relative; }
.nav a.on { background: rgba(39,230,255,.08); color: #fff; }
.nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: #27e6ff; box-shadow: 0 0 10px #27e6ff; }

/* titoli e riquadri */
h1 { letter-spacing: .3px; }
.panel { background: linear-gradient(180deg, #172036, #141c2e); box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* riquadri dei numeri come in Audience */
.figures { background: transparent; border: 0; gap: 14px; overflow: visible; }
.figure { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); --k: #27e6ff; }
.figure::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k); box-shadow: 0 0 16px var(--k); }
.figure::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--k); opacity: .09; filter: blur(8px); }
.figure b { color: var(--k); text-shadow: 0 0 18px color-mix(in srgb, var(--k) 45%, transparent); font-size: 40px; }
.figure:nth-child(1) { --k: #27e6ff; } .figure:nth-child(2) { --k: #ff3ea5; } .figure:nth-child(3) { --k: #ffb020; } .figure:nth-child(4) { --k: #3dffb0; }
.figure.live b { color: #ffb020; }

/* barre orizzontali luminose */
.bar .track { height: 8px; background: #18213a; border-radius: 4px; }
.bar .track i { background: linear-gradient(90deg, #7c5cff, #27e6ff); box-shadow: 0 0 10px rgba(39,230,255,.45); border-radius: 4px; }

/* tabelle */
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(39,230,255,.05); }

/* pulsanti principali */
.btn.primary { box-shadow: 0 0 18px rgba(255,176,32,.25); }
.seg a.on { background: rgba(39,230,255,.12); border-color: #27e6ff; box-shadow: 0 0 12px rgba(39,230,255,.2); }
.chart svg { height: 200px; }
.bn-by { white-space: nowrap; }
@media (min-width: 901px) {
  .topbar { flex-wrap: nowrap; gap: 18px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; padding: 10px 12px; }
  .who { flex-shrink: 0; white-space: nowrap; }
  .who > span:first-child { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 901px) and (max-width: 1450px) { .who > span:first-child { display: none; } .bn-by { display: none; } }

/* ===== v0.11.1: "In onda ora" e avvisi con colori graffianti (addio marrone) ===== */
.onair {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,62,165,.20) 0%, rgba(124,92,255,.16) 45%, rgba(39,230,255,.12) 100%), #0d1326;
  border: 1px solid rgba(255,62,165,.65);
  box-shadow: 0 0 0 1px rgba(255,62,165,.15) inset, 0 0 28px rgba(255,62,165,.22), 0 0 60px rgba(39,230,255,.08);
  animation: onairbreath 4s ease-in-out infinite;
}
.onair::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(39,230,255,.22), transparent 65%); pointer-events: none; }
@keyframes onairbreath { 50% { box-shadow: 0 0 0 1px rgba(255,62,165,.25) inset, 0 0 40px rgba(255,62,165,.35), 0 0 80px rgba(39,230,255,.12); } }
.onair .label { color: #ff5cb4; text-shadow: 0 0 10px rgba(255,62,165,.7); letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.onair .title { color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.18); }
.onair .artist { color: #b9f4ff; }
.onair .count b { color: #27e6ff; text-shadow: 0 0 8px #27e6ff, 0 0 26px rgba(39,230,255,.6); }
.meter i { background: linear-gradient(0deg, #27e6ff, #ff3ea5); box-shadow: 0 0 10px rgba(255,62,165,.55); }
.meter.off i { background: #26304c; box-shadow: none; }
.usage i { background: linear-gradient(90deg, #27e6ff, #7c5cff); box-shadow: 0 0 8px rgba(39,230,255,.5); }
.usage.high i { background: linear-gradient(90deg, #ff9f1a, #ff3ea5); }
@media (prefers-reduced-motion: reduce) { .onair { animation: none; } }

.warn { background: #10172b; border: 1px solid rgba(255,160,40,.7); color: #ffd9a3; box-shadow: 0 0 18px rgba(255,160,40,.15); }
.warn a { color: #ffb020; }
.figure.live b { color: #27e6ff; }
.flash.ok { background: #0c1c24; border-color: rgba(61,255,176,.6); color: #bfffe6; box-shadow: 0 0 14px rgba(61,255,176,.12); }
.flash.error { background: #1c0f1c; border-color: rgba(255,62,165,.7); color: #ffd0ea; box-shadow: 0 0 14px rgba(255,62,165,.15); }

/* ===== v0.12: look futuristico, colori vivi ===== */
body {
  background:
    radial-gradient(900px 500px at 0% -10%, rgba(39,230,255,.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(255,62,165,.10), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(124,92,255,.12), transparent 60%),
    linear-gradient(rgba(39,230,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(39,230,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    #070a15;
  background-attachment: fixed;
}
.panel, .figure, .kpi, fieldset {
  background: linear-gradient(180deg, rgba(24,33,58,.78), rgba(15,21,40,.78));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(120,160,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 34px rgba(0,0,0,.35);
}
.panel:hover { border-color: rgba(39,230,255,.28); }
h1 {
  background: linear-gradient(90deg, #7ff3ff 0%, #27e6ff 30%, #9d7cff 65%, #ff5cb4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(39,230,255,.25));
}
.panel h2, fieldset legend { color: #eaf6ff; text-shadow: 0 0 12px rgba(39,230,255,.18); }
.btn.primary, button.btn.primary {
  background: linear-gradient(90deg, #27e6ff, #7c5cff); border: 0; color: #041018;
  box-shadow: 0 0 18px rgba(39,230,255,.35), 0 0 30px rgba(124,92,255,.2);
}
.btn.primary:hover { background: linear-gradient(90deg, #6ff0ff, #9d7cff); box-shadow: 0 0 24px rgba(39,230,255,.55), 0 0 44px rgba(124,92,255,.3); color: #041018; }
.btn { border-color: rgba(120,160,255,.22); background: rgba(17,25,46,.8); }
.btn:hover { border-color: #27e6ff; box-shadow: 0 0 14px rgba(39,230,255,.25); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  background: rgba(7,11,24,.85); border-color: rgba(120,160,255,.22);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #27e6ff; box-shadow: 0 0 0 3px rgba(39,230,255,.18), 0 0 16px rgba(39,230,255,.25); }
.check input, .lm-chip input { accent-color: #27e6ff; }
.table th { color: #7fdcff; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.pill.green { background: rgba(61,255,176,.12); color: #7dffc9; box-shadow: 0 0 10px rgba(61,255,176,.15); }
.pill.amber { background: rgba(255,176,32,.12); color: #ffd27a; }
.pill.red { background: rgba(255,62,165,.14); color: #ff9ccf; }
a { color: #6ff0ff; } a:hover { color: #ff7cc3; }
* { scrollbar-color: #2c3f73 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: linear-gradient(#27e6ff55, #7c5cff55); border-radius: 10px; }
::selection { background: rgba(255,62,165,.35); color: #fff; }
.login .box { border-color: rgba(39,230,255,.3); box-shadow: 0 0 40px rgba(39,230,255,.12), 0 0 80px rgba(255,62,165,.08); }

/* v0.13: anteprima come cliente, scelta della radio */
.preview-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 20px; background: linear-gradient(90deg, rgba(255,62,165,.25), rgba(124,92,255,.25)); border-bottom: 1px solid rgba(255,62,165,.6); box-shadow: 0 0 24px rgba(255,62,165,.25); color: #ffe6f3; }
.preview-bar form { margin: 0; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.radio-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(24,33,58,.78), rgba(15,21,40,.78)); border: 1px solid rgba(120,160,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 34px rgba(0,0,0,.3); transition: transform .15s, border-color .15s, box-shadow .15s; }
.radio-card:hover { transform: translateY(-2px); border-color: #27e6ff; box-shadow: 0 0 22px rgba(39,230,255,.25); color: var(--text); }
.rc-top { display: flex; align-items: center; gap: 10px; }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3ea5; box-shadow: 0 0 10px #ff3ea5; flex-shrink: 0; }
.radio-card.off .rc-dot { background: #3a4466; box-shadow: none; }
.rc-name { flex: 1; font-family: var(--head); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-n { font-family: var(--head); font-size: 26px; color: #27e6ff; text-shadow: 0 0 14px rgba(39,230,255,.5); }
.radio-card.off .rc-n { color: var(--muted); text-shadow: none; }
.rc-mount { color: var(--muted); }
.rc-song { font-size: 14px; color: #c9d3ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v0.13: menu nello stile del sito */
.nav { gap: 4px; padding: 5px; border-radius: 14px; background: rgba(12,18,36,.6); border: 1px solid rgba(120,160,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #aeb9d8; font-size: 14px; transition: color .15s, background .15s, box-shadow .15s; }
.nav-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: .85; }
.nav a:hover { color: #fff; background: rgba(39,230,255,.07); }
.nav a:hover .nav-ic { color: #27e6ff; filter: drop-shadow(0 0 5px rgba(39,230,255,.8)); opacity: 1; }
.nav a.on { color: #fff; background: linear-gradient(90deg, rgba(39,230,255,.18), rgba(124,92,255,.18)); box-shadow: inset 0 0 0 1px rgba(39,230,255,.45), 0 0 16px rgba(39,230,255,.22); }
.nav a.on .nav-ic { color: #27e6ff; filter: drop-shadow(0 0 6px rgba(39,230,255,.9)); opacity: 1; }
.nav a.on::after { display: none; }
@media (min-width: 901px) and (max-width: 1360px) { .nav a { padding: 0 9px; font-size: 13px; } .nav-ic { width: 15px; height: 15px; } }
@media (min-width: 901px) and (max-width: 1760px) { .who > span:first-child { display: none; } .bn-by { display: none; } }

/* v0.16: sala di controllo del server */
.gauges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gauge { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 14px; border: 1px solid rgba(120,160,255,.16); background: linear-gradient(180deg, rgba(24,33,58,.78), rgba(15,21,40,.78)); display: flex; flex-direction: column; gap: 6px; --k: #3dffb0; }
.gauge::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k); box-shadow: 0 0 14px var(--k); }
.gauge b { font-family: var(--head); font-size: 34px; line-height: 1.05; color: var(--k); text-shadow: 0 0 16px color-mix(in srgb, var(--k) 45%, transparent); }
.g-green { --k: #3dffb0; } .g-amber { --k: #ffb020; } .g-red { --k: #ff3ea5; }
.g-track { height: 8px; border-radius: 4px; background: #18213a; overflow: hidden; } .g-track i { display: block; height: 100%; border-radius: 4px; background: var(--k); box-shadow: 0 0 10px var(--k); }
.capacity { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; --k: #3dffb0; border-color: color-mix(in srgb, var(--k) 55%, transparent) !important; box-shadow: 0 0 30px color-mix(in srgb, var(--k) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.06) !important; }
.cap-green { --k: #3dffb0; } .cap-amber { --k: #ffb020; } .cap-red { --k: #ff3ea5; }
.cap-title { display: block; font-family: var(--head); font-size: 36px; color: var(--k); text-shadow: 0 0 20px color-mix(in srgb, var(--k) 50%, transparent); margin: 4px 0 8px; }
.cap-main p { margin: 0; font-size: 17px; } .glow-num { color: #27e6ff; font-family: var(--head); font-size: 22px; text-shadow: 0 0 12px rgba(39,230,255,.6); }
.cap-bars { display: flex; flex-direction: column; gap: 12px; }
.svc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.svc li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; min-height: 36px; }
.svc-dot { width: 12px; height: 12px; border-radius: 50%; } .svc-dot.on { background: #3dffb0; box-shadow: 0 0 10px #3dffb0; } .svc-dot.off { background: #ff3ea5; box-shadow: 0 0 10px #ff3ea5; }
@media (max-width: 1200px) { .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); } .capacity { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .gauges { grid-template-columns: 1fr 1fr; } }

/* v0.17: servizi e scadenze */
.expired-box { margin-bottom: 26px; padding: 26px 30px; border-radius: 18px; border: 1px solid rgba(255,62,165,.7); background: linear-gradient(120deg, rgba(255,62,165,.16), rgba(124,92,255,.10)), #120d1f; box-shadow: 0 0 34px rgba(255,62,165,.25); }
.expired-box h1 { background: none; -webkit-text-fill-color: #ff7cc3; color: #ff7cc3; filter: none; text-shadow: 0 0 20px rgba(255,62,165,.6); }
.expired-box p { margin: 6px 0; font-size: 17px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.svc-card { position: relative; overflow: hidden; padding: 26px; border-radius: 18px; border: 1px solid rgba(120,160,255,.16); background: linear-gradient(180deg, rgba(24,33,58,.8), rgba(15,21,40,.8)); display: flex; flex-direction: column; gap: 12px; --k: #9d7cff; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k); box-shadow: 0 0 14px var(--k); }
.svc-active { --k: #3dffb0; } .svc-expiring { --k: #ffb020; } .svc-expired, .svc-off { --k: #ff3ea5; } .svc-none { --k: #9d7cff; }
.svc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .svc-top h2 { margin: 0; font-size: 22px; }
.svc-card p { margin: 0; } .svc-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .svc-form label { width: 100%; }
.pill.violet { background: rgba(124,92,255,.16); color: #d8ceff; }
.svc-table input[type=date] { min-width: 150px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* v0.17.1: copertina nel riquadro "In onda ora" */
.onair > * { position: relative; z-index: 1; }
.onair .onair-bg { position: absolute; inset: -30px; z-index: 0; background: center/cover no-repeat; filter: blur(22px) saturate(1.3); opacity: .42; transform: scale(1.1); }
.onair.has-cover::after { z-index: 0; }
.onair-art { position: relative; flex-shrink: 0; width: 118px; height: 118px; }
.onair-cover { width: 118px; height: 118px; border-radius: 16px; object-fit: cover; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 26px rgba(255,62,165,.45), 0 0 50px rgba(39,230,255,.25); animation: coverglow 4s ease-in-out infinite; }
@keyframes coverglow { 50% { box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 0 34px rgba(39,230,255,.55), 0 0 60px rgba(255,62,165,.3); } }
.onair-art .meter.mini { position: absolute; right: -8px; bottom: -8px; height: 30px; padding: 5px 6px; gap: 3px; border-radius: 9px; background: rgba(8,12,26,.85); border: 1px solid rgba(255,255,255,.12); }
.onair-art .meter.mini i { width: 4px; }
.onair.has-cover .title { font-size: clamp(22px, 2.6vw, 32px); }
@media (prefers-reduced-motion: reduce) { .onair-cover { animation: none; } }
@media (max-width: 700px) { .onair-art, .onair-cover { width: 84px; height: 84px; } }

/* v0.17.2: "IN ONDA ORA" come la lampada ON AIR degli studi */
.onair .label {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; width: max-content;
  padding: 4px 12px; margin-bottom: 6px; border-radius: 6px; border: 2px solid #ff2d3d;
  background: rgba(255, 30, 50, .22); color: #fff; font-family: var(--head); font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 0 6px #ff2d3d, 0 0 14px #ff2d3d;
  box-shadow: 0 0 12px rgba(255, 45, 61, .7), 0 0 28px rgba(255, 45, 61, .35), inset 0 0 10px rgba(255, 45, 61, .35);
  animation: onairlamp 2.4s ease-in-out infinite;
}
.onair .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff2d3d; box-shadow: 0 0 8px #ff2d3d; }
@keyframes onairlamp { 50% { box-shadow: 0 0 18px rgba(255, 45, 61, .9), 0 0 40px rgba(255, 45, 61, .5), inset 0 0 14px rgba(255, 45, 61, .45); } }
@media (prefers-reduced-motion: reduce) { .onair .label { animation: none; } }

/* v0.17.4: menu più luminoso */
.nav { border-color: rgba(39,230,255,.35); box-shadow: 0 0 18px rgba(39,230,255,.18), inset 0 0 12px rgba(39,230,255,.06), inset 0 1px 0 rgba(255,255,255,.08); background: rgba(10,18,40,.75); }
.nav a { color: #dbe4ff; }
.nav-ic { opacity: 1; color: #7fdcff; filter: drop-shadow(0 0 3px rgba(39,230,255,.55)); }
.nav a:hover { color: #fff; background: rgba(39,230,255,.12); text-shadow: 0 0 10px rgba(39,230,255,.6); }
.nav a.on { color: #fff; text-shadow: 0 0 10px rgba(39,230,255,.8); background: linear-gradient(90deg, rgba(39,230,255,.28), rgba(124,92,255,.26)); box-shadow: inset 0 0 0 1px rgba(39,230,255,.8), 0 0 22px rgba(39,230,255,.45), 0 0 40px rgba(124,92,255,.2); }
.nav a.on .nav-ic { color: #fff; filter: drop-shadow(0 0 6px #27e6ff) drop-shadow(0 0 12px #27e6ff); }
.who a { text-shadow: 0 0 8px rgba(39,230,255,.4); }

/* v0.17.5: titoli delle sezioni in un riquadro luminoso */
fieldset { padding-top: 22px; margin-top: 14px; }
fieldset > legend {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: 10px;
  border: 1px solid rgba(39,230,255,.55);
  background: linear-gradient(90deg, rgba(39,230,255,.20), rgba(124,92,255,.20)), #0c1428;
  color: #fff; font-family: var(--head); font-size: 16px; font-weight: 600; letter-spacing: .6px;
  text-shadow: 0 0 10px rgba(39,230,255,.5);
  box-shadow: 0 0 14px rgba(39,230,255,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
fieldset > legend::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #27e6ff; box-shadow: 0 0 8px #27e6ff; }

/* v0.18: nuova radio */
.wizard { display: flex; flex-direction: column; gap: 18px; }
.conn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.conn-grid div { padding: 14px 16px; border-radius: 12px; background: rgba(7,11,24,.7); border: 1px solid rgba(120,160,255,.16); }
.conn-grid dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; } .conn-grid dd { margin: 0; font-size: 17px; color: #fff; font-weight: 600; word-break: break-all; }
@media (max-width: 900px) { .conn-grid { grid-template-columns: 1fr 1fr; } }
.conn-table { max-width: 820px; }
.conn-table th { width: 240px; text-align: left; font-size: 15px; text-transform: none; letter-spacing: 0; color: #cfd8f2; font-weight: 600; }
.conn-table th span { color: var(--muted); font-weight: 400; font-size: 13px; }
.conn-table td { font-size: 17px; color: #fff; font-weight: 600; word-break: break-all; }
.print-only { display: none; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  .top, .preview-bar, .actions, .no-print, footer, .flash, .head .actions { display: none !important; }
  .panel { background: #fff !important; border: 1px solid #999 !important; box-shadow: none !important; }
  .conn-table th, .conn-table td { color: #000 !important; border-color: #bbb !important; }
  h1 { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; filter: none !important; }
  .print-only { display: block; }
}

/* v0.19: copertine nelle ultime canzoni, logo per i messaggi della radio */
.songs li.song-row { display: grid; grid-template-columns: auto 34px 1fr; gap: 12px; align-items: center; }
.song-cover { width: 34px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #1d2a55, #3a1f5e) center/cover no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.onair-cover.is-logo { object-fit: contain; background: rgba(8,12,26,.85); padding: 10px; }

/* v0.19.1: copertina grande accanto al titolo */
.onair-art { width: 168px; height: 168px; }
.onair-cover { width: 168px; height: 168px; border-radius: 20px; }
.onair.has-cover { padding: 26px 30px; gap: 30px; }
.onair.has-cover .title { font-size: clamp(26px, 3vw, 40px); }
.onair.has-cover .artist { font-size: 20px; }
@media (max-width: 700px) { .onair-art, .onair-cover { width: 110px; height: 110px; } }

/* v0.20: preroll */
.doc-box { white-space: pre-wrap; max-height: 320px; overflow-y: auto; padding: 18px 20px; border-radius: 12px; background: rgba(7,11,24,.8); border: 1px solid rgba(120,160,255,.22); font-size: 15px; line-height: 1.6; color: #e6ecff; }
audio { filter: invert(.9) hue-rotate(180deg); border-radius: 8px; }
@media print { .doc-box { max-height: none; background: #fff; color: #000; border-color: #999; } }

/* v0.20.1: menu "Servizi" a tendina */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #dbe4ff; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover, .nav-drop[open] summary { color: #fff; background: rgba(39,230,255,.12); }
.nav-drop.on summary { color: #fff; background: linear-gradient(90deg, rgba(39,230,255,.28), rgba(124,92,255,.26)); box-shadow: inset 0 0 0 1px rgba(39,230,255,.8), 0 0 22px rgba(39,230,255,.45); }
.nav-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 280px; padding: 8px; border-radius: 14px; background: rgba(8,12,26,.97); border: 1px solid rgba(39,230,255,.45); box-shadow: 0 0 26px rgba(39,230,255,.25), 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 2px; }
.nav-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #dbe4ff; text-decoration: none; white-space: nowrap; }
.nav-menu a:hover { background: rgba(39,230,255,.12); color: #fff; }
.nav-menu a:first-child { border-bottom: 1px solid rgba(120,160,255,.16); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.nav { overflow: visible; }
.svc-hero { max-width: 760px; margin: 40px auto; padding: 40px; border-radius: 22px; border: 1px solid rgba(124,92,255,.5); background: linear-gradient(140deg, rgba(124,92,255,.14), rgba(39,230,255,.08)), #0d1428; box-shadow: 0 0 40px rgba(124,92,255,.2); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.svc-hero .lead { font-size: 19px; color: #dbe4ff; margin: 0; }

/* v0.21: ON AIR */
.nav a.nav-onair { color: #fff; font-family: var(--head); font-weight: 700; letter-spacing: 1.5px; border: 1.5px solid #ff2d3d; background: rgba(255,30,50,.16); text-shadow: 0 0 8px #ff2d3d; box-shadow: 0 0 12px rgba(255,45,61,.45), inset 0 0 8px rgba(255,45,61,.25); animation: onairlamp 2.4s ease-in-out infinite; margin: 0 4px; }
.nav a.nav-onair:hover, .nav a.nav-onair.on { background: rgba(255,30,50,.3); color: #fff; box-shadow: 0 0 20px rgba(255,45,61,.8), inset 0 0 10px rgba(255,45,61,.4); }
.lamp-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2d3d; box-shadow: 0 0 8px #ff2d3d; }
.onair-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 14px; }
.onair-item { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: start; }
.onair-item.is-off { opacity: .75; }
.oi-art { width: 130px; height: 130px; border-radius: 16px; background: linear-gradient(135deg, #1d2a55, #3a1f5e) center/cover no-repeat; box-shadow: 0 0 22px rgba(255,62,165,.3); display: flex; align-items: center; justify-content: center; }
.oi-eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; } .oi-eq i { width: 7px; border-radius: 2px; background: linear-gradient(0deg, #27e6ff, #ff3ea5); animation: eq 1.1s ease-in-out infinite alternate; }
.oi-eq i:nth-child(2) { animation-delay: -.4s; } .oi-eq i:nth-child(3) { animation-delay: -.7s; } .oi-eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { from { height: 30%; } to { height: 100%; } }
.is-off .oi-eq i { animation: none; height: 20%; background: #3a4466; }
.oi-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.oi-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.oi-name { font-family: var(--head); font-size: 22px; }
.lamp { display: inline-flex; padding: 3px 10px; border-radius: 6px; border: 2px solid #ff2d3d; background: rgba(255,30,50,.22); color: #fff; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-shadow: 0 0 6px #ff2d3d; box-shadow: 0 0 12px rgba(255,45,61,.6); }
.lamp.off { border-color: #3a4466; background: rgba(58,68,102,.3); text-shadow: none; box-shadow: none; color: #aab3cf; }
.oi-song { font-size: 16px; }
.onair-item audio { width: 100%; max-width: 520px; }
.oi-links { display: flex; flex-direction: column; gap: 8px; }
.oi-link { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; }
.oi-link span { font-size: 13px; color: var(--muted); }
.oi-link input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 40px; }
@media (max-width: 700px) { .onair-item { grid-template-columns: 1fr; } .oi-link { grid-template-columns: 1fr auto; } .oi-link span { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .nav a.nav-onair, .oi-eq i { animation: none; } }

/* v0.22: assistenza */
.nav-badge { margin-left: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff2d3d; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(255,45,61,.7); }
.ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticket-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(120,160,255,.16); background: rgba(7,11,24,.6); color: var(--text); text-decoration: none; }
.ticket-list a:hover { border-color: #27e6ff; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(120,160,255,.18); background: rgba(7,11,24,.7); }
.msg.mine { align-self: flex-end; border-color: rgba(39,230,255,.45); background: rgba(39,230,255,.08); }
.msg-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; line-height: 1.55; }

/* v0.22.2: rigenera le credenziali */
.regen { position: relative; }
.regen summary { list-style: none; cursor: pointer; } .regen summary::-webkit-details-marker { display: none; }
.regen-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(460px, 90vw); padding: 18px; border-radius: 14px; background: rgba(8,12,26,.98); border: 1px solid rgba(39,230,255,.45); box-shadow: 0 0 26px rgba(39,230,255,.25), 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 10px; }

/* v0.23: pulsanti nello stile del sito */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid rgba(39,230,255,.45); background: linear-gradient(180deg, rgba(39,230,255,.10), rgba(39,230,255,.03)), rgba(10,16,34,.85);
  color: #e9f8ff; font-family: var(--head); font-weight: 600; letter-spacing: .3px; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 rgba(39,230,255,0);
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s, transform .1s;
}
.btn:hover, button.btn:hover { color: #fff; border-color: #27e6ff; background: linear-gradient(180deg, rgba(39,230,255,.2), rgba(39,230,255,.06)), rgba(10,16,34,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 18px rgba(39,230,255,.4); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.primary, button.btn.primary {
  border: 0; color: #031019; font-weight: 700;
  background: linear-gradient(90deg, #27e6ff, #7c5cff);
  box-shadow: 0 0 18px rgba(39,230,255,.4), 0 0 32px rgba(124,92,255,.25), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn.primary:hover { color: #031019; background: linear-gradient(90deg, #6ff0ff, #9d7cff); box-shadow: 0 0 26px rgba(39,230,255,.6), 0 0 44px rgba(124,92,255,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.btn-renew, button.btn.btn-renew { border-color: rgba(61,255,176,.6); color: #c9ffe9; background: linear-gradient(180deg, rgba(61,255,176,.14), rgba(61,255,176,.04)), rgba(10,16,34,.85); white-space: nowrap; }
.btn.btn-renew:hover, button.btn.btn-renew:hover { border-color: #3dffb0; color: #fff; box-shadow: 0 0 18px rgba(61,255,176,.45); background: linear-gradient(180deg, rgba(61,255,176,.24), rgba(61,255,176,.08)), rgba(10,16,34,.9); }
.svc-table td { vertical-align: middle; }

/* v0.24: barra laterale della radio, play, loghi */
.radio-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.radio-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.radio-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.radio-side form { margin: 0; }
.rs-tile { --k: #27e6ff; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px; text-decoration: none; color: #f2f6ff; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .3px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--k) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 20%, transparent), color-mix(in srgb, var(--k) 5%, transparent)), rgba(10,16,34,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: box-shadow .15s, transform .1s, border-color .15s; }
.rs-tile svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--k); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--k)); }
.rs-tile:hover { color: #fff; border-color: var(--k); box-shadow: 0 0 18px color-mix(in srgb, var(--k) 45%, transparent); }
.rs-tile.on { border-color: var(--k); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 38%, transparent), color-mix(in srgb, var(--k) 12%, transparent)), rgba(10,16,34,.9); box-shadow: 0 0 22px color-mix(in srgb, var(--k) 50%, transparent), inset 0 0 0 1px var(--k); }
.rs-cyan { --k: #27e6ff; } .rs-violet { --k: #9d7cff; } .rs-green { --k: #3dffb0; } .rs-amber { --k: #ffb020; } .rs-red { --k: #ff2d3d; } .rs-blue { --k: #5aa9ff; } .rs-pink { --k: #ff3ea5; }
.rs-sep { margin: 10px 4px 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.with-logo { display: flex; align-items: center; gap: 16px; } .h1-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: rgba(8,12,26,.8); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.rc-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: rgba(8,12,26,.8); flex-shrink: 0; }
.onair { grid-template-columns: auto 1fr auto auto; }
.onair-play { width: 70px; height: 70px; border-radius: 50%; border: 2px solid #27e6ff; background: rgba(8,20,40,.75); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 24px rgba(39,230,255,.45); }
.onair-play svg { width: 30px; height: 30px; fill: #fff; }
.onair-play:hover, .onair-play.playing { box-shadow: 0 0 32px rgba(39,230,255,.75); background: rgba(39,230,255,.18); }
@media (max-width: 1100px) { .radio-layout { grid-template-columns: 1fr; } .radio-side { position: static; flex-direction: row; flex-wrap: wrap; } .rs-tile { width: auto; } .rs-sep { width: 100%; } }
/* v0.24: menu compatto sugli schermi medi */
@media (min-width: 901px) and (max-width: 1700px) { .nav a, .nav-drop summary { padding: 0 9px; font-size: 13.5px; gap: 6px; } .nav-ic { width: 15px; height: 15px; } .bn-text { font-size: 20px; } .topbar { gap: 12px; } }
@media (min-width: 901px) and (max-width: 1500px) { .nav-ic { display: none; } .bn-mark { width: 28px; height: 28px; } .bn-text { font-size: 18px; letter-spacing: 1.5px; } }
@media (min-width: 901px) and (max-width: 1250px) { .nav a, .nav-drop summary { padding: 0 7px; font-size: 12.5px; } .bn-text .bn-meter { display: none; } }
@media (min-width: 901px) { .who > span:first-child { display: none; } }
@media (min-width: 901px) and (max-width: 1320px) { .nav a, .nav-drop summary { padding: 0 7px; font-size: 12.5px; } .bn-text .bn-meter { display: none; } .topbar { gap: 10px; } }

/* v0.25.1: tutti i pulsanti nello stile delle tessere luminose */
.btn, button.btn {
  --k: #27e6ff; --k2: #27e6ff;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--k) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--k) 16%, transparent), color-mix(in srgb, var(--k2) 6%, transparent)), rgba(10,16,34,.88);
  color: #f2f6ff; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .4px; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.btn:hover, button.btn:hover {
  color: #fff; border-color: var(--k); text-shadow: 0 0 8px color-mix(in srgb, var(--k) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--k) 28%, transparent), color-mix(in srgb, var(--k2) 12%, transparent)), rgba(10,16,34,.92);
  box-shadow: 0 0 18px color-mix(in srgb, var(--k) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn.primary, button.btn.primary {
  --k: #27e6ff; --k2: #7c5cff;
  color: #fff; font-weight: 700; border: 1px solid transparent;
  background: linear-gradient(rgba(10,16,34,.9), rgba(10,16,34,.9)) padding-box,
              linear-gradient(90deg, #27e6ff, #7c5cff, #ff3ea5) border-box;
  text-shadow: 0 0 10px rgba(39,230,255,.55);
  box-shadow: 0 0 16px rgba(39,230,255,.28), 0 0 26px rgba(124,92,255,.18), inset 0 0 18px rgba(39,230,255,.08);
}
.btn.primary:hover, button.btn.primary:hover {
  color: #fff; text-shadow: 0 0 12px rgba(39,230,255,.9);
  background: linear-gradient(135deg, rgba(39,230,255,.22), rgba(124,92,255,.22)) padding-box,
              linear-gradient(90deg, #6ff0ff, #9d7cff, #ff7cc3) border-box;
  box-shadow: 0 0 24px rgba(39,230,255,.5), 0 0 40px rgba(124,92,255,.3), inset 0 0 20px rgba(39,230,255,.12);
}
.btn.btn-renew, button.btn.btn-renew { --k: #3dffb0; --k2: #3dffb0; color: #e6fff5; }
.btn svg { stroke: var(--k); filter: drop-shadow(0 0 3px var(--k)); }
.btn.primary svg { stroke: #fff; }
.logo-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 120px; height: 120px; border-radius: 18px; background: rgba(8,12,26,.85); border: 1px solid rgba(120,160,255,.2); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 18px rgba(39,230,255,.15); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
input[type=file] { color: var(--muted); font-size: 14px; }
input[type=file]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(39,230,255,.45); background: rgba(10,16,34,.88); color: #f2f6ff; font-family: var(--head); font-weight: 600; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: #27e6ff; box-shadow: 0 0 12px rgba(39,230,255,.35); }
/* caselle di spunta in tema */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex-shrink: 0; margin: 0; border-radius: 6px; border: 1.5px solid rgba(39,230,255,.55); background: rgba(8,12,26,.85); display: inline-grid; place-content: center; cursor: pointer; vertical-align: middle; transition: box-shadow .15s, background .15s; }
input[type=checkbox]::before { content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s; clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 22%, 86% 8%, 38% 70%); background: #031019; }
input[type=checkbox]:checked { background: linear-gradient(135deg, #27e6ff, #7c5cff); border-color: transparent; box-shadow: 0 0 12px rgba(39,230,255,.55); }
input[type=checkbox]:checked::before { transform: scale(1); }
input[type=checkbox]:hover { box-shadow: 0 0 10px rgba(39,230,255,.4); }
input[type=checkbox]:disabled { opacity: .4; cursor: not-allowed; }

/* v0.26: comunicazioni */
.rcpt { max-height: 430px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.rcpt .check { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(120,160,255,.12); background: rgba(7,11,24,.5); align-items: flex-start; }
.rcpt .check:hover { border-color: rgba(39,230,255,.45); }
.songs li form { margin: 0; }

/* v0.27: rubriche per regione e cartina */
.c7x { grid-column: span 7; } .c5x { grid-column: span 5; }
@media (max-width: 1100px) { .c7x, .c5x { grid-column: span 12; } }
.it-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.it-map { max-width: 560px; width: 100%; margin: 0 auto; }
.it-map svg { display: block; filter: drop-shadow(0 0 18px rgba(39,230,255,.12)); }
.it-reg { stroke: rgba(120,200,255,.55); stroke-width: .8; cursor: pointer; transition: opacity .15s, stroke .15s; }
.it-reg:hover { stroke: #fff; stroke-width: 1.6; opacity: .92; }
.it-city { fill: #7c5cff; stroke: #fff; stroke-width: .6; opacity: .9; pointer-events: auto; }
.it-city.on { fill: #ff3ea5; filter: drop-shadow(0 0 5px #ff3ea5); }
.it-side { display: flex; flex-direction: column; gap: 14px; }
.it-tip { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(120,160,255,.2); background: rgba(7,11,24,.7); font-size: 15px; line-height: 1.5; min-height: 80px; }
@media (max-width: 900px) { .it-wrap { grid-template-columns: 1fr; } }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.reg-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: #f2f6ff;
  border: 1px solid rgba(124,92,255,.45); background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(39,230,255,.05)), rgba(10,16,34,.85); }
.reg-tile b { font-family: var(--head); font-size: 18px; } .reg-tile span { font-size: 13px; color: var(--muted); } .reg-tile strong { color: #ff7cc3; }
.reg-tile:hover { border-color: #27e6ff; box-shadow: 0 0 18px rgba(39,230,255,.35); }
.reg-all { border-color: rgba(39,230,255,.6); background: linear-gradient(135deg, rgba(39,230,255,.2), rgba(124,92,255,.08)), rgba(10,16,34,.85); }
.add-rows { display: flex; flex-direction: column; gap: 8px; }
.add-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 8px; }
@media (max-width: 800px) { .add-row { grid-template-columns: 1fr 1fr; } }
.rc-item { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(120,160,255,.12); background: rgba(7,11,24,.5); }
.rc-item .check { flex: 1; min-width: 0; padding: 0; border: 0; background: none; }
.rc-item.is-excl { opacity: .55; }
.rc-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.btn.btn-mini, button.btn.btn-mini { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.btn-danger, button.btn.btn-danger { --k: #ff3ea5; --k2: #ff3ea5; }
.tag-city, .tag-reg { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: rgba(39,230,255,.14); color: #b9f4ff; }
.tag-reg { background: rgba(124,92,255,.18); color: #d8ceff; }
.camp-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(120,160,255,.16); background: rgba(7,11,24,.6); }
.rcpt { max-height: 560px; }
.italy-strip { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 14px 20px; border-radius: 14px; text-decoration: none; color: var(--text); border: 1px solid rgba(124,92,255,.45); background: linear-gradient(90deg, rgba(124,92,255,.16), rgba(39,230,255,.06)), rgba(10,16,34,.85); }
.italy-strip:hover { border-color: #27e6ff; box-shadow: 0 0 18px rgba(39,230,255,.3); }
.italy-strip .is-title { font-family: var(--head); font-weight: 700; font-size: 17px; }
.italy-strip b { font-family: var(--head); font-size: 22px; margin-right: 4px; } .italy-strip .v { color: #9d7cff; } .italy-strip .c { color: #27e6ff; } .italy-strip .p { color: #ff7cc3; }
.italy-strip .is-go { margin-left: auto; color: #7fdcff; font-size: 14px; }

/* v0.28: menu amministratore in barra laterale a tessere colorate */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0; align-items: start; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px 30px 18px; display: flex; flex-direction: column; gap: 9px;
  border-right: 1px solid rgba(120,160,255,.12); background: linear-gradient(180deg, rgba(10,16,34,.75), rgba(6,9,19,.6)); }
.admin-side .rs-tile { min-height: 48px; font-size: 14.5px; padding: 0 14px; position: relative; }
.admin-side .rs-tile .nav-badge { margin-left: auto; }
.admin-shell > main { max-width: 1320px; width: 100%; margin: 0 auto; }
.rs-orange { --k: #ff8a3d; } .rs-slate { --k: #8fa3d6; } .rs-teal { --k: #2fe0c8; } .rs-magenta { --k: #ff4fd8; }
.top-onair { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 10px; text-decoration: none; color: #fff; font-family: var(--head); font-weight: 700; letter-spacing: 1.5px; font-size: 14px;
  border: 1.5px solid #ff2d3d; background: rgba(255,30,50,.16); text-shadow: 0 0 8px #ff2d3d; box-shadow: 0 0 12px rgba(255,45,61,.45), inset 0 0 8px rgba(255,45,61,.25); animation: onairlamp 2.4s ease-in-out infinite; margin-left: 12px; }
.top-onair:hover, .top-onair.on { color: #fff; background: rgba(255,30,50,.3); }
.topbar .who { margin-left: auto; }
@media (min-width: 901px) { .who > span:first-child { display: inline; } }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid rgba(120,160,255,.12); }
  .admin-side .rs-tile { width: auto; flex-shrink: 0; min-height: 42px; }
  .admin-side .rs-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .top-onair { animation: none; } }

/* v0.29 */
.add-row { grid-template-columns: 1.2fr 1.4fr 1fr 1fr 1fr; }
@media (max-width: 1100px) { .add-row { grid-template-columns: 1fr 1fr; } }
.tag-phone { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: rgba(61,255,176,.14); color: #c9ffe9; text-decoration: none; }
.rs-lime { --k: #b6ff3d; }
.growth-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .growth-kpis { grid-template-columns: 1fr 1fr; } }
.g-delta { font-size: 13px; color: var(--muted); } .g-delta.good { color: #3dffb0; } .g-delta.bad { color: #ff7cc3; }
.g-big { display: flex; flex-direction: column; gap: 6px; } .g-big b { font-family: var(--head); font-size: 44px; line-height: 1; color: #27e6ff; text-shadow: 0 0 18px rgba(39,230,255,.5); } .g-big span { color: var(--muted); }
.g-exp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.g-exp li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(7,11,24,.6); border: 1px solid rgba(120,160,255,.14); }
.g-exp b { font-family: var(--head); font-size: 20px; } .g-exp b.warnn { color: #ffb020; text-shadow: 0 0 10px rgba(255,176,32,.6); }
.g-cell { display: flex; align-items: center; gap: 8px; min-width: 90px; } .g-cell i { display: block; height: 8px; border-radius: 4px; min-width: 2px; } .g-cell span { font-size: 14px; }

/* v0.30: anteprima grande del player */
.pv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pv-head .seg button { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(120,160,255,.25); background: rgba(10,16,34,.85); color: #dbe4ff; font: 600 14px var(--head); cursor: pointer; }
.pv-head .seg { display: flex; gap: 6px; } .pv-head .seg button.on { color: #fff; border-color: #27e6ff; box-shadow: 0 0 14px rgba(39,230,255,.35); background: rgba(39,230,255,.14); }
.pv-stage { display: flex; justify-content: center; padding: 22px; border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 12px, transparent 12px 24px), #070b18; border: 1px dashed rgba(120,160,255,.2); overflow-x: auto; }
.pv-stage iframe { border: 0; border-radius: 14px; max-width: 100%; background: transparent; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.pv-stage.phone { padding: 30px 0; }
.pv-stage.phone iframe { border: 10px solid #1a2140; border-radius: 30px; }

/* v0.31: notte del server */
.night-status { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(120,160,255,.2); background: rgba(7,11,24,.7); }
.night-status.ok { border-color: rgba(61,255,176,.55); box-shadow: 0 0 14px rgba(61,255,176,.15); }
.night-status.bad { border-color: rgba(255,62,165,.6); box-shadow: 0 0 14px rgba(255,62,165,.18); }

/* v0.32: copertine mancanti */
.miss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.miss-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(120,160,255,.14); background: rgba(7,11,24,.55); }
.miss-ph { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 700 22px var(--head); color: #ff8a3d; border: 1px dashed rgba(255,138,61,.6); }
@media (max-width: 800px) { .miss-list li { grid-template-columns: 52px 1fr; } .miss-list li form { grid-column: 1 / -1; } }
.code-row { display: flex; gap: 8px; } .code-row input { flex: 1; }

/* v0.35: palinsesto e rubriche */
.week { position: relative; display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-hours { position: relative; margin-top: 26px; height: 480px; }
.wk-hours span { position: absolute; left: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.wk-day b { display: block; text-align: center; font-family: var(--head); font-size: 13px; color: #7fdcff; height: 20px; margin-bottom: 6px; }
.wk-col { position: relative; height: 480px; border-radius: 10px; background: repeating-linear-gradient(180deg, rgba(120,160,255,.08) 0 1px, transparent 1px 60px), rgba(7,11,24,.6); border: 1px solid rgba(120,160,255,.14); }
.wk-blk { --k: #27e6ff; position: absolute; left: 3px; right: 3px; min-height: 16px; border-radius: 7px; overflow: hidden; text-decoration: none; color: #fff; font-size: 11.5px; padding: 3px 6px;
  border: 1px solid var(--k); background: color-mix(in srgb, var(--k) 26%, rgba(10,16,34,.9)); }
.wk-blk span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-blk:hover { box-shadow: 0 0 12px color-mix(in srgb, var(--k) 60%, transparent); z-index: 2; }
.wk-blk.now { box-shadow: 0 0 16px var(--k), inset 0 0 0 1px var(--k); }
.c0 { --k: #27e6ff; } .c1 { --k: #ff3ea5; } .c2 { --k: #9d7cff; } .c3 { --k: #3dffb0; } .c4 { --k: #ffb020; }
@media (max-width: 800px) { .week { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 3px; } .wk-blk span { display: none; } }
.lbl { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.photo-row { display: flex; align-items: center; gap: 12px; } .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.prog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prog-list li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid rgba(120,160,255,.14); background: rgba(7,11,24,.55); }
.prog-list li.now { border-color: #ff3ea5; box-shadow: 0 0 14px rgba(255,62,165,.3); }
.prog-ph { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; background: #141c3a center/cover; }
.prog-txt { flex: 1; min-width: 0; }
.rub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rub-card { --k: #27e6ff; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--k) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 14%, transparent), transparent), rgba(10,16,34,.85); }
.rub-card h3 { margin: 0; font-size: 18px; color: var(--k); }
.rub-meteo { --k: #27e6ff; } .rub-notiziario { --k: #ff3ea5; } .rub-viabilita { --k: #ffb020; } .rub-oroscopo { --k: #9d7cff; }
.rub-img { aspect-ratio: 1; border-radius: 12px; background: #0b1124 center/cover; border: 1px dashed color-mix(in srgb, var(--k) 45%, transparent); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.rub-card textarea { min-height: 54px; }
.det-list { display: flex; flex-wrap: wrap; gap: 8px; }
.det-chip { cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(39,230,255,.45); background: rgba(10,16,34,.85); color: #e9f8ff; font-size: 13px; }
.det-chip.categoria { border-color: rgba(157,124,255,.55); } .det-chip span { color: var(--muted); margin-left: 4px; }
.det-chip:hover { box-shadow: 0 0 10px rgba(39,230,255,.35); } .det-chip.used { opacity: .45; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tk-card { --k: #27e6ff; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--k) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 12%, transparent), transparent), rgba(10,16,34,.85); }
.tk-head { display: flex; justify-content: space-between; align-items: center; } .tk-head h3 { margin: 0; color: var(--k); font-size: 18px; }
.tk-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tk-model { display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; }
.tk-model input { position: absolute; opacity: 0; }
.tk-mini { width: 100%; height: 30px; border-radius: 8px; background: #0b1124; border: 1px solid rgba(120,160,255,.2); display: flex; align-items: center; gap: 3px; padding: 0 5px; }
.tk-mini i, .tk-mini b, .tk-mini u { display: block; height: 12px; border-radius: 6px; }
.tk-mini-B i { width: 28%; background: color-mix(in srgb, var(--k) 70%, #fff 0%); } .tk-mini-B b { flex: 1; border: 1px solid var(--k); height: 14px; }
.tk-mini-B2 i { width: 22%; background: transparent; border: 1px solid var(--k); } .tk-mini-B2 b { flex: 1; background: color-mix(in srgb, var(--k) 25%, #16204a); }
.tk-mini-B3 i { width: 20%; background: var(--k); } .tk-mini-B3 b { flex: 1; border: 1px solid var(--k); height: 14px; } .tk-mini-B3 u { width: 16%; border: 1px solid var(--k); height: 14px; }
.tk-model input:checked + .tk-mini { border-color: var(--k); box-shadow: 0 0 12px color-mix(in srgb, var(--k) 55%, transparent); }
.tk-model small { font-size: 11.5px; color: var(--muted); }
.tk-card input[type=color] { height: 40px; padding: 2px; }
.tk-err { color: #ff9ccf; }
.tk-result { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(120,160,255,.3); background: rgba(7,11,24,.6); }
.tk-result.ok { border-style: solid; border-color: rgba(61,255,176,.55); } .tk-result.bad { border-style: solid; border-color: rgba(255,62,165,.6); }
.tk-result b { font-size: 13px; } .tk-result ul { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: #dbe4ff; } .tk-result li { margin-bottom: 3px; }

/* v0.37: spot visivi */
.spot-th { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; background: #0b1124; font: 700 11px var(--head); color: var(--c); }
.spot-th img { width: 100%; height: 100%; object-fit: cover; }
.prog-list li.is-off { opacity: .55; }
.songs li.on { box-shadow: inset 0 0 0 1px #ffb020; border-radius: 8px; }
.fmt-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fmt { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid rgba(120,160,255,.2); cursor: pointer; }
.fmt input { position: absolute; opacity: 0; }
.fmt-mini { position: relative; width: 84px; height: 48px; flex-shrink: 0; border-radius: 6px; background: #ffb020; overflow: hidden; }
.fmt-L b { position: absolute; right: 0; top: 0; width: 64%; height: 64%; background: #16204a; border: 2px solid #27e6ff; border-radius: 4px; }
.fmt-strip b { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: #16204a; border-top: 2px solid #27e6ff; }
.fmt:has(input:checked) { border-color: #27e6ff; box-shadow: 0 0 12px rgba(39,230,255,.35); }
.fmt small { font-size: 12.5px; color: var(--muted); }
.spot-doc summary { cursor: pointer; color: #7fdcff; font-weight: 600; }
@media (max-width: 800px) { .fmt-picks { grid-template-columns: 1fr; } }

/* v0.38: in quale pannello sono */
.panel-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 10px; font-family: var(--head); font-weight: 700; font-size: 12.5px; letter-spacing: 1.2px; white-space: nowrap; border: 1.5px solid currentColor; }
.pb-admin { color: #27e6ff; background: rgba(39,230,255,.1); box-shadow: 0 0 14px rgba(39,230,255,.25); }
.pb-user { color: #ff3ea5; background: rgba(255,62,165,.1); box-shadow: 0 0 14px rgba(255,62,165,.25); }
.pb-preview { color: #ffb020; background: rgba(255,176,32,.12); box-shadow: 0 0 14px rgba(255,176,32,.3); }
@media (max-width: 700px) { .panel-badge { font-size: 10.5px; padding: 0 8px; min-height: 28px; } }
.hint { margin: 4px 0 0; font-size: 12.5px; color: #9fb0d8; }
.img-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.img-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.img-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(120,160,255,.25); }
.prog-ph { position: relative; } .prog-ph em { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 10.5px; font-weight: 700; background: #ff3ea5; color: #fff; border-radius: 8px; padding: 0 5px; }
/* v0.38: modelli pubblicitari */
.tpl-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tpl-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid rgba(120,160,255,.2); cursor: pointer; text-align: center; }
.tpl-pick input { position: absolute; opacity: 0; } .tpl-pick small { font-size: 12.5px; color: var(--muted); }
.tpl-pick:has(input:checked) { border-color: #ffb020; box-shadow: 0 0 14px rgba(255,176,32,.35); } .tpl-pick:has(input:checked) small { color: #fff; }
.tpl-mini { position: relative; width: 100%; max-width: 110px; aspect-ratio: 16/9; border-radius: 6px; background: #c8102e; overflow: hidden; }
.tpl-mini i, .tpl-mini b, .tpl-mini u { position: absolute; display: block; }
.tm-L_photo b, .tm-L_video b { right: 0; top: 0; width: 64%; height: 66%; background: #16204a; border: 2px solid #ffb020; }
.tm-L_photo i { left: 6%; top: 20%; width: 22%; height: 34%; background: #f4b860; border-radius: 3px; }
.tm-L_video i { left: 6%; top: 20%; width: 22%; height: 34%; background: linear-gradient(120deg,#5b2a86,#f4b860); border-radius: 3px; }
.tm-strip_photo { background: #123d2a; } .tm-strip_photo i { left: 8%; top: 14%; width: 26%; height: 52%; background: #9fd27a; border-radius: 3px; }
.tm-strip_photo b, .tm-video_big b { left: 0; right: 0; bottom: 0; height: 24%; background: #16204a; border-top: 2px solid #ffd166; }
.tm-video_big { background: linear-gradient(120deg,#5b2a86,#c8102e,#f4b860); } .tm-video_big u { left: 8%; bottom: 32%; width: 46%; height: 16%; background: rgba(0,0,0,.5); border-left: 3px solid #ffd166; }
.tm-ready { background: #ffb020; } .tm-ready u { inset: 30% 30%; border: 2px dashed rgba(0,0,0,.4); border-radius: 4px; }
.spot-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.spot-prev-wrap { position: sticky; top: 80px; }
.spot-prev { --bg: #c8102e; --ac: #fff; --fr: #ffb020; position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg); color: #fff; font-size: 12px; }
.sp-side { position: absolute; left: 0; top: 0; bottom: 30%; width: 34%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center; }
.sp-brand { display: flex; align-items: center; gap: 6px; } .sp-brand b { font-size: 12px; line-height: 1.1; }
.sp-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff center/contain no-repeat; flex-shrink: 0; }
.sp-pic { width: 90%; aspect-ratio: 4/3; border-radius: 6px; background: rgba(255,255,255,.25) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 10px; color: rgba(255,255,255,.8); }
.sp-pic[style] span { display: none; }
.sp-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; background: rgba(0,0,0,.18); }
.sp-offer { display: flex; flex-direction: column; min-width: 0; } .sp-offer b { font-size: 14px; } .sp-offer span { font-size: 10.5px; opacity: .9; }
.sp-cta { background: var(--ac); color: var(--bg); border-radius: 14px; padding: 4px 9px; font-weight: 700; font-size: 11px; white-space: nowrap; }
.sp-player { position: absolute; right: 0; top: 0; width: 66%; height: 70%; background: #0b1022; border: 2px solid var(--fr); border-radius: 0 0 0 10px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.sp-player small, .sp-strip small { display: block; font-size: 9px; color: #7fdcff; } .sp-player b, .sp-strip b { display: block; font-size: 12px; } .sp-player em, .sp-strip em { display: block; font-style: normal; font-size: 10px; color: #c9d4f4; }
.sp-cv { width: 34px; height: 34px; border-radius: 5px; background: #ff3ea5; flex-shrink: 0; }
.sp-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #0b1022; border-top: 2px solid var(--fr); display: none; align-items: center; gap: 8px; padding: 0 10px; }
.sp-tag { position: absolute; left: 8px; top: 6px; font-size: 8px; letter-spacing: 1.2px; font-weight: 700; background: rgba(0,0,0,.45); border: 1px solid var(--fr); border-radius: 4px; padding: 1px 5px; z-index: 2; }
.pv-right .sp-side { left: auto; right: 0; } .pv-right .sp-player { right: auto; left: 0; border-radius: 0 0 10px 0; } .pv-right .sp-tag { left: auto; right: 8px; }
.pv-L_video .sp-pic { aspect-ratio: 16/10; background-image: linear-gradient(120deg,#5b2a86,#c8102e,#f4b860); }
.pv-strip_photo .sp-player, .pv-video_big .sp-player, .pv-ready .sp-player { display: none; }
.pv-strip_photo .sp-strip, .pv-video_big .sp-strip { display: flex; }
.pv-strip_photo .sp-side { width: auto; right: 0; bottom: 22%; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 16px; }
.pv-strip_photo .sp-pic { width: 34%; } .pv-strip_photo .sp-bottom { left: 40%; right: 0; bottom: 26%; top: 38%; height: auto; background: none; flex-direction: column; align-items: flex-start; justify-content: center; }
.pv-strip_photo .sp-brand { position: absolute; left: 40%; top: 14%; }
.pv-video_big { background: linear-gradient(120deg,#5b2a86,#c8102e,#f4b860); } .pv-video_big .sp-side { inset: 0; width: auto; bottom: auto; top: 6px; right: 8px; left: auto; padding: 0; flex-direction: row; }
.pv-video_big .sp-pic { display: none; } .pv-video_big .sp-bottom { left: 10px; right: auto; bottom: 28%; height: auto; padding: 5px 9px; background: rgba(0,0,0,.55); border-left: 3px solid var(--ac); border-radius: 0 6px 6px 0; gap: 10px; }
.pv-ready { background: #ffb020; } .pv-ready .sp-side, .pv-ready .sp-bottom { display: none; }
@media (max-width: 1000px) { .spot-edit { grid-template-columns: 1fr; } .spot-prev-wrap { position: static; } .tpl-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.push-box { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,62,165,.4); background: rgba(255,62,165,.06); font-size: 13.5px; }
.push-box label { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.copy-row { display: flex; gap: 6px; } .copy-row input { flex: 1; font-family: var(--mono, monospace); font-size: 12.5px; }
.push-box .btn-mini[name=action] { align-self: flex-start; }

/* v0.39: interruttore amministratore / utente */
.pswitch { display: inline-flex; align-items: stretch; gap: 0; border-radius: 12px; border: 1.5px solid rgba(120,160,255,.35); background: rgba(7,11,24,.7); position: relative; }
.pswitch form { display: contents; }
.ps-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; font: 700 12px var(--head); letter-spacing: 1.1px; color: #8f9cc4; background: none; border: 0; cursor: pointer; white-space: nowrap; border-radius: 10px; list-style: none; }
.ps-btn::-webkit-details-marker { display: none; }
.ps-admin.on { color: #071022; background: #27e6ff; box-shadow: 0 0 16px rgba(39,230,255,.45); cursor: default; }
.ps-user.on { color: #2a1800; background: #ffb020; box-shadow: 0 0 16px rgba(255,176,32,.45); }
.ps-btn:not(.on):hover { color: #fff; }
.ps-pick { position: relative; }
.ps-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; max-height: 60vh; overflow: auto; padding: 10px; border-radius: 12px; background: #0b1124; border: 1px solid rgba(255,176,32,.5); box-shadow: 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 4px; }
.ps-menu input { margin-bottom: 6px; }
.ps-menu button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,.04); color: #e8ecff; font-size: 14px; cursor: pointer; }
.ps-menu button:hover { background: rgba(255,176,32,.18); } .ps-menu button.is-last { box-shadow: inset 0 0 0 1px #ffb020; } .ps-menu button.is-off { opacity: .55; }
.ps-menu small { color: #ffb020; font-size: 11px; margin-left: 6px; }
.rs-sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }
@media (max-width: 900px) { .ps-btn { font-size: 10px; padding: 0 8px; letter-spacing: .5px; } }

/* v0.39: Tutte le radio */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.radio-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid rgba(120,160,255,.22); background: linear-gradient(160deg, rgba(39,230,255,.07), transparent 50%), rgba(10,16,34,.88); }
.radio-card.is-off { opacity: .6; }
.radio-card header { display: flex; gap: 12px; align-items: center; }
.rc-logo { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; background: #141c3a center/contain no-repeat; display: flex; align-items: center; justify-content: center; font: 700 16px var(--head); color: #7fdcff; border: 1px solid rgba(120,160,255,.25); }
.rc-name h2 { margin: 0; font-size: 18px; } .rc-state { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .dot.on { background: #3dffb0; box-shadow: 0 0 8px #3dffb0; } .dot.off { background: #ff5c8a; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(120,160,255,.25); color: var(--muted); }
.tag-on { color: #3dffb0; border-color: rgba(61,255,176,.5); } .tag-warn { color: #ffb020; border-color: rgba(255,176,32,.5); }
.rc-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rc-btns form { display: contents; }
.qb { --q: #8fa2d8; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--q) 60%, transparent); background: color-mix(in srgb, var(--q) 10%, rgba(10,16,34,.9)); color: #fff; text-decoration: none; font: 600 13.5px var(--body, inherit); cursor: pointer; text-align: center; }
.qb:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--q) 50%, transparent); }
.qb-lime { --q: #b6ff3d; } .qb-cyan { --q: #27e6ff; } .qb-pink { --q: #ff3ea5; } .qb-amber { --q: #ffb020; } .qb-violet { --q: #9d7cff; } .qb-blue { --q: #5b9dff; } .qb-user { --q: #ffb020; grid-column: 1 / -1; }
.qb.hl { box-shadow: 0 0 0 2px var(--q), 0 0 18px color-mix(in srgb, var(--q) 60%, transparent); animation: hlpulse 1.6s ease-in-out infinite; }
@keyframes hlpulse { 50% { box-shadow: 0 0 0 2px var(--q), 0 0 6px transparent; } }
@media (max-width: 600px) { .radio-grid { grid-template-columns: 1fr; } }
/* v0.39: IN ONDA nel palinsesto e ordine delle immagini */
.onair-tag { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); z-index: 2; font: 800 9.5px var(--head); letter-spacing: 1px; color: #fff; background: #ff2e4d; padding: 2px 6px; border-radius: 5px; white-space: nowrap; box-shadow: 0 0 10px #ff2e4d; animation: onairPulse 1.4s ease-in-out infinite; }
.onair-tag.sm { position: static; transform: none; display: inline-block; margin-bottom: 2px; font-size: 8.5px; padding: 1px 4px; }
@keyframes onairPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 14px #ff2e4d; } 50% { opacity: .55; box-shadow: 0 0 2px #ff2e4d; } }
@media (prefers-reduced-motion: reduce) { .onair-tag { animation: none; } }
.prog-list li.now .prog-ph { box-shadow: 0 0 0 2px #ff2e4d; }
.img-pick { position: relative; cursor: grab; } .img-pick.dragging { opacity: .4; }
.img-n { position: absolute; left: 3px; top: 3px; font: 700 10px var(--head); background: rgba(0,0,0,.65); color: #fff; border-radius: 4px; padding: 0 4px; }
.prog-ph { overflow: visible; }
/* v0.39: ricerche e orari nello stile del pannello */
input[type=search], input[type=time] { background: rgba(7,11,24,.85); color: #e8ecff; border: 1px solid rgba(120,160,255,.28); border-radius: 10px; padding: 8px 12px; font: inherit; min-height: 40px; color-scheme: dark; }
input[type=search]:focus, input[type=time]:focus { outline: none; border-color: #27e6ff; box-shadow: 0 0 0 3px rgba(39,230,255,.18); }
.ps-menu input[type=search] { min-height: 36px; }

/* v0.40: palinsesto in tre sezioni, messaggi nei riquadri */
.sez-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sez { --q: #8fa2d8; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; text-decoration: none; color: #fff; font: 800 15px var(--head); letter-spacing: 1.4px;
  border: 1.5px solid color-mix(in srgb, var(--q) 55%, transparent); background: color-mix(in srgb, var(--q) 9%, rgba(10,16,34,.9)); }
.sez svg { width: 22px; height: 22px; fill: none; stroke: var(--q); stroke-width: 2; }
.sez:hover { box-shadow: 0 0 16px color-mix(in srgb, var(--q) 45%, transparent); }
.sez.on { background: color-mix(in srgb, var(--q) 24%, rgba(10,16,34,.9)); box-shadow: 0 0 22px color-mix(in srgb, var(--q) 55%, transparent), inset 0 0 0 1px var(--q); }
.sez-lime { --q: #b6ff3d; } .sez-cyan { --q: #27e6ff; } .sez-pink { --q: #ff3ea5; }
@media (max-width: 700px) { .sez { font-size: 11.5px; min-height: 46px; gap: 6px; } .sez svg { width: 16px; height: 16px; } }
.card-note { padding: 9px 12px; border-radius: 10px; font-size: 13.5px; border: 1px solid rgba(61,255,176,.55); background: rgba(61,255,176,.1); color: #c9ffe9; }
.card-note.error { border-color: rgba(255,62,165,.6); background: rgba(255,62,165,.1); color: #ffd0e7; }
.news-log { max-height: 340px; overflow: auto; }
input[type=url] { background: rgba(7,11,24,.85); color: #e8ecff; border: 1px solid rgba(120,160,255,.28); border-radius: 10px; padding: 8px 12px; font: inherit; min-height: 40px; }
input[type=url]:focus { outline: none; border-color: #27e6ff; box-shadow: 0 0 0 3px rgba(39,230,255,.18); }
/* IN ONDA nella griglia: in alto a destra del blocco, senza coprire il nome */
.wk-blk .onair-tag.sm { position: absolute; right: 3px; top: 3px; margin: 0; }
.wk-blk.now span { padding-right: 52px; }
.rc-3 { grid-template-columns: 1fr; } .rc-3 .qb { min-height: 46px; font-family: var(--head); font-weight: 800; letter-spacing: 1.2px; }
/* v0.40: tavolozza dei colori con i codici */
.pal-row { display: flex; align-items: center; gap: 8px; }
.pal-row input[type=color] { width: 52px; flex-shrink: 0; }
.pal-code { width: 100px; font-family: var(--mono, monospace); text-transform: uppercase; letter-spacing: 1px; }
.pal-code.bad { border-color: #ff3ea5 !important; }
.pal { margin-top: 6px; }
.pal-sw { display: flex; flex-wrap: wrap; gap: 5px; }
.pal-sw button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.pal-sw button:hover { transform: scale(1.12); } .pal-sw button.on { box-shadow: 0 0 0 2px #0b1022, 0 0 0 4px #fff; }
.pal-code { width: 116px !important; min-width: 116px; font-size: 13px; padding: 8px 8px !important; }

/* v0.41: editor del player */
.lay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 22px; }
.lay-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.lay-row label, .lay-row .lbl { font-size: 13.5px; color: var(--muted); }
.lay-row input[type=range] { width: 100%; accent-color: #27e6ff; }
.lay-row output { font-size: 12.5px; color: #7fdcff; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(120,160,255,.28); cursor: pointer; color: #dfe6ff; font-size: 13px; }
.seg label:has(input:checked) { border-color: #27e6ff; background: rgba(39,230,255,.12); box-shadow: 0 0 10px rgba(39,230,255,.3); }
.seg input { position: absolute; opacity: 0; }
.tk-tv { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--k) 45%, #0b1124), #0b1124); }
.tk-tv em { font-style: normal; font: 800 11px var(--head); letter-spacing: 1.5px; color: #fff; background: #d4142f; padding: 1px 6px; border-radius: 4px; }
.tk-models { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important; }

/* v0.42: Workstation */
.ws-crumb { font-size: 13px; color: #8fa2d8; margin-bottom: 8px; letter-spacing: .5px; } .ws-crumb a { color: #7fdcff; text-decoration: none; } .ws-crumb b { color: #fff; }
.ws-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ws-tiles.ws-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ws-tile { --q: #8fa2d8; display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 18px; border-radius: 16px; text-decoration: none; color: #fff;
  border: 1.5px solid color-mix(in srgb, var(--q) 55%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--q) 20%, transparent), transparent 60%), rgba(10,16,34,.9); transition: box-shadow .2s, transform .2s; }
.ws-tile:hover { box-shadow: 0 0 22px color-mix(in srgb, var(--q) 50%, transparent); transform: translateY(-2px); }
.ws-tile svg { width: 34px; height: 34px; fill: none; stroke: var(--q); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ws-tile b { font: 800 17px var(--head); letter-spacing: 1.4px; } .ws-tile span { font-size: 13.5px; color: #b9c5ea; }
.sez-amber { --q: #ffb020; } .sez-violet { --q: #9d7cff; }
.ws-pick { text-decoration: none; color: inherit; }
.ws-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.ws-one { grid-template-columns: 1fr !important; }
.ws-pv { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 8px; }
.ws-pv-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(255,176,32,.6); background: #070b18; aspect-ratio: 16/10; box-shadow: 0 0 20px rgba(255,176,32,.15); transition: width .3s; }
.ws-pv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ws-pv-frame.phone { aspect-ratio: auto; width: 390px; max-width: 100%; height: 640px; margin: 0 auto; }
.ws-pv-tag { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); z-index: 2; font: 800 10.5px var(--head); letter-spacing: 1.5px; color: #2a1800; background: #ffb020; padding: 2px 8px; border-radius: 5px; }
.ws-pv-ctrl { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) { .ws-split { grid-template-columns: 1fr; } .ws-pv { position: static; } }
.ws-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; } .ws-add label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ws-days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .ws-days a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(120,160,255,.3); color: #dfe6ff; text-decoration: none; font: 700 13px var(--head); }
.ws-days a.on { border-color: #9d7cff; background: rgba(157,124,255,.18); box-shadow: 0 0 12px rgba(157,124,255,.4); }
.ws-tl { position: relative; height: 54px; border-radius: 10px; background: #070b18; border: 1px solid rgba(120,160,255,.2); overflow: hidden; }
.ws-hr { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(120,160,255,.2); font-size: 10.5px; color: #8fa2d8; padding-left: 3px; }
.ws-blk { position: absolute; top: 18px; height: 26px; border-radius: 5px; box-shadow: 0 0 8px rgba(0,0,0,.5); }
.ws-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8fa2d8; margin-top: 8px; } .ws-legend i, .ws-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
/* I miei player */
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pl-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; border: 1.5px solid rgba(39,230,255,.5); background: linear-gradient(150deg, rgba(39,230,255,.12), transparent 60%), rgba(10,16,34,.9); }
.pl-card h2 { margin: 0; font: 800 22px var(--head); letter-spacing: 1.5px; } .pl-card p { margin: 0; color: #c9d2f2; }
.pl-smart { border-color: rgba(255,62,165,.6); background: linear-gradient(150deg, rgba(255,62,165,.16), transparent 60%), rgba(10,16,34,.9); box-shadow: 0 0 24px rgba(255,62,165,.18); }
.pl-badge { align-self: flex-start; font: 800 10.5px var(--head); letter-spacing: 1.4px; padding: 3px 9px; border-radius: 6px; background: rgba(39,230,255,.18); color: #7fdcff; }
.pl-smart .pl-badge { background: rgba(255,62,165,.2); color: #ff9ccf; }
.pl-lock { padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(255,176,32,.6); color: #ffd27a; font-size: 14px; }
.pl-card .btn { align-self: flex-start; }
.rub-new { --k: #b6ff3d; border-style: dashed; }

/* v0.43: ADV Animation con il monitor 16:9 in alto e gli strumenti sotto */
.spot-edit { display: flex !important; flex-direction: column; gap: 18px; }
.spot-edit .spot-prev-wrap { order: -1; width: 100%; }
.spot-edit .spot-prev { width: 100% !important; max-width: none !important; aspect-ratio: 16 / 9 !important; height: auto !important; }
.sp-sec { margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(120,160,255,.25); }
#sprev .sp-offer b, #sprev #pvName { font-size: calc(1em * var(--adt, 1)); } #sprev .sp-offer span, #sprev .sp-cta { font-size: calc(.9em * var(--adb, 1)); }
#sprev .sp-pic { transform: scale(var(--adi, 1)); transform-origin: center; background-size: var(--adfit, cover) !important; }
.tk-pos { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--k) 55%, transparent); background: rgba(255,255,255,.02); }
.tk-pos .btn { align-self: flex-start; }
/* v0.43: monitor 1920x1080 in alto, strumenti sotto */
.ws-stack { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.ws-stack .ws-pv { position: static; }
.ws-mon { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255,176,32,.65); background: #000; box-shadow: 0 0 24px rgba(255,176,32,.18); }
.ws-mon iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; }
.ws-mon.phone { aspect-ratio: auto; width: 390px; height: 700px; margin: 0 auto; } .ws-mon.phone iframe { width: 390px; height: 700px; }
.ws-drag { position: absolute; inset: 0; z-index: 3; cursor: grab; } .ws-drag:active { cursor: grabbing; }
.ws-mon .ws-pv-tag { z-index: 4; }
/* v0.44: monitor Smart TV sempre visibile mentre si scorre */
.ws-sticky { position: sticky !important; top: 64px; z-index: 20; background: linear-gradient(#070b18 85%, rgba(7,11,24,0)); padding: 8px 0 10px; }
.ws-sticky .ws-mon { margin: 0 auto; transition: width .25s; }
.ws-mon iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; transform: none !important; }
.ws-size { display: inline-flex; gap: 4px; } .ws-size .on { border-color: #ffb020; box-shadow: 0 0 10px rgba(255,176,32,.45); }
/* v0.44: Workstation piu' luminosa e con il pulsante Indietro */
.ws-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ws-back { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; margin-right: 8px; border-radius: 999px; font: 800 13px var(--head) !important; letter-spacing: .8px;
  color: #071022 !important; background: #27e6ff; box-shadow: 0 0 14px rgba(39,230,255,.55); text-decoration: none; }
.ws-back:hover { box-shadow: 0 0 22px rgba(39,230,255,.8); }
.ws-tile { background: linear-gradient(145deg, color-mix(in srgb, var(--q) 42%, #0b1124) 0%, color-mix(in srgb, var(--q) 14%, #0b1124) 55%, #0b1124 100%);
  border: 2px solid var(--q); box-shadow: 0 0 18px color-mix(in srgb, var(--q) 45%, transparent), inset 0 0 26px color-mix(in srgb, var(--q) 18%, transparent); }
.ws-tile:hover { box-shadow: 0 0 34px color-mix(in srgb, var(--q) 75%, transparent), inset 0 0 30px color-mix(in srgb, var(--q) 25%, transparent); transform: translateY(-3px); }
.ws-tile svg { width: 42px; height: 42px; filter: drop-shadow(0 0 6px var(--q)); stroke: #fff; }
.ws-tile b { font-size: 19px; text-shadow: 0 0 12px color-mix(in srgb, var(--q) 70%, transparent); } .ws-tile span { color: #e2e8ff; }
.ws-pick { --q: #27e6ff; border: 2px solid var(--q) !important; background: linear-gradient(145deg, rgba(39,230,255,.32), rgba(255,62,165,.16) 60%, #0b1124) !important;
  box-shadow: 0 0 22px rgba(39,230,255,.4), inset 0 0 26px rgba(39,230,255,.12); transition: box-shadow .2s, transform .2s; }
.ws-pick:hover { box-shadow: 0 0 36px rgba(39,230,255,.7); transform: translateY(-3px); }
.ws-pick h2 { text-shadow: 0 0 12px rgba(39,230,255,.6); }
.pl-modal { max-width: 560px; border-radius: 18px; border: 2px solid #ff3ea5; background: #0b1124; color: #e8ecff; padding: 24px; box-shadow: 0 0 40px rgba(255,62,165,.4); }
.pl-modal::backdrop { background: rgba(3,5,12,.75); } .pl-modal h2 { margin-top: 0; font: 800 22px var(--head); letter-spacing: 1.2px; color: #ff9ccf; }
.pl-modal-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sp-player { overflow: hidden; padding: 0 !important; } .sp-real { position: absolute; left: 0; top: 0; width: 960px; height: 540px; border: 0; transform-origin: 0 0; pointer-events: none; }
.dup-warn { padding: 9px 12px; border-radius: 10px; font-size: 13.5px; border: 1px solid rgba(255,176,32,.6); background: rgba(255,176,32,.1); color: #ffe2a8; }
.dup-warn.err { border-color: rgba(255,62,165,.6); background: rgba(255,62,165,.1); color: #ffd0e7; }
.spot-edit .spot-prev-wrap { position: sticky; top: 64px; z-index: 20; background: linear-gradient(#0b1124 88%, rgba(11,17,36,0)); padding-bottom: 8px; }
.ws-tile.sez-lime { --q: #b6ff3d; } .ws-tile.sez-cyan { --q: #27e6ff; } .ws-tile.sez-pink { --q: #ff3ea5; } .ws-tile.sez-amber { --q: #ffb020; } .ws-tile.sez-violet { --q: #9d7cff; }
.mv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255,176,32,.6); background: rgba(255,176,32,.06); }
.pv-stage.pv-sticky { position: sticky; top: 64px; z-index: 20; }
/* v0.46: i due player allineati e l'informativa del Plugin Palinsesto */
.pl-cards { align-items: stretch; } .pl-card { height: 100%; box-sizing: border-box; } .pl-card .pl-go { margin-top: auto; }
.pl-tags span { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,176,32,.55); color: #ffd27a; }
.pl-tags span.on { border-color: rgba(61,255,176,.55); color: #9dffd5; }
.pl-pal { border-color: #ffb020; box-shadow: 0 0 40px rgba(255,176,32,.35); } .pl-pal h2 { color: #ffd27a; }
.pl-nomore { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: #b9c5ea; }
.ws-blk.movable { cursor: ew-resize; } .ws-blk.drag { outline: 2px solid #fff; z-index: 2; }
.ws-tip { position: absolute; top: 0; transform: translateX(-50%); font: 700 11px var(--head); background: #fff; color: #071022; padding: 1px 6px; border-radius: 5px; z-index: 3; }
.ws-edit summary { list-style: none; cursor: pointer; } .ws-edit summary::-webkit-details-marker { display: none; }
.ws-edit[open] { flex-basis: 100%; } .ws-edit form { margin-top: 8px; }
/* v0.46.1: anteprima del player sempre visibile mentre si scorre, come in ADV */
.pv-fixed { position: sticky; top: 64px; z-index: 25; box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.pv-fixed .pv-stage { padding: 12px; } .pv-fixed .pv-stage iframe { margin: 0 auto; display: block; }
.pl-2 { display: flex; gap: 8px; flex-wrap: wrap; }
.lay-each { grid-column: 1 / -1; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(39,230,255,.35); }
.lay-each summary { list-style: none; cursor: pointer; } .lay-each summary::-webkit-details-marker { display: none; } .lay-each .lay-grid { margin-top: 10px; }

/* v0.48: NOTA DEL BRANO e SLOGAN DAB */
.ws-tile.sez-green { --q: #3dffb0; } .ws-tile.sez-red { --q: #ff5470; }
.sl-tag { display: inline-block; font: 800 11px var(--head); letter-spacing: 1.2px; padding: 3px 9px; border-radius: 6px; vertical-align: middle; }
.sl-year { color: #00261a; background: #3dffb0; box-shadow: 0 0 12px rgba(61,255,176,.45); }
.sl-special { color: #2a1800; background: #ffb020; box-shadow: 0 0 12px rgba(255,176,32,.45); }
.sl-row { display: grid; grid-template-columns: 38px 110px 1fr; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.sl-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font: 800 15px var(--head); color: #fff;
  background: rgba(61,255,176,.12); border: 1.5px solid rgba(61,255,176,.6); box-shadow: 0 0 10px rgba(61,255,176,.25); }
.sl-card .sl-num { background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.6); box-shadow: 0 0 10px rgba(255,176,32,.25); }
.sl-on { min-height: 0; font-size: 14px; }
.sl-txt { position: relative; } .sl-txt input { width: 100%; padding-right: 74px; }
.sl-count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 12px var(--head); color: #8fa2d8; }
.sl-count.near { color: #ffb020; } .sl-count.full { color: #ff5470; text-shadow: 0 0 8px rgba(255,84,112,.6); }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.sl-card { --s: #8fa2d8; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1.5px solid color-mix(in srgb, var(--s) 55%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--s) 18%, transparent); }
.sl-card.st-onair { --s: #3dffb0; } .sl-card.st-scheduled { --s: #27e6ff; } .sl-card.st-expired { --s: #ff5470; } .sl-card.st-off, .sl-card.st-empty { --s: #56648f; }
.sl-head { display: flex; align-items: center; gap: 10px; } .sl-head .sl-on { margin-left: auto; }
.sl-state { font: 800 11px var(--head); letter-spacing: 1.3px; padding: 3px 9px; border-radius: 999px; color: #06101f; background: var(--s); }
.st-onair .sl-state { animation: slPulse 1.6s ease-in-out infinite; }
@keyframes slPulse { 50% { box-shadow: 0 0 14px var(--s); } }
.sl-when { display: flex; flex-wrap: wrap; gap: 10px; } .sl-when label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #b9c5ea; }
.sl-seq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sl-seq li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.03); }
.sl-seq li.now { background: rgba(61,255,176,.08); border: 1px solid rgba(61,255,176,.45); }
.sl-seq li em { margin-left: auto; font: 800 11px var(--head); letter-spacing: 1.2px; color: #3dffb0; font-style: normal; }
.sl-save { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; padding: 10px 12px; border-radius: 14px;
  background: rgba(7,11,24,.92); border: 1px solid rgba(61,255,176,.35); box-shadow: 0 0 18px rgba(0,0,0,.5); }
@media (max-width: 640px) { .sl-row { grid-template-columns: 34px 1fr; } .sl-row .sl-txt { grid-column: 1 / -1; } .sl-grid { grid-template-columns: 1fr; } }
.sn-stay { display: flex; gap: 8px; } .sn-stay input { width: 110px; } .sn-stay select { flex: 1; }
/* v0.48.4: Scheduler da network - filtro per tipo, loghi, settimana */
.kl { --kc: #9d7cff; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 10px; overflow: hidden; vertical-align: middle;
  background: color-mix(in srgb, var(--kc) 16%, #0a1022); border: 1.5px solid color-mix(in srgb, var(--kc) 70%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--kc) 30%, transparent); }
.kl svg { width: 62%; height: 62%; fill: none; stroke: var(--kc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kl img { width: 100%; height: 100%; object-fit: cover; }
.sc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.sc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 12px; text-decoration: none; color: #dfe6ff;
  background: rgba(255,255,255,.03); border: 1px solid color-mix(in srgb, var(--kc) 35%, transparent); font-size: 13px; }
.sc-chip b { font: 700 12.5px var(--head); letter-spacing: .4px; } .sc-chip em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--kc) 30%, transparent); color: #fff; }
.sc-chip:hover { border-color: var(--kc); } .sc-chip.on { background: color-mix(in srgb, var(--kc) 18%, transparent); border-color: var(--kc); box-shadow: 0 0 14px color-mix(in srgb, var(--kc) 40%, transparent); }
.sc-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.025); border-left: 3px solid var(--kc); }
.sc-list time { font: 800 17px var(--head); font-variant-numeric: tabular-nums; color: #fff; min-width: 54px; }
.sc-what { display: flex; flex-direction: column; flex: 1; min-width: 180px; } .sc-list .ws-edit { margin-left: auto; }
.sc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sc-day { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; text-decoration: none; color: #dfe6ff; background: rgba(255,255,255,.03); border: 1px solid rgba(120,160,255,.18); min-height: 90px; }
.sc-day.on { border-color: #9d7cff; box-shadow: 0 0 12px rgba(157,124,255,.35); } .sc-day b { font: 800 13px var(--head); margin-bottom: 2px; }
.sc-day span { font: 700 13px var(--head); font-variant-numeric: tabular-nums; padding: 3px 7px; border-radius: 7px; background: color-mix(in srgb, var(--kc) 18%, transparent); border-left: 3px solid var(--kc); }
.sc-day span em { font-style: normal; font-weight: 500; font-size: 11px; color: #b9c5ea; } .sc-day i { font-size: 12px; color: #6d7aa8; }
@media (max-width: 900px) { .sc-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tk-font { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--k, #9d7cff) 55%, transparent); }
.tk-font .lbl { width: 100%; font-weight: 700; } .tk-font label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
/* v0.48.5: Scheduler - palinsesto completo */
.pc-grid { position: relative; padding-top: 18px; }
.pc-hours { position: relative; height: 16px; margin-left: 110px; } .pc-hours span { position: absolute; transform: translateX(-50%); font-size: 11px; color: #8fa2d8; font-variant-numeric: tabular-nums; }
.pc-lane { display: flex; align-items: center; gap: 0; margin-top: 6px; }
.pc-name { width: 110px; flex-shrink: 0; font: 800 12px var(--head); letter-spacing: .6px; color: #b9c5ea; text-transform: uppercase; }
.pc-track { position: relative; flex: 1; height: 30px; border-radius: 8px; background: #070b18; border: 1px solid rgba(120,160,255,.16);
  background-image: repeating-linear-gradient(90deg, rgba(120,160,255,.08) 0 1px, transparent 1px calc(100% / 12)); overflow: hidden; }
.pc-blk { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: color-mix(in srgb, var(--kc) 75%, #000); box-shadow: 0 0 8px color-mix(in srgb, var(--kc) 45%, transparent); overflow: hidden; }
.pc-blk em { font-style: normal; font: 700 10.5px var(--head); color: #07130a; padding: 0 6px; white-space: nowrap; line-height: 22px; }
.pc-blk.auto { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--kc) 55%, transparent) 0 5px, color-mix(in srgb, var(--kc) 20%, transparent) 5px 10px); border: 1.5px dashed var(--kc); box-shadow: none; }
.pc-blk.band { opacity: .75; }
.pc-now { position: absolute; top: 12px; bottom: -4px; width: 2px; background: #ff2e4d; box-shadow: 0 0 10px #ff2e4d; z-index: 3; pointer-events: none; }
.pc-now b { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font: 800 9px var(--head); letter-spacing: 1px; color: #fff; background: #ff2e4d; padding: 1px 5px; border-radius: 4px; }
.pc-allday { margin: 12px 0 0; font-size: 13px; color: #b9c5ea; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .pc-allday span { display: inline-flex; align-items: center; gap: 6px; }
.pc-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.pc-hour { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; border-top: 1px solid rgba(120,160,255,.12); padding-top: 8px; }
.pc-hour > b { font: 800 16px var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.pc-hour ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pc-hour li { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.025); border-left: 3px solid var(--kc); }
.pc-hour li.auto, .sc-list li.auto { border-left-style: dashed; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px); }
.pc-hour time { font: 800 13px var(--head); font-variant-numeric: tabular-nums; min-width: 42px; }
.ws-blk.auto { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--kc) 60%, transparent) 0 4px, transparent 4px 8px) !important; border: 1.5px dashed var(--kc); box-shadow: none; }
.sc-day span.auto { border-left-style: dashed; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--kc) 18%, transparent) 0 6px, transparent 6px 12px); }
/* v0.48.6: Scheduler - riquadro IN ONDA (appena andato, adesso, prossimo) */
.oa { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; margin: 0 0 16px; }
.oa-card { position: relative; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); border: 1.5px solid rgba(120,160,255,.25); display: flex; flex-direction: column; gap: 10px; }
.oa-now { border-color: #ff2e4d; box-shadow: 0 0 22px rgba(255,46,77,.25); }
.oa-next { border-color: rgba(39,230,255,.55); } .oa-last { opacity: .9; }
.oa-tag { align-self: flex-start; font: 800 11px var(--head); letter-spacing: 1.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #dfe6ff; }
.oa-tag.live { background: #ff2e4d; color: #fff; box-shadow: 0 0 12px rgba(255,46,77,.6); animation: slPulse 1.6s ease-in-out infinite; --s: #ff2e4d; }
.oa-clock { position: absolute; top: 12px; right: 16px; font: 800 20px var(--head); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 10px rgba(255,46,77,.6); }
.oa-row { display: flex; gap: 10px; align-items: flex-start; } .oa-row > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.oa-row b { font-size: 15px; } .oa-row span { font-size: 13px; color: #b9c5ea; } .oa-row small { font-size: 11.5px; color: #8fa2d8; }
.oa-row em { font-style: normal; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.oa-bar { display: block; height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 4px; } .oa-bar b { display: block; height: 100%; width: 0; background: #a3ff3d; }
.oa-song { font-size: 13px; padding: 6px 10px; border-radius: 10px; background: rgba(255,46,77,.08); border: 1px solid rgba(255,46,77,.3); }
.oa-prog { font-size: 12.5px; color: #b9c5ea; border-top: 1px solid rgba(120,160,255,.15); padding-top: 8px; }
@media (max-width: 1000px) { .oa { grid-template-columns: 1fr; } }
/* v0.48.7: il monitor di regia (APPENA ANDATO IN ONDA, ADESSO IN ONDA, NEXT AIR) */
.oa { gap: 16px; grid-template-columns: 1fr 1.45fr 1fr; }
.oa-mon { position: relative; padding: 10px 10px 18px; border-radius: 18px; background: linear-gradient(180deg, #1b2236, #0d1220); border: 1px solid #2a3350;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.45); }
.oa-mon::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 34%; height: 10px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #1b2236, #0a0e1a); }
.oa-scr { position: relative; height: 100%; min-height: 190px; padding: 14px 16px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(120% 90% at 50% 0%, #10183a, #05070f 70%); border: 1px solid rgba(0,0,0,.6); }
.oa-scr::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.oa-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.45)); }
.m-now .oa-scr { box-shadow: inset 0 0 0 2px rgba(255,46,77,.55), inset 0 0 40px rgba(255,46,77,.18); }
.m-next .oa-scr { box-shadow: inset 0 0 0 2px rgba(39,230,255,.45), inset 0 0 40px rgba(39,230,255,.12); }
.m-last .oa-scr { box-shadow: inset 0 0 0 1px rgba(157,124,255,.35); }
.oa-led { position: absolute; right: 18px; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: #3b4566; }
.oa-led.on { background: #ff2e4d; box-shadow: 0 0 8px #ff2e4d; animation: tvp 1.4s infinite; }
.oa-tag.nx { background: linear-gradient(90deg, #27e6ff, #9d7cff); color: #04101e; }
.oa-empty { color: #6d7aa8; font-size: 13px; margin: auto 0; }
.oa-prog-now { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(163,255,61,.06); border: 1px solid rgba(163,255,61,.25); }
.oa-prog-now img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 14px rgba(163,255,61,.35); }
.oa-prog-now > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.oa-prog-now small { font: 800 10px var(--head); letter-spacing: 1.5px; color: #a3ff3d; } .oa-prog-now b { font: 800 19px var(--head); }
.oa-prog-now span { font-size: 13px; color: #b9c5ea; } .oa-left-l em { font-style: normal; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.oa-row.ev { padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.03); }
.oa-row.first b { font-size: 17px; }
.oa-song { display: flex; align-items: center; gap: 4px; font-size: 13px; margin-top: auto; }
.oa-song .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 8px; }
.oa-song .eq i { width: 3px; background: #ff2e4d; animation: oaEq 1s ease-in-out infinite; } .oa-song .eq i:nth-child(2) { animation-delay: .2s; } .oa-song .eq i:nth-child(3) { animation-delay: .4s; } .oa-song .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes oaEq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
/* v0.49: pagina REGIA della Workstation */
.rg-form { display: flex; flex-direction: column; gap: 16px; }
.rg-seq, .rg-board, .rg-hp { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rg-seq li, .rg-board li, .rg-hp li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border-left: 3px solid var(--k, #27e6ff); }
.rg-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 800 13px var(--head); background: color-mix(in srgb, var(--k, #27e6ff) 18%, transparent); border: 1px solid var(--k, #27e6ff); }
.rg-seq select { min-width: 170px; } .rg-sec { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #b9c5ea; } .rg-sec input { width: 74px; }
.rg-board li input[type=text] { flex: 1; min-width: 240px; } .rg-board .check { min-height: 0; font-size: 13px; }
.rg-hp li input[type=text] { flex: 1; min-width: 180px; } .rg-mv { font-size: 12px; color: #9aa6d6; min-width: 120px; }
.rg-mv em { font-style: normal; font-weight: 800; } .rg-mv .up { color: #3dff7a; } .rg-mv .dn { color: #ff6a85; } .rg-mv .new { color: #ffd23d; }
.rg-seq li, .rg-board li, .rg-hp li { flex-wrap: nowrap; }
.rg-seq li select { width: 230px !important; flex: none; } .rg-sec input { width: 76px !important; flex: none; } .rg-seq li .btn { flex: none; }
.rg-board li input[type=text], .rg-hp li input[type=text] { width: auto !important; flex: 1 1 0; min-width: 0; }
.rg-board .check, .rg-sec, .rg-n { flex: none; }
@media (max-width: 700px) { .rg-seq li, .rg-board li, .rg-hp li { flex-wrap: wrap; } }
/* v0.50 mirino delle foto */
.mir { position: fixed; inset: 0; z-index: 100; background: rgba(3,4,12,.82); display: grid; place-items: center; padding: 20px; }
.mir[hidden] { display: none; }
.mir-box { max-width: 980px; width: 100%; border-radius: 18px; padding: 18px 20px; background: linear-gradient(160deg, #11152a, #090b17); border: 1.5px solid rgba(39,230,255,.4); box-shadow: 0 0 40px rgba(39,230,255,.2); }
.mir-head { display: flex; justify-content: space-between; align-items: center; } .mir-head h3 { margin: 0; }
.mir-main { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.mir-stage { position: relative; flex: none; user-select: none; touch-action: none; border-radius: 8px; overflow: hidden; background: #000; }
.mir-stage img { display: block; pointer-events: none; }
.mir-dim { position: absolute; inset: 0; background: rgba(0,0,0,.62); pointer-events: none; }
.mir-frame { position: absolute; cursor: move; border: 2px solid #27e6ff; box-shadow: 0 0 0 1px #000, 0 0 18px rgba(39,230,255,.7); }
.mir-frame i { position: absolute; width: 14px; height: 14px; border: 3px solid #fff; } .mir-frame i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.mir-frame i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; } .mir-frame i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; } .mir-frame i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.mir-side { display: flex; flex-direction: column; gap: 8px; min-width: 240px; flex: 1; }
.mir-pv { border-radius: 14px; background: #000 no-repeat; border: 1.5px solid rgba(39,230,255,.4); } .mir-pv.sq { width: 170px; height: 170px; } .mir-pv.wide { width: 240px; height: 135px; }
.mir-btn { position: relative; z-index: 2; }
.tp-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; } .tp-item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.tp-item img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); }
/* v0.52 "La settimana" del PALINSESTO */
.wkx-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wkx-zoom { display: flex; gap: 6px; align-items: center; } .wkx-zoom .btn.on { background: #27e6ff; color: #04101e; border-color: #27e6ff; }
.wkx-leg { display: flex; gap: 14px; } .wkx-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wkx-board { position: relative; border-radius: 16px; border: 1px solid #222a4d; background: #0b0f22; overflow: auto; max-height: 72vh; }
.wkx-grid { position: relative; display: grid; grid-template-columns: 64px repeat(7, minmax(160px, 1fr)); min-width: 1180px; }
.wkx-h { position: sticky; top: 0; z-index: 6; height: 44px; display: flex; align-items: center; justify-content: center; background: #0d1229; border-bottom: 1px solid rgba(120,160,255,.14); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.wkx-h.corner { left: 0; z-index: 8; } .wkx-h.today { color: #04101e; background: linear-gradient(180deg, #a3ff3d, #7fd82a); }
.wkx-hours { position: sticky; left: 0; z-index: 5; background: #0d1229; border-right: 1px solid rgba(120,160,255,.14); }
.wkx-hours span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: #9aa6d6; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.wkx-day { position: relative; border-right: 1px solid rgba(120,160,255,.14); background-image: repeating-linear-gradient(180deg, rgba(120,160,255,.14) 0 1px, transparent 1px var(--hour)); }
.wkx-day.today { background-color: rgba(163,255,61,.03); }
.wkx-blk { position: absolute; border-radius: 9px; overflow: hidden; display: flex; gap: 7px; align-items: flex-start; padding: 4px 6px; text-decoration: none; color: #eef1ff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #0b0f22), color-mix(in srgb, var(--c) 12%, #0b0f22)); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); box-shadow: inset 3px 0 0 var(--c); }
.wkx-blk:hover { z-index: 4; box-shadow: inset 3px 0 0 var(--c), 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); }
.wkx-blk .lg { flex: none; border-radius: 6px; background: #222 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.wkx-blk .lg.txt { display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #000)); }
.wkx-blk .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wkx-blk b { font-size: 12.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkx-blk time { font-size: 11px; color: #d7defa; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wkx-blk .host { font-size: 11px; color: #9aa6d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkx-blk.short { align-items: center; padding: 2px 6px; } .wkx-blk.short .tx { flex-direction: row; gap: 6px; align-items: baseline; flex: 1; } .wkx-blk.short b { flex: 1; min-width: 0; } .wkx-blk.short .host { display: none; }
.wkx-blk.inset { z-index: 2; box-shadow: inset 3px 0 0 var(--c), -6px 0 14px rgba(0,0,0,.55); } .wkx-blk.inset time { display: none; }
.wkx-blk.onair { box-shadow: inset 3px 0 0 var(--c), 0 0 18px color-mix(in srgb, var(--c) 70%, transparent); }
.wkx-blk.onair::after { content: 'IN ONDA'; position: absolute; right: 6px; top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: #04101e; background: #a3ff3d; padding: 1px 6px; border-radius: 999px; }
.wkx-now { position: absolute; left: 0; right: 0; height: 2px; background: #ff2e4d; box-shadow: 0 0 10px #ff2e4d; z-index: 3; pointer-events: none; }
.wkx-tip { position: fixed; z-index: 50; pointer-events: none; width: 260px; border-radius: 14px; padding: 12px; background: #0b0f22; border: 1px solid var(--c, #27e6ff); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.wkx-tip[hidden] { display: none; } .wkx-tip .ph { height: 130px; border-radius: 10px; background: #222 center / cover; margin-bottom: 8px; }
.wkx-tip b { display: block; font-size: 16px; } .wkx-tip span { display: block; color: #9aa6d6; font-size: 13px; } .wkx-tip em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #04101e; }
/* v0.52 scheda del flusso: dove e' in uso */
.use-row { display: grid; grid-template-columns: 170px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; background: rgba(255,62,165,.06); border: 1px solid rgba(255,62,165,.3); }
.use-kind { font-weight: 700; font-size: 12px; letter-spacing: 1px; color: #ff3ea5; } .use-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.use-main code { font-size: 13px; color: #fff; word-break: break-all; } .use-edit form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 320px; }
.use-edit summary { list-style: none; cursor: pointer; } .use-add { margin-top: 14px; }
/* v0.54 DAB · TRA POCO */
.dn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 14px 0; }
.dn-grid .tk-card { display: flex; flex-direction: column; gap: 8px; }
.dn-ex { margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; background: #0a0d1c; border: 1px dashed rgba(255,255,255,.2); font-family: 'Courier New', monospace; font-size: 14px; color: #dfe6ff; }
.dn-ex span { color: var(--k); font-weight: 700; }
