/* Studio Lirik */
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Black.otf') format('opentype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/Lora-Variable.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --night: #17142B;
  --deck: #211D39;
  --deck-2: #2A2547;
  --rule: #3B355F;
  --ink: #EDE9F8;
  --muted: #A49EC6;
  --amber: #FFB547;
  --amber-ink: #2A1A00;
  --teal: #5FD3C5;
  --pink: #FF7A9A;
  --radius-s: 6px;
  --radius-m: 10px;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --head: 'Poppins', var(--ui);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--ink); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--amber); }
h1, h2 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
kbd { font: 600 .8em var(--ui); background: var(--deck-2); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 .4em; }

/* ---------- appbar ---------- */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--rule); background: #1B1832; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.05rem var(--head); }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.brand-mark i { width: 4px; border-radius: 1px; background: var(--amber); }
.brand-mark i:nth-child(1) { height: 8px; } .brand-mark i:nth-child(2) { height: 18px; } .brand-mark i:nth-child(3) { height: 12px; background: var(--teal); } .brand-mark i:nth-child(4) { height: 6px; background: var(--teal); }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-s); }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); background: var(--deck-2); }

main { padding: 24px; }
.page { max-width: 1040px; margin: 0 auto; }
.page.narrow { max-width: 680px; }

/* ---------- form ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
label small { color: var(--muted); font-size: .8rem; }
input[type=text], input[type=password], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: var(--night); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 9px 11px; width: 100%;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--amber); }
input[type=range] { accent-color: var(--amber); width: 100%; }
input[type=color] { width: 100%; height: 38px; padding: 3px; background: var(--night); border: 1px solid var(--rule); border-radius: var(--radius-s); }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px; margin: 0 0 16px; }
fieldset > * + * { margin-top: 14px; }
legend { font: 700 .95rem var(--head); color: var(--ink); padding: 0 6px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
output { color: var(--ink); font-variant-numeric: tabular-nums; font-size: .85rem; }

.btn { font: 600 .92rem var(--ui); color: var(--ink); background: var(--deck-2); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 9px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn.primary:hover:not(:disabled) { background: #FFC56E; border-color: #FFC56E; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 11px; font-size: .84rem; }
.btn.icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--amber); border-color: var(--amber); }
.btn.icon svg { width: 18px; height: 18px; fill: var(--amber-ink); }
.btn.busy { position: relative; }
.btn.busy::after { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[aria-pressed="true"] { background: var(--teal); color: #072420; border-color: var(--teal); }

.alert { background: rgba(255, 122, 154, .12); border: 1px solid rgba(255, 122, 154, .5); color: #FFD3DD; padding: 10px 12px; border-radius: var(--radius-s); white-space: pre-line; }
.ok { background: rgba(95, 211, 197, .12); border: 1px solid rgba(95, 211, 197, .5); color: #CFF7F1; padding: 10px 12px; border-radius: var(--radius-s); }
.note { background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .45); padding: 10px 12px; border-radius: var(--radius-s); }

/* ---------- auth ---------- */
.auth { max-width: 380px; margin: 9vh auto 0; }
.auth h1 { margin-bottom: 8px; }
.auth form { margin-top: 20px; }

/* ---------- settings ---------- */
.page.narrow h1 { margin-bottom: 18px; }
.health { background: var(--deck); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px 18px; margin-bottom: 20px; }
.health h2 { margin-bottom: 8px; }
.health ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.health li { padding-left: 20px; position: relative; font-size: .9rem; }
.health li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.health li.good::before { background: var(--teal); }
.health li.warn::before { background: var(--amber); }
.health li.bad::before { background: var(--pink); }

