/* Scene library: 04-library-scene.png, using the live catalog and shared actions. */
#sceneLibraryDescription { display: none; }
body[data-tab=scene] { --gutter: 36px; }
body[data-tab=scene] :is(#bar,#bbar),
body[data-tab=scene] #filters > :is(.dh,.frow) { display: none; }
body[data-tab=scene] .gallery-heading { padding: 24px var(--gutter) 0; }
body[data-tab=scene] .collection-head h1 { font-size: 32px; line-height: 45px; letter-spacing: -.02em; }
body[data-tab=scene] #sceneLibraryDescription { display: block; margin: 0; color: var(--mu); font-size: 18px; line-height: 28px; }
body[data-tab=scene] #filters {
  position: relative; display: block; height: auto; max-height: none; min-height: 0;
  padding: 29px var(--gutter) 31px; visibility: visible; transform: none;
  border: 0; background: none; box-shadow: none; overflow: visible; z-index: 6;
}
.scene-toolbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.scene-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.scene-toolbar .chip, .scene-more summary, .scene-sort {
  min-height: 40px; border: 0; border-radius: 999px; background: var(--bg2); color: var(--tx2);
  font-size: 18px; line-height: 26px; white-space: nowrap; box-shadow: none;
}
.scene-toolbar .chip { padding: 7px 22px; }
.scene-toolbar .chip.on { background: var(--ac); color: #fff; }
.scene-toolbar .chip:hover:not(.on) { background: var(--sf2); }
.scene-more { position: relative; flex: none; }
.scene-more summary { display: flex; align-items: center; gap: 16px; padding: 7px 22px; list-style: none; cursor: pointer; }
.scene-more summary::-webkit-details-marker { display: none; }
.scene-more.active summary { color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); }
.scene-toolbar svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.scene-more-pop { position: absolute; top: 50px; right: 0; z-index: 10; width: 480px; max-width: calc(100vw - 32px); max-height: 60dvh; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); box-shadow: var(--sh3); }
.scene-extra-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.scene-extra-group b { flex-basis: 100%; color: var(--tx2); font-weight: 600; }
.scene-extra-group .chip { min-height: 36px; padding: 5px 12px; font-size: 14px; line-height: 24px; background: var(--sf); white-space: normal; text-align: left; }
.scene-clear { min-height: 36px; padding: 6px 12px; color: var(--tx2); background: var(--sf); }
.scene-sort { position: relative; display: flex; align-items: center; flex: none; margin-left: auto; }
.scene-sort select { width: 100%; min-height: 40px; padding: 7px 46px 7px 22px; border: 0; border-radius: inherit; appearance: none; background: none; color: inherit; font-size: inherit; line-height: 26px; cursor: pointer; }
.scene-sort > svg { position: absolute; right: 18px; pointer-events: none; }
body[data-tab=scene] #grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; padding: 0 var(--gutter) 48px; }
body[data-tab=scene] .card { position: relative; overflow: hidden; border-radius: 10px; background: var(--bg2); }
body[data-tab=scene] .card .ph { width: 100%; aspect-ratio: 1.84; border: 0; border-radius: 10px; background: var(--ph); box-shadow: none; transform: none; }
body[data-tab=scene] .card .ph img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; transform: none; }
body[data-tab=scene] .card.sel .ph { box-shadow: inset 0 0 0 2px var(--ac); }
body[data-tab=scene] .card .info { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 3px; }
body[data-tab=scene] .card-heading { flex: 1; min-width: 0; }
body[data-tab=scene] .card .info h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
body[data-tab=scene] .card :is(.sub,.try) { display: none; }
body[data-tab=scene] .card-copy { position: absolute; right: 8px; top: 8px; z-index: 4; width: 30px; height: 30px; border-radius: 8px; color: var(--tx2); background: var(--bg2); opacity: 0; pointer-events: none; }
.scene-image-count { display: inline-flex; align-items: center; flex: none; gap: 4px; color: var(--mu); font-size: 14px; line-height: 26px; white-space: nowrap; }
.scene-image-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body[data-tab=scene] .card .badge { opacity: 0; pointer-events: none; }
body[data-tab=scene] .card .angs { right: 8px; left: 8px; bottom: 8px; padding: 0; opacity: 0; pointer-events: none; }
body[data-tab=scene] .card .cbtns { top: 8px; right: 46px; flex-direction: row; gap: 5px; opacity: 0; pointer-events: none; }
body[data-tab=scene] .card .cbtns button { width: 30px; height: 30px; font-size: 20px; }
body[data-tab=scene] .card .cbtns svg { width: 20px; height: 20px; }
body[data-tab=scene] .card:is(:hover,:focus-within) :is(.badge,.angs,.cbtns,.card-copy) { opacity: 1; pointer-events: auto; }
body[data-tab=scene] #drawerBg { display: none; }

