/* Bili UP 详情 — 对齐 Figma PC / H5 画板 */
.artist-page-body,
.artist-gallery-page-body {
  min-height: 100vh;
  background: #fff;
  color: #202020;
}

.artist-page-body .home-site-header,
.artist-gallery-page-body .home-site-header {
  position: relative;
  z-index: 100;
  height: 112px;
  padding-top: 16px;
  background: #111318;
  border: 0;
}

.artist-page-body .home-nav,
.artist-gallery-page-body .home-nav { margin-top: 0; }

.artist-page {
  min-height: calc(100vh - var(--header-h));
  padding: 0 0 94px;
  background: linear-gradient(180deg, #fff 0%, #fff 74%, #fffaf9 100%);
}

.artist-detail { padding-top: 26px; }

.artist-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #8d8d8d;
  font-size: 13px;
  line-height: 20px;
}

.artist-breadcrumb a:hover { color: #ff4f83; }
.artist-breadcrumb em { color: #3c3c3c; font-style: normal; }

.artist-profile {
  display: grid;
  grid-template-columns: minmax(270px, 37%) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 430px;
  padding: 38px clamp(36px, 5vw, 74px);
  border-radius: 2px;
  background: #fff7f5;
}

.artist-profile-cover {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3e7e3;
}

.artist-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-profile-copy { min-width: 0; }

.artist-profile-kicker {
  color: #ff4f83;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
}

.artist-profile h1 {
  margin-top: 8px;
  color: #202020;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.25;
}

.artist-profile-description {
  max-width: 660px;
  margin-top: 20px;
  color: #555;
  font-size: 15px;
  line-height: 1.9;
}

.artist-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eadfdb;
}

.artist-profile-meta div { display: flex; gap: 9px; align-items: baseline; }
.artist-profile-meta dt { color: #9b918e; font-size: 12px; }
.artist-profile-meta dd { color: #333; font-size: 14px; font-weight: 600; }

.artist-gallery,
.artist-works { padding-top: 42px; }

.artist-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.artist-section-head h2 {
  position: relative;
  padding-left: 14px;
  color: #202020;
  font-size: 21px;
  font-weight: 700;
  line-height: 30px;
}

.artist-section-head h2::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: #ff4f83;
}

.artist-section-head > span,
.artist-section-head > a {
  color: #9b9b9b;
  font-size: 12px;
}

.artist-section-head > a:hover,
.artist-gallery-page-head a:hover { color: #ff4f83; }

.artist-section-head > a span,
.artist-gallery-page-head a span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #d8d8d8;
  color: #fff;
}

.artist-gallery-viewport {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #e7c5cf transparent;
}

.artist-gallery-track {
  display: grid;
  grid-auto-columns: clamp(180px, 19vw, 230px);
  grid-auto-flow: column;
  justify-content: start;
  gap: 14px;
}

.artist-gallery-card {
  min-width: 0;
}

.artist-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #f3e7e3;
  transition: transform .35s ease;
}

.artist-gallery-card figcaption {
  margin-top: 8px;
  overflow: hidden;
  color: #272727;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-gallery-card:hover img { transform: scale(1.035); }

.artist-gallery-page-content { padding-top: 26px; }

.artist-gallery-page { padding-bottom: 96px; }

.artist-gallery-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.artist-gallery-page-head h1 {
  color: #111;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
}

.artist-gallery-page-head a { color: #777; font-size: 15px; }

.artist-gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 24px;
}

.artist-gallery-page-grid figure { min-width: 0; }

.artist-gallery-page-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.35;
  border-radius: 8px;
  background: #f3e7e3;
  object-fit: cover;
}

.artist-gallery-page-empty {
  padding: 80px 20px;
  color: #8d8d8d;
  text-align: center;
}

.artist-video-grid {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}

.artist-video-viewport { overflow: hidden; transition: height .3s ease; }

.artist-video-track {
  display: flex;
  align-items: flex-start;
  will-change: transform;
  transition: transform .45s ease;
}

.artist-video-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.artist-video-pager a {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 13px;
}

.artist-video-pager a.active {
  border-color: transparent;
  background: #ff4f83;
  color: #fff;
  font-weight: 700;
}

.artist-video-pager a:hover:not(.active) { border-color: #ff8cad; color: #ff4f83; }

.artist-video-card { min-width: 0; }

.artist-video-open { display: block; width: 100%; text-align: left; }

.artist-video-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 254 / 144;
  overflow: hidden;
  border-radius: 3px;
  background: #f3e7e3;
}

.artist-video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.artist-video-card:hover .artist-video-cover img { transform: scale(1.045); }

.artist-video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f4e9e6, #ece0dc);
}

.artist-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding-left: 3px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(255, 79, 131, .86);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.artist-video-card:hover .artist-video-play,
.artist-video-open:focus-visible .artist-video-play { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }

.artist-video-open h3 {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: #2f2f2f;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.artist-video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-top: 5px;
  color: #979797;
  font-size: 14px;
  line-height: 18px;
}

.artist-video-meta span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.artist-video-meta .meta-time { margin-right: auto; }

.artist-video-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artist-video-empty {
  padding: 80px 24px;
  border: 1px solid #f0e3df;
  border-radius: 10px;
  background: #fff9f7;
  color: #9c918e;
  text-align: center;
}

.artist-player-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.artist-player-modal[hidden] { display: none; }

.artist-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.artist-player-dialog {
  position: relative;
  width: min(800px, 100%, calc(177.7778vh - 227.56px));
  overflow: hidden;
  border: 0;
  background: #030405;
  box-shadow: none;
  animation: artist-player-in .2s ease-out;
}

@keyframes artist-player-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
}

.artist-player-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
}

.artist-player-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.artist-player-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.artist-player-stage video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }

