
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f1f1f1;
  background: #171717;
}
* { box-sizing: border-box; }
body { margin: 0; background: #171717; color: #f1f1f1; }
button, input, select, textarea { font: inherit; }
button, select, input, textarea {
  border: 1px solid #575757;
  border-radius: 8px;
  background: #272727;
  color: #f1f1f1;
}
button { padding: 8px 11px; cursor: pointer; }
button:hover { background: #343434; }
button.primary { background: #6d4427; border-color: #8a5a36; }
button.primary:hover { background: #7d4d2d; }
button.small { padding: 6px 8px; font-size: 12px; }
button.danger { color: #ffb5b5; }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea { padding: 8px; width: 100%; }
input[type="range"] { padding: 0; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #cfcfcf; }
#app { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(17,17,17,.96);
  border-bottom: 1px solid #383838;
  backdrop-filter: blur(8px);
}
h1 { margin: 0; font-size: 20px; }
.eyebrow { color: #b88a62; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.panel { margin: 10px; padding: 11px; background: #202020; border: 1px solid #343434; border-radius: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 14px; }
.grow { flex: 1; }
.section-title { color: #aaa; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.track-title { font-size: 17px; font-weight: 750; margin-top: 3px; }
.muted, .help { color: #aaa; font-size: 12px; }
.status { margin-top: 8px; font-size: 12px; }
.status.good { color: #a8dda8; }
.status.warn { color: #e4c48a; }
.status.bad { color: #ff9c9c; }
.track-list { padding: 0 10px 16px; display: flex; flex-direction: column; gap: 8px; }
.track-card {
  background: #202020; border: 1px solid #353535; border-radius: 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch;
  overflow: hidden;
}
.track-play { padding: 11px; cursor: pointer; }
.track-play:hover { background: #292929; }
.track-actions { display: flex; flex-direction: column; border-left: 1px solid #353535; }
.track-actions button { border: 0; border-radius: 0; min-width: 58px; height: 50%; font-size: 11px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.tag { font-size: 10px; border: 1px solid #555; border-radius: 999px; padding: 2px 6px; color: #bbb; }
.hidden { display: none !important; }
dialog { width: min(390px, calc(100vw - 24px)); background: #1f1f1f; color: #eee; border: 1px solid #555; border-radius: 12px; }
dialog::backdrop { background: rgba(0,0,0,.72); }
dialog label { margin: 10px 0; }
dialog h2 { margin-top: 0; }

.cinematic-panel label { margin-top: 9px; }
.cinematic-options { align-items: flex-end; margin-top: 2px; }
.cinematic-actions {
  display: grid;
  grid-template-columns: 1.25fr 1.1fr auto;
  gap: 7px;
  margin-top: 11px;
}
.cinematic-actions button { min-height: 38px; }
.compact-help { margin: 8px 0 0; }
#cinematicStatus.active { color: #e4c48a; }
#cinematicStatus.good { color: #a8dda8; }

.cinematic-fit-option { margin-top: 10px; }
.check-row { display:flex; flex-direction:row; align-items:center; gap:8px; color:#d6d6d6; line-height:1.3; }
.check-row input[type="checkbox"] { width:auto; flex:0 0 auto; margin:0; }
