Spaces:
Running on Zero
Running on Zero
File size: 8,427 Bytes
b7f3d13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | :root {
color-scheme: dark;
--ink: #f8fafc;
--muted: #94a3b8;
--panel: rgba(17, 24, 39, 0.82);
--line: rgba(148, 163, 184, 0.16);
--violet: #8b5cf6;
--cyan: #22d3ee;
}
* { box-sizing: border-box; }
.midi-app {
min-height: 100%;
color: var(--ink);
padding: 34px clamp(16px, 4vw, 54px) 22px;
border-radius: 24px;
overflow: hidden;
background:
radial-gradient(circle at 8% 2%, rgba(139, 92, 246, .20), transparent 28%),
radial-gradient(circle at 92% 12%, rgba(34, 211, 238, .11), transparent 24%),
linear-gradient(155deg, #080b12 0%, #0d1220 52%, #090c14 100%);
border: 1px solid rgba(255, 255, 255, .06);
box-shadow: 0 24px 80px rgba(2, 6, 23, .35);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { color: inherit; }
.hero { display: flex; align-items: center; gap: 17px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1; margin: 3px 0 8px; letter-spacing: -.04em; }
.eyebrow, .file-kicker, .section-label { margin: 0; color: #a78bfa; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.subtitle { margin: 0; color: var(--muted); font-size: 14px; }
.brand-mark { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 12px; background: linear-gradient(145deg, #7c3aed, #4338ca); box-shadow: 0 11px 35px rgba(124, 58, 237, .4); }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: white; animation: meter 1.4s ease-in-out infinite alternate; }
.brand-mark span:nth-child(1) { height: 45%; animation-delay: -.8s; }
.brand-mark span:nth-child(2) { height: 90%; animation-delay: -.3s; }
.brand-mark span:nth-child(3) { height: 65%; animation-delay: -.6s; }
.brand-mark span:nth-child(4) { height: 35%; animation-delay: -.1s; }
@keyframes meter { to { height: 25%; opacity: .65; } }
.status-pill { margin-left: auto; align-self: flex-start; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(52, 211, 153, .18); border-radius: 999px; color: #6ee7b7; background: rgba(6, 78, 59, .18); font-size: 11px; font-weight: 700; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.drop-zone { min-height: 118px; padding: 24px; display: flex; align-items: center; gap: 18px; border: 1px dashed rgba(167, 139, 250, .46); border-radius: 18px; background: rgba(76, 29, 149, .08); cursor: pointer; transition: .2s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: #a78bfa; background: rgba(124, 58, 237, .14); transform: translateY(-1px); }
.drop-icon { width: 47px; height: 47px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: rgba(139, 92, 246, .17); color: #c4b5fd; font-size: 28px; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone strong { font-size: 15px; margin-bottom: 5px; }
.drop-zone span { color: var(--muted); font-size: 12px; }
.browse-button, .reset-mix { margin-left: auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .055); cursor: pointer; white-space: nowrap; }
.browse-button:hover, .reset-mix:hover { background: rgba(139, 92, 246, .16); border-color: rgba(167, 139, 250, .45); }
.message-panel { display: none; margin: 18px 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(15, 23, 42, .6); font-size: 13px; }
.message-panel.visible { display: block; }
.message-panel.error { color: #fecdd3; border-color: rgba(251, 113, 133, .34); background: rgba(136, 19, 55, .16); }
.message-panel.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; border: 2px solid #a78bfa; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace { margin-top: 26px; }
.file-heading, .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.song-title { margin: 4px 0 3px; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.025em; }
.file-name { margin: 0; color: var(--muted); font-size: 12px; }
.meta-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.meta-badge { padding: 6px 9px; color: #cbd5e1; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .035); font-size: 11px; }
.transport { margin: 20px 0 16px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }
.play-button, .icon-button { border: 0; cursor: pointer; display: grid; place-items: center; }
.play-button { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; padding-left: 3px; background: linear-gradient(145deg, #8b5cf6, #6d28d9); box-shadow: 0 7px 20px rgba(124, 58, 237, .36); }
.icon-button { width: 30px; height: 30px; border-radius: 8px; color: #94a3b8; background: transparent; }
.icon-button:hover { background: rgba(255, 255, 255, .06); color: white; }
.current-time, .duration { min-width: 46px; color: #cbd5e1; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.duration { color: #64748b; }
input[type="range"] { accent-color: var(--violet); cursor: pointer; }
.seek { min-width: 90px; flex: 1; }
.compact-control { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.compact-control select { color: #e2e8f0; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; background: #131a29; }
.volume-control { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.volume { width: 74px; }
.visualizer-card, .tracks-card { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 23, 42, .61); }
.card-heading { margin-bottom: 14px; }
.card-heading > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.zoom-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.zoom { width: 80px; }
.piano-roll { display: block; width: 100%; height: 300px; border-radius: 10px; background: #070b13; cursor: crosshair; }
.canvas-hint { margin: 8px 0 0; color: #64748b; font-size: 10px; text-align: right; }
.reset-mix { font-size: 11px; }
.track-list { display: grid; gap: 8px; }
.track-row { padding: 10px 12px; display: grid; grid-template-columns: 8px minmax(120px, 1.5fr) minmax(100px, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(148, 163, 184, .11); border-radius: 11px; background: rgba(255, 255, 255, .025); }
.track-color { width: 5px; height: 34px; border-radius: 999px; box-shadow: 0 0 12px currentColor; }
.track-name { overflow: hidden; }
.track-name strong, .track-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-name strong { font-size: 12px; }
.track-name span, .track-stats { margin-top: 3px; color: var(--muted); font-size: 10px; }
.track-buttons { display: flex; gap: 5px; }
.mix-button { width: 31px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.mix-button.active { color: white; border-color: var(--track-color); background: color-mix(in srgb, var(--track-color) 30%, transparent); }
.track-row.silent { opacity: .45; }
footer { padding: 22px 0 0; color: #475569; font-size: 10px; text-align: center; }
@media (max-width: 720px) {
.midi-app { padding: 24px 14px 18px; border-radius: 16px; }
.hero { align-items: flex-start; }
.status-pill { display: none; }
.subtitle { max-width: 32ch; }
.drop-zone { padding: 18px; }
.browse-button { display: none; }
.file-heading { align-items: flex-start; flex-direction: column; }
.meta-badges { justify-content: flex-start; }
.transport { flex-wrap: wrap; }
.seek { order: 8; flex-basis: 100%; }
.volume-control { margin-left: auto; }
.track-row { grid-template-columns: 7px minmax(110px, 1fr) auto; }
.track-stats { display: none; }
}
|