/* Avaelable – bozze grafiche (sito, app web, admin) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg: #07070C;
  --bg-2: #0D0D15;
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --text: #F4F2ED;
  --muted: #A9A7BA;
  --accent: #FFA24C;
  --accent-ink: #1C1006;
  --live: #FF3B5C;
  --spectrum: linear-gradient(90deg, #FFD23F, #FF8A3D, #FF3B5C, #C04CFF, #4C7DFF, #22D3C5, #7BE36B);
  --radius: 20px;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -8px rgba(255, 162, 76, .55); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-live { background: var(--live); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 59, 92, .6); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--text); }

/* ---------- elementi ---------- */
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--live); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 14px; color: #DCDAE6; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spectrum-line { height: 2px; background: var(--spectrum); opacity: .8; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }

/* avatar con iniziali e anello */
.avatar { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * .38); color: #fff; background: linear-gradient(135deg, var(--c1, #4C7DFF), var(--c2, #C04CFF)); }
.avatar.ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--live); }
.avatar.ring-spectrum { box-shadow: 0 0 0 3px var(--bg); outline: none; position: relative; }

/* poster dei video: "palcoscenico" con fari colorati */
.poster { position: relative; overflow: hidden; border-radius: 18px; isolation: isolate; background: #0B0B12; aspect-ratio: 4 / 5; }
.poster::before { content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(55% 60% at 28% 22%, var(--l1, rgba(255,162,76,.75)), transparent 72%),
    radial-gradient(55% 60% at 80% 35%, var(--l2, rgba(192,76,255,.6)), transparent 72%),
    radial-gradient(80% 55% at 50% 100%, var(--l3, rgba(255,59,92,.45)), transparent 72%),
    #0B0B12;
  filter: blur(4px) saturate(1.15); }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 50%, rgba(0,0,0,.7)); }
.poster .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); }
.poster .glyph svg { width: 34%; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.poster .meta { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #fff; }
.poster .tl { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.dur { padding: 4px 9px; border-radius: 7px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; }
.l-amber   { --l1: rgba(255,186,73,.85); --l2: rgba(255,94,58,.55);  --l3: rgba(255,59,92,.4); }
.l-violet  { --l1: rgba(192,76,255,.8);  --l2: rgba(76,125,255,.6);  --l3: rgba(255,59,140,.4); }
.l-cyan    { --l1: rgba(34,211,197,.75); --l2: rgba(76,125,255,.6);  --l3: rgba(123,227,107,.35); }
.l-rose    { --l1: rgba(255,59,92,.8);   --l2: rgba(255,162,76,.55); --l3: rgba(192,76,255,.4); }
.l-blue    { --l1: rgba(76,125,255,.85); --l2: rgba(34,211,197,.5);  --l3: rgba(192,76,255,.4); }
.l-green   { --l1: rgba(123,227,107,.7); --l2: rgba(255,210,63,.55); --l3: rgba(34,211,197,.4); }

/* ---------- layout app (sidebar + contenuto) ---------- */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 250px; max-width: 268px; padding: 26px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #0B0B13, #07070C); display: flex; flex-direction: column; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: #C3C1D2; font-size: 15px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav a.on { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav svg { width: 21px; height: 21px; flex: none; }
.nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; text-align: center; }
.main { flex: 999 1 600px; min-width: 0; padding: 26px 36px 56px; display: flex; flex-direction: column; gap: 38px; }
.topbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.search { flex: 1 1 320px; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.search input { flex: 1; padding: 14px 0; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.search input::placeholder { color: #8E8CA1; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
  .main { padding: 20px 18px 40px; }
  .side { max-width: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .wrap { padding: 0 18px; }
}