@media (min-width: 1280px) {
  body[data-tab=scene] #top { grid-template: "brand nav context search tools" 83px / auto auto auto minmax(100px,1fr) auto; padding-inline: 36px; gap: 0; background: var(--bg); }
  body[data-tab=scene] .brand { gap: 12px; }
  body[data-tab=scene] .mark { width: 44px; height: 46px; background: none; box-shadow: none; }
  body[data-tab=scene] .mark svg { display: none; }
  body[data-tab=scene] .mark .costume-brand { display: block; width: 44px; height: 46px; object-fit: contain; }
  body[data-tab=scene] .wm { flex-direction: column; align-items: flex-start; gap: 0; }
  body[data-tab=scene] .wm b { font-size: 24px; line-height: 27px; font-weight: 650; letter-spacing: .04em; }
  body[data-tab=scene] .wm small { color: var(--tx); font-size: 17px; line-height: 20px; letter-spacing: .08em; }
  body[data-tab=scene] .tabs { margin-left: 90px; gap: 58px; align-self: stretch; }
  body[data-tab=scene] .tabs .shell-menu { height: 100%; }
  body[data-tab=scene] .tabs .nav-trigger { height: 100%; min-height: 0; padding: 0; border-radius: 0; background: none; color: var(--tx2); font-size: 20px; font-weight: 500; }
  body[data-tab=scene] .tabs .nav-trigger > svg { display: none; }
  body[data-tab=scene] .tabs .current > .nav-trigger { color: var(--ac); font-weight: 600; }
  body[data-tab=scene] .tabs .current > .nav-trigger::after { bottom: 0; width: 60px; height: 2px; border-radius: 0; }
  body[data-tab=scene] .shell-context { margin-left: 104px; padding: 0; gap: 22px; border: 0; font-size: 18px; }
  body[data-tab=scene] .shell-context span { color: var(--tx2); }
  body[data-tab=scene] #creativeSpaceMenu > summary::before { content: ""; width: 18px; height: 16px; border-radius: 2px; background: var(--mu); clip-path: polygon(0 0,40% 0,50% 15%,100% 15%,100% 100%,0 100%); }
  body[data-tab=scene] #shellPage { position: relative; padding-left: 22px; padding-right: 24px; border-left: 1px solid var(--line2); font-size: 18px; font-weight: 500; cursor: pointer; }
  body[data-tab=scene] #shellPage::after { content: ""; position: absolute; right: 3px; top: 6px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  body[data-tab=scene] .top .search { width: 288px; max-width: calc(100% - 30px); justify-self: end; }
  body[data-tab=scene] #q { min-height: 42px; padding-left: 48px; border: 0; border-radius: 999px; background: var(--sf); font-size: 18px; }
  body[data-tab=scene] #q:not(:focus)::placeholder { color: transparent; }
  body[data-tab=scene] .sic { left: 20px; width: 21px; height: 21px; stroke: var(--mu); }
  body[data-tab=scene] .q-kbd { left: 48px; right: auto; border: 0; background: none; color: var(--mu); box-shadow: none; font: 500 17px/1 var(--sans); }
  body[data-tab=scene] .search:focus-within .q-kbd, body[data-tab=scene] .search:has(#q:not(:placeholder-shown)) .q-kbd { display: none; }
  body[data-tab=scene] .tools { margin-left: 54px; gap: 26px; }
  body[data-tab=scene] .tools > :is(#adultSw,#languageMenu,#themeMenu) { display: flex; }
  body[data-tab=scene] .tools :is(#trayFab,.settings-label) { display: none; }
  body[data-tab=scene] .tools .icon { width: 26px; height: 32px; padding: 0; border: 0; background: none; }
  body[data-tab=scene] .tools .icon svg { width: 26px; height: 26px; }
  body[data-tab=scene] #languageMenu summary > svg { display: none; }
  body[data-tab=scene] #languageMenu summary::before { content: "文A"; display: block; color: var(--mu); font-size: 20px; line-height: 1; letter-spacing: -5px; padding-right: 5px; white-space: nowrap; }
  body[data-tab=scene] #theme .sun { display: none; }
  body[data-tab=scene] #theme .moon { display: block; fill: currentColor; }
  body[data-tab=scene] .tools > :is(#languageMenu,#themeMenu) { padding-left: 26px; border-left: 1px solid var(--line2); }
  body[data-tab=scene] .asw { height: 32px; margin: 0; padding: 0; gap: 10px; border: 0; border-radius: 0; font-size: 18px; }
  body[data-tab=scene] .asw b { order: -1; font-weight: 400; }
  body[data-tab=scene] .asw .trk { width: 42px; height: 24px; background: var(--line2); }
  body[data-tab=scene] .asw .kn { width: 18px; height: 18px; top: 3px; left: 3px; }
  body[data-tab=scene] .asw[aria-checked=true] .trk { background: var(--ac); }
  body[data-tab=scene] .asw[aria-checked=true] .kn { transform: translateX(18px); }
}
@media (min-width: 1280px) and (max-width: 1500px) {
  body[data-tab=scene] .tabs { margin-left: 48px; gap: 34px; }
  body[data-tab=scene] .shell-context { margin-left: 40px; gap: 16px; }
  body[data-tab=scene] .tools { margin-left: 28px; gap: 18px; }
  body[data-tab=scene] .tools > :is(#languageMenu,#themeMenu) { padding-left: 18px; }
  .scene-toolbar .chip { padding-inline: 16px; }
}
@media (min-width: 1280px) {
  html:not(:lang(zh-CN)) body[data-tab=scene] .tabs { margin-left: 38px; gap: 26px; }
  html:not(:lang(zh-CN)) body[data-tab=scene] .shell-context { margin-left: 28px; gap: 16px; }
  html:not(:lang(zh-CN)) body[data-tab=scene] :is(.nav-trigger,.shell-context,#shellPage) { font-size: 16px; }
}
@media (max-width: 1279px) {
  body[data-tab=scene] { --gutter: 24px; }
  .scene-toolbar { flex-wrap: wrap; gap: 14px 10px; }
  .scene-categories { flex-basis: 100%; }
  .scene-more-pop { left: 0; right: auto; }
  body[data-tab=scene] #grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 16px; }
  body[data-tab=scene] .card .info h3 { font-size: 15px; }
}
@media (max-width: 767px) {
  body[data-tab=scene] { --gutter: 16px; }
  body[data-tab=scene] .gallery-heading { padding-top: 18px; }
  body[data-tab=scene] .collection-head h1 { font-size: 28px; line-height: 40px; }
  body[data-tab=scene] #sceneLibraryDescription { font-size: 14px; line-height: 22px; }
  body[data-tab=scene] #filters { padding-top: 18px; padding-bottom: 20px; }
  .scene-categories { gap: 8px; }
  .scene-toolbar .chip, .scene-more summary, .scene-sort { min-height: 36px; font-size: 14px; line-height: 22px; }
  .scene-toolbar .chip { padding: 7px 15px; }
  .scene-more summary { padding: 7px 15px; }
  .scene-sort select { min-height: 36px; padding: 7px 38px 7px 15px; line-height: 22px; }
  .scene-sort > svg { right: 13px; }
  .scene-more-pop { width: min(480px,calc(100vw - 32px)); padding: 14px; }
  body[data-tab=scene] #grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  body[data-tab=scene] .card .info { min-height: 42px; padding: 5px; gap: 4px; }
  body[data-tab=scene] .card .info h3 { font-size: 14px; line-height: 22px; }
  .scene-image-count { gap: 2px; font-size: 12px; line-height: 22px; }
  .scene-image-count svg { width: 13px; height: 13px; }
  body[data-tab=scene] .card .cbtns { right: 40px; top: 5px; gap: 3px; }
  body[data-tab=scene] .card-copy { right: 5px; top: 5px; }
  body[data-tab=scene] .card .badge { display: none; }
}
@media (hover: none) {
  body[data-tab=scene] .card .cbtns, body[data-tab=scene] .card-copy { opacity: 1; pointer-events: auto; }
  body[data-tab=scene] .card .angs { display: none; }
}