/* ---------- daftar proyek ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { width: 200px; }
.empty { border: 1px dashed var(--rule); border-radius: var(--radius-m); padding: 36px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.empty.small { padding: 18px; text-align: left; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.project-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; background: var(--deck); border: 1px solid var(--rule); border-radius: var(--radius-m); color: var(--ink); text-decoration: none; }
.project-row:hover { border-color: var(--muted); }
.thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: var(--radius-s); background: var(--deck-2) center / cover; }
.pr-main { display: flex; flex-direction: column; min-width: 0; }
.pr-main strong { font: 700 1rem var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pr-date { font-size: .82rem; white-space: nowrap; }
.tag { font-size: .76rem; padding: 2px 8px; border-radius: 99px; background: var(--deck-2); border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.tag.warn { color: var(--amber); border-color: rgba(255, 181, 71, .5); }
.tag.state-done { color: var(--teal); border-color: rgba(95, 211, 197, .5); }
.tag.state-rendering, .tag.state-queued { color: var(--amber); border-color: rgba(255, 181, 71, .5); }
.tag.state-error { color: var(--pink); border-color: rgba(255, 122, 154, .5); }

/* ---------- studio ---------- */
main:has(.studio) { padding: 0; }
.studio { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(380px, 1fr); min-height: calc(100vh - 55px); }
.stage { padding: 18px 22px 22px; border-right: 1px solid var(--rule); position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; }
.stage-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.stage-head h1 { font-size: 1.35rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--ink); }
.save-state { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* monitor: meniru frame video 1920x1080 */
.monitor { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -18px rgba(0, 0, 0, .8); --sc: .4; container-type: inline-size; }
.mon-bg { position: absolute; inset: 0; }
.mon-bg .bg-img { position: absolute; left: 0; top: 0; width: 120%; height: 120%; object-fit: cover; will-change: transform, opacity; }
.mon-bg .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor:has(.mon-bg:empty) .mon-bg { background: #1B1830; }
.mon-shade { position: absolute; inset: 0; pointer-events: none; }
.mon-viz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mon-lyric > div { position: absolute; left: 50%; width: calc(100% - 280px * var(--sc)); text-align: center; font-family: var(--f-fam); line-height: 1.15; white-space: normal; }
.mon-lyric .cur { font-weight: var(--f-main-w); color: var(--c-text); transform: translate(-50%, -50%); }
.mon-lyric .next { font-weight: var(--f-next-w); color: var(--c-dim); transform: translate(-50%, -50%); }
.monitor.upper .mon-lyric, .monitor.upper .mon-card b { text-transform: uppercase; }
.mon-lyric .cur.karaoke .w {
  background: linear-gradient(90deg, var(--c-text) 0, var(--c-text) calc(var(--p) * 100%), var(--c-dim) calc(var(--p) * 100%), var(--c-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.monitor.outlined .mon-lyric .cur, .monitor.outlined .mon-card, .monitor.outlined .mon-corner { filter: drop-shadow(0 0 calc(3px * var(--sc)) #000) drop-shadow(calc(2px * var(--sc)) calc(2px * var(--sc)) 0 rgba(0, 0, 0, .55)); }
.monitor.outlined .mon-lyric .next { filter: drop-shadow(0 0 calc(2px * var(--sc)) #000); }
.mon-corner { position: absolute; left: calc(70px * var(--sc)); top: calc(60px * var(--sc)); font-family: var(--f-fam); color: var(--c-text); line-height: 1.25; opacity: 0; }
.mon-corner b { display: block; font-weight: var(--f-main-w); font-size: calc(40px * var(--sc)); letter-spacing: calc(1px * var(--sc)); }
.mon-corner span { display: block; font-weight: var(--f-next-w); font-size: calc(30px * var(--sc)); opacity: .75; }
.mon-card { position: absolute; left: 50%; top: calc(540px * var(--sc)); width: 85%; text-align: center; font-family: var(--f-fam); opacity: 0; transform: translate(-50%, -50%); }
.mon-card b { display: block; font-weight: var(--f-main-w); font-size: calc(120px * var(--sc)); color: var(--c-text); letter-spacing: calc(2px * var(--sc)); line-height: 1.1; }
.mon-card span { display: block; font-weight: var(--f-next-w); font-size: calc(52px * var(--sc)); color: var(--c-accent); letter-spacing: calc(6px * var(--sc)); margin-top: calc(24px * var(--sc)); }
.mon-progress { position: absolute; left: 0; bottom: 0; height: calc(6px * var(--sc)); min-height: 2px; width: 0; }
.mon-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; background: var(--deck); }

.transport { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.clock { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.clock #tNow { color: var(--ink); }
.transport input[type=range] { flex: 1; }

/* timeline lirik — elemen khas */
.timeline { position: relative; height: 64px; border-radius: var(--radius-s); background:
  repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.05) calc(10% - 1px) 10%), #120F24;
  box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; touch-action: none; user-select: none; }
.tl-track { position: absolute; inset: 10px 0; }
.tl-block { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgba(95, 211, 197, .22); border: 1px solid var(--teal); border-left-width: 3px; border-right-width: 3px; overflow: hidden; cursor: grab; }
.tl-block span { display: block; font-size: 11px; line-height: 1.25; padding: 3px 4px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tl-block.c-mid { background: rgba(255, 181, 71, .2); border-color: var(--amber); }
.tl-block.c-low { background: rgba(255, 122, 154, .22); border-color: var(--pink); }
.tl-block.sel { background: rgba(255, 255, 255, .22); border-color: #fff; z-index: 2; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--amber); pointer-events: none; z-index: 3; }
.tl-head::before { content: ''; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top-color: var(--amber); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* panel kanan */
.panel { padding: 0 0 40px; min-width: 0; }
.tabs { display: flex; position: sticky; top: 0; z-index: 5; background: var(--night); border-bottom: 1px solid var(--rule); padding: 0 12px; }
.tabs [role=tab] { font: 600 .95rem var(--ui); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 14px 12px; cursor: pointer; position: relative; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--amber); }
.tabs [role=tab][data-badge]:not([data-badge=""])::after { content: attr(data-badge); font-size: .7rem; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: var(--amber); color: var(--amber-ink); }
.pane { padding: 18px 22px; }
.block { margin-top: 22px; }
.block h2 { margin-bottom: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.row-between h2 { margin: 0; }
.block textarea { margin-bottom: 12px; }

.drop { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px dashed var(--rule); border-radius: var(--radius-m); padding: 18px; background: var(--deck); cursor: pointer; color: var(--ink); }
.drop:hover, .drop.over { border-color: var(--amber); }
.drop.filled { border-style: solid; }
.drop.filled .drop-main::before { content: '♪ '; color: var(--teal); }
.drop.compact { padding: 12px 16px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-main { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.drop-sub { font-size: .82rem; color: var(--muted); }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--deck-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .25s; }
.bar.big { height: 10px; border-radius: 5px; margin: 12px 0 6px; }

.bg-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.bg-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px; background: var(--deck); border-radius: var(--radius-s); }
.bg-list li.none { display: block; background: none; padding: 4px 0; }
.bg-list img { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.vid-badge { width: 64px; aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: .72rem; background: var(--deck-2); border-radius: 4px; color: var(--teal); }
.bg-name { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-tools, .lr-tools { display: flex; gap: 2px; }
.bg-tools button, .lr-tools button { font: 600 .85rem var(--ui); width: 28px; height: 28px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.bg-tools button:hover:not(:disabled), .lr-tools button:hover { color: var(--ink); background: var(--deck-2); border-color: var(--rule); }
.bg-tools button.danger:hover, .lr-tools button.danger:hover { color: var(--pink); }
.bg-tools button:disabled { opacity: .3; }

/* editor baris */
.sync-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 10px 0 12px; }
.shift { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shift input { width: 76px; padding: 5px 8px; }
.tap-banner { background: rgba(95, 211, 197, .1); border: 1px solid rgba(95, 211, 197, .5); border-radius: var(--radius-s); padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.tap-next { margin-top: 6px; font: 700 1rem var(--head); }
.lines { display: grid; gap: 4px; margin-bottom: 12px; }
.line-row { display: grid; grid-template-columns: 30px auto minmax(0, 1fr); grid-template-areas: "play times tools" "text text text"; align-items: center; gap: 2px 6px; padding: 4px 4px 4px 6px; border-radius: var(--radius-s); border-left: 3px solid var(--teal); background: var(--deck); }
.line-row .lr-play { grid-area: play; }
.line-row .lr-times { grid-area: times; }
.line-row .lr-tools { grid-area: tools; justify-content: flex-end; }
.line-row .lr-text { grid-area: text; font-size: .98rem; }
.line-row.c-mid { border-left-color: var(--amber); }
.line-row.c-low { border-left-color: var(--pink); }
.line-row.playing { background: var(--deck-2); box-shadow: inset 0 0 0 1px var(--rule); }
.line-row.sel { box-shadow: inset 0 0 0 1px var(--amber); }
.lr-play { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lr-play svg { width: 11px; height: 11px; fill: var(--ink); }
.lr-play:hover { background: var(--amber); border-color: var(--amber); }
.lr-play:hover svg { fill: var(--amber-ink); }
.lr-times { display: flex; gap: 4px; }
.tin { width: 76px !important; padding: 5px 6px !important; font-variant-numeric: tabular-nums; font-size: .83rem !important; text-align: center; background: transparent !important; border-color: transparent !important; }
.tin:hover, .tin:focus { border-color: var(--rule) !important; background: var(--night) !important; }
.lr-text { padding: 6px 8px !important; background: transparent !important; border-color: transparent !important; }
.lr-text:hover, .lr-text:focus { border-color: var(--rule) !important; background: var(--night) !important; }

/* render */
.render-box { background: var(--deck); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 18px; }
.render-msg { font-weight: 600; }
.render-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
#outVideo { width: 100%; margin-top: 14px; border-radius: var(--radius-s); background: #000; aspect-ratio: 16 / 9; }
details { margin-top: 12px; }
summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
pre { white-space: pre-wrap; word-break: break-all; font-size: .76rem; background: var(--night); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 10px; max-height: 280px; overflow: auto; }
.checklist { margin-top: 22px; }
.checklist h2 { margin-bottom: 8px; }
.checklist ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--deck-2); border: 1px solid var(--rule); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s); max-width: min(560px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; font-size: .9rem; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-color: var(--pink); }

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .stage { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  main { padding: 16px; }
  .appbar { padding: 10px 16px; }
  .stage, .pane { padding-left: 16px; padding-right: 16px; }
  .project-row { grid-template-columns: 72px minmax(0, 1fr); }
  .thumb { width: 72px; }
  .pr-meta, .pr-date { grid-column: 2; justify-content: flex-start; }
  .line-row { grid-template-areas: "play times times" "text text text" "tools tools tools"; }
  .inline-form input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.danger-zone .btn:hover { color: var(--pink); border-color: var(--pink); }

/* daftar lagu */
.track-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.track-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 6px; background: var(--deck); border-radius: var(--radius-s); }
.tr-num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .82rem; text-align: right; }
.tr-title { padding: 6px 8px !important; background: transparent !important; border-color: transparent !important; }
.tr-title:hover, .tr-title:focus { border-color: var(--rule) !important; background: var(--night) !important; }
.mix-opts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }
.mix-opts input { width: 72px; padding: 5px 8px; }
.mix-msg { margin: 10px 0 0; color: var(--teal); }
.mix-msg.bad { color: var(--pink); white-space: pre-line; }
.mix-msg:empty { display: none; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }

/* teks di monitor */
.mon-overlay, .mon-np { position: absolute; font-family: var(--f-fam); color: var(--c-text); opacity: 0; line-height: 1.2; max-width: 70%; }
.mon-overlay { font-weight: var(--f-main-w); letter-spacing: calc(2px * var(--sc)); }
.mon-np { font-weight: var(--f-main-w); font-size: calc(38px * var(--sc)); }
.mon-np small { display: block; font-weight: var(--f-next-w); font-size: calc(24px * var(--sc)); opacity: .7; }
.pos-top-left { left: calc(70px * var(--sc)); top: calc(60px * var(--sc)); }
.pos-top-right { right: calc(70px * var(--sc)); top: calc(60px * var(--sc)); text-align: right; }
.pos-top-center { left: 50%; top: calc(60px * var(--sc)); transform: translateX(-50%); text-align: center; }
.pos-bottom-left { left: calc(70px * var(--sc)); bottom: calc(60px * var(--sc)); }
.pos-bottom-right { right: calc(70px * var(--sc)); bottom: calc(60px * var(--sc)); text-align: right; }
.monitor.outlined .mon-overlay, .monitor.outlined .mon-np { filter: drop-shadow(0 0 calc(2px * var(--sc)) #000); }

.tl-song { position: absolute; top: -6px; bottom: -6px; border-left: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.03); cursor: pointer; overflow: hidden; }
.tl-song:nth-child(even) { background: rgba(255,255,255,.07); }
.tl-song span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 10px); pointer-events: none; }
