/* The shelf is an account feature inside an existing world, not another feed. */
nb-watch-shelf,
nb-shelf-tools {
  display: block;
  min-width: 0;
}
nb-watch-shelf[hidden],
nb-shelf-tools [hidden],
.ns-share-dialog [hidden] {
  display: none !important;
}
galaxy-library[data-mode="shelf"] > .ml-line,
galaxy-library[data-mode="shelf"] > .gl-shelf,
galaxy-library[data-mode="shelf"] > .gl-feature,
galaxy-library[data-mode="shelf"] .gl-filters {
  display: none !important;
}
.ns-kicker,
.ns-card-copy > small {
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: #cdb8f1;
}
.ns-library {
  margin: 14px 0 25px;
  padding: clamp(15px, 2.5vw, 30px);
  border: 1px solid #443b51;
  border-radius: 18px;
  background: #18151f;
  color: #f5f1fa;
}
.ns-library > header,
.ns-tools,
.ns-group h3,
.ns-row-tools {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.ns-library > header {
  justify-content: space-between;
}
.ns-library h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 3px 0 10px;
}
.ns-library h3 {
  margin: 0;
  font-size: 1rem;
}
.ns-group {
  padding: 17px 0 1px;
}
.ns-group h3 span {
  color: #cfc0e4;
  background: #312a3a;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.73rem;
}
.ns-group > p,
.ns-row-copy > small,
.ns-resume p,
.ns-note {
  font-size: 0.85rem;
  color: #c1b9cd;
}
.ns-poster,
.ns-card-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #4b3d64, #201d2f);
  border-radius: 8px;
  color: #dbc5fc;
  flex: none;
}
.ns-poster {
  width: 84px;
  aspect-ratio: 16/10;
}
.ns-poster img,
.ns-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-symbol .i,
.ns-card-art i .i {
  width: 26px;
  height: 26px;
}
.ns-resume,
.ns-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.ns-resume {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #705a83;
  border-radius: 13px;
  background: linear-gradient(112deg, #34283e, #211c2c);
  color: #fff;
}
.ns-resume h3,
.ns-resume p {
  margin: 3px 0;
}
.ns-resume p {
  font-size: 0.84rem;
}
.ns-resume > a {
  margin-inline-start: auto;
  flex-shrink: 0;
}
.ns-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ddc5ff;
  font-weight: 650;
  text-decoration: none;
}
.ns-link .i,
.ns-tools .i {
  width: 15px;
  height: 15px;
}
.ns-row {
  border-top: 1px solid #39323e;
  padding: 12px 0;
}
.ns-row-copy,
.ns-resume > div:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ns-row-copy {
  display: grid;
  gap: 3px;
}
.ns-row-tools {
  margin-inline-start: auto;
}
.ns-state select,
.ns-row-tools select,
.ns-share-dialog select {
  width: auto;
  max-width: 100%;
  min-height: 36px;
  color: #f3edf9;
  background: #26212f;
  border: 1px solid #5b5068;
  border-radius: 8px;
  padding: 6px 9px;
}
.ns-resume progress {
  display: block;
  height: 4px;
  max-width: 100%;
  accent-color: #ceb0f2;
  margin-top: 5px;
}
.ns-tools-label {
  color: #e5d4f6;
  font-weight: 650;
}
.ns-tools {
  margin: 0 0 5px;
}
.ns-tools .btn,
.ns-tools .ns-state {
  margin: 0;
}
.ns-note {
  line-height: 1.4;
}
.ns-tools-label .i {
  vertical-align: -2px;
}
nb-shelf-tools {
  margin: 13px 0;
  padding: 13px 0;
  border-top: 1px solid #453a4c;
}
nb-shelf-tools output {
  display: block;
  font-size: 0.8rem;
  color: #decdeb;
}
nb-shelf-tools .ns-reload {
  margin-top: 5px;
}
.ru-episodes a[data-seen] {
  position: relative;
}
.ru-episodes a[data-seen]:after {
  content: "✓";
  font-size: 0.56rem;
  color: #a9e7c4;
  vertical-align: super;
  margin-left: 1px;
}
.ns-share-dialog {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 26px));
  max-height: 86dvh;
  overflow: auto;
  padding: clamp(17px, 4vw, 24px);
  color: #f4f0fa;
  background: #1c1925;
  border: 1px solid #564864;
  border-radius: 18px;
  box-shadow: 0 20px 60px #0008;
}
.ns-share-dialog::backdrop {
  background: #090811bc;
}
.ns-share-dialog h2 {
  margin: 5px 0 15px;
  font-size: 1.45rem;
}
.ns-share-dialog label {
  display: grid;
  gap: 5px;
  margin-top: 15px;
}
.ns-share-dialog select {
  width: 100%;
}
.ns-share-dialog footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 15px;
}
.ns-share-dialog output,
.ns-to {
  font-size: 0.86rem;
  color: #d1c7db;
}
.ns-share-dialog output input {
  width: 100%;
}
.ns-message-card {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #574866;
  background: #262030;
  color: #f4eef9;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px;
  white-space: normal;
}
.ns-card-art {
  width: 60px;
  height: 63px;
}
.ns-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ns-card-copy > span,
.ns-gone {
  font-size: 0.82rem;
  color: #c8bfd1;
}
.ns-card-copy > b {
  font-size: 0.8rem;
  color: #d8baff;
}
.bub .ns-card-copy small {
  margin: 0;
  text-align: left;
  color: #cbb8df;
}
.ns-message-card:focus-visible,
.ns-link:focus-visible {
  outline: 2px solid #d8c1f9;
  outline-offset: 2px;
}
.ns-tools select:focus-visible {
  outline: 2px solid #cfb5f1;
}
@media (max-width: 620px) {
  .ns-resume,
  .ns-row {
    flex-wrap: wrap;
    gap: 8px 11px;
  }
  .ns-resume .ns-poster,
  .ns-row .ns-poster {
    width: 56px;
  }
  .ns-resume > div:nth-child(2),
  .ns-row-copy {
    flex: 1 1 145px;
  }
  .ns-resume > a,
  .ns-row-tools {
    margin-left: 0;
  }
  .ns-resume > a {
    min-height: 38px;
  }
  .ns-row-tools {
    width: 100%;
  }
  .ns-library {
    padding: 13px;
  }
  .ns-share-dialog footer .btn,
  .ns-tools :is(select, .btn),
  .ns-row-tools :is(select, .btn) {
    min-height: 42px;
  }
  .ns-card-art {
    width: 46px;
    height: 52px;
  }
}
