/* THZ Podcast Streaming Pro — sistema visual "broadcast console" */
@font-face { font-family: Inter; src: url(fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.woff) format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplay-Black.woff) format("woff"); font-weight: 800 900; font-display: swap; }

:root {
  --bg: #070a14; --bg-2: #0a0f1e; --surface: #0e1428; --surface-2: #131a32; --surface-3: #1a2240;
  --line: #1f2846; --line-2: #2b3559; --text: #eef2ff; --text-2: #c2cae6; --muted: #8590b6;
  --brand: #31d7ff; --brand-ink: #03131c; --brand-soft: rgba(49, 215, 255, .12); --violet: #8b5cf6;
  --rec: #ff4d5e; --ok: #2bd99f; --warn: #ffb547; --bad: #ff5d6c;
  --grad: linear-gradient(135deg, #31d7ff 0%, #6e8bff 50%, #8b5cf6 100%);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7); --ring: 0 0 0 3px rgba(49, 215, 255, .35);
  --r: 14px; --r-sm: 10px; --side: 248px; --player: 84px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6fb; --bg-2: #eef1f8; --surface: #ffffff; --surface-2: #f3f5fb; --surface-3: #e8ecf6;
  --line: #e2e7f2; --line-2: #cfd6e8; --text: #0d1330; --text-2: #2c3557; --muted: #5d688c;
  --brand: #0a8fb8; --brand-ink: #ffffff; --brand-soft: rgba(10, 143, 184, .1); --violet: #6d3fe0;
  --rec: #e0283b; --ok: #0d9b6c; --warn: #b86e00; --bad: #d42a3b;
  --shadow: 0 14px 40px -22px rgba(20, 30, 70, .35); --ring: 0 0 0 3px rgba(10, 143, 184, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
body.has-player { padding-bottom: var(--player); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font: 900 clamp(1.9rem, 3.2vw, 2.7rem)/1.05 var(--display); letter-spacing: -.025em; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
p { margin: .4em 0; }
code, kbd { font: 500 .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 20px; height: 20px; flex: none; }
.ico.xl { width: 44px; height: 44px; stroke-width: 1.4; color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .block { display: block; }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .bad-text { color: var(--bad); }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; } .clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
.row { display: flex; align-items: center; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; }
.stack { display: grid; gap: 14px; } .grow { flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; overscroll-behavior: contain; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 8px; }
.brand-text { display: grid; line-height: 1.15; } .brand-text b { font: 900 1.05rem var(--display); letter-spacing: -.01em; } .brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; gap: 3px; flex: none; }
.brand-mark i { width: 3px; border-radius: 2px; background: #04121b; height: 10px; }
.brand-mark i:nth-child(2) { height: 18px; } .brand-mark i:nth-child(3) { height: 14px; } .brand-mark i:nth-child(4) { height: 7px; }
.brand-mark.big { width: 72px; height: 72px; border-radius: 20px; gap: 6px; } .brand-mark.big i { width: 6px; height: 20px; } .brand-mark.big i:nth-child(2) { height: 38px; } .brand-mark.big i:nth-child(3) { height: 28px; } .brand-mark.big i:nth-child(4) { height: 14px; }
.nav { display: grid; gap: 2px; }
.nav-label { margin: 14px 10px 4px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-group { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 500; position: relative; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav a.active .ico { color: var(--brand); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); margin-left: auto; box-shadow: 0 0 0 0 var(--rec); animation: ping 1.6s infinite; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 8px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 36px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .menu-btn { display: none; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; transition: border-color .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.search .ico { color: var(--muted); width: 18px; }
.search input[type=search] { flex: 1; border: 0 !important; background: none !important; padding: 10px 0 !important; outline: none; min-width: 0; box-shadow: none !important; border-radius: 0 !important; }
.search kbd { font-size: .7rem; color: var(--muted); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#view { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(18px, 3vw, 36px); outline: none; }
#view:focus, #view:focus-visible { box-shadow: none; }
.sub { display: block; color: var(--muted); }
#view.is-loading { opacity: .55; transition: opacity .2s; }
.loading-view { display: grid; place-items: center; min-height: 240px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--brand); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn.danger.ghost { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.active { border-color: var(--brand); color: var(--brand); }
.btn.sm { padding: 7px 12px; font-size: .84rem; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text-2); position: relative; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 30px; height: 30px; } .icon-btn.sm .ico { width: 16px; height: 16px; }
.icon-btn.lg { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font-weight: 600; text-decoration: none; }
.play-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); cursor: pointer; flex: none; transition: transform .12s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn .ico { width: 18px; height: 18px; }
.play-btn.xl { width: 88px; height: 88px; } .play-btn.xl .ico { width: 36px; height: 36px; }
.play-btn.is-playing { background: var(--text); color: var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); margin-right: 6px; }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.published { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.status.scheduled { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.status.draft { color: var(--muted); background: var(--surface-3); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; }
.spin.lg { width: 34px; height: 34px; border-width: 3px; color: var(--brand); }

/* ---------- formulários ---------- */
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text-2); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea, .input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-weight: 400; font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
textarea { resize: vertical; line-height: 1.5; }
.input.sm { padding: 8px 10px; font-size: .88rem; width: auto; }
.input.grow { flex: 1; min-width: 160px; }
.hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
.form-error { color: var(--bad); font-size: .88rem; min-height: 1px; margin: 0; }
.field-label { margin-top: 10px; }
label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; position: relative; flex-wrap: wrap; }
.switch input { position: absolute; opacity: 0; }
.switch > span { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch > span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--brand); border-color: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--brand-ink); }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.switch small { flex-basis: 100%; padding-left: 48px; color: var(--muted); font-weight: 400; margin-top: -6px; }
.switch.sm > span { width: 32px; height: 18px; } .switch.sm > span::after { width: 12px; height: 12px; } .switch.sm input:checked + span::after { transform: translateX(14px); }
.toggles { display: grid; gap: 12px; }
.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { margin-top: 3px; accent-color: var(--brand); }
.radio span { display: grid; } .radio small { color: var(--muted); font-weight: 400; }
.counter { float: right; font-weight: 400; color: var(--muted); font-size: .75rem; }
.copy-field { display: flex; gap: 6px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 4px 4px 0; }
.copy-field input, .copy-field textarea { border: 0 !important; background: none !important; box-shadow: none !important; font: .82rem ui-monospace, Menlo, monospace !important; color: var(--text-2) !important; }
.copy-field.sm input { padding: 6px 10px !important; }
.range { -webkit-appearance: none; appearance: none; height: 18px; background: transparent; cursor: pointer; width: 100%; --p: 0%; --b: 0%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) var(--p), color-mix(in srgb, var(--text) 22%, transparent) var(--p) var(--b), var(--line-2) var(--b)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brand); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); margin-top: -5px; border: 0; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }
.range.mini { height: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--muted); }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--line-2); }
.seg.sm button { padding: 5px 10px; font-size: .8rem; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- cards & seções ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 10px; }
.pad { padding: 16px 20px; }
.page-head { margin: 4px 0 26px; display: grid; gap: 6px; }
.page-head .lead { max-width: 640px; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.row-head > div:first-child { display: grid; gap: 6px; }
.eyebrow { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.eyebrow a { text-decoration: none; } .eyebrow a:hover { text-decoration: underline; }
.lead { font-size: 1.06rem; color: var(--text-2); }
.block { margin: 30px 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h3 { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 22px; }
.col-side { display: grid; gap: 16px; } .col-side .card + .card { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .grid-2.tight { gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 .card + .card, .grid-3 .card + .card { margin-top: 0; }
.span-2 { grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 10px; color: var(--text-2); }
.empty-state.big { padding: 80px 20px; } .empty-state.big h1 { font-size: 2rem; }
.empty-state p { max-width: 460px; margin: 0; }
.notice { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .9rem; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.notice .ico { color: var(--warn); vertical-align: -4px; }

/* ---------- capas ---------- */
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-3); }
.cover-empty { display: grid; place-items: center; color: var(--muted); }
.cover.sm { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.cover.md { width: 160px; } .cover.lg { width: 100%; max-width: 220px; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 40px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.hero-bg, .show-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .35; z-index: -1; }
.hero::after, .show-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 25%, color-mix(in srgb, var(--surface) 30%, transparent)); z-index: -1; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 8px 0 6px; }
.hero-program a { color: var(--brand); text-decoration: none; font-weight: 600; }
.hero-copy { display: grid; gap: 8px; } .hero-copy .row { margin-top: 12px; }
.hero-art { position: relative; } .hero-art .cover { border-radius: 18px; box-shadow: var(--shadow); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: ping 1.8s infinite; box-shadow: 0 0 0 0 var(--brand); }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 36px; position: absolute; left: 16px; right: 16px; bottom: -14px; justify-content: center; }
.eq i { width: 5px; background: var(--grad); border-radius: 3px; height: 30%; animation: eq 1.2s ease-in-out infinite; }
.eq i:nth-child(3n) { animation-delay: -.3s; } .eq i:nth-child(3n+1) { animation-delay: -.7s; } .eq i:nth-child(4n) { animation-duration: .9s; } .eq i:nth-child(5n) { animation-duration: 1.5s; }
.eq.big { position: static; height: 90px; } .eq.big i { width: 6px; }
.kpis-inline { display: flex; gap: 36px; padding: 18px 6px 0; flex-wrap: wrap; }
.kpis-inline div { display: grid; } .kpis-inline b { font: 900 1.7rem var(--display); } .kpis-inline span { color: var(--muted); font-size: .85rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; margin: 22px 0 0; scrollbar-width: none; }
.chip-link { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.chip-link:hover { border-color: var(--brand); } .chip-link.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- programas & episódios ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px; }
.prog-card { text-decoration: none; display: grid; gap: 10px; }
.prog-card .cover { transition: transform .2s, box-shadow .2s; }
.prog-card:hover .cover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prog-card h3 { font-size: .96rem; display: -webkit-box; }
.prog-card small { display: block; color: var(--text-2); font-size: .8rem; } .prog-card small.muted { color: var(--muted); }
.ep-list { display: grid; }
.ep-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ep-row:first-child { padding-top: 4px; }
.ep-thumb { position: relative; }
.ep-thumb .play-btn.overlay { position: absolute; inset: 0; margin: auto; opacity: 0; transform: scale(.85); transition: .15s; box-shadow: var(--shadow); }
.ep-row:hover .play-btn.overlay, .ep-thumb .play-btn.overlay.is-playing { opacity: 1; transform: none; }
.ep-body { display: grid; gap: 3px; min-width: 0; }
.ep-meta { font-size: .78rem; color: var(--muted); font-weight: 500; }
.ep-body h3 { font-size: 1.04rem; display: block; } .ep-body h3 a { text-decoration: none; } .ep-body h3 a:hover { color: var(--brand); }
.ep-body p { margin: 0; color: var(--text-2); font-size: .9rem; }
.ep-actions { display: flex; gap: 6px; align-items: center; }
.mini-progress { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin-top: 6px; max-width: 260px; } .mini-progress i { display: block; height: 100%; background: var(--brand); }
.show-head { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: end; padding: clamp(20px, 3vw, 36px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.show-cover { border-radius: 16px; box-shadow: var(--shadow); }
.show-info { display: grid; gap: 8px; } .show-info .row { margin-top: 8px; }
.prose { color: var(--text-2); overflow-wrap: anywhere; } .prose p { margin: 0 0 .9em; } .prose a { color: var(--brand); } .prose ul { padding-left: 1.2em; } .prose h3 { margin: 1.2em 0 .4em; color: var(--text); }
.notes { font-size: 1rem; }
.ts { background: var(--brand-soft); color: var(--brand); border: 0; border-radius: 5px; padding: 0 5px; cursor: pointer; font: 600 .9em var(--font); font-variant-numeric: tabular-nums; }
.link-ext { display: inline-flex; gap: 6px; align-items: center; color: var(--brand); text-decoration: none; font-size: .9rem; margin-top: 8px; } .link-ext .ico { width: 16px; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; }
.chapters button { width: 100%; display: flex; gap: 12px; text-align: left; background: none; border: 0; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.chapters button:hover { background: var(--surface-2); } .chapters .tnum { color: var(--brand); font-weight: 600; min-width: 48px; }
.mini-list { display: grid; gap: 10px; }
.mini-ep { display: grid; grid-template-columns: 52px 1fr; gap: 10px; text-decoration: none; align-items: center; } .mini-ep .cover { border-radius: 8px; } .mini-ep b { font-size: .88rem; font-weight: 600; } .mini-ep small { color: var(--muted); font-size: .76rem; }
.mini-ep:hover b { color: var(--brand); }
.transcript summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; } .transcript summary h3 { margin: 0; }
.transcript[open] summary { margin-bottom: 12px; }
.transcript-body { max-height: 480px; overflow-y: auto; margin-top: 10px; color: var(--text-2); }
.video-wrap { margin-top: 20px; border-radius: var(--r); overflow: hidden; background: #000; } .video-wrap video { width: 100%; max-height: 70vh; display: block; }
.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .queue li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; } .queue img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; } .queue small { display: block; color: var(--muted); }

/* ---------- player ---------- */
.player { position: fixed; z-index: 50; left: var(--side); right: 0; bottom: 0; height: var(--player); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 1.6fr) minmax(160px, 1fr); align-items: center; gap: 20px; padding: 0 20px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.player[hidden] { display: none; }
.pl-cover { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; flex: none; } .pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.player > .pl-cover { position: absolute; left: 20px; }
.pl-meta { padding-left: 66px; min-width: 0; display: grid; }
.pl-title { font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-title:hover { text-decoration: underline; }
.pl-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-program { text-decoration: none; } .pl-program:hover { color: var(--text); }
.pl-chapter { margin-left: 6px; color: var(--brand); }
.pl-center { display: grid; gap: 2px; }
.pl-controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pl-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; } .pl-play .ico { width: 18px; height: 18px; }
.pl-play:hover { transform: scale(1.05); }
.pl-rate { font-weight: 700; font-size: .8rem; width: 46px; }
.pl-queue[data-count]:not([data-count=""])::after { content: attr(data-count); position: absolute; top: 2px; right: 2px; background: var(--brand); color: var(--brand-ink); font-size: .62rem; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; display: grid; place-items: center; }
.pl-timeline { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--muted); } .pl-timeline span { min-width: 44px; } .pl-dur { text-align: right; }
.pl-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; } .pl-vol { max-width: 110px; }

/* ---------- menus, modais, toasts ---------- */
.menu-wrap { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #04121b; display: grid; place-items: center; font-size: .74rem; font-weight: 800; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 60; }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; } .menu-head small { color: var(--muted); } .menu-head .chip { justify-self: start; margin-top: 4px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; font-size: .9rem; }
.menu a:hover, .menu button:hover { background: var(--surface-2); } .menu .ico { width: 18px; color: var(--muted); }
dialog.modal { border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--text); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; box-shadow: var(--shadow); }
dialog.modal.wide { width: min(880px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(3, 6, 15, .66); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .18s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; } .modal-head h2 { font-size: 1.15rem; }
.modal-body { padding: 16px 20px 20px; display: grid; gap: 10px; }
.modal-body h3 { margin-top: 10px; }
#toasts { position: fixed; z-index: 1000; right: 20px; bottom: calc(var(--player) + 16px); display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: 380px; font-size: .9rem; animation: slide .2s ease-out; }
.toast.success .ico { color: var(--ok); } .toast.error .ico { color: var(--bad); } .toast.info .ico { color: var(--brand); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
.scrim { position: fixed; inset: 0; background: rgba(3, 6, 15, .6); z-index: 39; }

/* ---------- estúdio ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; align-content: start; }
.kpi > span { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font: 900 1.9rem/1.15 var(--display); letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: .8rem; }
.delta { font-size: .8rem; font-weight: 700; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.onboarding { margin-bottom: 20px; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(135deg, var(--brand-soft), transparent 60%), var(--surface); }
.steps { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--text-2); }
.steps.big li { padding-left: 4px; } .steps.big li .btn { margin-left: 10px; vertical-align: middle; }
.table-list { display: grid; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; text-decoration: none; }
.tl-row:hover { background: var(--surface-2); }
.tl-main { flex: 1; min-width: 0; display: grid; } .tl-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .tl-main small { color: var(--muted); }
.upcoming, .feeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upcoming li { display: grid; } .upcoming time { font-size: .78rem; color: var(--violet); font-weight: 600; } .upcoming a { text-decoration: none; font-weight: 500; }
.feeds li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
.studio-progs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.studio-progs .card + .card { margin-top: 0; }
.sp-card { display: grid; grid-template-columns: 132px 1fr; gap: 18px; }
.sp-body { display: grid; gap: 10px; align-content: start; min-width: 0; } .sp-body h3 { margin: 0; }
.prog-form-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.cover-edit { display: grid; gap: 10px; align-content: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 8px; align-items: center; font-size: .92rem; } .checklist .ok .ico { color: var(--ok); } .checklist .no { color: var(--warn); }
.dirs { padding-left: 1.2em; display: grid; gap: 10px; margin: 0; } .dirs a { display: inline-flex; gap: 6px; align-items: center; color: var(--brand); text-decoration: none; } .dirs .ico { width: 14px; } .dirs small { display: block; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.data-table .num { text-align: right; }
.data-table a { text-decoration: none; } .data-table a:hover b { color: var(--brand); }
.data-table small { color: var(--muted); }
.data-table.compact td, .data-table.compact th { padding: 8px 12px; }
.cell-ep { display: flex; gap: 12px; align-items: center; min-width: 240px; } .cell-ep div { display: grid; min-width: 0; }
.actions { white-space: nowrap; text-align: right; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.ed-main, .ed-side { display: grid; gap: 16px; } .ed-main .card + .card, .ed-side .card + .card { margin-top: 0; }
.sticky { position: sticky; top: 84px; }
.dropzone { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border: 2px dashed var(--line-2); border-radius: var(--r); text-align: center; cursor: pointer; color: var(--text-2); font-weight: 500; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone small { color: var(--muted); font-weight: 400; }
.dim { opacity: .4; pointer-events: none; }
.media-ok { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.media-ok .grow { display: grid; gap: 2px; min-width: 0; } .media-ok b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--grad); color: #04121b; display: grid; place-items: center; flex: none; }
audio.preview { width: 100%; margin-top: 12px; }
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.md-tools { display: flex; gap: 4px; margin-bottom: -2px; }
.md-tools button { width: 32px; height: 28px; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 7px; cursor: pointer; display: grid; place-items: center; font-size: .85rem; } .md-tools .ico { width: 15px; height: 15px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--brand); } .tabs .ico { width: 18px; }
.health { list-style: none; padding: 0; margin: 0; display: grid; }
.health li { display: grid; grid-template-columns: 16px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .health li:last-child { border: 0; }
.health .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); } .health .warn .dot { background: var(--warn); } .health .fail .dot { background: var(--bad); }
.hl-detail { color: var(--muted); font-size: .86rem; text-align: right; overflow-wrap: anywhere; }
.hl-hint { grid-column: 2 / -1; color: var(--muted); }
.health .fail .hl-detail { color: var(--bad); font-weight: 700; }

/* ---------- gráficos ---------- */
.chart { position: relative; min-height: 240px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--line-2); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--brand); }
.chart .hit { fill: transparent; cursor: crosshair; } .chart .hit.on { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.chart .tip { position: absolute; pointer-events: none; width: 140px; padding: 8px 10px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .8rem; display: grid; }
.chart .tip span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.table-toggle { margin-top: 12px; } .table-toggle summary { cursor: pointer; color: var(--muted); font-size: .85rem; } .table-toggle table { margin-top: 10px; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .86rem; }
.hb-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; } .hb-track i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.hb-val { font-weight: 600; } .hb-val small { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ---------- gravador ---------- */
.rec-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.rec-side { display: grid; gap: 16px; } .rec-side .card + .card { margin-top: 0; }
.console { background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 60%), var(--surface); display: grid; gap: 18px; }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rec-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 700 .74rem var(--font); letter-spacing: .14em; color: var(--muted); }
.rec-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.rec-badge.recording { color: var(--rec); border-color: color-mix(in srgb, var(--rec) 50%, transparent); background: color-mix(in srgb, var(--rec) 10%, transparent); }
.rec-badge.recording i { background: var(--rec); animation: blink 1s steps(2) infinite; }
.rec-badge.paused { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); } .rec-badge.paused i { background: var(--warn); }
.rec-time { font: 900 clamp(2.4rem, 6vw, 4.2rem)/1 var(--display); letter-spacing: -.02em; }
.wave-canvas { width: 100%; height: 160px; border-radius: 12px; background: repeating-linear-gradient(90deg, transparent 0 59px, var(--line) 59px 60px), var(--bg-2); border: 1px solid var(--line); }
.meter { position: relative; display: grid; gap: 4px; padding-right: 56px; }
.meter-track { position: relative; height: 14px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.meter-track { background: linear-gradient(90deg, #2bd99f 0 70%, #ffb547 82%, #ff4d5e 94%); }
.meter-track i { position: absolute; inset: 0 0 0 auto; width: 100%; background: var(--bg-2); opacity: .92; }
.meter-track b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); left: 0; }
.meter-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.clip { position: absolute; right: 0; top: -2px; padding: 2px 6px; border-radius: 5px; font: 800 .66rem var(--font); letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line-2); }
.clip.on { background: var(--rec); color: #fff; border-color: var(--rec); }
.meter-hint { margin: -8px 0 0; } .meter-hint.good { color: var(--ok); } .meter-hint.warn { color: var(--warn); } .meter-hint.bad { color: var(--rec); font-weight: 600; }
.transport { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.t-btn { display: grid; justify-items: center; gap: 6px; min-width: 88px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .8rem; color: var(--text-2); }
.t-btn .ico { width: 26px; height: 26px; }
.t-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--text); }
.t-btn:disabled { opacity: .4; cursor: not-allowed; }
.t-btn.rec { color: var(--rec); min-width: 110px; } .t-btn.rec .ico { width: 34px; height: 34px; }
.t-btn.rec.active { background: var(--rec); color: #fff; border-color: var(--rec); animation: glow 1.6s infinite; opacity: 1; }
.markers h3 small { font-weight: 400; }
.markers ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.markers li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; } .markers .tnum { color: var(--violet); font-weight: 700; }
.markers input { padding: 6px 10px !important; }
.pads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pad { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.pad.loaded { border-color: color-mix(in srgb, var(--violet) 50%, var(--line-2)); }
.pad-hit { width: 100%; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 0; background: none; cursor: pointer; min-height: 70px; align-content: start; }
.pad-hit:disabled { cursor: default; color: var(--muted); }
.pad-hit kbd { justify-self: start; font-size: .66rem; padding: 0 5px; }
.pad-name { font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pad-dur { color: var(--muted); font-size: .74rem; }
.pad-hit.playing { background: color-mix(in srgb, var(--violet) 22%, transparent); }
.pad-tools { display: flex; align-items: center; gap: 4px; padding: 0 8px 6px 4px; }
.takes { display: grid; gap: 14px; } .takes .card + .card { margin-top: 0; }
.take { display: grid; gap: 10px; } .take-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.take-wave { width: 100%; height: 64px; border-radius: 8px; background: var(--bg-2); }
.take audio { width: 100%; }
.up-line small { display: block; }

/* ---------- ao vivo ---------- */
.live-card { position: relative; display: grid; justify-items: center; gap: 16px; padding: 48px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); text-align: center; margin-bottom: 20px; }
.live-card.on { background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--rec) 16%, transparent), transparent 70%), var(--surface); }
.live-card video { width: 100%; max-width: 900px; border-radius: 14px; background: #000; }
.live-card .eq.big i { animation-play-state: paused; } .live-card.playing .eq.big i { animation-play-state: running; }
.live-audio { display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 520px; }
.on-air { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--rec); color: #fff; font: 800 .78rem var(--font); letter-spacing: .16em; }
.on-air i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
.on-air.off { background: var(--surface-3); color: var(--muted); } .on-air.off i { background: var(--muted); animation: none; }

/* ---------- setup ---------- */
body.setup-mode .sidebar, body.setup-mode .topbar, body.setup-mode .tabbar { display: none; }
body.setup-mode .app { grid-template-columns: 1fr; }
.setup { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 48px; align-items: center; max-width: 1080px; margin: 0 auto; }
.setup-art { display: grid; gap: 16px; } .setup-art h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); } .checks li { display: flex; gap: 10px; align-items: center; } .checks .ico { color: var(--ok); }

