/* A creator's own collection, independent of the library's filter interface. */
body[data-page="author"] .page-main {
  margin-top: 30px;
}

.author-profile-card {
  overflow: hidden;
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  background: var(--texture), var(--surface);
  box-shadow: 0 4px var(--shade);
}

.author-profile-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  height: 176px;
  padding: 18px 22px;
  background: var(--scene-sky);
  border-bottom: 8px solid var(--accent);
}

.author-profile-cover::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 12px;
  content: "";
  background: var(--world-edge) repeat-x center bottom / 96px 16px;
  filter: var(--world-edge-lighting);
  pointer-events: none;
}

.author-profile-landscape {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--landscape) center bottom / cover no-repeat;
  filter: var(--scene-filter);
  image-rendering: pixelated;
  pointer-events: none;
}

.author-profile-back,
.author-profile-sign {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 11px;
  border: 2px solid var(--edge);
  color: var(--ink);
  background: var(--raised);
  box-shadow:
    var(--frame),
    0 2px var(--edge);
  font-size: 13px;
}

.author-profile-back .icon {
  width: 17px;
  height: 17px;
}

.author-profile-sign {
  color: var(--accent);
  background: var(--soft);
  font-weight: 700;
}

.author-profile-sign .icon {
  width: 25px;
  height: 25px;
}

.author-profile-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 24px;
  text-align: center;
}

.author-profile-portrait {
  position: relative;
  z-index: 3;
  margin-top: -57px;
  padding: 6px;
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  background: var(--raised);
  box-shadow: 0 4px var(--shade);
}

.author-profile-portrait .avatar {
  display: flex;
  width: 90px;
  height: 90px;
  box-shadow: none;
}

.author-profile-identity h1 {
  max-width: 100%;
  margin: 15px 0 11px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.author-profile-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--raised);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.author-profile-id .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.author-profile-mcid {
  font-family: ui-monospace, Consolas, monospace;
}

.author-profile-description {
  max-width: 600px;
  margin: 12px 0 0;
  padding: 7px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.author-profile-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
}

.author-profile-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--slot);
  box-shadow:
    inset 2px 2px #0000000f,
    inset -1px -1px var(--rim);
  font-size: 13px;
}

.author-profile-stats strong {
  color: var(--ink);
  font-size: 17px;
}

.author-profile-stats .icon {
  width: 23px;
  height: 23px;
}

.author-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.author-profile-actions .button {
  min-width: 132px;
  min-height: 43px;
  padding: 8px 16px;
  gap: 8px;
  font-size: 14px;
}

.author-profile-actions .icon {
  width: 21px;
  height: 21px;
}

.author-follow[aria-pressed="false"] {
  color: #fff;
  background: var(--primary);
  text-shadow: 1px 1px var(--shade);
}

.author-follow[aria-pressed="false"]:hover {
  background: var(--primary-hover);
}

.author-profile-actions .button[aria-pressed="true"] {
  translate: 0 2px;
  color: var(--accent);
  background: var(--soft);
  box-shadow:
    inset 3px 3px var(--shade),
    inset -1px -1px var(--rim);
  text-shadow: none;
}

.author-profile-content {
  margin-top: 31px;
}

.author-profile-toolbar {
  margin: 0 0 23px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: inset 2px 2px var(--rim);
}

.author-profile-works-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px 15px;
}

.author-profile-works-label h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
  font-size: 21px;
}

.author-profile-works-label h2 .icon {
  width: 29px;
  height: 29px;
}

.author-profile-works-label p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.author-profile-toolbar .result-tools {
  flex-shrink: 0;
  gap: 12px;
}

.author-profile-empty {
  min-height: 220px;
}

.author-profile-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 325px;
  padding: 32px 24px;
  border: 3px solid var(--line);
  background: var(--texture), var(--surface);
  text-align: center;
}

.author-profile-loading-icon .icon {
  width: 68px;
  height: 68px;
}

.author-profile-loading h1,
.author-profile-loading p {
  margin: 0;
}

.author-profile-loading p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .author-profile-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .author-profile-toolbar .result-tools {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 600px) {
  body[data-page="author"] .page-main {
    margin-top: 18px;
  }

  .author-profile-cover {
    height: 150px;
    padding: 13px;
    gap: 10px;
  }

  .author-profile-back,
  .author-profile-sign {
    min-height: 36px;
    padding: 5px 8px;
    gap: 5px;
    font-size: 12px;
  }

  .author-profile-sign .icon {
    width: 21px;
    height: 21px;
  }

  .author-profile-identity {
    padding: 0 16px 22px;
  }

  .author-profile-portrait {
    margin-top: -49px;
    padding: 5px;
  }

  .author-profile-portrait .avatar {
    width: 76px;
    height: 76px;
  }

  .author-profile-identity h1 {
    margin-top: 14px;
    font-size: 27px;
  }

  .author-profile-id,
  .author-profile-description {
    font-size: 12px;
  }

  .author-profile-actions {
    gap: 10px;
    margin-top: 17px;
  }

  .author-profile-actions .button {
    min-width: 119px;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .author-profile-content {
    margin-top: 24px;
  }

  .author-profile-toolbar {
    padding: 14px 12px;
    margin-bottom: 19px;
  }

  .author-profile-works-label {
    justify-content: space-between;
    gap: 8px;
  }

  .author-profile-works-label h2 {
    font-size: 19px;
  }

  .author-profile-works-label p {
    font-size: 12px;
  }

  .author-profile-toolbar .result-tools {
    justify-content: space-between;
    gap: 8px;
  }

  .author-profile-toolbar .select-trigger {
    gap: 7px;
  }

  .author-profile-empty {
    flex-direction: column;
    gap: 12px;
    padding: 25px 18px;
    text-align: center;
  }

  .author-profile-empty .empty-character {
    width: 115px;
    height: 130px;
  }

  .author-profile-empty h1,
  .author-profile-empty h2 {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .author-profile-toolbar .result-tools {
    flex-wrap: nowrap;
  }

  .author-profile-toolbar .watched-filter {
    padding-inline: 7px;
    gap: 5px;
    font-size: 12px;
  }

  .author-profile-toolbar .view-switch {
    gap: 0;
    padding: 2px;
  }

  .author-profile-toolbar .view-switch .icon-button {
    width: 30px;
    height: 34px;
  }

  .author-profile-toolbar .select-trigger {
    min-height: 44px;
    padding-inline: 5px;
    gap: 4px;
    font-size: 12px;
  }

  .author-profile-toolbar .select-trigger > .icon:first-child {
    width: 19px;
    height: 19px;
  }
}
