/* Mixtape Maker. Fonts: Permanent Marker (Apache 2.0) and Caveat (OFL), self-hosted. */
@font-face{font-family:"IS Marker";src:url(/assets/fonts/permanent-marker-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:"IS Hand";src:url(/assets/fonts/caveat-latin-400-normal.woff2) format("woff2");font-display:swap}
.mx{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;margin-top:10px}
@media(min-width:900px){.mx{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start}}
.mx-deck{background:linear-gradient(#26223f,#17142f);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.mx-cass{position:relative;container-type:inline-size;width:100%;max-width:560px;margin:0 auto}
.mx-cass.flip{animation:mxflip .6s ease}
@keyframes mxflip{0%{transform:rotateY(0)}50%{transform:rotateY(90deg) scale(.96)}100%{transform:rotateY(0)}}
.mx-svg{display:block;width:100%;height:auto}
.mx-shell{stroke:rgba(0,0,0,.5);stroke-width:3}
.mx-shell-in{fill:none;stroke:rgba(255,255,255,.12);stroke-width:2}
.mx-screw{fill:#9a98a8;stroke:#55536a;stroke-width:2}
.mx-label{fill:#f4f0e4}
.mx-rule{stroke:#9aa4c8;stroke-width:2}
.mx-side{font:700 56px var(--sans);fill:#1b1b2b}
.mx-spec{font:700 15px var(--sans);letter-spacing:2px;fill:#1b1b2b;opacity:.75}
.mx-window{fill:rgba(20,16,30,.75);stroke:#111;stroke-width:3}
.mx-wound{fill:#4a2c1d}
.mx-hub{fill:#eee;stroke:#888;stroke-width:2}
.mx-teeth{stroke:#777;stroke-width:4;stroke-linecap:round}
.mx-hole{fill:#2a2438}
.mx-reel{transform-box:fill-box;transform-origin:center}
.mx-cass.play .mx-reel{animation:mxspin 2.2s linear infinite}
.mx-cass.ff .mx-reel{animation:mxspin .22s linear infinite}
.mx-cass.rw .mx-reel{animation:mxspin .22s linear infinite reverse}
@keyframes mxspin{to{transform:rotate(-360deg)}}
.mx-bottom{fill:rgba(0,0,0,.25);stroke:rgba(0,0,0,.35);stroke-width:2}
.mx-pin{fill:rgba(0,0,0,.45)}
/* shell colors */
.mx-c-smoke .mx-shell{fill:#4b4a57;fill-opacity:.92}.mx-c-black .mx-shell{fill:#16151c}.mx-c-white .mx-shell{fill:#e9e7ef}
.mx-c-red .mx-shell{fill:#c2273a}.mx-c-blue .mx-shell{fill:#2552b8}.mx-c-yellow .mx-shell{fill:#f2c230}.mx-c-green .mx-shell{fill:#2f8f5b}
/* label styles: generic stripes, no brand marks */
.mx-band{display:none}
.mx-l-type2 .mx-band{display:block}.mx-l-type2 .mx-band1{fill:#f0b429}.mx-l-type2 .mx-band2{fill:#e2483d}.mx-l-type2 .mx-band3{fill:#2c4f9e}
.mx-l-retro .mx-band{display:block}.mx-l-retro .mx-band1{fill:#ffb347}.mx-l-retro .mx-band2{fill:#ff5e8a}.mx-l-retro .mx-band3{fill:#7b4dff}
.mx-l-metal .mx-label{fill:#c9ccd6}.mx-l-metal .mx-band{display:block}.mx-l-metal .mx-band1{fill:#2b2b36}.mx-l-metal .mx-band2{fill:#c9ccd6}.mx-l-metal .mx-band3{fill:#2b2b36}
.mx-l-plain .mx-label{fill:#fffdf6}
.mx-labelin{position:absolute;left:19.5%;top:13.5%;width:68%;height:13%;border:0;background:transparent;color:#1b2a8a;
  font:400 6.2cqw "IS Marker","Marker Felt",cursive;padding:0 4px;outline:none;-webkit-appearance:none;border-radius:6px}
.mx-labelin:focus{background:rgba(255,255,160,.35)}
.mx-now{text-align:center;margin:14px 0 6px;min-height:58px}
.mx-now-t{font-family:var(--mono);font-size:28px;color:var(--gold);line-height:1.1}
.mx-transport{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-width:560px;margin:8px auto 0}
.mx-key{min-height:64px;border-radius:10px;border:1px solid #000;background:linear-gradient(#e9e6f2,#b4b0c4);color:#1a1730;font:700 20px var(--sans);
  box-shadow:0 5px 0 #57536b,0 6px 10px rgba(0,0,0,.4);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mx-key small{font-size:11px;letter-spacing:1.5px;margin-top:2px}
.mx-key:active,.mx-key.on{transform:translateY(4px);box-shadow:0 1px 0 #57536b,0 2px 4px rgba(0,0,0,.4)}
.mx-key.mx-play.on{background:linear-gradient(#c8f7d0,#7fd394)}
.mx-opts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:center;margin:14px 0 0}
.mx-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:999px;cursor:pointer}
.mx-check input{width:22px;height:22px}
.mx-sws{display:inline-flex;flex-wrap:wrap;gap:6px}
.mx-sw{width:44px;height:44px;border-radius:50%;border:3px solid transparent;cursor:pointer;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25)}
.mx-sw.on{border-color:var(--gold)}
.mx-sw.mx-c-smoke{background:#4b4a57}.mx-sw.mx-c-black{background:#16151c}.mx-sw.mx-c-white{background:#e9e7ef}.mx-sw.mx-c-red{background:#c2273a}.mx-sw.mx-c-blue{background:#2552b8}.mx-sw.mx-c-yellow{background:#f2c230}.mx-sw.mx-c-green{background:#2f8f5b}
.mx-chip{min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg-3);color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
.mx-chip.on{background:var(--hot);border-color:var(--hot);color:#fff}
/* builder */
.mx-build{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.mx-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.mx-tab{min-height:50px;border-radius:10px;border:1px solid var(--line);background:var(--bg-3);color:var(--ink-dim);font:inherit;font-size:16px;cursor:pointer;padding:4px 8px}
.mx-tab span{font-size:13px}
.mx-tab.on{background:var(--teal);color:#06231f;border-color:var(--teal);font-weight:700}
.mx-list{list-style:none;margin:0;padding:0}
.mx-list li,.mx-res li{display:flex;align-items:center;gap:6px;padding:6px 4px;border-bottom:1px solid var(--line);background:var(--bg-2)}
.mx-list li.playing{background:#2c2550;box-shadow:inset 4px 0 0 var(--hot)}
.mx-list li.drag{opacity:.85;background:#3a3170;box-shadow:0 6px 18px rgba(0,0,0,.5);position:relative;z-index:2}
.mx-grip{width:36px;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--ink-dim);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.mx-n{font-family:var(--mono);font-size:22px;color:var(--gold);width:26px;text-align:right}
.mx-ti{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.mx-ti b{font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-ti .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-d{width:40px;text-align:right}
.mx-ib{width:44px;height:44px;border-radius:8px;border:1px solid var(--line);background:var(--bg-3);color:var(--ink);cursor:pointer;font-size:14px;flex:none}
.mx-x{color:#ff8fb8}
@media(max-width:480px){.mx-d{display:none}.mx-ib{width:40px}}
.mx-search{margin-top:14px}
.mx-sl{font-family:var(--mono);font-size:24px;color:var(--gold)}
.mx-srow{display:flex;gap:8px;margin:6px 0}
.mx-srow input,.mx-srow select,.mx-jctl input,.mx-fm select{min-height:48px;border-radius:10px;border:1px solid var(--line);background:var(--bg-3);color:var(--ink);font:inherit;padding:0 12px}
.mx-srow input{flex:1;min-width:0}
.mx-res{list-style:none;margin:0;padding:0;max-height:430px;overflow:auto;-webkit-overflow-scrolling:touch}
.mx-add{min-height:44px;padding:0 12px;border-radius:10px;border:0;background:var(--hot);color:#fff;font:700 14px var(--sans);cursor:pointer;flex:none}
.mx-add:disabled{background:#3a3363;color:var(--ink-dim)}
/* radio */
.mx-fm{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.mx-fm .btn{min-height:48px}
.mx-rec{display:inline-flex;align-items:center;gap:10px;min-height:72px;padding:0 26px;border-radius:14px;border:2px solid #4a0d16;background:linear-gradient(#ff5a5a,#b5121b);color:#fff;font:700 26px var(--sans);letter-spacing:2px;cursor:pointer;box-shadow:0 6px 0 #5a0a12;opacity:.55;touch-action:manipulation}
.mx-rec span{width:22px;height:22px;border-radius:50%;background:#fff}
.mx-rec.live{opacity:1}
.mx-rec.rolling span{animation:mxblink .4s steps(2) infinite}
.mx-rec:active{transform:translateY(4px);box-shadow:0 2px 0 #5a0a12}
@keyframes mxblink{50%{background:#ff1d2e}}
.mx-fmnow{margin-top:12px;min-height:26px}
/* J-card */
.mx-jwrap{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
@media(min-width:860px){.mx-jwrap{grid-template-columns:minmax(0,1fr) 340px}}
.mx-jc{display:flex;max-width:620px;border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.45);color:#1b2a6b;transform:rotate(-.6deg);overflow:hidden}
.mx-jc-spine{writing-mode:vertical-rl;transform:rotate(180deg);background:rgba(0,0,0,.08);padding:12px 8px;font:400 22px "IS Marker","Marker Felt",cursive;white-space:nowrap;overflow:hidden;max-height:520px}
.mx-jc-face{flex:1;padding:18px 20px 22px;min-width:0}
.mx-jc-t{font:400 clamp(28px,6vw,42px)/1.1 "IS Marker","Marker Felt",cursive;word-break:break-word}
.mx-jc-for{font:400 30px "IS Hand","Noteworthy",cursive;margin-top:4px}
.mx-jc-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}
.mx-jc-cols b{font:400 28px "IS Marker","Marker Felt",cursive}
.mx-jc ol{margin:4px 0 0;padding-left:22px;font:400 21px/1.15 "IS Hand","Noteworthy",cursive}
.mx-jc li{margin-bottom:5px}
.mx-jc li span{display:block;font-size:17px;opacity:.7}
.mx-j-cream{background:#f3ead2}.mx-j-pink{background:#ffc9df}.mx-j-teal{background:#a9ece4}.mx-j-gold{background:#ffe08a}.mx-j-night{background:#1f1b3d;color:#f3eefc}
.mx-j-lined{background:#fbfbf4 repeating-linear-gradient(transparent 0 27px,#9cc3e6 27px 28px)}
.mx-sw.mx-j-cream{background:#f3ead2}.mx-sw.mx-j-pink{background:#ffc9df}.mx-sw.mx-j-teal{background:#a9ece4}.mx-sw.mx-j-gold{background:#ffe08a}.mx-sw.mx-j-night{background:#1f1b3d}.mx-sw.mx-j-lined{background:#fbfbf4 repeating-linear-gradient(transparent 0 7px,#9cc3e6 7px 8px)}
.mx-jctl{display:flex;flex-direction:column;gap:12px}
.mx-jctl label{display:flex;flex-direction:column;gap:4px;font-size:15px;color:var(--ink-dim)}
.mx-share{display:flex;flex-wrap:wrap;gap:8px}
.mx-share .btn{min-height:48px}
/* examples */
.mx-exs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.mx-ex{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-height:96px;padding:16px;border-radius:12px;border:1px solid var(--line);
  background:linear-gradient(135deg,#2a2350,#1a1735);color:var(--ink);cursor:pointer;font:inherit}
.mx-ex:hover{border-color:var(--teal)}
.mx-ex-t{font:400 24px/1.15 "IS Marker","Marker Felt",cursive;color:var(--gold)}
