*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#0a0a0a;color:#fff;min-height:100vh}.App{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#0a0a0a,#1a1a1a)}.app-header{padding:30px 40px 20px;background-color:#0000004d;border-bottom:1px solid #333;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.app-title{font-size:32px;font-weight:700;letter-spacing:-.5px;margin:0 0 10px;background:linear-gradient(135deg,#4a9eff,#7b68ee);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.app-subtitle{font-size:14px;color:#888;font-weight:400}.app-content{flex:1;padding:40px 40px 60px;max-width:1400px;width:100%;margin:0 auto}.controls-section{display:flex;gap:30px;margin-bottom:40px;padding:25px;background-color:#1e1e1e99;border-radius:12px;border:1px solid #333;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);align-items:center;justify-content:center;flex-wrap:wrap;position:sticky;top:0;z-index:1000}.transport-wrapper{display:flex;gap:15px}.divider{width:1px;background-color:#444;align-self:stretch}.sequencer-section{background-color:#1e1e1e99;border-radius:12px;padding:30px 30px 30px 0;border:1px solid #333;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overflow-x:auto;scroll-behavior:smooth}.sequencer-inner{display:flex;flex-direction:column;width:max-content}.sequencer-header{padding-bottom:15px;padding-left:30px;border-bottom:1px solid #333;display:flex;align-items:center;justify-content:space-between}.sequencer-title{font-size:18px;font-weight:600;color:#fff;margin-bottom:5px}.sequencer-subtitle{font-size:13px;color:#888}.sequencer-header .clear-button{position:sticky;right:0;z-index:10}.sequencer-inner-header{position:sticky;left:30px;z-index:10}.track-row{display:flex;align-items:center;gap:0;flex-wrap:nowrap;margin-bottom:0;padding:0;border-bottom:1px solid rgba(68,68,68,.9);width:max-content}.track-row:last-child{border-bottom:none;margin-bottom:0}.track-label-wrapper{height:101px;border-right:1px solid rgba(255,255,255);background-color:#1a1a1a;width:150px;display:flex;align-items:center;justify-content:center;position:sticky;left:0;z-index:1000}.track-label{min-width:100px;font-size:8px;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:1px;padding:10px 15px;background:linear-gradient(135deg,#4a9eff1a,#7b68ee1a);border-radius:6px;border:1px solid rgba(74,158,255,.2);text-align:center}.beats-container{display:flex;height:100%;flex-wrap:nowrap;gap:0;justify-content:flex-start;padding:0;background-color:transparent;border-radius:0;flex:1}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;gap:20px}.loading-spinner{width:50px;height:50px;border:3px solid #333;border-top:3px solid #4a9eff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{font-size:16px;color:#888}@media(max-width:1200px){.beats-container{flex-wrap:nowrap}}@media(max-width:768px){.app-header{padding:20px 20px 15px}.sequencer-inner-header{position:sticky;left:30px;z-index:10;margin-bottom:5px}.sequencer-header .clear-button{position:sticky;left:30px;z-index:10}.app-title{font-size:24px}.app-content{padding:20px}.controls-section{flex-direction:column;gap:20px;position:static}.divider{width:100%;height:1px}.sequencer-section{padding:20px 20px 20px 0}.beats-container{padding:0}.track-label-wrapper{width:80px}.track-label{min-width:65px;max-width:65px;font-size:6px}}.bpm-control{display:flex;align-items:center;gap:12px}.bpm-control label{font-size:14px;font-weight:600;color:#ccc;min-width:40px}.bpm-input{width:65px;padding:8px 10px;font-size:16px;font-weight:600;background-color:#1a1a1a;border:1px solid #444;border-radius:6px;color:#fff;text-align:center;transition:all .2s}.bpm-input:hover{border-color:#666}.bpm-input:focus{outline:none;border-color:#4a9eff;box-shadow:0 0 0 3px #4a9eff1a}.bpm-slider{flex:1;min-width:200px;max-width:300px;height:6px;-webkit-appearance:none;appearance:none;background:#333;border-radius:3px;outline:none;cursor:pointer}.bpm-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;background:#4a9eff;border-radius:50%;cursor:pointer;box-shadow:0 2px 8px #4a9eff66;transition:all .2s}.bpm-slider::-webkit-slider-thumb:hover{transform:scale(1.2);box-shadow:0 3px 12px #4a9eff99}.bpm-slider::-moz-range-thumb{width:18px;height:18px;background:#4a9eff;border:none;border-radius:50%;cursor:pointer;box-shadow:0 2px 8px #4a9eff66;transition:all .2s}.bpm-slider::-moz-range-thumb:hover{transform:scale(1.2);box-shadow:0 3px 12px #4a9eff99}.transport-controls{display:flex;gap:10px}.transport-controls button{padding:10px 24px;font-size:14px;font-weight:600;border:none;border-radius:6px;cursor:pointer;transition:all .2s;font-family:inherit;text-transform:uppercase;letter-spacing:.5px}.transport-controls button:disabled{opacity:.4;cursor:not-allowed}.transport-controls button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000004d}.transport-controls button:not(:disabled):active{transform:translateY(0)}.transport-controls button:first-child{background-color:#4a9eff;color:#fff}.transport-controls button:first-child:not(:disabled):hover{background-color:#6ab0ff}.transport-controls button:last-child{background-color:#333;color:#fff;border:1px solid #555}.transport-controls button:last-child:not(:disabled):hover{background-color:#444;border-color:#666}.bpm-control{display:flex;align-items:center;gap:10px}.bpm-input{width:60px;padding:5px;font-size:16px}.bpm-slider{flex:1;min-width:150px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.beat-container{display:flex;flex-direction:column;gap:12px;padding:20px;background-color:transparent;width:100%;position:relative}.beat-container:not(:last-child){border-right:2px solid #444}.beat-header{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between}.beat-label{font-size:10px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:1px}.beat-label--measure-start{color:#4a9eff}.beat-type-toggle{padding:4px 6px;border-radius:6px;border:1px solid #444;background-color:#1a1a1a;color:#fff;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s;width:30px;text-align:center}.beat-type-toggle:hover{background-color:#252525;border-color:#4a9eff}.beat-type-toggle:focus{outline:none;border-color:#4a9eff;box-shadow:0 0 0 3px #4a9eff1a}.beat-grid{display:flex;gap:10px;justify-content:space-evenly;flex:1;min-width:230px}.beat-cell{width:25px;height:25px;border:2px solid #333;border-radius:6px;background-color:#0a0a0a;cursor:pointer;transition:all .15s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.beat-cell:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#4a9eff1a,#7b68ee1a);opacity:0;transition:opacity .2s}.beat-cell:hover:before{opacity:1}.beat-cell:hover{border-color:#555;transform:translateY(-2px)}.beat-cell:active{transform:translateY(0) scale(.95)}.beat-cell--active{background:linear-gradient(135deg,#4a9eff,#5aa3ff);border-color:#4a9eff;box-shadow:0 0 20px #4a9eff4d}.beat-cell--active:before{background:linear-gradient(135deg,#fff3,#ffffff1a)}.beat-cell--active:hover{background:linear-gradient(135deg,#6ab0ff,#7ab8ff);border-color:#6ab0ff;transform:translateY(-3px);box-shadow:0 4px 24px #4a9eff66}.beat-cell--playing{animation:pulse-playing .4s cubic-bezier(.4,0,.2,1)}.beat-cell--active.beat-cell--playing{background:linear-gradient(135deg,#fff,#e0e0e0);border-color:#fff;box-shadow:0 0 30px #fff9,0 0 60px #4a9eff66}@keyframes pulse-playing{0%{transform:scale(1)}40%{transform:scale(1.15)}to{transform:scale(1)}}.beat-cell:focus{outline:none;border-color:#4a9eff;box-shadow:0 0 0 3px #4a9eff33}.beat-cell:focus:not(:focus-visible){outline:none;box-shadow:none}.rhythm-grid-container{position:relative;width:100%}.rhythm-grid{display:flex;gap:10px;justify-content:space-evenly;flex:1;min-width:230px}.rhythm-cell{width:25px;height:25px;border:2px solid #333;border-radius:6px;background-color:#0a0a0a;opacity:.4}.rhythm-grid-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background-color:transparent;opacity:0;transition:opacity .2s ease;pointer-events:none}.rhythm-grid-overlay:hover{opacity:1;background-color:#4a9eff1a;pointer-events:auto}.rhythm-grid-overlay button{padding:8px 16px;background-color:#4a9eff;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 0 20px #4a9eff4d;pointer-events:auto;width:100%}.rhythm-grid-overlay button:hover{background-color:#6ab0ff;transform:translateY(-1px);box-shadow:0 4px 24px #4a9eff66}.rhythm-cell--active{background-color:#4a9eff;opacity:.6;border-color:#4a9eff}.rhythm-cell--playing{background-color:#fff;opacity:1;box-shadow:0 0 12px #fff9}@media(max-width:768px){.beat-container{padding:15px 20px}.beat-container:not(:last-child){border-right:none;padding-right:0;padding-bottom:20px;margin-right:0}.beat-cell{width:25px;height:25px}.beat-grid{min-width:150px;gap:8px}.rhythm-grid{gap:8px;min-width:150px}.rhythm-grid-overlay{opacity:1;background-color:#4a9eff0d;pointer-events:auto}.rhythm-cell{width:25px;height:25px}}.footer-section{padding-top:1.75rem;padding-bottom:.75rem;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1.25rem;border-top:1px solid #1f1f1f}.footer-text{color:#b3b3b3;display:flex;gap:.5rem}.clear-button{padding:10px 24px;font-size:10px;font-weight:600;border:none;border-radius:6px;cursor:pointer;transition:all .2s;font-family:inherit;text-transform:uppercase;letter-spacing:.5px;background-color:#ff4a4a;color:#fff}.clear-button:hover{background-color:#ff6a6a;transform:translateY(-1px);box-shadow:0 4px 12px #ff4a4a4d}.clear-button:active{transform:translateY(0)}.clear-button:focus{outline:none;box-shadow:0 0 0 3px #ff4a4a33}.modal-backdrop{position:fixed;inset:0;background-color:#000000d9;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-container{background-color:#1a1a1a;border:2px solid #333;border-radius:8px;padding:24px;max-width:90%;width:900px;max-height:90vh;overflow-y:auto;box-shadow:0 8px 32px #0009}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:2px solid #333;padding-bottom:12px}.modal-title{margin:0;font-size:20px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:1px}.close-button{background:none;border:none;font-size:28px;cursor:pointer;color:#888;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:color .2s}.close-button:hover{color:#fff}.measure-navigation{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding:12px;background-color:#0a0a0a;border:1px solid #333;border-radius:6px}.nav-button{padding:8px 16px;background-color:#4a9eff;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s}.nav-button:hover{background-color:#6ab0ff;transform:translateY(-1px);box-shadow:0 4px 12px #4a9eff4d}.nav-button:disabled{background-color:#333;color:#666;cursor:not-allowed;transform:none}.measure-display{font-weight:700;font-size:14px;color:#fff;text-transform:uppercase;letter-spacing:1px}.octave-controls{display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:24px;padding:12px;background-color:#0a0a0a;border:1px solid #333;border-radius:6px}.octave-button{padding:8px 16px;background-color:#28a745;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:18px;font-weight:600;min-width:50px;transition:all .2s}.octave-button:hover{background-color:#34d058;transform:translateY(-1px);box-shadow:0 4px 12px #28a7454d}.octave-button:disabled{background-color:#333;color:#666;cursor:not-allowed;transform:none}.octave-display{font-weight:700;font-size:14px;color:#fff;min-width:100px;text-align:center;text-transform:uppercase;letter-spacing:1px}.piano-roll-grid{display:flex;gap:0;background-color:#0a0a0a;border:2px solid #333;border-radius:6px;overflow-x:auto;padding:8px}.note-labels{display:flex;flex-direction:column;gap:2px;padding-right:8px;border-right:2px solid #333;flex-shrink:0}.note-label{height:30px;width:40px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;background-color:#1a1a1a;border-radius:4px;text-transform:uppercase}.grid-area{display:flex;flex-direction:column;gap:2px;flex:1}.grid-row{display:flex;gap:0;height:30px;width:100%}.beat-column{display:flex;flex:1;gap:2px;justify-content:space-evenly;padding:0 8px;position:relative;min-width:25%}.beat-column:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:2px;height:80%;background-color:#666}.beat-column:last-child:after{display:none}.grid-cell{width:30px;height:30px;flex-shrink:0;background-color:#0a0a0a;border:1px solid #333;border-radius:3px;cursor:pointer;transition:all .15s cubic-bezier(.4,0,.2,1)}.grid-cell:hover{border-color:#555;background-color:#1a1a1a}.grid-cell--active{background:linear-gradient(135deg,#4a9eff,#5aa3ff);border-color:#4a9eff;box-shadow:0 0 12px #4a9eff4d}.grid-cell--active:hover{background:linear-gradient(135deg,#6ab0ff,#7ab8ff);border-color:#6ab0ff;box-shadow:0 0 16px #4a9eff66}@media(max-width:768px){.modal-container{max-height:90%;padding:12px}.piano-roll-grid{min-height:100%};.note-label{font-size:10px}.measure-display{font-weight:700;font-size:8px}.octave-display{font-size:8px}.octave-controls{max-height:40%;margin-bottom:8px}.octave-button{font-size:8px;min-width:15%;padding:4px 8px}.measure-navigation{max-height:40%;margin-bottom:8px}.nav-button{font-size:8px;min-width:15%;padding:4px 8px}}
