@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
:root{font-family:Roboto,Arial,sans-serif;color:#f6f5f0;background:#202020;font-synthesis:none;color-scheme:dark;--accent:#d1cdbb}*{box-sizing:border-box}body{margin:0}html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;scroll-behavior:smooth}button,input,a{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:0;user-select:none;-webkit-user-select:none}button:active{transform:scale(.96)}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #e4dfc7;outline-offset:3px}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.workspace{width:min(100%,408px);padding:28px 24px 0;margin:0 auto}.intro{margin:0 0 23px;min-width:0}form>label{font-size:13px;font-weight:500;display:block;margin:0 0 13px}form>label span{color:#838383;font-weight:400}.url-box{display:flex;align-items:center;gap:9px;padding:6px 6px 6px 12px;border:1px solid #44443e;border-radius:9px;background:#282825}.url-box>svg{width:16px;color:#92918a}.url-box input{min-width:0;width:100%;font:inherit;font-size:12px;color:#efefeb;background:transparent;border:0;outline:0;padding:9px 0}.url-box:focus-within{border-color:#a09e8b}.url-box input::placeholder{color:#99988f}.url-box button{background:#e6e3d6;color:#25251e;font-size:12px;font-weight:500;border-radius:5px;padding:10px 13px}.hint{font-size:10px;color:#8b8b84;margin:9px 0 0}.error{font-size:12px;color:#ffb8a4;line-height:1.5;margin:8px 0}.player-stage{width:100%;min-width:0}.phone{position:relative;width:100%;min-height:780px;padding:29px 23px 25px;border-radius:24px;overflow:hidden;background:linear-gradient(165deg,#393424 0%,#302c1e 28%,#19170e 51%,#050504 79%,#000 100%)}
.player-top{position:relative;display:flex;align-items:center;justify-content:space-between;margin:0 -8px 20px;height:41px}.icon-button{width:40px;height:40px;display:grid;place-items:center;background:transparent;border-radius:50%;font-size:24px;padding:0}.icon-button svg{width:21px;height:21px}.player-top>.icon-button{width:30px}.player-top>.icon-button svg{width:17px}.media-badge{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:11px;border-radius:20px;background:#17160f;padding:5px 9px;height:29px;border:1px solid #5b5134}.media-badge svg{width:13px;height:13px}.media-badge>svg:first-child{background:#484333;border-radius:50%;box-shadow:0 0 0 3px #484333}.media-badge>svg:last-child{color:#a49b7f}.top-actions{display:flex;gap:0}.top-actions .icon-button{width:30px}.top-actions .icon-button svg{width:19px}.options{position:absolute;right:16px;top:70px;z-index:10;background:#302e24;border:1px solid #595644;border-radius:10px;padding:7px;box-shadow:0 10px 35px #0007}.options a,.options button{display:block;background:transparent;font-size:12px;padding:12px;text-align:left;width:100%;border-radius:6px}.volume-row{display:flex;align-items:center;gap:9px;padding:14px 12px;color:#b9b6a5}.volume-row svg{width:15px;height:15px}.volume-row input{width:100px}.volume-row span{font-size:10px}
.artwork{width:100%;aspect-ratio:1;border-radius:7px;overflow:hidden;background:#171611}.cover{height:100%;width:100%;background-image:url('./assets/design-reference.png');background-size:584.729% auto;background-position:34.248% 25.291%;background-repeat:no-repeat}#embed-shell,#youtube-player,#embed-shell iframe{height:100%;width:100%;border:0;display:block}.track-info{display:flex;align-items:center;gap:6px;margin:20px 0 21px}.track-info>div{flex:1;min-width:0}.track-info h2{font-size:21px;font-weight:600;letter-spacing:-.35px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 5px}.track-info p{color:#a9a698;font-size:14px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-arrow{font-size:28px;font-weight:400;color:#dad8cc;margin-top:-14px}.chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin-right:-23px;padding-right:14px}.chips button{background:#353227;flex-shrink:0;padding:8px 15px;border-radius:22px;font-size:11px;line-height:16px;display:flex;align-items:center;gap:5px;min-height:32px}.chips button:first-child{min-width:108px;justify-content:center}.chips button[aria-pressed=true]{background:#524e3d}.chips svg{width:13px;height:13px}.timeline-section{position:relative;margin-top:29px}input[type=range]{appearance:none;-webkit-appearance:none;height:3px;background:#454132;border-radius:8px;margin:0;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:8px;background:#dedbcf;border-radius:50%}input[type=range]::-moz-range-thumb{width:8px;height:8px;background:#dedbcf;border:0;border-radius:50%}#seek{display:block;width:100%;height:2px}#seek:disabled::-webkit-slider-thumb{opacity:0}.time-labels{display:flex;justify-content:space-between;color:#a29f8f;font-size:9px;font-variant-numeric:tabular-nums;margin-top:8px}.normal-controls{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:5px}.normal-controls .icon-button svg{width:24px;height:24px}.normal-controls .icon-button:nth-child(2) svg,.normal-controls .icon-button:nth-child(4) svg{fill:currentColor;stroke-width:1}.play-button{height:64px;width:64px;border-radius:50%;background:#fff;color:#060604;display:grid;place-items:center;flex-shrink:0;padding:0}.play-button svg{width:32px;height:32px}.normal-controls .icon-button[aria-pressed=true]{background:#494638}#repeat{position:relative}.repeat-tooltip{display:none;position:absolute;bottom:41px;right:0;align-items:center;gap:4px;white-space:nowrap;font-size:10px;background:#39372c;border-radius:20px;padding:6px 9px}.repeat-tooltip svg{width:16px!important;height:16px!important}.home-indicator{width:36px;height:3px;border-radius:3px;background:#363324;margin:28px auto 0}
.phone.is-editing .timeline-section{margin-top:15px}.phone.is-editing #seek{position:absolute;opacity:0;pointer-events:none}.loop-heading{position:absolute;right:0;top:-45px;z-index:2}.loop-heading button{display:flex;align-items:center;gap:4px;background:#353227;border-radius:18px;padding:8px 10px;font-size:10px;min-height:32px}.loop-heading svg{width:12px;height:12px}.phone.is-editing .chips{padding-right:62px}.selection{position:relative;height:25px;isolation:isolate}.ruler{position:absolute;inset:7px 0;height:11px;border-radius:8px;background:#353227}.selection-fill{position:absolute;top:7px;height:15px;background:repeating-linear-gradient(90deg,#c8c5b955 0px,#c8c5b955 1px,transparent 1px,transparent 4px),#7b786c55;border:1px solid #a5a191;border-radius:2px;pointer-events:none}.selection input[type=range]{position:absolute;left:-8px;top:-4px;width:calc(100% + 16px);height:36px;background:transparent;pointer-events:none}.selection input[type=range]::-webkit-slider-thumb{pointer-events:auto;width:16px;height:36px;border:0;border-radius:0;background:linear-gradient(90deg,transparent 6px,#c4bfae 6px,#c4bfae 9px,transparent 9px) center/100% 17px no-repeat;cursor:ew-resize;touch-action:none}.selection input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:36px;border:0;border-radius:0;background:linear-gradient(90deg,transparent 6px,#c4bfae 6px,#c4bfae 9px,transparent 9px) center/100% 17px no-repeat;cursor:ew-resize;touch-action:none}.boundary-labels{position:absolute;inset:27px 0 auto;pointer-events:none;color:#aaa694;font-size:8px}.boundary-labels span{position:absolute;transform:translateX(-50%)}.phone.is-editing .time-labels{margin-top:2px}.loop-controls{display:flex;align-items:center;justify-content:space-between;gap:27px;margin-top:6px}.loop-controls label{font-size:14px;flex:1;min-width:0;color:#e3e0d3}.loop-controls input{display:block;background:#363328;border:1px solid transparent;border-radius:22px;width:100%;padding:4px 6px;text-align:center;color:#bab5a3;font-family:inherit;font-size:16px;margin-top:5px;font-variant-numeric:tabular-nums}.loop-controls .play-button{width:64px;height:64px}.range-error{font-size:10px}.loop-summary{display:flex;align-items:center;justify-content:center;gap:6px;background:#333025;color:#c4c0b0;font-size:10px;border-radius:20px;margin:16px auto -10px;padding:7px 10px}.loop-summary svg{width:12px;height:12px}.loop-summary>span:last-child{margin-left:4px;color:#999481}.player-status{font-size:11px;line-height:1.5;text-align:center;min-height:17px;color:#9a978a;margin:14px 0 0}.player-status.is-error{color:#ffb8a4}footer{text-align:center;font-size:10px;color:#70706b;padding:14px 20px 25px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#e7e3d5;color:#25241e;border-radius:10px;padding:12px 17px;font-size:13px;z-index:30;box-shadow:0 5px 30px #0005;max-width:90%;text-align:center}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover{filter:brightness(1.15)}#repeat:hover .repeat-tooltip{display:flex}.options a:hover{background:#ffffff0b}}#repeat:focus-visible .repeat-tooltip{display:flex}
@media(max-width:480px){.workspace{width:min(100%,408px);padding:calc(20px + env(safe-area-inset-top,0px)) 15px 0}.phone{min-height:calc((100vw - 30px)*2.17);max-height:none}.url-box input{font-size:16px}.url-box{gap:7px}.url-box>svg{display:none}.intro{margin-bottom:17px}.track-info h2{font-size:clamp(17px,5.3vw,21px)}.track-info p{font-size:13px}.loop-controls{gap:20px}.phone{padding-left:23px;padding-right:23px}footer{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}}
@media(max-width:360px){.phone{padding:24px 20px}.player-top{margin-bottom:15px}.track-info{margin:17px 0}.track-info h2{font-size:17px}.track-info p{font-size:12px}.play-button,.loop-controls .play-button{width:56px;height:56px}.loop-controls{gap:15px}.loop-controls label{font-size:12px}.normal-controls .icon-button{width:32px}.chips{margin-right:-20px}.chips button{padding:6px 12px}.chips button:first-child{min-width:100px}}
.phone.is-editing #loop-chip{visibility:hidden}
/* Scale the original 360 × 780 player uniformly; never resize its axes separately. */
@media(min-width:800px){
  .workspace{width:min(100%,920px);min-height:calc(100dvh - 40px);padding:20px 32px 0;display:grid;grid-template-columns:minmax(0,360px) minmax(0,360px);align-items:center;justify-content:center;gap:clamp(32px,6vw,88px)}
  .intro{margin:0;align-self:center}
  .player-stage{width:min(100%,360px,calc((100dvh - 94px)*.4615384615));justify-self:center}
  .player-frame{position:relative;width:100%;aspect-ratio:6/13}
  .phone{position:absolute;top:0;left:0;width:360px;height:780px;min-height:780px;transform:scale(var(--player-scale,1));transform-origin:top left}
  .player-status{position:relative;left:50%;transform:translateX(-50%);width:360px;margin-top:10px;font-size:10px}
  footer{height:40px;padding:12px 20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button:active{transform:none}}
