html,body,.sidebar,.stage,.scene{background:var(--ink)}.info{background:#0d0d0d}.sidebar .selected{color:#fff}.details-toggle{color:#ddd}.scene.details-open .info{height:36%;align-items:flex-start;overflow:auto;flex-wrap:wrap}.scene.details-open .info-content{flex-basis:100%}.scene.details-open .info .facts,.scene.details-open .info .maker,.scene.details-open .info .genres,.scene.details-open .info .info-review,.scene.details-open .info .work-link,.scene.details-open .info .more{display:block}.scene.details-open .player{bottom:calc(36% + 64px);height:calc(64% - 64px)}.scene.details-open .controls{bottom:36%}@media(max-width:1023px){.scene.details-open .info{height:40%}.scene.details-open .player{bottom:calc(40% + 68px);height:calc(60% - 68px)}.scene.details-open .controls{bottom:40%}}
@media(min-width:1024px){.scene.details-open .info{inset:0 0 0 65%;width:35%;height:100%;display:flex;flex-direction:column;align-items:stretch;padding:24px}.scene.details-open .info-content{flex:0 0 auto}.scene.details-open .topline{display:block}.scene.details-open .title{margin-top:8px;white-space:normal}.scene.details-open .purchase{flex-wrap:wrap}.scene.details-open .player{inset:0 35% 64px 0;width:65%;height:calc(100% - 64px)}.scene.details-open .controls{right:35%;bottom:0}}
@media(max-width:1023px){.scene.details-open .info{height:40%;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;overflow:hidden}.scene.details-open .info-content{flex:1;overflow:auto}.scene.details-open .purchase{margin-top:auto}.scene.details-open .player{top:0;bottom:calc(40% + 68px);height:calc(60% - 68px)}}
@media(min-width:1024px){.scene.details-open .player{right:calc(35% + 70px);width:calc(65% - 70px)}}

@media(max-width:1023px){.scene .info{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap}.scene .info-content{flex:1;min-height:0}.scene .purchase{width:100%;flex:none;justify-content:space-between}}

.info .facts{display:block}.gate-logo{width:180px}
@media(max-width:1023px){.scene.details-open .info{height:40%;overflow:hidden}.scene.details-open .info-content{flex:1;overflow:auto}.scene.details-open .player{bottom:calc(40% + 68px);height:calc(60% - 68px)}.scene.details-open .controls{bottom:40%}}

.sidebar .selected{color:var(--accent)}

@media(min-width:1024px){.scene:not(.details-open) .info{height:auto;min-height:120px}.scene:not(.details-open) .controls{bottom:120px}.scene:not(.details-open) .player{bottom:184px;height:calc(100% - 184px)}}

@media(max-width:1023px){.scene:not(.details-open){display:flex;flex-direction:column}.scene:not(.details-open) .player{position:relative;inset:auto;width:100%;height:auto;min-height:0;flex:1;order:0}.scene:not(.details-open) .controls{position:relative;inset:auto;flex:none;order:1;margin:0 8px}.scene:not(.details-open) .info{position:relative;inset:auto;width:100%;flex:none;order:2}}

.gate-logo{width:320px;max-width:100%;max-height:none}
@media(max-width:1023px){.gate-logo{width:240px}}
.desktop-controls label:has(#speed){display:none}
.details-direct{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px;color:#ddd;text-decoration:none;white-space:nowrap}
.iframe-scene .controls{visibility:hidden}
.iframe-scene #videos{position:absolute;inset:0;background:#000;display:flex;align-items:center;justify-content:center}
.iframe-scene #videos img,.workmedia img{width:100%;height:100%;object-fit:contain}
.iframe-scene #videos iframe{border:0;max-width:100%;max-height:100%}
.iframe-play{position:absolute;z-index:2;background:#222d;color:#fff;padding:12px 18px;border-radius:6px}
.iframe-hint{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);white-space:nowrap;background:#222e;color:#fff;padding:6px 12px;border-radius:6px;margin:0 0 8px;font-size:12px}

.info .more:not([hidden]){display:block}
.workmedia{position:relative;display:flex;align-items:center;justify-content:center}
.workmedia iframe{border:0;max-width:100%;max-height:100%}
@media(max-width:1023px){
 .scene .title.expanded{max-height: min(25vh, 150px);overflow:auto}
 .iframe-next{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);min-height:44px;white-space:nowrap;background:#222e;color:#fff;padding:8px 16px;border-radius:6px;z-index:3}
}
.ad-label{font-size:12px;color:#aaa;flex:none}.sidebar nav a{display:flex;align-items:center;gap:12px}.sidebar nav svg{width:22px;height:22px;flex:none}.sidebar-bekkan{margin-top:12px}.bekkan-card{background:#191919;border:1px solid #333;border-radius:8px;padding:10px;margin-bottom:14px}.bekkan-card strong{font-size:14px}.bekkan-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}.bekkan-items a{min-width:0;color:inherit;text-decoration:none;font-size:11px}.bekkan-items img{width:100%;height:72px;object-fit:contain;background:#111}.bekkan-items b,.bekkan-items small{display:block}.bekkan-items small{font-size:10px;line-height:1.35;overflow-wrap:anywhere}.sidebar-bekkan .bekkan-items img{height:55px}.sidebar{overflow-y:auto}.mobile-bekkan{display:none}.popular-genres{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.popular-genres a{color:inherit;text-decoration:none}.popular-genres img{width:100%;height:110px;object-fit:contain;background:#111}.popular-genres span{display:block;font-size:13px}.work .samples{display:block}.work .samples img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin-bottom:8px}.work .grid .card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}.work .grid .card span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.choices .bekkan-card{margin-top:8px}.choices .bekkan-items img{height:45px}
@media(max-width:1023px){.mobile-head{padding-left:0}.mobile-head>a:first-of-type:not(.mobile-brand){display:block}.mobile-bekkan{display:block}.work .samples img{height:auto}.popular-genres{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* ui4f: compact genre navigation and readable annex cards */
.page:has(.popular-genres){max-width:1100px;width:100%}.popular-genres{grid-template-columns:repeat(6,minmax(0,1fr))}.genrelist{display:flex;flex-wrap:wrap;gap:8px}.genrelist a{display:inline-block;padding:7px 11px;border:1px solid #555;border-radius:20px;font-size:13px;line-height:1.35}.page details summary{cursor:pointer;margin:10px 0;color:#ddd}.sidebar-bekkan .bekkan-items{display:grid;grid-template-columns:1fr;gap:8px}.sidebar-bekkan .bekkan-items a{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:6px}.sidebar-bekkan .bekkan-items img{height:72px}.sidebar-bekkan .bekkan-items small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-bekkan p{font-size:10px;white-space:nowrap;margin:8px 0 0}.choices{max-height:45%;overflow:visible}.choices .intro{padding:4px 8px;margin:5px 0 0}.choices .intro>a{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.choices .intro-images{display:flex;gap:4px}.choices .intro img{display:block;width:50px;height:48px;object-fit:contain;background:#111}
@media(max-width:1023px){.popular-genres{grid-template-columns:repeat(3,minmax(0,1fr))}.choices{max-height:calc(45dvh - 22px)}}

.bekkan-heading{color:inherit;text-decoration:none}.choices .intro{display:flex;align-items:center;gap:10px}.choices .intro-images a{color:inherit;text-decoration:none;text-align:center;font-size:11px;line-height:1.2}.choices .intro-images span{display:block}.work-ad-bottom{display:none}#failure p{position:absolute;top:50%;left:0;right:0;margin:0;background:#111d;color:#fff;font-size:14px}
html[data-ui="u4"] #volume{appearance:none;-webkit-appearance:none;height:16px;background:transparent}
html[data-ui="u4"] #volume::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:#ff5274}
html[data-ui="u4"] #volume::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-4px;border-radius:50%;background:#ff5274}
html[data-ui="u4"] #volume::-moz-range-track{height:8px;border-radius:8px;background:#ff5274}
html[data-ui="u4"] #volume::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#ff5274}
@media(max-width:1023px){.work-ad-top{display:none}.work-store{display:flex;align-items:center;gap:8px;background:#0d0d0d;padding:4px 8px}.work-ad-bottom{display:block;flex:none;white-space:nowrap}.work-store .store{flex:1;width:auto;min-height:44px;padding:8px}}
