/* Costume library: 02-library-costume.png, with the live catalog and shared controls. */
.mark .costume-brand { display: none; }
html[data-lang] body[data-tab=costume] .collection-head h1::after { content: none; }
/* Advanced costume facets use the shared More filters disclosure. */
.costume-category-row, .costume-facets { display: none; }
#filters.open > :is(.costume-category-row,.costume-facets) { display: flex; }
.costume-category-row { align-items: center; gap: 8px; }
.costume-random { display: none; }
.costume-categories { display: flex; align-items: center; gap: 10px; min-width: 0; }
.costume-categories .chip {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg2); color: var(--tx2); font-size: 12px; white-space: nowrap;
}
.costume-categories .chip.on { background: var(--ac); border-color: var(--ac); color: #fff; box-shadow: none; }
.costume-facets { flex-wrap: wrap; align-items: center; gap: 12px; }
.costume-colors, .costume-types { display: flex; align-items: center; gap: 10px; min-width: 0; }
.costume-filter-label { flex: none; color: var(--mu); font-size: 12px; white-space: nowrap; }
.costume-colors { gap: 14px; }
.costume-colors .costume-filter-label { margin-right: 10px; }
.costume-colors .costume-color {
  display: grid; place-items: center; flex: none; width: 28px; height: 32px; min-height: 0; padding: 2px;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none;
}
.costume-swatch { width: 23px; height: 23px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(128,128,128,.12); }
.costume-color.on .costume-swatch { outline: 2px solid var(--ac); outline-offset: 3px; }
.costume-more-colors { position: relative; flex: none; }
.costume-more-colors summary {
  display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--bg2); color: var(--mu); font-size: 18px; line-height: 1;
  list-style: none; cursor: pointer;
}
.costume-more-colors summary::-webkit-details-marker { display: none; }
.costume-more-colors:has(.chip.on) summary { outline: 2px solid var(--ac); outline-offset: 2px; }
.costume-color-pop {
  position: absolute; top: 34px; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 28px);
  gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg2); box-shadow: var(--sh2);
}
.costume-types { flex-wrap: wrap; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line2); }
.costume-types .chip {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg2); font-size: 12px; color: var(--tx2); white-space: nowrap;
}
.costume-types .chip.on { border-color: var(--ac); background: var(--acs); color: var(--ac); }
.costume-expand { display: grid; place-items: center; flex: none; width: 34px; height: 36px; padding: 0; background: none; color: var(--tx2); }
.costume-expand svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.costume-expand[aria-expanded=true] { transform: rotate(180deg); }
body[data-tab=costume] #grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 8px var(--gutter) 44px; }
body[data-tab=costume] .card {
  position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bg2);
  box-shadow: 0 4px 14px rgba(29,33,41,.045);
}
body[data-tab=costume] .card .ph {
  width: 100%; aspect-ratio: 1; border: 0; border-radius: 12px 12px 0 0;
  background: var(--ph); box-shadow: none; transform: none;
}
body[data-tab=costume] .card .ph img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 28%; }
body[data-tab=costume] .card.sel { box-shadow: 0 0 0 2px var(--ac), var(--sh1); }
body[data-tab=costume] .card.sel .ph { box-shadow: none; }
body[data-tab=costume] .card .info { height: 50px; padding: 0 48px 0 16px; display: flex; align-items: center; }
body[data-tab=costume] .card-heading { width: 100%; }
body[data-tab=costume] .card .info h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
body[data-tab=costume] .card .sub { display: none; }
.costume-favorite {
  position: absolute; right: 12px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px;
  padding: 4px; background: transparent; color: #c1c6cd; border: 0; border-radius: 6px; box-shadow: none;
}
.costume-favorite svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.costume-favorite.on { color: var(--ac); }
.costume-favorite.on svg { fill: currentColor; }
.costume-favorite:hover { color: var(--ac); background: var(--acs); }
body[data-tab=costume] .card .card-copy {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px;
  background: var(--bg2); box-shadow: var(--sh1); opacity: 0; pointer-events: none;
}
body[data-tab=costume] .card .cbtns { right: 10px; top: 52px; }
body[data-tab=costume] .card:focus-within .cbtns { opacity: 1; transform: none; }
body[data-tab=costume] .card:is(:hover,:focus-within) .card-copy { opacity: 1; pointer-events: auto; }

