/* Studio prototype alignment: real controls and real library data only. */
:root{--studio-bg:#151b17;--studio-panel:#202a23;--studio-border:#3c493d;--studio-ivory:#edece2;--studio-jade:#8fa98e;color:var(--studio-ivory);background:var(--studio-bg)}
body{background:radial-gradient(ellipse at 65% 0,#27332855,transparent 60%),#151b17;min-height:100vh}button,input,select{font-family:inherit;border-radius:6px;background:#242d25;border-color:#465244;color:#dedfd3}button:hover{background:#344335;border-color:#778b70}button.primary{background:#465d44;border-color:#728768;color:#f5f2df}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #a7c39c;outline-offset:3px}
header{height:78px;padding:0 28px;background:#171d18f5;border-bottom:1px solid #4a58423d;gap:20px;z-index:8}.brand{font-size:24px;letter-spacing:2px;font-family:'Yu Mincho','PMingLiU',serif;gap:10px;white-space:nowrap}.brand span{font-size:16px;letter-spacing:2px;color:#dddcca}.brand img{width:34px;height:34px}.sub{margin:3px 0 0 44px;font-size:9px;letter-spacing:1.3px;color:#9d9f8e}.headerActions{gap:12px}.sourceGroupToggle{background:transparent;border:1px solid #59654f55;border-radius:8px;height:46px;padding:3px 9px 3px 4px;max-width:190px}.sourceGroupToggle img{width:36px;height:36px;border-radius:50%}.sourceGroupToggle span{font-size:12px}.headerActions .shortToggle,#homeHide{height:42px;width:48px;min-width:48px;border-color:#69725c44;background:transparent}.headerActions .shortToggle .playerIcon{width:18px;height:18px}.shortToggle span{font-size:9px}#homeHide{font-size:11px}
.studioSidebar{position:fixed;top:78px;bottom:0;left:0;width:184px;padding:26px 12px 18px;background:linear-gradient(180deg,#1a241c,#141b16);border-right:1px solid #4b594133;z-index:4;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.studioSidebar nav,.studioSidebar #libraryNavSlots,.sidebarBottom{display:flex;flex-direction:column;gap:6px}.studioSidebar button{display:flex;align-items:center;gap:11px;min-height:43px;padding:10px 14px;border:1px solid transparent;border-radius:6px;background:transparent;color:#bec5b3;text-align:left;font-size:13px;font-weight:400}.studioSidebar button .ui-icon{width:19px;height:19px;margin:0;flex-shrink:0}.studioSidebar button:hover{background:#2b392b;color:#eeefdf}.studioSidebar button.primary{background:transparent;border-color:transparent;color:#bec5b3}.studioSidebar button.nav-active{background:#3c503b;border-color:#a2b88b22;color:#f5f3df}.sidebarBottom{border-top:1px solid #64715d44;padding-top:16px}.sidebarCredit{font-size:9px;letter-spacing:1.7px;color:#8b9680;line-height:1.9;padding:16px 13px 0}.sidebarCredit span{display:block;letter-spacing:.4px;font-size:9px;color:#6f7b67}
#hero{margin:24px 28px 0 208px;height:300px;min-height:280px;border:1px solid #59644d77;border-radius:10px;background:#283126 url('/assets/sumi-background.png') center/cover;box-shadow:0 12px 35px #0002}#heroImg{opacity:.76;filter:saturate(.8);object-fit:cover}#hero:after{background:linear-gradient(90deg,#142018ed 0%,#14201855 65%,#14201811),linear-gradient(0deg,#142018ad,transparent 80%)}.heroText{left:34px;bottom:28px;max-width:70%}.eyebrow{font-size:9px;letter-spacing:2px;color:#c8cbb5}h1{font-size:clamp(30px,3.7vw,53px);line-height:1.3;margin:13px 0 10px;letter-spacing:2px;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.heroText .muted{font-size:12px;color:#bec7b6;line-height:1.8;max-width:620px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.heroButtons{gap:8px;margin-top:18px;align-items:center}#heroPlay{background:#b75f43;border-color:#cb7959;border-radius:24px;padding:11px 22px;color:#fff2de;font-size:13px}#heroPlay:hover{background:#c77353}#heroPrevious,#heroNext{height:38px;width:38px;min-width:38px;padding:8px;border-radius:50%;font-size:0;background:#17221977;border-color:#b3bfa333}#heroPrevious svg,#heroNext svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.bannerIntervals{margin-top:14px;gap:10px}.bannerIntervals>span{font-size:10px;color:#aab79d}.intervalChoices button{font-size:10px;padding:5px 9px;min-width:35px;border-radius:5px;background:#18231bc9;border:1px solid #a7b69466;color:#ccd6bf}.intervalChoices button.active{background:#698365;border-color:#a9bd97;color:#fff8e5}
main{margin-left:184px;padding:22px 28px 48px}.collectionActions{padding:0;gap:8px;justify-content:flex-end}.collectionActions button{padding:7px 11px;font-size:11px;background:transparent;color:#bdc9b0;border-color:#63745955}.collectionActions button .ui-icon{width:14px;height:14px}.sectionTop{margin-top:14px;padding:14px 0 8px;border-top:1px solid #78836833}.sectionTop h2{font-size:18px;letter-spacing:1px;margin:0}.sectionTop small{font-size:11px;font-weight:400;margin-left:9px;color:#9da88f}#scanState{font-size:10px}.catalogFilters{padding:10px 0 15px;gap:8px;align-items:center}.catalogFilters button,.catalogFilters input,.catalogFilters select,.catalogFilters summary{font-size:11px;padding:8px 10px;min-height:35px}.catalogFilters input[type=search]{min-width:180px;flex:1}.catalogFilters label{font-size:10px;color:#a3ae95;display:flex;align-items:center;gap:5px}.catalogFilters input[type=date]{width:128px;font-size:10px}.catalogFilters #pageSize{min-width:58px}#tagFilterDetails summary{min-width:130px;background:#293728;border-color:#697b58}#tagFilterSummary{font-size:10px}#clear{color:#a6b098;background:transparent}.tagFilterPanel{background:#19271df5;border-color:#708364;border-radius:9px;box-shadow:0 12px 35px #0008}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 18px}.card{overflow:hidden;border:1px solid #52624966;border-radius:9px;background:#263329;box-shadow:0 4px 14px #0002;transition:border-color .2s,box-shadow .2s}.card:hover{border-color:#93a77c;box-shadow:0 6px 22px #0003}.visual{aspect-ratio:16/9;border:0;border-radius:0;background-color:#222d23;box-shadow:none}.visual img{object-fit:cover;filter:saturate(.84);transition:transform .4s}.visual:hover img{transform:scale(1.035)}.visual .badge{top:auto;bottom:9px;right:10px;font-size:10px;padding:3px 7px;background:#0e190fd9;border:1px solid #b5c49a44;border-radius:4px;z-index:2}.cardBody{padding:12px 13px 10px}.cardTitle{font-size:15px;letter-spacing:.5px;margin:0;line-height:1.5;color:#eeefdd}.tags{gap:5px;margin:7px 0;min-height:16px}.tag{font-size:9px;line-height:1.3;border:1px solid #b2c29b66;background:transparent;color:#ced8ba;padding:2px 6px;border-radius:12px}.meta{font-size:10px;gap:8px;color:#a8b69a;line-height:1.7}.edit{font-size:10px;color:#b7c4a8;padding:2px 4px;background:transparent;white-space:nowrap}.empty{background:#1e2b20;border-color:#586a4c;color:#aebba1;border-radius:10px}.pagination{font-size:11px;gap:6px;margin:8px 0 18px}.pagination button,.pagination input{font-size:10px;padding:6px 9px}.pagination input{max-width:60px}.studio-credit{margin-left:184px;padding:24px 28px 30px;border-top:1px solid #5d6b4933;background:#151e17;color:#8b987e;font-size:10px}.studio-credit img{width:150px;margin-bottom:10px}
#sourceGroupDialog{background:#19261d;border-color:#73846166;border-radius:12px;box-shadow:0 20px 70px #0008;max-width:820px}.sourceGroupHeading h2{font-size:24px;color:#e6ebd5}.sourceGroupChoice{padding:10px;gap:9px;border-radius:10px}.sourceGroupChoice img{border-radius:9px;border:1px solid #afbe9855}.sourceGroupChoice.selected{background:#4a674035;border-color:#97b68a}.sourceGroupChoice:hover{background:#34492d66}.sourceGroupChoice strong{font-size:13px}.sourceGroupChoice small{color:#a1b38e}.channelFooter{margin-top:14px}.studioGuide{max-width:600px;padding:28px;background:#1d2b21;border-radius:12px}.studioGuide p,.studioGuide li{font-size:13px;line-height:1.9;color:#bdcbb0}.studioGuide li{margin:10px 0}
#shortPanel{background:#101a13}.shortHeader{background:#1c2b20;border-color:#5e74504d}.shortHeader strong{font-size:22px;color:#dce9cf;letter-spacing:1px}.shortHeaderActions button{background:transparent;border-color:#77946655;color:#d2e0c5}.shortCard{background:radial-gradient(ellipse at center,#2b422f,#111c14 70%)}.shortStage{border-color:#70885d77;border-radius:12px;box-shadow:0 12px 48px #0006}.shortNavigation button{background:#233d2a88;border-color:#829e6c66;border-radius:50%;color:#dbe9c9}.shortExpand{background:#476540bb;border-color:#bdd9a688}.shortCaption{background:linear-gradient(transparent,#15261bef)}.shortCaption h3{font-family:'Yu Mincho','PMingLiU',serif;font-size:22px;font-weight:400;letter-spacing:1px}.shortCaption p{color:#c9d9bb}.shortHeader .intervalChoices button.active{background:#76956b;border-color:#b8d29f}.short-mode .studioSidebar,.boss-mode .studioSidebar{display:none}
@media(min-width:1600px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}#hero{height:360px}.heroText{max-width:60%}}
@media(max-width:1100px) and (min-width:761px){.studioSidebar{width:150px;padding-left:8px;padding-right:8px}.studioSidebar button{padding:10px;font-size:12px}#hero{margin-left:170px;margin-right:20px;height:300px}main{margin-left:150px;padding:20px}.studio-credit{margin-left:150px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heroText{max-width:85%;left:25px}.brand span{font-size:13px}}
@media(max-width:760px){header .brand{font-size:20px;gap:6px}header .brand span{display:none}header{height:68px;padding:0 14px;gap:10px}.brand{font-size:20px;letter-spacing:1px}.brand img{width:28px;height:28px}.brand span{font-size:10px;letter-spacing:1px}.sub{display:none}.headerActions{gap:5px}.headerActions .shortToggle{display:none}.sourceGroupToggle{width:42px;min-width:42px;height:40px;padding:3px}.sourceGroupToggle img{width:32px;height:32px}.sourceGroupToggle span{display:none}#homeHide{width:42px;height:40px;min-width:42px;font-size:10px}.studioSidebar{top:auto;bottom:0;left:0;width:100%;height:65px;padding:5px 7px 8px;border:0;border-top:1px solid #76896655;background:#1b2a20f5;backdrop-filter:blur(12px);overflow:visible;z-index:9}.studioSidebar nav{flex-direction:row;justify-content:space-around;gap:2px;width:100%;height:100%}.studioSidebar #libraryNavSlots{display:contents}.studioSidebar button{flex:1;min-width:0;min-height:0;flex-direction:column;justify-content:center;gap:3px;font-size:9px;padding:5px 3px;border-radius:5px;text-align:center;white-space:nowrap}.studioSidebar button .ui-icon{width:19px;height:19px}.sidebarBottom{display:none}#hero{margin:14px 14px 0;min-height:0;height:325px;border-radius:9px}.heroText{left:22px;bottom:23px;max-width:88%}.heroText h1{font-size:29px;margin:10px 0;letter-spacing:1px}.heroText .muted{font-size:10px;max-width:95%}.eyebrow{font-size:8px;letter-spacing:1px}.heroButtons{margin-top:14px}#heroPlay{font-size:11px;padding:9px 17px}#heroPrevious,#heroNext{height:33px;width:33px;min-width:33px}.bannerIntervals{margin-top:12px}.bannerIntervals>span{font-size:9px}.intervalChoices button{font-size:9px;padding:4px 7px;min-width:30px}main{margin:0;padding:18px 14px 30px}.collectionActions{justify-content:flex-start;gap:5px}.collectionActions button{font-size:9px;padding:6px 8px}.collectionActions .ui-icon{width:12px;height:12px;margin-right:4px}.sectionTop{margin-top:14px;padding-top:12px}.sectionTop h2{font-size:16px}.catalogFilters{gap:7px}.catalogFilters input[type=search]{min-width:100%}.catalogFilters input[type=date]{width:114px}.catalogFilters button,.catalogFilters select,.catalogFilters summary{font-size:10px}.catalogFilters #tagFilterDetails summary{min-width:120px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}.cardBody{padding:8px 9px}.cardTitle{font-size:13px}.tags{margin:5px 0;gap:3px}.tag{font-size:8px;padding:2px 4px}.meta{font-size:9px;flex-wrap:wrap;gap:2px}.edit{font-size:9px}.visual .badge{font-size:8px;bottom:5px;right:5px}.studio-credit{margin:0;padding:20px 14px 92px;font-size:9px}.studio-credit img{width:130px}#sourceGroupDialog{padding:20px}.studioGuide{padding:20px}.shortCaption h3{font-size:19px}.short-mode .studio-credit{display:none}}
@media(prefers-reduced-motion:reduce){.card,.visual img{transition:none}}

.pagination[hidden]{display:none}
.bannerIntervals .intervalChoices button.active{background:#698365;border-color:#b2c59c;color:#fff8e5;box-shadow:none}

#libraryMain{scroll-margin-top:88px}
.bannerIntervals .intervalChoices button.selected{background:#698365;border-color:#b2c59c;color:#fff8e5;box-shadow:none}
/* v1.3: reference composition, image-overlay cards and compact controls. */
:root{--studio-bg:#171c18;--studio-ivory:#eeeadf}body{background:linear-gradient(115deg,#20261f,#141915)}
header{height:64px;padding:0 24px;background:linear-gradient(110deg,#161b17,#252b23);border-bottom:1px solid #8a8f7655}header>div:first-child{display:flex;align-items:center;gap:20px}.brand{font-size:24px;letter-spacing:1px}.brand span{font-family:Georgia,serif;font-size:22px;letter-spacing:1px}.brand img{display:none}.sub{margin:0;border-left:1px solid #777c6755;padding-left:20px;font-size:11px;letter-spacing:0}.headerActions{gap:16px}.headerActions .shortToggle,#homeHide{width:auto;min-width:0;height:32px;display:flex;flex-direction:row;gap:8px;border:0;border-radius:0;padding:0 8px;background:transparent;font-size:12px}.shortToggle span{font-size:12px}#homeHide .playerIcon{width:20px;height:20px}.sourceGroupToggle{border:0;padding:0;width:36px;min-width:36px;height:36px}.sourceGroupToggle img{width:30px;height:30px}.sourceGroupToggle span{display:none}
.studioSidebar{top:64px;width:174px;padding:18px 12px;background:linear-gradient(105deg,#222820,#151a16);border-right:1px solid #858c7055}.studioSidebar button{min-height:38px;padding:8px 12px;color:#e3e4d7}.studioSidebar button[hidden]{display:none}.sidebarBottom{margin-top:20px;justify-content:flex-start;flex:1;padding-top:18px}.sidebarCredit{margin-top:auto}.studioSidebar nav,.studioSidebar #libraryNavSlots{gap:8px}
#hero{margin:10px 20px 0 188px;height:clamp(220px,23vw,320px);min-height:220px;border-radius:6px;border-color:#72785b55}#heroImg{opacity:.95;filter:saturate(.7)}#hero:after{background:linear-gradient(90deg,#10201777,transparent 80%),linear-gradient(0deg,#111e16a8,transparent 70%)}#hero .heroText{left:30px;bottom:24px;max-width:85%}.heroText>.eyebrow,#heroMeta{display:none}.heroText h1{font-size:clamp(30px,3.5vw,48px);font-weight:600;margin:0 0 12px;letter-spacing:2px}.heroButtons{margin:0;gap:12px}#heroPlay{height:44px;width:44px;min-width:44px;padding:11px;border-radius:50%;display:grid;place-items:center}#heroPlay svg{width:22px;height:22px}#heroPrevious,#heroNext{order:3;width:26px;height:26px;min-width:26px;padding:4px;border-color:transparent;background:transparent}.bannerIntervals{margin:0!important;padding-left:16px;border-left:1px solid #b4b9a577}.bannerIntervals>span{display:none}.intervalChoices button{font-size:11px;padding:4px 10px;min-width:42px;background:#1d231e99;border:1px solid #a1a88a;border-radius:6px}.intervalChoices button.is-on{color:#f7f5e8;background:#526e49;border-color:#a3ba90;box-shadow:inset 0 0 10px #adc39133}
main{margin-left:174px;padding:8px 20px 28px}.sectionTop{border:0;margin:0;padding:4px 0;min-height:20px}.sectionTop h2{font-size:11px;color:#a5ae97;font-weight:400}.sectionTop small{font-size:10px}#scanState{font-size:9px}.catalogFilters{padding:4px 0 12px;gap:12px;flex-wrap:wrap}.catalogFilters input[type=search]{min-width:130px;max-width:250px;flex:1}.catalogFilters button,.catalogFilters input,.catalogFilters select,.catalogFilters summary{min-height:30px;padding:5px 10px;background:#20271f;border-color:#81877399;font-size:11px}.catalogFilters #tagFilterDetails{min-width:140px}.catalogFilters #tagFilterDetails summary{background:#20271f;min-width:140px}.advancedFilters{position:relative}.advancedFilters summary{cursor:pointer;border:1px solid #81877399;border-radius:6px;list-style:none}.advancedFilterPanel{position:absolute;top:38px;right:0;width:min(450px,85vw);padding:18px;display:flex;flex-wrap:wrap;gap:12px;z-index:11;background:#20291ff5;border:1px solid #838b72;border-radius:8px;box-shadow:0 12px 35px #0008}.advancedFilterPanel .collectionActions{width:100%;justify-content:flex-start;flex-wrap:wrap}.catalogViewSwitch{display:flex;margin-left:auto;gap:6px}.catalogViewSwitch button{width:32px;padding:5px;border:0;background:transparent}.catalogViewSwitch svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.catalogViewSwitch [aria-pressed=true]{background:#536e49;color:#f0f3e6}.pagination{font-size:10px;margin:0 0 10px}.pagination button,.pagination input{padding:4px 7px}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{position:relative;border-radius:7px;background:#20271e;border:1px solid #717b5c66}.visual{aspect-ratio:1.85}.cardBody{position:absolute;bottom:0;left:0;right:0;padding:35px 12px 9px;background:linear-gradient(transparent,#172019ed);pointer-events:none;display:flex;flex-wrap:wrap;gap:4px 9px;align-items:center}.cardTitle{width:100%;font-family:'Yu Mincho','PMingLiU',serif;font-size:18px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tags{margin:1px 0;min-height:0;max-width:55%;overflow:hidden;flex-wrap:nowrap}.tag{white-space:nowrap;font-size:9px;padding:1px 6px}.meta{font-size:9px;flex:1;justify-content:space-between;gap:4px}.edit{pointer-events:auto;font-size:0}.edit:after{content:'＋';font-size:14px}.visual .badge{top:8px;bottom:auto;right:8px;background:#121b14b8}.card:has(.preview) .cardBody{opacity:0}.grid.listView{grid-template-columns:1fr}.listView .card{display:flex;align-items:center}.listView .visual{width:200px;flex-shrink:0}.listView .cardBody{position:static;flex:1;padding:16px;max-width:100%;background:none}.listView .cardTitle{white-space:normal}.studio-credit{margin-left:174px;background:transparent}
#sourceGroupDialog{position:fixed;inset:70px 24px auto auto;margin:0;width:240px;max-height:75vh;padding:14px;background:#252c24f5;border:1px solid #b5b69e;border-radius:8px;box-shadow:0 10px 32px #0008}#sourceGroupDialog::backdrop{background:transparent}.sourceGroupHeading h2{font-size:13px}.sourceGroupHeading button{font-size:10px;padding:3px 6px}#sourceGroupDialog>p{display:none}#sourceGroupChoices{display:flex;flex-direction:column;gap:4px;padding-top:10px}.sourceGroupChoice{flex-direction:row;padding:7px;gap:12px;border:0;border-radius:5px}.sourceGroupChoice img{width:30px;height:30px;border:0;border-radius:50%}.sourceGroupChoice strong{font-size:12px;flex:1;text-align:left}.sourceGroupChoice small{display:none}.sourceGroupChoice.selected{background:#40513b}.sourceGroupChoice.selected:after{content:'✓';font-size:16px}.channelFooter{border-top:1px solid #8b967166;padding-top:7px;margin-top:8px}
#shortPanel{inset:12px max(12px,calc((100vw - 430px)/2));border:1px solid #7e876b;border-radius:12px;overflow:hidden;box-shadow:0 0 0 100vmax #0c110ff2,0 15px 60px #0008;background:#18211a}.shortHeader{height:44px;min-height:44px;padding:4px 12px;flex-wrap:nowrap;background:#1b221c;border-bottom:1px solid #76816466}.shortHeader strong{font-family:Georgia,serif;font-size:19px;font-weight:400}.shortHeader #shortSummary{display:none}.shortHeaderActions{gap:4px}.shortHeaderActions button{height:30px;width:32px;border:0;font-size:10px}.shortHeaderActions .playerIcon{width:18px;height:18px}.shortCard{height:100%;padding:0;background:#151d17}.shortStage{width:100%;height:100%;aspect-ratio:auto;max-width:none;border:0;border-radius:0;box-shadow:none}.shortVideo{object-fit:contain;background:radial-gradient(ellipse,#344233,#18221a)}.shortCaption{padding:70px 16px 14px;bottom:0;z-index:2}.shortCaption h3{font-size:21px;margin-bottom:6px}.shortCaption p{font-size:10px;line-height:1.4}.shortCaption p:nth-child(2){display:none}.shortSideTools{position:absolute;right:12px;bottom:160px;display:flex;flex-direction:column;gap:14px;z-index:3}.shortSideTools button{position:static;width:38px;height:38px;padding:6px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#f0f0dd}.shortSideTools .playerIcon{width:27px;height:27px;filter:drop-shadow(0 1px 3px #000)}.shortSideTools [aria-pressed=true]{color:#b3dba3}.shortTimeline{display:flex;flex-direction:column;gap:10px;pointer-events:auto}.shortTimeline output{text-align:right;font-size:11px;font-variant-numeric:tabular-nums}.shortTimeline input{width:100%;height:16px;margin:0;padding:0;accent-color:#b2cda2}.shortDock{padding:10px 16px 35px;background:#202a21}.shortDock #shortIntervals{justify-content:space-between;gap:8px}.shortDock #shortIntervals button{font-size:11px;min-width:48px}.shortNavigation{inset:0;pointer-events:none;display:block}.shortNavigation button{position:absolute;left:calc(50% - 18px);height:28px;width:36px;border:0;background:transparent;color:#e5e9d8;pointer-events:auto;border-radius:0;font-size:19px}#shortPrevious{top:48px}#shortNext{bottom:3px}
@media(min-width:1600px){#hero{height:320px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px) and (min-width:761px){.studioSidebar{width:150px}#hero{margin-left:164px}main,.studio-credit{margin-left:150px}.sub{display:none}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cardTitle{font-size:16px}.meta{font-size:8px}.tags{max-width:100%}.cardBody{gap:4px}}
@media(max-width:760px){header{height:56px;padding:0 14px}.sub{display:none}.brand{font-size:20px}.headerActions{gap:8px}.headerActions .shortToggle{display:flex}#homeHide{height:30px}.studioSidebar{top:auto;width:100%;height:62px;padding:5px}.studioSidebar nav{gap:4px}.studioSidebar button{min-height:0;padding:4px;font-size:10px}.sidebarBottom{display:none}#hero{margin:10px 12px 0;height:230px;min-height:230px}#hero .heroText{left:18px;bottom:20px;max-width:95%}.heroText h1{font-size:30px}.heroButtons{gap:5px}#heroPlay{width:38px;height:38px;min-width:38px;padding:9px}.bannerIntervals{padding-left:8px}.intervalChoices button{min-width:32px;font-size:10px;padding:4px 6px}#heroPrevious,#heroNext{width:20px;min-width:20px;padding:1px}main{margin:0;padding:8px 12px 20px}.catalogFilters{gap:8px}.catalogFilters input[type=search]{min-width:100%;max-width:none}.catalogFilters #tagFilterDetails{min-width:110px}.catalogFilters #tagFilterDetails summary{min-width:110px;padding:5px 7px}.catalogFilters #sort{max-width:145px}.advancedFilters{position:static}.advancedFilterPanel{left:12px;right:12px;top:auto;margin-top:8px;width:auto}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.visual{aspect-ratio:1.35}.cardBody{padding:32px 8px 7px;gap:3px}.cardTitle{font-size:15px}.tags{max-width:100%;width:100%}.tag{font-size:8px}.meta{font-size:8px}.listView .visual{width:130px}.studio-credit{margin:0;padding-bottom:85px}#sourceGroupDialog{top:62px;right:12px;width:min(260px,90vw)}#shortPanel{inset:0;border:0;border-radius:0}.shortHeader{min-height:44px;height:44px}.shortHeaderActions button{height:30px}.shortStage{max-width:none}.shortCaption h3{font-size:20px}}
/* Player: shared moss, ivory and fine outline controls. */
#modal{border:1px solid #78846b88;border-radius:12px;box-shadow:0 24px 90px #0009;color:#eeeadd}#playerHead{padding:18px 22px;background:linear-gradient(#101a15e6,transparent);gap:20px}#playerTitle{font-family:'Yu Mincho','PMingLiU',serif;font-size:17px;font-weight:400;letter-spacing:1.2px;text-shadow:0 2px 6px #000;max-width:calc(100% - 135px)}#playerHead .headActions{gap:8px}#playerHead #close,#playerHead #bossButton{width:48px;height:48px;min-width:48px;padding:0;border-radius:8px;border:1px solid #a2ad8f55;background:#1e2a20b8;color:#eeeadd;display:grid;place-items:center;font-size:12px}#playerHead #close:hover,#playerHead #bossButton:hover{background:#43523cd9;border-color:#bdc8a8}#playerHead #close .playerIcon{width:25px;height:25px;stroke-width:1.3}
.playerBottom{padding:48px 24px 18px;background:linear-gradient(transparent,#102017d9 40%,#121b15f5);max-height:78%;overflow:visible}.playerTools{padding:9px 0 2px;gap:12px;flex-wrap:nowrap}.controlsLeft,.controlsRight{gap:7px}.controlsRight{flex-wrap:nowrap}.playerTools button{width:34px;height:34px;min-height:34px;padding:7px;color:#e1e5d7;border:1px solid transparent;border-radius:6px;background:transparent}.playerTools button:hover{background:#647b4d33;color:#fff9e9;border-color:#aebd9555}.playerTools button:focus-visible{outline:2px solid #bdcfa5;outline-offset:2px}.playerTools .playerIcon{width:20px;height:20px;stroke-width:1.4}.playerTools #playPause{width:38px;height:38px;padding:8px;border-radius:50%;background:#a9593f;border:1px solid #c9836266;color:#fff3df}.playerTools #playPause:hover{background:#bd6b4e}.playerTools #speedToggle{width:40px;font-size:11px;font-variant-numeric:tabular-nums}.playbackClock{font-size:11px;letter-spacing:.4px;color:#e8e7d9;margin:0 8px}.clockDivider{color:#9ba68c}.playerTools button.is-on,.playerTools button[aria-expanded=true]{background:#526e4666;color:#cfdfb8;border-color:#a2b58d88;box-shadow:none}.playerTools #brightnessToggle{font-size:23px}.seekRow{padding:0;height:24px}#playerSeek{-webkit-appearance:none;appearance:none;width:100%;height:22px;background:transparent;border:0;outline:0;padding:0;margin:0;accent-color:#bbd0a6}#playerSeek::-webkit-slider-runnable-track{height:3px;background:#b6c1aa66;border-radius:4px}#playerSeek::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;border-radius:50%;background:#d1dfbd;border:1px solid #e9eedb;box-shadow:0 0 0 3px #7b9b6122}#playerSeek:hover::-webkit-slider-runnable-track{height:4px}#playerSeek:focus-visible{outline:1px solid #c1d4a6;outline-offset:2px}#playerSeek::-moz-range-track{height:3px;background:#b6c1aa66}#playerSeek::-moz-range-progress{height:3px;background:#bbd0a6}#playerSeek::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#d1dfbd;border:1px solid #e9eedb}
.controlPopup{bottom:calc(100% + 12px);background:#1a261ff5;border:1px solid #8f9c7b99;border-radius:8px;padding:6px;box-shadow:0 8px 30px #0008;backdrop-filter:blur(12px)}.speedPopup{width:76px;max-height:260px;padding:5px}.speedPopup button{width:100%;height:32px;min-height:32px;border-radius:4px;font-size:11px}.speedPopup button.active{color:#eff4df;background:#506a43bb}.volumePopup{width:48px;height:156px;gap:12px;padding:12px 8px}.volumePopup output{color:#e4ebd8;font-size:11px}.playerTools .volumePopup input[type=range]{accent-color:#b3caa0;height:106px;min-height:106px;background:transparent}.controlMenu:before{height:22px}
#episodeButtons{gap:8px;padding:12px 0 0;border-top:1px solid #899d6e33;margin-top:9px;scrollbar-color:#748765 transparent}#episodeButtons:empty{border:0;margin:0;padding:0}#episodeButtons button{min-width:38px;height:32px;background:#243321bb;border:1px solid #7b8d6866;color:#d4ddc6;border-radius:5px;font-size:11px}#episodeButtons button.selected{background:#506c43;border-color:#b2c898;color:#f5f4e6}#episodeButtons button:hover{background:#3c5033}
#timelinePreview,#episodePreview{border:1px solid #acb99599;background:#1b281ff5;border-radius:8px;overflow:hidden;box-shadow:0 8px 30px #0008}#timelinePreviewTime{font-size:11px;color:#e1e9d6;padding:6px}#episodePreview h4{font-weight:400;color:#e1e9d6}#scrubHUD{background:#1b2b21e8;border-color:#9bad8188;color:#edf0df;border-radius:10px;font-size:17px;padding:16px 24px;box-shadow:0 8px 30px #0005}.playerBottom #keyframePanel,.playerBottom #playerHelp{background:#1b281ff5;border:1px solid #83967177;border-radius:9px;box-shadow:0 10px 36px #0006;backdrop-filter:blur(12px)}.playerBottom #keyframePanel{padding:15px;margin:14px 0 0;max-height:34vh;overflow:auto}.keyframeHeader h3,.helpHeading h3{font-family:'Yu Mincho','PMingLiU',serif;font-size:16px;font-weight:400;color:#eeeadd}.keyframeHeader span{color:#9eae8f}.keyframeForm{gap:8px;margin-top:12px}.keyframeForm input,.keyframeForm button,.keyframeRow button{padding:8px 10px;font-size:11px;min-height:32px;border-color:#83967166;background:#2b3928;border-radius:5px}.keyframeForm input{background:#121e16}.keyframeJump{color:#e1e8d2}#keyframeRail button{background:#a8be8d;border-color:#d4dfbe;border-radius:3px}#keyframeStatus{color:#c1cea9}.playerBottom #playerHelp{top:82px;right:22px;padding:20px;width:min(560px,calc(100% - 44px))}#playerHelp kbd{background:#4a5940;border-color:#93a17c55;color:#f3f0df;border-radius:4px;font-weight:400}.shortcutRow,.gestureGrid>div{border-bottom-color:#b0c29222}.helpNote{color:#a6b494}#tagDialog{background:#1b281ff5;border-color:#83967199;border-radius:10px;padding:24px}.tagDialogHead h3{font-family:'Yu Mincho','PMingLiU',serif;font-weight:400}.tagChoice{background:#263622;border-color:#83967166;border-radius:16px;font-size:12px;padding:8px 13px}.tagChoice.active{background:#506c43;border-color:#bdd3a3;box-shadow:none;color:#f4f3df}#playbackModeNotice{color:#cbd9b9!important;font-size:11px}#fullscreenStatus{font-size:11px;color:#b8c8a5}#favorite[aria-pressed=true]{color:#cbdcae!important}
@media(max-width:1000px){.playerBottom{padding:40px 16px 12px}.controlsLeft,.controlsRight{gap:3px}.playerTools{gap:8px}.playerTools button{width:30px;height:32px;padding:5px}.playbackClock{margin:0 4px;font-size:10px}}
@media(max-width:650px){#playerHead{padding:12px}#playerTitle{font-size:14px}#playerHead #close,#playerHead #bossButton{width:44px;height:44px;min-width:44px}.playerBottom{padding:35px 12px max(12px,env(safe-area-inset-bottom));max-height:75%}.playerTools{flex-wrap:wrap;gap:8px}.controlsLeft{width:100%;justify-content:flex-start;gap:7px}.controlsRight{width:100%;margin:0;justify-content:space-between;gap:2px;flex-wrap:wrap}.playerTools button{width:30px;height:34px;min-height:34px}.playerTools #speedToggle{width:34px}.playerTools .playerIcon{width:19px;height:19px}.playbackClock{font-size:11px;margin-right:auto}.playerBottom #playerHelp{top:72px;right:12px;width:calc(100% - 24px);padding:15px;max-height:calc(100% - 230px)}.playerBottom #keyframePanel{padding:12px;max-height:28vh}.keyframeForm input{min-width:90px}.keyframeHeader span{display:none}#tagDialog{padding:18px}#episodeButtons{padding-top:10px}.controlPopup{bottom:calc(100% + 8px)}}
@media(prefers-reduced-motion:reduce){#playerOverlay,#playerHead,.playerBottom{transition:none}}
/* Direct timeline flags; keep seek dragging and marker clicks separate. */
.seekRow{margin-top:24px}#keyframeRail{position:absolute;inset:auto 5px 50% 5px;height:30px;margin:0;background:none;pointer-events:none;z-index:3}#keyframeRail .timelineFlag{position:absolute;top:0;transform:translateX(-50%);width:24px;height:30px;min-height:30px;padding:2px 5px;border:0;border-radius:3px;background:transparent;color:#e8cb70;pointer-events:auto;cursor:pointer;touch-action:manipulation}#keyframeRail .timelineFlag svg{width:14px;height:24px;fill:#e8cb7033;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #000)}#keyframeRail .timelineFlag:hover,#keyframeRail .timelineFlag:focus-visible{color:#ffe49a;background:#cfb15122;outline:1px solid #e8cb7088}#playerHead #bossButton{display:flex;align-items:center;justify-content:center;gap:4px;font-size:10px}#playerHead #bossButton .playerIcon{width:15px;height:15px;stroke-width:1.4}
/* Header source identity retains the large square app-icon treatment. */
header .sourceGroupToggle{width:52px;min-width:52px;height:52px;padding:2px;display:grid;place-items:center;background:linear-gradient(145deg,#354332,#202b22);border:1px solid #94a48066;border-radius:12px;box-shadow:inset 0 1px 0 #e5edcf12,0 3px 10px #0003}header .sourceGroupToggle img{width:46px;height:46px;border-radius:9px;object-fit:contain}header .sourceGroupToggle:hover{background:#3c4c35;border-color:#bdcda0}header .headerActions{gap:14px}@media(max-width:760px){header .sourceGroupToggle{width:46px;min-width:46px;height:46px;border-radius:10px}header .sourceGroupToggle img{width:40px;height:40px;border-radius:8px}header .headerActions{gap:8px}}

/* Separate timeline scrubbing from popup triggers; no invisible hover apron. */
.seekRow{margin-top:12px;margin-bottom:16px;z-index:10}
.controlPopup{bottom:calc(100% + 6px)}
.controlMenu:before{left:0;right:0;height:6px;pointer-events:none}
.controlMenu:hover:before,.controlMenu.open:before,.controlMenu:focus-within:before{pointer-events:auto}
@media(hover:hover) and (pointer:fine){.speedPopup{width:64px;max-height:196px;padding:4px}.speedPopup button{height:28px;min-height:28px}.volumePopup{width:40px;height:132px;gap:8px;padding:8px 6px}.playerTools .volumePopup input[type=range]{height:90px;min-height:90px}}
@media(max-width:650px){.seekRow{margin-top:12px;margin-bottom:10px}}
/* Optional: backend can hide studio branding and credit on the web pages. */
.hide-branding .studio-credit,.hide-branding header .sub{display:none}