/* ---------- navegação inferior (mobile) ---------- */
.tabbar { display: none; }

/* ---------- animações ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pulse { color: var(--brand); } .live-dot { color: var(--rec); }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes glow { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--rec) 20%, transparent); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { opacity: 0; transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .kpis.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rec-layout, .editor { grid-template-columns: minmax(0, 1fr) 300px; }
  .player { grid-template-columns: minmax(160px, 1fr) minmax(280px, 1.6fr) auto; } .pl-vol { display: none; }
}
@media (max-width: 960px) {
  :root { --player: 132px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow); }
  body.menu-open .sidebar { transform: none; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .search kbd, .hide-sm { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; text-decoration: none; font-size: .68rem; font-weight: 600; color: var(--muted); }
  .tabbar a.active { color: var(--brand); }
  .tabbar a[hidden] { display: none; }
  body { padding-bottom: 60px; } body.has-player { padding-bottom: calc(60px + 72px); }
  .player { left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); height: 66px; border-radius: 14px; border: 1px solid var(--line-2); grid-template-columns: 1fr auto; padding: 0 10px; gap: 8px; box-shadow: var(--shadow); }
  .player > .pl-cover { position: absolute; left: 9px; width: 46px; height: 46px; }
  .pl-meta { padding-left: 56px; }
  .pl-center { display: contents; }
  .pl-controls { grid-column: 2; grid-row: 1; }
  .pl-timeline { position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; } .pl-timeline span { display: none; }
  .pl-timeline .pl-seek { height: 3px; position: absolute; inset: 0; } .pl-seek::-webkit-slider-thumb { opacity: 0; }
  .pl-right, .pl-rate, .pl-queue { display: none; }
  #toasts { left: 12px; right: 12px; bottom: calc(60px + 80px); }
  .hero { grid-template-columns: 1fr; } .hero-art { max-width: 260px; order: -1; }
  .hero::after, .show-head::after { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 40%, transparent), var(--surface) 55%); }
  .show-head { grid-template-columns: 1fr; } .show-cover { max-width: 200px; }
  .cols, .editor, .rec-layout, .setup, .grid-3 { grid-template-columns: 1fr; }
  .kpis, .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
  .data-table thead { display: none; } .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); } .data-table td { border: 0; padding: 3px 0; text-align: left !important; }
  .data-table td.actions { text-align: left; }
}
@media (max-width: 640px) {
  .grid-2, .prog-form-grid, .sp-card { grid-template-columns: 1fr; }
  .sp-card .cover { max-width: 140px; }
  .ep-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .ep-actions { grid-column: 2; } .ep-row .ep-actions .play-btn { width: 36px; height: 36px; }
  .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pads { grid-template-columns: repeat(2, 1fr); }
  .t-btn { min-width: 70px; padding: 10px 6px; }
  .kpi b { font-size: 1.5rem; }
}
.demo-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.demo-cta p { margin: 2px 0 0; max-width: 620px; }
.demo-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.demo-card > div { flex: 1; min-width: 260px; } .demo-card p { margin: 0; }

/* ---------- barras de rolagem ---------- */
/* Chrome, Edge, Safari: controle total (fina, arredondada, sem setas) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--text) 18%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--text) 32%, transparent); }
::-webkit-scrollbar-thumb:active { background-color: var(--brand); }
/* Firefox */
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent; }
  .sidebar, .chips, .tabs, .transcript-body, .menu, dialog.modal { scrollbar-color: transparent transparent; }
  .sidebar:hover, .transcript-body:hover, dialog.modal:hover { scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent; }
}
/* Barras internas só aparecem ao passar o mouse */
.sidebar::-webkit-scrollbar, .transcript-body::-webkit-scrollbar, dialog.modal::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb, .transcript-body::-webkit-scrollbar-thumb, dialog.modal::-webkit-scrollbar-thumb { background-color: transparent; border-width: 2px; }
.sidebar:hover::-webkit-scrollbar-thumb, .transcript-body:hover::-webkit-scrollbar-thumb, dialog.modal:hover::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--text) 18%, transparent); }
/* Faixas horizontais (categorias, abas) sem barra visível */
.chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chips, .tabs { scrollbar-width: none; }
/* Tabelas largas no celular rolam com barra discreta */
.card.flush { overflow-x: auto; }
