dialog.demo-library {
  width: min(1080px, calc(100vw - 64px));
  max-width: none;
  height: min(86dvh, 860px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink, #edf0ed);
  background: #18232b;
  border: 1px solid #4a606c;
  border-radius: 13px;
  box-shadow: 0 32px 120px #0009;
}
.demo-library::backdrop { background: #081016c9; backdrop-filter: blur(5px); }
.demo-library .dlb-shell { height: 100%; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.demo-library .dlb-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 29px 32px 24px; border-bottom: 1px solid #354650; }
.demo-library .dlb-era { display: block; margin-bottom: 10px; color: var(--sand, #d6b888); font-size: 12px; }
.demo-library h2 { margin: 0; font: 600 36px/1.05 Bahnschrift, 'Arial Narrow', 'Segoe UI', sans-serif; letter-spacing: .1px; }
.demo-library .dlb-heading > p { margin: 10px 0 0; color: #adbec9; font-size: 14px; line-height: 1.45; }
.demo-library .dlb-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; margin: -7px -9px 0 0; color: #b8c9d2; font-size: 29px; line-height: 1; border: 1px solid #425460; border-radius: 50%; }
.demo-library .dlb-close:hover { color: white; background: #30424d; }
.demo-library .dlb-filters { display: grid; grid-template-columns: minmax(0, 1fr) 160px 136px; gap: 15px; padding: 22px 32px 17px; }
.demo-library .dlb-filters label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.demo-library .dlb-filters label > span { font-size: 12px; color: #b2c5d0; }
.demo-library .dlb-filters input, .demo-library .dlb-filters select { width: 100%; min-height: 43px; margin: 0; border: 1px solid #465d6b; background: #111d25; color: #edf0ed; border-radius: 6px; font-size: 14px; }
.demo-library .dlb-search input { padding-left: 13px; }
.demo-library .dlb-filters input::placeholder { color: #859da9; }
.demo-library .dlb-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0 32px 11px; }
.demo-library .dlb-count { margin: 0; color: #c9d8df; font-size: 13px; font-variant-numeric: tabular-nums; }
.demo-library .dlb-reset { min-height: 28px; padding: 3px 0 3px 12px; color: var(--cyan, #75c4d0); font-size: 12px; }
.demo-library .dlb-reset:hover { text-decoration: underline; background: transparent; }
.demo-library .dlb-results { min-height: 0; overflow: auto; padding: 3px 32px 26px; overscroll-behavior: contain; scrollbar-color: #556f7d #18232b; scrollbar-width: thin; }
.demo-library .dlb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.demo-library .dlb-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #3b505e; border-radius: 8px; background: #1f303c; }
.demo-library .dlb-map-art { height: 96px; flex: none; display: flex; align-items: flex-end; position: relative; background-color: #0e1a23; background-position: center 49%; background-repeat: no-repeat; background-size: 100% auto; }
.demo-library .dlb-map-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #11212aeb, #11212a33 85%); }
.demo-library .dlb-tags { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 12px 18px; }
.demo-library .dlb-map-tag { font-size: 14px; color: #ebdac0; font-weight: 650; text-shadow: 0 1px 5px #000; }
.demo-library .dlb-kind { padding: 4px 8px; color: #d1e2ec; background: #213a48ed; border: 1px solid #6a8797; border-radius: 4px; font-size: 10px; letter-spacing: .45px; font-weight: 650; }
.demo-library .dlb-kind.is-pov { color: #b9f0ed; background: #183f46ed; border-color: #5ca4af; }
.demo-library .dlb-card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px 19px 17px; }
.demo-library .dlb-card h3 { margin: 0 0 7px; font: 600 21px/1.22 Bahnschrift, 'Arial Narrow', 'Segoe UI', sans-serif; overflow-wrap: anywhere; }
.demo-library .dlb-event { margin: 0; color: #b4c9d5; font-size: 12px; line-height: 1.5; }
.demo-library .dlb-players { margin: 13px 0 19px; color: #90c7d2; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.demo-library .dlb-card-bottom { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #3b505c; }
.demo-library .dlb-file-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-right: auto; color: #c0d0da; font-size: 12px; font-variant-numeric: tabular-nums; }
.demo-library .dlb-file-info span + span { color: #91a9b7; }
.demo-library .dlb-source { color: #a6bbc7; text-decoration-color: #627f90; text-underline-offset: 3px; font-size: 11px; }
.demo-library .dlb-source:hover { color: white; }
.demo-library .dlb-watch { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; border: 1px solid #d6b888; border-radius: 5px; background: #d6b888; color: #1b252b; font-size: 13px; font-weight: 650; }
.demo-library .dlb-watch:hover { background: #ead0a7; border-color: #ead0a7; }
.demo-library .dlb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; padding: 22px; text-align: center; }
.demo-library .dlb-empty-symbol { color: #75c4d0; font-size: 46px; line-height: 1; margin-bottom: 16px; }
.demo-library .dlb-empty h3 { margin: 0; font-size: 20px; font-weight: 600; }
.demo-library .dlb-empty p { max-width: 44ch; margin: 12px 0 20px; color: #a6bbc7; font-size: 13px; line-height: 1.6; }
.demo-library .dlb-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; padding: 14px 32px; border-top: 1px solid #354650; color: #93acbb; font-size: 10px; line-height: 1.5; }
.demo-library .dlb-local { color: #afc3cd; }
.demo-library .dlb-local::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: #75c4d0; }
@media (max-width: 700px) {
  dialog.demo-library { width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .demo-library .dlb-header { padding: 23px 20px 19px; gap: 12px; }
  .demo-library h2 { font-size: 30px; }
  .demo-library .dlb-era { font-size: 10px; margin-bottom: 9px; }
  .demo-library .dlb-heading > p { font-size: 12px; max-width: 28ch; margin-top: 8px; }
  .demo-library .dlb-close { width: 34px; height: 34px; min-height: 34px; margin: -5px -6px 0 0; font-size: 25px; }
  .demo-library .dlb-filters { grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px 12px; }
  .demo-library .dlb-search { grid-column: 1 / -1; }
  .demo-library .dlb-filters input, .demo-library .dlb-filters select { font-size: 16px; min-height: 42px; }
  .demo-library .dlb-filters label > span { font-size: 11px; }
  .demo-library .dlb-summary { padding: 0 20px 10px; }
  .demo-library .dlb-count { font-size: 12px; }
  .demo-library .dlb-results { padding: 3px 19px 20px; }
  .demo-library .dlb-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-library .dlb-map-art { height: 83px; }
  .demo-library .dlb-card-content { padding: 16px; }
  .demo-library .dlb-card h3 { font-size: 20px; }
  .demo-library .dlb-tags { padding: 10px 16px; }
  .demo-library .dlb-card-bottom { gap: 10px; }
  .demo-library .dlb-watch { min-height: 40px; padding: 8px 13px; }
  .demo-library .dlb-footer { padding: 12px 20px; gap: 4px; }
  .demo-library .dlb-empty { padding: 20px 4px; }
}
