/* UI60: quiet controls, real audio waveform, persistent part context. */
body.studioPlayer{background:#f3f5f6;color:#1e2a31}
.studioPlayer button,.studioPlayer input,.studioPlayer textarea,.studioPlayer select{transition:background-color .13s,border-color .13s,color .13s,box-shadow .13s}
.studioPlayer button:focus-visible,.studioPlayer input:focus-visible,.studioPlayer textarea:focus-visible{outline:2px solid #388fbd;outline-offset:2px}
.studioPlayer .context{padding:8px 0 10px;gap:12px}.studioPlayer .context h1{font-size:14px;line-height:1.45;letter-spacing:-.02em}.studioPlayer #saveState{font-size:10px;color:#71818b}
.studioPlayer .videoStage{justify-content:flex-start!important;gap:8px!important}
.studioPlayer .playerSurface{display:block!important;flex:0 0 auto!important;width:100%;min-width:0;background:#fff;border:1px solid #d2dbe1}
.studioPlayer:not(.playerFocus) .videoFrame{width:100%!important;max-width:100%!important;height:auto!important;flex:none!important;align-self:stretch!important;margin:0;aspect-ratio:var(--video-aspect,1.777778)}
.studioPlayer .videoFrame::before{height:84px;background:linear-gradient(#0008,transparent);transition:opacity .15s}
.studioPlayer .videoFrame::after{content:'';position:absolute;pointer-events:none;z-index:1;left:0;right:0;bottom:0;height:76px;background:linear-gradient(transparent,#0008);transition:opacity .15s}
.studioPlayer .videoHud{position:absolute;inset:0;display:block;z-index:12;pointer-events:none}
.studioPlayer #playbackLabel{position:absolute;top:12px;left:12px;max-width:28%;padding:0;background:none;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;line-height:1.3;text-shadow:0 1px 3px #000b}
.studioPlayer #playbackTC{font-size:14px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}.studioPlayer #playbackSection{font-size:10px;color:#fffddd;line-height:1.25}
.studioPlayer .videoHud .playTools{position:absolute;top:9px;right:10px;left:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px;max-width:75%;pointer-events:auto}
.studioPlayer .videoHud .playTools button,.studioPlayer .videoHud .playTools label{position:static!important;min-height:32px;padding:5px 9px;border:1px solid #ffffff45;border-radius:3px;background:#15212c80;color:#e7edf0;box-shadow:none;font-size:11px;line-height:1.3;backdrop-filter:blur(8px)}
.studioPlayer .videoHud .playTools button[aria-pressed=true]{background:#f2f5f8;color:#1b2c37;border-color:#f2f5f8;font-weight:700}
.studioPlayer .videoHud .playTools label{display:flex;gap:5px;align-items:center}.studioPlayer .playTools input[type=checkbox]{accent-color:#fff;width:13px;height:13px;margin:0}
.studioPlayer .playerTransportBar{position:absolute;left:10px;right:10px;bottom:5px;display:flex;align-items:center;gap:10px;pointer-events:auto;min-height:34px;color:#fff}
.studioPlayer .playerTransportBar button{display:inline-flex;justify-content:center;align-items:center;min-width:34px;width:34px;height:34px;min-height:34px;padding:6px;border:0;background:transparent;color:#fff;border-radius:3px;font-size:20px;line-height:1}
.studioPlayer .playerTransportBar svg{display:block;width:18px;height:18px;fill:currentColor}.studioPlayer #playerMute svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.studioPlayer #playerMute[aria-pressed=true]{opacity:.5}.studioPlayer #playerClock{font-size:11px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.02em;text-shadow:0 1px 3px #000}.studioPlayer .transportSpacer{flex:1}.studioPlayer .inlinePause{display:none}.studioPlayer .isPlaying .inlinePause{display:block}.studioPlayer .isPlaying .inlinePlay{display:none}
.studioPlayer .videoMemo{z-index:8;top:58px}.studioPlayer .videoLyrics{bottom:38px}
.studioPlayer .videoScrub{position:relative!important;inset:auto!important;width:100%!important;height:36px!important;min-height:36px;flex:none!important;padding:0 10px!important;background:#edf2f5;margin:0!important;z-index:3}
.studioPlayer .waveSeek{position:relative;height:36px;width:100%;cursor:col-resize;touch-action:pan-y}
.studioPlayer #audioWave{display:block;width:100%;height:32px;position:absolute;top:2px;left:0;pointer-events:none}
.studioPlayer #videoSeek{position:absolute;inset:0!important;width:100%!important;height:36px!important;min-height:36px;margin:0;padding:0;background:transparent!important;border:0!important;outline:none;cursor:col-resize;opacity:1;touch-action:pan-y;z-index:2;appearance:none;-webkit-appearance:none}
.studioPlayer #videoSeek::-webkit-slider-runnable-track{height:32px;background:transparent;border:0;box-shadow:none}.studioPlayer #videoSeek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:1px;height:32px;background:transparent;border:0;box-shadow:none}
.studioPlayer #videoSeek::-moz-range-track{height:32px;background:transparent;border:0}.studioPlayer #videoSeek::-moz-range-progress{background:transparent}.studioPlayer #videoSeek::-moz-range-thumb{width:1px;height:32px;background:transparent;border:0}
.studioPlayer .waveSeek:focus-within{outline:2px solid #5d8ba7;outline-offset:-2px}
.studioPlayer #sectionMarkers{position:absolute;inset:2px 0!important;height:30px!important;pointer-events:none;z-index:1}
.studioPlayer #sectionMarkers span{position:absolute;top:0;height:100%;width:1px;background:#243d4d30}.studioPlayer #sectionMarkers span.current{background:#1e485a80}
.studioPlayer #seekBubble{position:absolute;top:-28px!important;z-index:20;background:#14232eee;color:white;border-radius:3px;padding:5px 7px;font-size:10px;line-height:1;transform:translateX(-50%);pointer-events:none;white-space:nowrap}.studioPlayer #seekBubble[hidden]{display:none!important}
.studioPlayer .partRail{display:block!important;position:relative;background:#fff;border-top:1px solid #dbe2e7;padding:0 7px;min-width:0;min-height:40px}
.studioPlayer #sectionLabels{position:static!important;inset:auto!important;width:100%;display:flex!important;height:42px;min-height:42px;gap:0;align-items:stretch;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#b9c4cd transparent;touch-action:pan-x;overscroll-behavior-x:contain;margin:0;padding:0}
.studioPlayer #sectionLabels button{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:0 0 auto;min-width:72px;min-height:40px;padding:4px 10px;gap:1px;line-height:1.1;border:0;border-right:1px solid #e4e9ed;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;background:transparent;white-space:nowrap;color:#54636e;font-size:10px}
.studioPlayer #sectionLabels button small{font-size:9px;color:#8a969e;line-height:1.15;font-variant-numeric:tabular-nums;margin:0}.studioPlayer #sectionLabels button span{font-size:10px;line-height:1.15;font-weight:650}
.studioPlayer #sectionLabels button.current{background:#e9f0f3;border-bottom-color:#31586c;color:#193c4f}.studioPlayer #sectionLabels button.current small{color:#527184}
.studioPlayer.playerChromeHidden .partRail,.studioPlayer.playerChromeHidden #sectionLabels{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.studioPlayer.playerChromeHidden .videoFrame::after{opacity:0}
.studioPlayer .recordPanel{border:1px solid #d5dee4;background:#fff}.studioPlayer .viewBar{border:0;border-bottom:1px solid #dce3e8;padding:8px 10px;gap:8px;background:#fff}.studioPlayer .viewTools{gap:3px}.studioPlayer .viewTools button{font-size:11px;min-height:34px;padding:6px 12px;border-radius:3px;border-color:transparent;background:transparent;color:#78838b}.studioPlayer .viewTools button.active{background:#253d4b;color:#fff;border-color:#253d4b}.studioPlayer .progressSummary{font-size:9px;gap:4px 10px}
.studioPlayer .detail{border:0}.studioPlayer .detailTop{border-bottom:1px solid #e1e6ea;padding:9px 10px;background:#fff}.studioPlayer .detailTop #selection{gap:2px 7px}.studioPlayer .stepTools button{font-size:10px;min-height:30px;padding:4px 9px;border-radius:3px}.studioPlayer .detailBody{padding:10px}.studioPlayer textarea{border-color:#d3dde4;background:#f8fafb;border-radius:3px}.studioPlayer .memoCompleteToggle{border-radius:3px;font-size:10px}.studioPlayer .memoCompleteToggle.complete{background:#e8f4ed;color:#266244;border-color:#9cc3ae}.studioPlayer .memoBelowVideo{margin:0!important;border:1px solid #d5dee4;background:#fff}.studioPlayer .memoBelowVideo .detail{background:#fff}
.studioPlayer .sheetHeading{background:#fff;border-bottom:1px solid #dce3e8;padding:10px}.studioPlayer .sheetHeading h2{font-size:12px}.studioPlayer .sheetHeading button{font-size:10px;min-height:30px;padding:4px 8px}.studioPlayer .lyricLine{border-bottom-color:#e5eaed}.studioPlayer .lyricSeek{padding:10px 12px}.studioPlayer .lyricLine.playing{background:#e8f5ee}.studioPlayer .lyricLine.playing .sheetPart{color:#33785b}
.studioPlayer #sectionEdge{display:none}.studioPlayer .timingDetails{margin-top:12px;border-top:1px solid #dfe6eb;padding-top:9px}.studioPlayer .timingDetails summary{font-size:11px;color:#74818a}
.newBadge{display:inline-block;font-size:8px;letter-spacing:.06em;color:#fff;background:#3e6b84;padding:2px 4px;margin-left:7px;border-radius:2px;vertical-align:middle}
#whatsNewDialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 30px);border:1px solid #bfcbd3;padding:22px;color:#22343f;background:#f8fafb}#whatsNewDialog::backdrop{background:#0009}.updateHeading{display:flex;align-items:flex-start;gap:14px;justify-content:space-between}.updateHeading small{font-size:9px;letter-spacing:.12em;color:#7d8a92}.updateHeading h2{font-size:20px;line-height:1.4;margin:7px 0 4px;letter-spacing:-.03em}.updateHeading button{font-size:11px;min-height:32px}.updateList{padding:0;list-style:none;margin:10px 0 20px}.updateList li{padding:12px 0;border-bottom:1px solid #dfe5e9}.updateList b{display:block;font-size:12px;margin-bottom:5px}.updateList span{display:block;font-size:11px;line-height:1.7;color:#65747f}#startNewGuide{width:100%;min-height:40px}
@media(hover:hover){
 .studioPlayer button:not(:disabled):hover{border-color:#8fa4b3;background-color:#edf2f5;color:#1d3849}.studioPlayer .videoHud button:not(:disabled):hover,.studioPlayer .videoHud label:hover{background:#fff;color:#162c3a;border-color:#fff}.studioPlayer #sectionLabels button:hover{background:#edf3f6;color:#244f67}.studioPlayer .lyricLine:not(.playing):hover{background:#f1f6f9}.studioPlayer .lyricLine.playing:hover{background:#dcf1e5}.studioPlayer .memoCompleteToggle.complete:hover{background:#d9eddf;color:#215b3d}
}
.studioPlayer button:active{transform:translateY(1px)}
.studioPlayer.playerFocus .playerSurface{display:grid!important;grid-template-rows:minmax(0,1fr) auto auto;flex:1 1 auto!important;height:100%;min-height:0;border:0;background:#000}
.studioPlayer.playerFocus .videoFrame{grid-row:1;display:block!important;min-height:0!important;height:100%!important;width:100%!important;max-width:none!important;aspect-ratio:auto!important;margin:0!important}
.studioPlayer.playerFocus .videoScrub{grid-row:2;height:34px!important;min-height:34px!important;background:#101a20;padding:0 12px!important}
.studioPlayer.playerFocus .partRail{grid-row:3;width:100%;min-height:38px;background:#13212b;border-color:#ffffff20;padding:0 8px}
.studioPlayer.playerFocus #sectionLabels{display:flex!important;height:38px;min-height:38px}.studioPlayer.playerFocus #sectionLabels button{background:transparent;color:#c0cbd2;border-right-color:#ffffff15;min-height:38px}.studioPlayer.playerFocus #sectionLabels button.current{background:#ffffff15;border-bottom-color:#a1c5dd;color:#fff}
@media(max-width:600px){
 .studioPlayer main{padding-left:8px;padding-right:8px}.studioPlayer .context h1{font-size:12px}.studioPlayer .context{padding:7px 0;gap:6px}.studioPlayer #saveState{font-size:9px}.studioPlayer #playbackLabel{top:9px;left:9px;max-width:25%;gap:2px;flex-direction:column}.studioPlayer #playbackTC{font-size:12px}.studioPlayer #playbackSection{font-size:8px;max-width:88px}.studioPlayer .videoHud .playTools{top:7px;right:7px;max-width:74%;gap:3px}.studioPlayer .videoHud .playTools button,.studioPlayer .videoHud .playTools label{min-height:29px;padding:4px 6px;font-size:9px}.studioPlayer .playerTransportBar{left:6px;right:6px;bottom:3px;gap:6px}.studioPlayer .playerTransportBar button{min-width:32px;width:32px;height:32px;min-height:32px}.studioPlayer #playerClock{font-size:10px}.studioPlayer .videoMemo{top:67px}.studioPlayer.playerChromeHidden .videoMemo{top:12px}.studioPlayer .videoLyrics{bottom:34px}.studioPlayer .videoScrub{height:32px!important;min-height:32px;padding:0 7px!important}.studioPlayer .waveSeek,.studioPlayer #videoSeek{height:32px!important;min-height:32px}.studioPlayer #audioWave{height:28px}.studioPlayer .partRail{min-height:38px}.studioPlayer #sectionLabels{height:38px;min-height:38px}.studioPlayer #sectionLabels button{min-width:66px;padding:3px 8px;min-height:36px}.studioPlayer #sectionLabels button small{font-size:8px}.studioPlayer #sectionLabels button span{font-size:10px}.studioPlayer .captionPanel:not([hidden]){top:40px!important;right:7px!important;width:min(250px,calc(100% - 14px))!important}
}
@media(prefers-reduced-motion:reduce){.studioPlayer *{transition:none!important}}
/* Functional guide annotations: deliberate hand-drawn paths in fluorescent blue. */
.studioPlayer .tutorialSpot{border:1px solid #45bdff80;box-shadow:0 0 0 200vmax #03090ede;border-radius:2px}
.studioPlayer .tutorialInk{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;fill:none;stroke:#40bdff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #008dff99)}
.studioPlayer .tutorialInk .inkEcho{stroke-width:1.2;opacity:.45}.studioPlayer .tutorialCard{z-index:3;background:#13212cf5;border:1px solid #6c9db04d;border-radius:5px;width:min(390px,calc(100vw - 28px));padding:18px 20px}.studioPlayer .guideDrawing{display:block;width:100%;height:58px;fill:none;stroke:#40bdff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #008fff70)}
.studioPlayer #tutorialGesture{font-size:11px;letter-spacing:.03em;color:#62c7ff;margin:5px 0 13px}.studioPlayer .tutorialCard h2{font-size:17px;letter-spacing:-.025em;margin-bottom:9px}.studioPlayer .tutorialCard p{font-size:12px;line-height:1.8}.studioPlayer .tutorialTop span{font-size:9px;letter-spacing:.04em}.studioPlayer #tutorialNext{background:#40bdff;border-color:#40bdff;color:#071a26}.studioPlayer #tutorialDots i.active{background:#40bdff}.studioPlayer .tutorialActions button{min-height:38px}
@media(max-height:500px){.studioPlayer .tutorialCard{padding:10px 16px}.studioPlayer .guideDrawing{height:28px}.studioPlayer #tutorialGesture{margin:0 0 5px}.studioPlayer .tutorialCard p{font-size:11px;line-height:1.5;margin-bottom:9px}.studioPlayer .tutorialCard h2{font-size:15px;margin-bottom:5px}}

.studioPlayer #inlineTransport .inlinePause{display:none}.studioPlayer #inlineTransport.isPlaying .inlinePause{display:block}.studioPlayer #inlineTransport.isPlaying .inlinePlay{display:none}
/* UI61: waveform stays available with HUD OFF. Preview floats above it. */
.studioPlayer.playerChromeHidden .videoScrub{visibility:visible!important;opacity:1!important;pointer-events:auto!important;overflow:visible!important}
.studioPlayer #seekBubble{top:auto!important;bottom:calc(100% + 8px);padding:4px;background:#10202ef5;border:1px solid #ffffff40;box-shadow:0 3px 12px #0005;border-radius:4px;transform:translateX(-50%);font-variant-numeric:tabular-nums;z-index:30}
.studioPlayer #seekBubble canvas{display:block;width:160px;height:90px;border-radius:2px;background:#263743}
.studioPlayer #seekBubble span{display:block;text-align:center;padding:5px 3px 2px;font-size:10px;line-height:1.2;min-width:44px}
.studioPlayer #seekBubble.previewLoading span::after{content:' · 미리보기 로딩';color:#afbdc8}
.studioPlayer #seekBubble.previewUnavailable span::after{content:' · 미리보기 없음';color:#afbdc8}

.studioPlayer.playerChromeHidden:not(.playerFocus) .videoScrub{height:36px!important;min-height:36px!important;flex-basis:auto!important;padding:0 10px!important}
.studioPlayer.playerFocus.playerChromeHidden .videoScrub{height:34px!important;min-height:34px!important;padding:0 12px!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.studioPlayer #seekBubble canvas[hidden]{display:none}
@media(max-width:600px){.studioPlayer.playerChromeHidden:not(.playerFocus) .videoScrub{height:32px!important;min-height:32px!important;padding:0 7px!important}}

/* UI62: device rules + actual target anchors, no fixed center annotations. */
.studioPlayer #tutorialOverlay .tutorialCard{transform:none;box-sizing:border-box;overscroll-behavior:contain}
.studioPlayer #tutorialOverlay .tutorialInk{inset:auto;max-width:none;max-height:none}
.studioPlayer #tutorialOverlay .tutorialInk path{vector-effect:non-scaling-stroke}
.studioPlayer #tutorialOverlay[data-device=mobile] .tutorialCard{padding:15px 16px}
.studioPlayer #tutorialOverlay[data-device=mobile] .guideDrawing{height:46px}
.studioPlayer #tutorialOverlay[data-device=mobile] .tutorialCard h2{font-size:16px}
.studioPlayer #tutorialOverlay[data-device=mobile] .tutorialCard p{font-size:12px;line-height:1.65}
.studioPlayer #tutorialOverlay[data-device=tablet] .tutorialCard{padding:18px 20px}
.studioPlayer #tutorialOverlay[data-device=tablet] .guideDrawing{height:54px}
.studioPlayer #tutorialOverlay[data-device=desktop] .tutorialCard{padding:20px 22px}
.studioPlayer #tutorialOverlay[data-device=desktop] .guideDrawing{height:58px}
.studioPlayer #tutorialOverlay[data-compact=true] .tutorialCard{padding:10px 14px}
.studioPlayer #tutorialOverlay[data-compact=true] .guideDrawing{height:24px}
.studioPlayer #tutorialOverlay[data-compact=true] #tutorialGesture{font-size:10px;margin:2px 0 5px}
.studioPlayer #tutorialOverlay[data-compact=true] .tutorialCard h2{font-size:14px;margin-bottom:5px}
.studioPlayer #tutorialOverlay[data-compact=true] .tutorialCard p{font-size:11px;line-height:1.45;margin-bottom:8px}
.studioPlayer #tutorialOverlay[data-compact=true] .tutorialActions button{min-height:32px;padding:5px 10px}

/* UI62: one mobile play control, solid safe-area backdrop. */
html{background:#101315}
body.studioPlayer{background:#101315}
.studioPlayer main{background:#f3f5f6}
.studioPlayer>header{background:#101315;backdrop-filter:none;-webkit-backdrop-filter:none;padding-top:env(safe-area-inset-top,0px);height:calc(42px + env(safe-area-inset-top,0px));box-sizing:border-box}
.studioPlayer.playerFocus{background:#000}
.studioPlayer.playerFocus main{background:#000}
@media(max-width:600px),(pointer:coarse){.studioPlayer #inlineTransport,.studioPlayer #playerClock{display:none!important}}

/* UI62.2: unobtrusive directional transport feedback. */
.studioPlayer .holdSpeedHint{left:auto;right:14px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #ffffff24;border-radius:5px;background:#0c18265c;font-size:11px;line-height:1;opacity:.85;backdrop-filter:none;text-shadow:0 1px 3px #000}
.studioPlayer .holdSpeedHint svg{width:19px;height:16px;fill:currentColor}
.studioPlayer #seekFeedback{top:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:62px;height:62px;padding:0;border:1px solid #ffffff28;border-radius:50%;background:#08121c52;color:#fff;transform:translateY(-50%);font-size:11px;font-weight:650;line-height:1.2;box-shadow:none;text-shadow:0 1px 3px #0008}
.studioPlayer #seekFeedback svg{display:block;width:25px;height:18px;fill:currentColor}
.studioPlayer #seekFeedback[data-direction=forward]{right:10%;left:auto}
.studioPlayer #seekFeedback[data-direction=back]{left:10%;right:auto}
.studioPlayer #seekFeedback[data-direction=back] svg{transform:scaleX(-1)}
.studioPlayer #seekFeedback[hidden]{display:none!important}
@media(max-width:600px){.studioPlayer .holdSpeedHint{right:10px;padding:5px 7px;font-size:10px}.studioPlayer #seekFeedback{width:52px;height:52px;font-size:10px}.studioPlayer #seekFeedback svg{width:21px}}
@media(prefers-reduced-motion:reduce){.studioPlayer #seekFeedback{animation:none}}

/* UI63: preserve the central button anchor while pressed. */
.studioPlayer #continuousPlay:active{transform:translate(-50%,-50%);background:#111b}
.studioPlayer #continuousPlay svg,.studioPlayer #continuousPlay svg *{pointer-events:none}

/* UI64: reserve physical device safe areas BEFORE rotating the whole player. */
.playerSafeProbe{position:fixed;inset:0 auto auto 0;width:0;height:0;visibility:hidden;pointer-events:none;box-sizing:content-box;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.studioPlayer.playerFocus .videoStage{width:var(--viewport-width,100vw)!important;height:var(--viewport-height,100dvh)!important;padding:0!important;gap:0!important;overflow:hidden;background:#000}
.studioPlayer.playerFocus .videoStage .playerSurface{position:absolute!important;left:var(--surface-center-x,50%)!important;top:var(--surface-center-y,50%)!important;width:var(--safe-content-width,100%)!important;height:var(--safe-content-height,100%)!important;max-width:none!important;max-height:none!important;min-width:0;min-height:0;box-sizing:border-box;transform:translate(-50%,-50%) rotate(var(--surface-rotation,0deg))!important;transform-origin:center;overflow:visible;flex:none!important}

/* UI65: light normal-page footer, original dark fullscreen safe areas. */
html:has(body.studioPlayer:not(.playerFocus)){background:#f3f5f6}
body.studioPlayer:not(.playerFocus){background:#f3f5f6}
.studioPlayer .videoLyrics,.studioPlayer.playerFocus .videoLyrics{bottom:6px!important}
.studioPlayer .videoLyrics #lyricMember{margin-bottom:1px}

/* UI66: edge-to-edge media; reserve cutouts for readable information only. */
.studioPlayer.playerFocus .videoHud{inset:0!important}
.studioPlayer.playerFocus #playbackLabel{left:calc(var(--ui-safe-left,0px) + 10px);top:calc(var(--ui-safe-top,0px) + 9px)}
.studioPlayer.playerFocus .videoHud .playTools{right:calc(var(--ui-safe-right,0px) + 9px);top:calc(var(--ui-safe-top,0px) + 8px);max-width:calc(100% - var(--ui-safe-left,0px) - var(--ui-safe-right,0px) - 125px)}
.studioPlayer.playerFocus .playerTransportBar{left:calc(var(--ui-safe-left,0px) + 8px);right:calc(var(--ui-safe-right,0px) + 8px)}
.studioPlayer.playerFocus .videoMemo{left:calc(var(--ui-safe-left,0px) + 10px);top:calc(var(--ui-safe-top,0px) + 52px);max-width:calc(100% - var(--ui-safe-left,0px) - var(--ui-safe-right,0px) - 20px)}
.studioPlayer.playerFocus .videoLyrics{left:calc(var(--ui-safe-left,0px) + 6px);right:calc(var(--ui-safe-right,0px) + 6px)}
.studioPlayer.playerFocus .partRail{padding-left:0;padding-right:0}
.studioPlayer.playerFocus #sectionLabels{padding-left:var(--ui-safe-left,0px);padding-right:var(--ui-safe-right,0px);scroll-padding-left:var(--ui-safe-left,0px);scroll-padding-right:var(--ui-safe-right,0px)}
.studioPlayer.playerFocus .captionPanel{right:calc(var(--ui-safe-right,0px) + 9px)!important;top:calc(var(--ui-safe-top,0px) + 47px)!important}
.studioPlayer .videoMemo{--memo-base:22px;font-size:calc(var(--memo-base) * var(--memo-scale,1))!important}
.studioPlayer .videoMemoLine{grid-template-columns:3.2em minmax(0,1fr);gap:.45em}
.studioPlayer .videoMemoLine strong{font-size:.72em;line-height:2;white-space:nowrap}
.studioPlayer .memoTextSizeGroup{border-top:1px solid #ffffff30;padding-top:9px;margin-top:9px}
.studioPlayer .captionPanel input[type=range]{display:block;width:100%;min-height:30px;margin:2px 0 0;accent-color:#74c5f2}
@media(max-width:600px){.studioPlayer .videoMemo{--memo-base:17px}}
.studioPlayer.playerFocus .videoMemo{--memo-base:16px}
/* Text settings stay above the transport row rather than intercepting its buttons. */
.studioPlayer .captionPanel:not([hidden]){max-height:calc(100% - 88px);overflow:auto;overscroll-behavior:contain;padding:8px!important;scrollbar-width:thin}
.studioPlayer .captionPanel .textSizeHeading{margin-bottom:0;font-size:11px;min-height:24px}
.studioPlayer .captionPanel .textSizeHeading button{min-height:24px;padding:3px 6px;font-size:10px}
.studioPlayer .captionPanel input[type=range]{height:24px;min-height:24px;padding:0}
.studioPlayer .captionPanel .memoTextSizeGroup{padding-top:5px;margin-top:5px}
/* Essential playback metadata is a sibling of the dismissible HUD. */
.studioPlayer #playbackLabel{z-index:10;pointer-events:none;color:#fff}
.studioPlayer #playbackPerformer{font-size:11px;font-weight:700;line-height:1.25;color:#f5f8fa}
.studioPlayer #playbackPerformer:empty{display:none}
.studioPlayer.playerFocus #playbackLabel{flex-direction:row;max-width:35%;gap:5px}
.studioPlayer.playerChromeHidden:not(.playerFocus) .videoMemo{top:58px}
@media(max-width:600px){.studioPlayer.playerChromeHidden:not(.playerFocus) .videoMemo{top:67px}}
.studioPlayer #toggleLyricsTools.hasActiveFilter{border-color:#487c98;color:#204c66;background:#eaf3f8}
.studioPlayer #resetLyricsFilters{min-height:30px;font-size:11px;padding:4px 9px;align-self:end}

/* UI69: compact memo overlays on phones only, in either orientation. */
.studioPlayer.playerPhone .videoMemo{--memo-base:13px}
.studioPlayer.playerPhone.playerFocus .videoMemo{--memo-base:13px}

/* UI71: reserve space for the shooting editor in normal tablet/desktop views. */
@media(min-width:700px){
 .studioPlayer:not(.playerFocus) .playerSurface{width:var(--normal-player-width,100%)!important;max-width:100%;align-self:center}
 .studioPlayer:not(.playerFocus) .videoStage{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
 .studioPlayer:not(.playerFocus) .memoBelowVideo{flex:0 0 auto!important;min-height:0!important;max-height:none!important;height:auto;overflow:visible}
 .studioPlayer:not(.playerFocus) .memoBelowVideo .detail{flex:none;min-height:0}
 .studioPlayer:not(.playerFocus) .memoBelowVideo .detailBody{flex:none;overflow:visible!important;min-height:0}
 .studioPlayer:not(.playerFocus) .memoBelowVideo .editingPane,.studioPlayer:not(.playerFocus) .memoBelowVideo .checkPane{padding:8px 10px}
}

/* UI72: local split preference, contextual impact cue, and reversible check actions. */
.playerResize{display:none;align-items:center;justify-content:center;width:100%;gap:8px;min-height:26px;flex:none;color:#71818b}
@media(min-width:700px){.studioPlayer:not(.playerFocus):not(.playerPhone) .playerResize{display:flex}}
#playerSizeHandle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:26px;padding:3px 12px;background:transparent;border:0;border-radius:4px;color:#728590;cursor:ns-resize;touch-action:none;font-size:10px;user-select:none}
#playerSizeHandle>span:first-child{color:#5d8ca4;font-size:14px}#playerSizeValue{font-variant-numeric:tabular-nums;color:#365c73;font-size:10px}#resetPlayerSize{min-height:25px;padding:3px 8px;font-size:10px;border-color:#d4dee5;background:transparent}#resetPlayerSize:disabled{opacity:.35}
@media(any-pointer:coarse){#playerSizeHandle,#resetPlayerSize{min-height:34px}}
.impactCue{position:absolute;right:8px;top:4px;z-index:11;max-width:calc(100% - 16px);padding:4px 8px;border:1px solid #f5b9ea80;border-radius:3px;background:#591647f2;color:#ffe7fb;font-size:10px;font-weight:700;line-height:1.3;pointer-events:none;text-shadow:0 1px 2px #0008;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.impactCue[data-seconds="1"]{background:#8e195ff5;border-color:#ffb5e3}.impactCue[hidden]{display:none!important}
.studioPlayer.playerFocus .waveSeek>.impactCue{right:calc(var(--ui-safe-right,0px) + 8px);max-width:calc(100% - var(--ui-safe-left,0px) - var(--ui-safe-right,0px) - 16px)}
@media(max-width:600px){.studioPlayer .impactCue{top:3px;padding:3px 6px;font-size:9px}}
.undoNotice{position:fixed;bottom:max(16px,env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:55;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 24px);padding:8px 10px 8px 14px;background:#20333ff5;border:1px solid #8aa4b8;border-radius:6px;color:#fff;box-shadow:0 3px 16px #0003;font-size:11px}
.undoNotice[hidden]{display:none!important}.undoNotice>span{min-width:0;line-height:1.5}.undoNotice button{flex:none;min-height:34px;border-radius:3px;font-size:11px;padding:5px 9px;background:#f2f6f8;color:#183d55;border:0;font-weight:700}.undoNotice #closeUndo{background:transparent;color:#c2d0d8;font-size:19px;min-width:30px;padding:3px}
@media(max-width:600px){.undoNotice{gap:6px;padding:7px 8px;min-width:calc(100vw - 24px)}}

/* UI73: a paused video always has a directly usable central play button, including HUD OFF. */
body.studioPlayer.playerPaused #continuousPlay{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
/* UI75: shared camera requests stay beside the existing camera memo inputs. */
.studioPlayer .cameraCommonNote{font-size:11px;line-height:1.55;color:#5e6f79;background:#f4f8fb;border-left:2px solid #7ac9ed;padding:6px 8px;margin:0 0 7px;white-space:pre-wrap;overflow-wrap:anywhere}
.studioPlayer .field[data-camera="movi"] .cameraCommonNote{background:#fffbef;border-left-color:#e5c056;color:#776331}
@media(max-width:600px){.studioPlayer .cameraCommonNote{font-size:10px;padding:5px 7px;line-height:1.5}}
.studioPlayer .field[data-camera] .cameraCommonNote{grid-column:1/-1;grid-row:3}
@media(max-width:899px){.studioPlayer .field[data-camera] .cameraCommonNote{grid-row:2}}

.cameraCommonNote a{display:inline-block;margin-top:3px;color:#286b94;text-underline-offset:2px}
/* UI76: larger desktop type, device-scoped preferences, no fixed 180px memo crop. */
.studioPlayer .videoLyrics,.studioPlayer.playerFocus .videoLyrics{--lyric-base:var(--device-lyric-base,16px)}
.studioPlayer .videoMemo,.studioPlayer.playerFocus .videoMemo,.studioPlayer.playerPhone .videoMemo,.studioPlayer.playerPhone.playerFocus .videoMemo{--memo-base:var(--device-memo-base,16px);width:auto;max-width:calc(100% - 20px);max-height:calc(100% - 84px);padding:2px 3px 5px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;line-height:1.4;scroll-padding:6px;scrollbar-gutter:stable;touch-action:pan-y;overscroll-behavior:contain}
.studioPlayer .videoMemoLine{grid-template-columns:clamp(38px,2.8em,90px) minmax(0,1fr);gap:clamp(6px,.4em,16px)}
.studioPlayer .videoMemoLine strong{font-size:clamp(11px,.7em,24px);line-height:1.7}
.studioPlayer .videoMemo.hasOverflow::after{content:'↕ 메모 스크롤';position:sticky;bottom:0;float:right;display:block;font-size:11px;line-height:1.6;font-weight:700;color:#fff;-webkit-text-stroke:1px #111;paint-order:stroke fill;pointer-events:none}
.studioPlayer .textProfileHint{margin:0 0 7px;font-size:10px;line-height:1.4;color:#b6cad6}

/* UI78: master capture ranges remain distinct from song/lyric sections. */
.studioPlayer #masterTakeMarkers{position:absolute;inset:2px 0;z-index:2;pointer-events:none}
.studioPlayer #masterTakeMarkers i{position:absolute;top:0;height:100%;border-left:2px dashed #9b6534;opacity:.85}
.studioPlayer #masterTakeRail{display:flex;gap:4px;height:36px;min-height:36px;padding:2px 6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;background:#f6f1e9;border-top:1px solid #dfd3c0;scrollbar-width:thin;touch-action:pan-x}
.studioPlayer #masterTakeRail[hidden]{display:none!important}
.studioPlayer #masterTakeRail button{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;border:1px solid #d9c9b3;background:#fffaf3;color:#725333;font-size:10px;border-radius:3px;white-space:nowrap}
.studioPlayer #masterTakeRail button span{font-size:9px;font-variant-numeric:tabular-nums}
.studioPlayer #masterTakeRail button.current{background:#765333;border-color:#765333;color:white}
.studioPlayer.playerFocus .playerSurface{grid-template-rows:minmax(0,1fr) auto auto auto}
.studioPlayer.playerFocus #masterTakeRail{grid-row:3;background:#241f18;border-color:#514638}
.studioPlayer.playerFocus .partRail{grid-row:4}
.studioPlayer.playerFocus #masterTakeRail button{background:#30281e;color:#e9d3b1;border-color:#66553f}
.studioPlayer.playerFocus #masterTakeRail button.current{background:#bd9054;color:#12100c}
@media(max-width:600px){.studioPlayer #masterTakeRail{height:34px;min-height:34px}.studioPlayer #masterTakeRail button{padding:2px 6px;font-size:9px;min-height:27px}.studioPlayer #masterTakeRail button span{font-size:9px}}

/* UI79: member names and lyrics have independent viewing preferences. */
.studioPlayer .captionPanel .memberTextSizeGroup{border-top:1px solid #ffffff30;padding-top:5px;margin-top:5px}
.studioPlayer #playbackPerformer{font-size:calc(11px * var(--member-scale,1))}

.studioPlayer .videoLyrics #lyricMember{font-size:calc(var(--device-lyric-base,16px) * var(--member-scale,1))}

/* Three independent sliders remain visible even in a compact inline player. */
.studioPlayer .textSettingsHeader{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:25px;margin-bottom:3px}
.studioPlayer .textSettingsHeader .textProfileHint{margin:0;font-size:9px;line-height:1.3}
.studioPlayer .captionPanel .textSettingsHeader #resetTextSize{min-height:24px;font-size:9px;padding:3px 5px;white-space:nowrap}
body.studioPlayer .captionPanel .textSizeGroup{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:5px;min-height:28px;padding:0!important;margin:0!important;border:0}
.studioPlayer .captionPanel .textSizeHeading{min-height:22px;display:block;margin:0}
.studioPlayer .captionPanel .textSizeHeading label{font-size:10px;line-height:1.4}
.studioPlayer .captionPanel input[type=range]{margin:0!important}
/* UI80: master take configuration stays explicit and touch friendly. */
.studioPlayer #masterTakeRail .masterManage{position:sticky;left:-1px;z-index:1;background:#f6f1e9;border-color:#ad8c63;font-weight:700;flex-shrink:0}
.studioPlayer.playerFocus #masterTakeRail .masterManage{background:#352919;color:#f4dcbb}
#masterEditorDialog{width:min(980px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #c9d1d7;border-radius:7px;color:#24323b;background:#f7f8fa;overflow:auto;overscroll-behavior:contain}
#masterEditorDialog::backdrop{background:#02080cbd}
.masterEditorHeader{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:white;border-bottom:1px solid #dce2e6;position:sticky;top:0;z-index:5}
.masterEditorHeader small{font-size:9px;color:#9b703f;letter-spacing:.08em}.masterEditorHeader h2{font-size:18px;margin:3px 0 0}.masterEditorHeader button{min-height:36px;font-size:12px}
.masterEditHint{font-size:11px;line-height:1.7;padding:0 16px;color:#64717a}.masterEditToolbar{display:flex;gap:6px;align-items:center;padding:0 16px 10px}.masterEditToolbar button{font-size:11px;min-height:36px;padding:5px 9px}.masterEditCount{margin-left:auto;font-size:10px;color:#79848b}
.masterEditorScroll{overflow:auto;max-height:42dvh;min-height:160px;border-block:1px solid #d9e0e5;background:#edf1f4;touch-action:pan-x pan-y;scrollbar-width:thin}
.masterEditorCanvas{min-width:850px;padding:0 12px 10px}.masterRuler{height:27px;margin-left:96px;position:relative;pointer-events:none}.masterRuler span{position:absolute;font-size:9px;top:6px;transform:translateX(-50%);color:#75838c}
.masterEditRow{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:8px;height:44px}.masterSelect{font-size:10px;min-height:34px;padding:4px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;background:white}
.masterEditLane{height:36px;position:relative;background:repeating-linear-gradient(90deg,#ffffff90 0,#ffffff90 calc(10% - 1px),#dce2e8 calc(10% - 1px),#dce2e8 10%);border-radius:2px}
.masterRange{position:absolute;height:34px;top:1px;min-width:2px;background:#b69464;color:#fff;border-radius:3px;box-shadow:0 0 0 1px #7d613e;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;align-items:center;justify-content:center}
.masterRange:active{cursor:grabbing}.masterEditRow.selected .masterRange{background:#6e4d2c;box-shadow:0 0 0 2px #b98d4c}.masterEditRow.selected .masterSelect{border-color:#9f7c49;background:#fff8eb}
.masterRangeText{font-size:9px;white-space:nowrap;overflow:hidden;padding:0 20px;pointer-events:none;font-variant-numeric:tabular-nums}
.masterRange .masterEdge{position:absolute;top:-3px;height:40px;min-height:40px;width:22px;min-width:22px;padding:0;border:0;border-radius:3px;background:transparent;color:white;cursor:ew-resize;touch-action:none}.masterEdge.start{left:-7px}.masterEdge.end{right:-7px}.masterEdge::after{content:'';position:absolute;top:11px;bottom:11px;left:10px;border-left:2px solid currentColor;box-shadow:3px 0 0 currentColor}
.masterEditDetails{display:grid;grid-template-columns:1fr 1.4fr 1fr 1fr;gap:10px;padding:14px 16px 4px}.masterEditDetails label{font-size:10px;color:#6b7881;display:block}.masterEditDetails input:not([type=checkbox]){display:block;width:100%;min-width:0;margin-top:4px;font-size:12px;padding:8px;background:white;color:#24323b}.masterEditDetails .masterEndOption{grid-column:3/5;display:flex;align-items:center;gap:5px}.masterEndOption input{width:16px;height:16px}
.masterEditStatus{min-height:18px;margin:8px 16px;font-size:11px;line-height:1.6;color:#597180}.masterEditStatus.error{color:#9b2632}#masterEditorDialog [data-action=latest]{margin:0 16px 10px;font-size:11px}
.masterEditorFooter{position:sticky;bottom:0;z-index:5;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:10px 16px;background:white;border-top:1px solid #dce2e6}.masterEditorFooter span{margin-right:auto;font-size:10px;color:#75838b}.masterEditorFooter button{min-height:38px;font-size:12px}.masterEditorFooter .primary{background:#6e4d2c;color:white;border-color:#6e4d2c}
@media(max-width:600px){.masterEditDetails{grid-template-columns:1fr 1fr;gap:8px}.masterEditDetails .masterEndOption{grid-column:1/-1}.masterEditorFooter span{display:none}.masterEditorHeader h2{font-size:16px}.masterEditorCanvas{min-width:850px}.masterEditorScroll{max-height:38dvh}.masterEditToolbar{padding-inline:10px;gap:4px}.masterEditToolbar button{font-size:10px;padding:5px 7px}.masterEditorFooter{padding:9px 12px}}

@media(any-pointer:coarse){.masterRange .masterEdge{width:32px;min-width:32px;height:44px;min-height:44px;top:-5px}.masterEdge.start{left:-12px}.masterEdge.end{right:-12px}.masterEdge::after{left:14px;top:12px;bottom:12px}}