@media (min-width: 1280px) {
  body[data-tab=costume] #top {
    grid-template: "brand nav context search tools" 79px / auto auto auto minmax(160px,1fr) auto;
    gap: 0; padding-inline: 36px; background: var(--bg);
  }
  body[data-tab=costume] .brand { gap: 12px; }
  body[data-tab=costume] .mark { width: 44px; height: 46px; background: none; box-shadow: none; }
  body[data-tab=costume] .mark svg { display: none; }
  body[data-tab=costume] .mark .costume-brand { display: block; width: 48px; height: 46px; object-fit: contain; }
  body[data-tab=costume] .wm { flex-direction: column; align-items: flex-start; gap: 0; }
  body[data-tab=costume] .wm b { font-size: 22px; line-height: 26px; font-weight: 650; letter-spacing: .04em; }
  body[data-tab=costume] .wm small { font-size: 17px; line-height: 20px; color: var(--tx); letter-spacing: .08em; font-weight: 500; }
  body[data-tab=costume] .tabs { margin-left: 100px; gap: 54px; align-self: stretch; }
  body[data-tab=costume] .tabs .shell-menu { height: 100%; }
  body[data-tab=costume] .tabs .nav-trigger {
    height: 100%; min-height: 0; padding: 0; border-radius: 0; background: none;
    color: var(--tx); font-size: 18px; font-weight: 500;
  }
  body[data-tab=costume] .tabs .nav-trigger > svg, body[data-tab=costume] .tabs .current > .nav-trigger::after { display: none; }
  body[data-tab=costume] #libraryLabel { font-weight: 650; }
  body[data-tab=costume] .shell-context {
    height: 30px; min-height: 30px; margin-left: 54px; padding-left: 52px; gap: 46px;
    border-color: var(--line2); font-size: 18px;
  }
  body[data-tab=costume] .shell-context span { color: var(--tx); }
  body[data-tab=costume] .shell-context b { position: relative; font-size: 18px; font-weight: 650; }
  body[data-tab=costume] .shell-context b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px; background: var(--ac); }
  body[data-tab=costume] .top .search { width: 312px; max-width: 100%; justify-self: end; }
  body[data-tab=costume] #q { height: 44px; min-height: 44px; padding-block: 0; padding-left: 44px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; font-size: 16px; }
  body[data-tab=costume] .search:has(#q:not(:placeholder-shown)) .q-kbd { display: none; }
  body[data-tab=costume] .sic { left: 16px; width: 21px; height: 21px; }
  body[data-tab=costume] .q-kbd { right: 16px; border: 0; background: none; box-shadow: none; font: 500 18px/1 var(--sans); }
  body[data-tab=costume] .tools { margin-left: 30px; padding-left: 28px; gap: 46px; border-left: 1px solid var(--line2); }
  body[data-tab=costume] .tools > :is(#adultSw,#languageMenu,#themeMenu) { display: flex; }
  body[data-tab=costume] .tools #trayFab, body[data-tab=costume] .tools .settings-label { display: none; }
  body[data-tab=costume] .tools .icon { width: 28px; height: 32px; padding: 0; background: none; border: 0; border-radius: 0; }
  body[data-tab=costume] .tools .icon svg { width: 24px; height: 24px; }
  body[data-tab=costume] .tools #languageMenu summary { display: flex; gap: 6px; width: auto; }
  body[data-tab=costume] #languageMenu summary::after { content: "文"; font-size: 17px; }
  body[data-tab=costume] .asw { height: 32px; margin: 0; padding: 0; gap: 10px; border: 0; border-radius: 0; font-size: 18px; }
  body[data-tab=costume] .asw b { order: -1; font-weight: 400; }
  body[data-tab=costume] .asw .trk { width: 46px; height: 26px; background: var(--line2); }
  body[data-tab=costume] .asw .kn { width: 20px; height: 20px; top: 3px; left: 3px; }
  body[data-tab=costume] .asw[aria-checked=true] .trk { background: var(--ac); }
  body[data-tab=costume] .asw[aria-checked=true] .kn { transform: translateX(20px); }
}

@media (min-width: 1280px) and (max-width: 1500px) {
  body[data-tab=costume] .tabs { margin-left: 48px; gap: 30px; }
  body[data-tab=costume] .shell-context { margin-left: 30px; padding-left: 30px; gap: 30px; }
  body[data-tab=costume] .tools { margin-left: 24px; padding-left: 24px; gap: 22px; }
  body[data-tab=costume] .top .search { width: 280px; }
}
@media (min-width: 1280px) {
  html:not(:lang(zh-CN)) body[data-tab=costume] .tabs { margin-left: 36px; gap: 28px; }
  html:not(:lang(zh-CN)) body[data-tab=costume] .shell-context { margin-left: 28px; padding-left: 28px; gap: 28px; }
  html:not(:lang(zh-CN)) body[data-tab=costume] .costume-types { padding-left: 0; border: 0; }
}
@media (min-width: 1280px) and (max-width: 1500px) {
  html:not(:lang(zh-CN)) body[data-tab=costume] .tabs { margin-left: 24px; gap: 20px; }
  html:not(:lang(zh-CN)) body[data-tab=costume] .shell-context { margin-left: 20px; padding-left: 20px; gap: 20px; }
  html:not(:lang(zh-CN)) body[data-tab=costume] .tabs .nav-trigger,
  html:not(:lang(zh-CN)) body[data-tab=costume] .shell-context,
  html:not(:lang(zh-CN)) body[data-tab=costume] .shell-context b { font-size: 16px; }
}
@media (max-width: 1279px) {
  body[data-tab=costume] #grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
  .costume-facets { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .costume-types { padding-left: 0; border: 0; flex-wrap: wrap; }
  .costume-categories .chip { padding-inline: 18px; font-size: 16px; }
}
@media (max-width: 1023px) {
  .costume-category-row { flex-wrap: wrap; }
  .costume-random { display: flex; margin-left: auto; }
  .costume-random #rand { min-height: 34px; border-radius: 8px; }
  .costume-random #rand svg { display: block; }
}
@media (max-width: 767px) {
  .costume-category-row { flex-wrap: wrap; gap: 14px; }
  .costume-categories { width: 100%; overflow-x: auto; padding: 1px 0; scrollbar-width: none; gap: 8px; }
  .costume-categories .chip { flex: none; min-height: 36px; padding: 4px 16px; font-size: 14px; }
  .costume-categories .chip:first-child { min-width: 0; }
  .costume-colors { flex-wrap: wrap; gap: 6px; }
  .costume-colors .costume-filter-label { margin-right: 0; }
  .costume-color-pop { left: auto; right: 0; }
  .costume-types { gap: 6px; }
  .costume-types .chip { min-height: 32px; padding: 2px 12px; font-size: 14px; }
  body[data-tab=costume] #grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  body[data-tab=costume] .card .info { height: 44px; padding-left: 10px; padding-right: 36px; }
  body[data-tab=costume] .card .info h3 { font-size: 13px; }
  .costume-favorite { right: 5px; bottom: 7px; }
  body[data-tab=costume] .card .card-copy { opacity: 1; pointer-events: auto; }
  body[data-tab=costume] .card .cbtns { opacity: 1; transform: none; }
  body[data-tab=costume] .card .cbtns button { width: 34px; height: 34px; }
  body[data-tab=costume] #drawerBg { display: none; }
}
