:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: #07080d; }
#app { height: 100dvh; position: relative; }
#visualization-stage { position: relative; z-index: 0; width: 100%; height: calc(100dvh - var(--panel-bottom, 102px) - 10px); margin-top: var(--stage-gap, 28px); overflow: hidden; }
#canvas-host, canvas { width: 100%; height: 100%; }
canvas { display: block; position: relative; z-index: 0; cursor: crosshair; }
.control-panel { position: relative; top: 18px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 28px); padding: 8px 10px 8px 14px; border: 1px solid rgba(187, 201, 255, .16); border-radius: 15px; background: rgba(10, 12, 22, .96); backdrop-filter: blur(18px); box-shadow: 0 12px 45px rgba(0, 0, 0, .38); transition: opacity .8s ease; }
.control-panel.dim { opacity: .48; }
.control-panel:hover, .control-panel:focus-within { opacity: 1; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #dce2fb; font-size: 13px; letter-spacing: .02em; font-weight: 650; }
.brand-mark { width: 8px; height: 8px; border-radius: 50%; background: #a77cff; box-shadow: 0 0 14px #a77cff; }
.mode-switcher, .type-switcher { display: flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .055); }
.trajectory-controls { display: flex; align-items: center; gap: 8px; }
.music-settings { display: grid; gap: 7px; padding: 7px 9px 8px; border: 1px solid rgba(174, 131, 255, .18); border-radius: 11px; background: rgba(115, 80, 184, .08); }
.music-settings-title { color: #d7c8ff; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
button, .file-button { border: 0; color: #bdc4dc; background: transparent; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
button:hover, .file-button:hover { color: white; background: rgba(255, 255, 255, .10); }
button.active { background: rgba(143, 106, 255, .25); color: #f4efff; box-shadow: inset 0 0 0 1px rgba(181, 151, 255, .18); }
button:disabled { cursor: not-allowed; opacity: .4; }
.music-controls, .music-tuning { display: flex; align-items: center; gap: 5px; }
.range-control { display: grid; gap: 2px; min-width: 104px; color: #aeb7d4; font-size: 10px; line-height: 1.15; }
.range-control > span { white-space: nowrap; }
.range-control input { accent-color: #ad83ff; width: 100%; margin: 0; }
.range-control small { display: flex; justify-content: space-between; color: #7f89a7; font-size: 9px; font-style: normal; }
.range-control small i { font-style: normal; }
.range-control output { position: absolute; margin: 13px 0 0 108px; color: #e6d8ff; font-size: 11px; }
.drop-toggle { display: flex; align-items: center; gap: 4px; max-width: 165px; color: #aeb7d4; font-size: 10px; line-height: 1.2; }
.drop-toggle input { accent-color: #ad83ff; }
#audio-file { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-button { color: #cfc0ff; background: rgba(151, 110, 255, .12); }
.audio-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aeb7d4; font-size: 11px; }
.volume-control { display: flex; align-items: center; gap: 6px; padding: 0 5px; font-size: 10px; color: #9199b3; }
.volume-control input { accent-color: #ad83ff; width: 72px; }
.audio-indicators { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr); gap: 7px; }
.audio-indicator { display: grid; gap: 4px; min-width: 0; color: #9da7c5; font-size: 9px; line-height: 1; }
.vu-track, .frequency-track { position: relative; display: flex; height: 7px; overflow: hidden; border: 1px solid rgba(202, 211, 242, .14); border-radius: 99px; background: rgba(3, 4, 9, .72); }
.vu-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #58c979 0%, #c9db55 43%, #f1ae45 67%, #ed5d4c 100%); transition: width 60ms linear; }
.vu-peak { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #fff0be; box-shadow: 0 0 3px rgba(255, 232, 172, .65); transition: left 80ms linear; }
.frequency-band { display: block; height: 100%; flex: 0 0 33.333%; opacity: .22; transition: flex-basis 110ms ease-out, opacity 110ms ease-out; }
.frequency-band.bass { background: linear-gradient(90deg, #a83f4b, #ed7144); }
.frequency-band.mid { background: linear-gradient(90deg, #3faa75, #56cfc1); }
.frequency-band.high { background: linear-gradient(90deg, #4f8fda, #9a6bd5); }
.reset { color: #f0d9ff; }
.status-panel { position: fixed; z-index: 2; left: 22px; bottom: 21px; color: rgba(204, 213, 242, .62); font-size: 11px; line-height: 1.65; letter-spacing: .025em; pointer-events: none; text-shadow: 0 1px 8px #000; }
.hint-panel { position: fixed; z-index: 2; right: 22px; bottom: 22px; color: rgba(204, 213, 242, .45); font-size: 10px; letter-spacing: .03em; pointer-events: none; }
@media (max-width: 760px) { .control-panel { top: 10px; gap: 5px; padding: 6px; flex-wrap: wrap; justify-content: center; width: calc(100vw - 18px); } .brand { font-size: 11px; } .mode-switcher button, .type-switcher button, button, .file-button { font-size: 11px; padding: 6px 7px; } .trajectory-controls, .music-controls, .music-tuning { width: 100%; justify-content: center; flex-wrap: wrap; } .music-settings { width: 100%; } .audio-indicators { grid-template-columns: 1fr; width: 100%; } .amplitude-control, .length-control, .ratio-control { min-width: 112px; } .status-panel { left: 14px; bottom: 13px; } .hint-panel { display: none; } }