.artist-player-toggle[hidden],
.artist-player-controls[hidden] { display: none !important; }

.artist-player-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: opacity .16s ease;
  -webkit-backdrop-filter: blur(4.17px);
  backdrop-filter: blur(4.17px);
}

.artist-player-toggle img {
  display: block;
  width: 56px;
  height: 56px;
}

.artist-player-toggle-pause { display: none !important; }
.artist-player-stage.is-playing .artist-player-toggle-play { display: none; }
.artist-player-stage.is-playing .artist-player-toggle-pause { display: block !important; }
.artist-player-stage.is-playing .artist-player-toggle { opacity: 0; pointer-events: none; }
.artist-player-stage.is-playing .artist-player-toggle:focus-visible { opacity: 1; pointer-events: auto; }

.artist-player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 10px;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
}

.artist-player-controls time {
  flex: 0 0 auto;
  min-width: 28px;
  font-variant-numeric: tabular-nums;
}

.artist-player-controls time:last-child { text-align: right; }

.artist-player-progress {
  --played: 0%;
  width: 100%;
  min-width: 0;
  height: 3px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background:
    linear-gradient(90deg, #C98A2C 0%, #FFB958 100%) 0 0 / var(--played) 100% no-repeat,
    #999999;
  cursor: pointer;
}

.artist-player-progress::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.artist-player-progress::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -2.5px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #FFB958;
}

.artist-player-progress::-moz-range-track { height: 3px; background: transparent; }
.artist-player-progress::-moz-range-progress { height: 3px; background: linear-gradient(90deg, #C98A2C 0%, #FFB958 100%); }
.artist-player-progress::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #FFB958; }

.artist-player-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  pointer-events: none;
}

.artist-player-loading[hidden] { display: none; }

.artist-player-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: #050607;
}

.artist-player-footer > div { min-width: 0; }
.artist-player-footer strong { display: block; color: #fff; font-size: 16px; font-weight: 500; line-height: 20px; }
.artist-player-footer small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .45); font-size: 12px; line-height: 15px; }

.artist-player-download {
  display: inline-flex;
  flex-shrink: 0;
  width: 108px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7cc70, #e5a63d);
  color: #302006;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.artist-player-download:hover { color: #302006; filter: brightness(1.05); }

@media (max-width: 900px) {
  .artist-page-body .home-site-header,
  .artist-gallery-page-body .home-site-header { height: 48px; padding-top: 0; background: #fff; }
  .artist-page-body .home-nav,
  .artist-gallery-page-body .home-nav { margin-top: 0; }
  .artist-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artist-profile { grid-template-columns: minmax(230px, 42%) 1fr; gap: 30px; padding: 30px; }
  .artist-gallery-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
}

@media (max-width: 680px) {
  .artist-page { padding-bottom: 58px; }
  .artist-detail { padding-top: 14px; }
  .artist-gallery-page-content { padding-top: 0; }
  .artist-breadcrumb { gap: 5px; margin-bottom: 14px; padding: 0 18px; font-size: 10px; }
  .artist-profile {
    display: block;
    min-height: 0;
    padding: 0 18px 24px;
    background: #fff;
  }
  .artist-profile-cover { max-width: none; aspect-ratio: 4 / 5; }
  .artist-profile-copy { padding-top: 16px; }
  .artist-profile-kicker { font-size: 9px; }
  .artist-profile h1 { margin-top: 4px; font-size: 23px; }
  .artist-profile-description { margin-top: 10px; font-size: 12px; line-height: 1.75; }
  .artist-profile-meta { gap: 8px 18px; margin-top: 14px; padding-top: 12px; }
  .artist-profile-meta dt { font-size: 9px; }
  .artist-profile-meta dd { font-size: 11px; }
  .artist-gallery,
  .artist-works { padding-top: 22px; }
  .artist-gallery { padding-right: 0; }
  .artist-section-head { margin-bottom: 12px; padding-right: 18px; }
  .artist-section-head h2 { padding-left: 11px; font-size: 16px; line-height: 24px; }
  .artist-section-head h2::before { top: 4px; bottom: 4px; width: 3px; }
  .artist-section-head > span,
  .artist-section-head > a { font-size: 11px; }
  .artist-gallery-track { grid-auto-columns: 132px; gap: 9px; padding-right: 18px; }
  .artist-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .artist-video-open h3 { min-height: 40px; font-size: 14px; line-height: 20px; }
  .artist-video-meta { gap: 9px; font-size: 10px; line-height: 14px; }
  .artist-video-meta span { gap: 3px; }
  .artist-video-meta svg { width: 12px; height: 12px; flex-basis: 12px; }
  .artist-player-modal { padding: 12px; }
  .artist-player-dialog { border-radius: 12px; }

  .artist-player-footer {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
  }

  .artist-player-footer > div { width: 100%; }
  .artist-player-footer strong { font-size: 14px; line-height: 20px; }
  .artist-player-footer small { max-width: none; margin-top: 4px; font-size: 10px; line-height: 15px; }
  .artist-player-download { width: 100%; margin-top: 12px; }
  .artist-gallery-page { padding: 18px 16px 54px; }
  .artist-gallery-page-content .artist-breadcrumb { display: none; }
  .artist-gallery-page-head { margin-bottom: 16px; }
  .artist-gallery-page-head h1 { font-size: 24px; }
  .artist-gallery-page-head a { font-size: 12px; }
  .artist-gallery-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .artist-gallery-page-grid img { border-radius: 6px; }
}

@media (max-width: 420px) {
  .artist-works .container { padding: 0 14px; }
  .artist-gallery { padding-left: 14px; }
  .artist-breadcrumb,
  .artist-profile { padding-right: 14px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .artist-player-toggle { transition: none; }
}
