/* 播放页公共壳：作者预览 + 访客分享
 * 深色影院氛围 + 品牌色 #605DFF，兼顾中文排版与移动端
 */
:root {
  --play-bg: #0b0d12;
  --play-surface: #141821;
  --play-surface-2: #1a1f2b;
  --play-line: rgba(255, 255, 255, 0.08);
  --play-text: #f3f4f8;
  --play-muted: #9aa3b5;
  --play-accent: #605dff;
  --play-accent-2: #3749e9;
  --play-warn: #f0b429;
  --play-danger: #ff7a8a;
  --play-radius: 14px;
  --play-font: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--play-bg);
  color: var(--play-text);
  font-family: var(--play-font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.play-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
.play-shell::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 55vh;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(96, 93, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(55, 73, 233, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.play-shell-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.play-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--play-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.play-brand strong {
  color: var(--play-text);
  font-weight: 700;
  font-size: 15px;
}
.play-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--play-accent), var(--play-accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.play-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--play-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--play-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.play-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.play-btn-primary {
  background: linear-gradient(135deg, var(--play-accent), var(--play-accent-2));
  border-color: transparent;
}
.play-btn-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, var(--play-accent), var(--play-accent-2));
}
.play-dl-wrap {
  position: relative;
  display: inline-flex;
}
.play-dl-toggle {
  padding-right: 10px;
}
.play-dl-toggle .play-dl-caret {
  font-size: 16px;
  margin-left: 2px;
  opacity: 0.9;
}
.play-dl-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151a24;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: hidden;
  display: none;
}
.play-dl-wrap.is-open .play-dl-menu {
  display: block;
}
.play-dl-menu a,
.play-dl-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  height: 36px;
  padding: 0 12px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--play-text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.play-dl-menu a:hover,
.play-dl-menu button:hover {
  background: rgba(96, 93, 255, 0.16);
}
.play-dl-menu i {
  font-size: 16px;
  opacity: 0.9;
}
.play-btn-ghost {
  background: transparent;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px 20px;
  align-items: start;
}
.play-layout.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.play-layout.has-collection {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  grid-template-areas:
    "stage side"
    "meta meta";
  align-items: stretch;
}
.play-layout.has-collection .play-stage-col {
  grid-area: stage;
  min-width: 0;
}
.play-layout.has-collection .play-side {
  grid-area: side;
  /* 高度跟播放器一行走，避免列表把整列撑得比视频还高 */
  height: 0;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.play-layout.has-collection .play-meta--full {
  grid-area: meta;
}

.play-stage {
  background: #000;
  border-radius: var(--play-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}
.play-stage #video_player {
  width: 100%;
  height: 100%;
}
.play-stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, #12151c, #0a0c10);
  color: var(--play-muted);
  font-size: 14px;
}
.play-stage-empty i {
  font-size: 36px;
  color: #6b7280;
}

.play-meta {
  margin-top: 18px;
}
.play-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.play-sub {
  margin: 0;
  color: var(--play-muted);
  font-size: 14px;
  line-height: 1.5;
}
.play-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.play-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--play-muted);
  font-size: 12px;
  font-weight: 600;
}
.play-chip-ok {
  background: rgba(70, 181, 98, 0.15);
  color: #7ee2a0;
}
.play-chip-warn {
  background: rgba(240, 180, 41, 0.15);
  color: #f5cb62;
}

.play-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.22);
  color: #f5cb62;
  font-size: 13px;
  line-height: 1.5;
}
.play-notice-danger {
  background: rgba(255, 122, 138, 0.1);
  border-color: rgba(255, 122, 138, 0.25);
  color: #ffb0ba;
}

.play-creator {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--play-surface);
  border: 1px solid var(--play-line);
}
.play-creator img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a3140;
}
.play-creator-name {
  font-weight: 700;
  font-size: 14px;
}
.play-creator-bio {
  margin-top: 2px;
  font-size: 12px;
  color: var(--play-muted);
}
.play-creator-link {
  margin-left: auto;
  color: #b7b4ff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.play-actions-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.play-side {
  background: var(--play-surface);
  border: 1px solid var(--play-line);
  border-radius: var(--play-radius);
  overflow: hidden;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  color-scheme: dark;
}
.play-layout.has-collection .play-side {
  position: sticky;
  top: 12px;
  align-self: stretch;
}
.play-side-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--play-line);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.play-side-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 0;
}
.play-side-head-text strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-side-head-text span,
.play-side-head span {
  color: var(--play-muted);
  font-weight: 500;
  font-size: 12px;
}
.play-side-head-text span {
  white-space: nowrap;
  line-height: 1.3;
}
.play-side-progress {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #c8c6ff;
  background: rgba(96, 93, 255, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.play-side-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.play-side-list::-webkit-scrollbar {
  width: 6px;
}
.play-side-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.play-side-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.play-side-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}
.play-ep {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--play-line);
  color: var(--play-text);
  transition: background .15s;
  align-items: center;
}
.play-ep:hover { background: rgba(255, 255, 255, 0.03); }
.play-ep.is-active {
  background: rgba(96, 93, 255, 0.14);
}
.play-ep-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--play-muted);
  background: rgba(255, 255, 255, 0.05);
}
.play-ep.is-active .play-ep-num {
  color: #fff;
  background: var(--play-accent);
}
.play-ep img {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #2a3140;
  flex-shrink: 0;
}
.play-ep-body { min-width: 0; flex: 1; }
.play-ep-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--play-muted);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.play-ep.is-active .play-ep-label {
  color: #a5a1ff;
}
.play-ep-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.play-ep-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--play-muted);
}
.play-ep.is-active .play-ep-title { color: #c9c6ff; }
.play-ep.is-active .play-ep-meta { color: #a5a1ff; }

/* 密码门 / 失效态 —— 与分享页同一品牌门面 */
.play-gate {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 36, 48, 0.98), rgba(18, 21, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
  box-sizing: border-box;
}
.play-gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #c8c6ff;
  background: rgba(96, 93, 255, 0.16);
  border: 1px solid rgba(96, 93, 255, 0.28);
}
.play-gate--error .play-gate-icon {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.24);
}
.play-gate-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b7b4ff;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.play-gate--error .play-gate-kicker {
  color: #94a3b8;
}
.play-gate h1 {
  margin: 0 0 10px;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.play-gate p {
  margin: 0 0 8px;
  color: var(--play-muted);
  font-size: 14px;
  line-height: 1.55;
}
.play-gate-form {
  margin-top: 18px;
  text-align: left;
}
.play-gate-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--play-muted);
}
.play-gate input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--play-line);
  background: #0e1118;
  color: var(--play-text);
  padding: 0 14px;
  font-size: 16px; /* 避免 iOS 缩放 */
  outline: none;
  box-sizing: border-box;
}
.play-gate input:focus {
  border-color: rgba(96, 93, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(96, 93, 255, 0.18);
}
.play-gate-err {
  margin: 10px 0 0;
  color: var(--play-danger);
  font-size: 13px;
}
.play-gate-submit,
.play-gate .play-btn {
  width: 100%;
  height: 46px;
  margin-top: 14px;
}

.play-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--play-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--play-muted);
  font-size: 12px;
}

/* ========== 自定义音频播放器（跨浏览器一致） ========== */
.play-stage--audio,
.coda-ap.play-stage {
  aspect-ratio: auto;
  min-height: 360px;
  background: #0c0e14;
}
.coda-ap {
  position: relative;
  overflow: hidden;
  border-radius: var(--play-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--play-text);
  user-select: none;
}
.coda-ap audio {
  display: none !important;
}
.coda-ap-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.2);
  transform: scale(1.15);
  opacity: 0.45;
  pointer-events: none;
}
.coda-ap-bg--abstract {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(96, 93, 255, 0.55), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(55, 73, 233, 0.4), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.15), transparent 40%),
    #0c0e14;
  filter: none;
  inset: 0;
  transform: none;
  opacity: 1;
}
.coda-ap-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 13, 18, 0.55) 0%, rgba(11, 13, 18, 0.82) 55%, rgba(11, 13, 18, 0.92) 100%);
  pointer-events: none;
}
.coda-ap-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 32px 36px 28px;
  min-height: 360px;
}
.coda-ap-art {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #161b26;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.coda-ap-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.coda-ap.is-playing .coda-ap-art img {
  transform: scale(1.04);
}
.coda-ap-art.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #22283a 0%, #141821 100%);
}
.coda-ap-art-fallback {
  font-size: 64px;
  color: var(--play-accent);
  opacity: 0.9;
  filter: drop-shadow(0 8px 24px rgba(96, 93, 255, 0.35));
}
.coda-ap-art-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.coda-ap-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coda-ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(163, 168, 255, 0.9);
  text-transform: uppercase;
}
.coda-ap-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.coda-ap-hint {
  margin: 0;
  font-size: 12px;
  color: var(--play-muted);
}

/* 装饰波形：播放时加速 */
.coda-ap-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 36px;
  margin: 6px 0 2px;
  opacity: 0.55;
}
.coda-ap-wave i {
  flex: 1;
  max-width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #9b98ff, var(--play-accent));
  height: 30%;
  transform-origin: bottom;
  animation: coda-wave 1.4s ease-in-out infinite;
  animation-play-state: paused;
}
.coda-ap.is-playing .coda-ap-wave {
  opacity: 0.95;
}
.coda-ap.is-playing .coda-ap-wave i {
  animation-play-state: running;
}
.coda-ap-wave i:nth-child(4n+1) { height: 40%; animation-delay: 0s; }
.coda-ap-wave i:nth-child(4n+2) { height: 70%; animation-delay: 0.12s; }
.coda-ap-wave i:nth-child(4n+3) { height: 100%; animation-delay: 0.24s; }
.coda-ap-wave i:nth-child(4n+4) { height: 55%; animation-delay: 0.36s; }
@keyframes coda-wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.coda-ap-seek-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.coda-ap-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--play-muted);
  font-weight: 600;
}
.coda-ap-seek-row .coda-ap-time:last-child {
  text-align: right;
}
.coda-ap-seek-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.coda-ap-seek-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  pointer-events: none;
}
.coda-ap-seek-buf {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, 0.18);
}
.coda-ap-seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--play-accent), #8b88ff);
  border-radius: inherit;
}
.coda-ap-seek,
.coda-ap-vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.coda-ap-seek::-webkit-slider-runnable-track,
.coda-ap-vol-range::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
}
.coda-ap-seek::-moz-range-track,
.coda-ap-vol-range::-moz-range-track {
  height: 5px;
  background: transparent;
  border: none;
}
.coda-ap-seek::-webkit-slider-thumb,
.coda-ap-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  margin-top: -4.5px;
  border: none;
  transition: transform 0.12s;
}
.coda-ap-seek::-moz-range-thumb,
.coda-ap-vol-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.coda-ap-seek:hover::-webkit-slider-thumb,
.coda-ap-vol-range:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}

.coda-ap-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.coda-ap-spacer {
  flex: 1;
  min-width: 8px;
}
.coda-ap-play {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #7a77ff, var(--play-accent-2));
  color: #fff;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(96, 93, 255, 0.4);
  transition: transform 0.15s, filter 0.15s;
}
.coda-ap-play:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
}
.coda-ap-play:active {
  transform: scale(0.97);
}
.coda-ap-play i {
  margin-left: 2px;
}
.coda-ap.is-playing .coda-ap-play i {
  margin-left: 0;
}
.coda-ap-iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--play-text);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.coda-ap-iconbtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.coda-ap-rate {
  height: 40px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--play-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
}
.coda-ap-rate:hover {
  background: rgba(255, 255, 255, 0.1);
}
.coda-ap-vol {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.coda-ap-vol-wrap {
  position: relative;
  width: 88px;
  height: 28px;
  display: flex;
  align-items: center;
}
.coda-ap-vol-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  pointer-events: none;
}
.coda-ap-vol-fill {
  height: 100%;
  width: 85%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: inherit;
}
.coda-ap.is-muted .coda-ap-vol-fill {
  width: 0 !important;
}

@media (max-width: 900px) {
  .play-layout { grid-template-columns: 1fr; }
  .play-layout.has-collection {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "meta"
      "side";
    gap: 12px;
  }
  .play-layout.has-collection .play-side {
    position: static;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .play-side { max-height: none; }
  .play-side-head {
    padding: 12px 12px 10px;
  }
  /* 小屏列表容器：具体展开态由底部抽屉规则接管 */
  .play-layout.has-collection .play-side-list {
    display: block;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
  }
  .play-layout.has-collection .play-ep {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--play-line);
    border-radius: 0;
    background: transparent;
    position: relative;
    min-height: 56px;
  }
  .play-layout.has-collection .play-ep.is-active {
    border-color: var(--play-line);
    background: rgba(96, 93, 255, 0.14);
  }
  .play-layout.has-collection .play-ep img {
    width: 72px;
    height: 40px;
  }
  .play-layout.has-collection .play-ep-num {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }
  .play-layout.has-collection .play-ep-title {
    -webkit-line-clamp: 1;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  .play-layout.has-collection .play-side {
    border-radius: 12px;
    overflow: hidden;
  }
  @media (max-width: 480px) {
    .play-layout.has-collection .play-ep img {
      width: 56px;
      height: 32px;
    }
    .play-layout.has-collection .play-ep {
      padding: 12px 10px;
      min-height: 52px;
    }
  }
  .play-continue {
    flex-direction: column;
    align-items: stretch;
  }
  .play-continue-next {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(96, 93, 255, 0.12);
  }
  .play-continue-next strong {
    max-width: none;
  }
  .play-shell-inner { padding: 16px 14px 40px; }
  .coda-ap-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    gap: 20px;
    min-height: 0;
  }
  .coda-ap-art {
    width: 168px;
    height: 168px;
  }
  .coda-ap-main {
    width: 100%;
    align-items: center;
  }
  .coda-ap-kicker,
  .coda-ap-hint {
    justify-content: center;
  }
  .coda-ap-wave {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .coda-ap-seek-row {
    width: 100%;
  }
  .coda-ap-controls {
    justify-content: center;
    width: 100%;
  }
  .coda-ap-spacer {
    display: none;
  }
  .coda-ap-vol-wrap {
    width: 72px;
  }
}

/* 旧版兼容类（若仍有引用） */
.play-audio-panel { display: none; }

/* 分享 iframe 弹层（预览页未引入 user.css / base.css） */
.swal2-container {
  z-index: 20000;
}
.swal2-popup.nopadding-wrap {
  padding: 0 !important;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #151827;
}
.swal2-popup.nopadding-wrap #swal2-html-container {
  margin: 0;
  padding: 0;
}
.swal2-popup.nopadding-wrap > .swal2-close {
  display: none !important;
}

/* ========== 分享播放页（访客直链 V2） ========== */
body.is-share-play:not(.is-share-embed) {
  --play-bg: #080A0F;
  --play-surface: #11151D;
  --play-surface-2: #171C25;
  --play-line: rgba(255, 255, 255, 0.07);
  --play-text: #F5F7FA;
  --play-muted: #9AA3B5;
}
.play-shell--share {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.play-shell--share .play-shell-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 20px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.play-shell--share.play-shell--collection .play-shell-inner {
  max-width: 1320px;
}

/* 密码 / 不可用：无顶栏，极简垂直居中 */
.play-shell--share.play-shell--gate .play-shell-inner,
.play-shell--unavailable .play-shell-inner {
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
  min-height: 100vh;
  min-height: 100dvh;
}
.play-gate--v2 {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  padding: 28px 22px 24px;
  background: var(--play-surface);
  border: 1px solid var(--play-line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.play-gate--v2 .play-gate-kicker {
  color: var(--play-muted);
}
.play-gate--v2 h1 {
  font-size: 20px;
  line-height: 1.35;
}

.play-btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

.play-meta--share {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.play-layout.is-single .play-meta--share {
  margin-top: 18px;
}
.play-layout.has-collection .play-meta--share {
  margin-top: 4px;
}
.play-meta--share .play-meta-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.play-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.play-title-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.play-meta--share .play-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.play-meta--share .play-sub {
  margin: 0;
  font-size: 14px;
  color: var(--play-muted);
  line-height: 1.5;
}
.play-meta--share .play-chips {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.play-desc {
  margin: 2px 0 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(199, 205, 220, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}
.play-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(199, 198, 255, 0.72);
  transition: color .15s;
}
.play-dl-link:hover {
  color: #fff;
}
.play-dl-link i {
  font-size: 15px;
}
.play-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #a5a1ff;
  letter-spacing: 0.04em;
}
.play-ep-now {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--play-muted);
  font-size: 14px;
  line-height: 1.45;
}
.play-ep-now-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(96, 93, 255, 0.16);
  color: #c8c6ff;
  font-size: 12px;
  font-weight: 700;
}
.play-ep-now-title {
  color: var(--play-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  min-width: 0;
  text-decoration: none;
}
a.play-ep-now-title:hover {
  color: #c8c6ff;
}
.play-continue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--play-line);
}
.play-continue-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--play-muted);
}
.play-continue-next {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
  color: #c8c6ff;
  text-decoration: none;
}
.play-continue-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
}
.play-continue-badge em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.play-continue-badge em::before {
  content: "·";
  margin-right: 6px;
  opacity: 0.7;
}
.play-continue-next strong {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
}
.play-continue-next > i {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}
.play-continue-next:hover {
  color: #fff;
}
.play-continue-end {
  font-size: 12px;
  color: var(--play-muted);
}
.play-layout.has-collection .play-continue {
  margin-top: 14px;
}
.play-ep.is-processing {
  opacity: 0.72;
}

.play-creator--share {
  margin: 2px 0 0;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.play-creator-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(154, 163, 181, 0.72);
  line-height: 1.2;
}
.play-creator-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.play-creator--share img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  object-fit: cover;
  background: #1a1f2b;
}
.play-creator-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.play-creator--share .play-creator-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(360px, 72vw);
}

.play-footer--share {
  margin-top: auto;
  padding-top: 36px;
  padding-bottom: 8px;
  border-top: 0;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  color: rgba(154, 163, 181, 0.42);
  gap: 0;
  flex-shrink: 0;
}
.play-footer--share span {
  max-width: 520px;
  line-height: 1.5;
}
.play-gate-hint {
  margin: 0;
  font-size: 13px;
  color: var(--play-muted);
}

/* 直链音频：标题在下方 meta，播放器只留封面与控制 */
body.is-share-play:not(.is-share-embed) .coda-ap--share-v2 .coda-ap-body {
  align-items: center;
}
body.is-share-play:not(.is-share-embed) .coda-ap--share-v2 .coda-ap-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
/* 防止内部控件撑破导致右侧被 overflow 裁切、左右间距不对称 */
body.is-share-play:not(.is-share-embed) .play-layout,
body.is-share-play:not(.is-share-embed) .play-stage-col,
body.is-share-play:not(.is-share-embed) .play-stage,
body.is-share-play:not(.is-share-embed) .coda-ap,
body.is-share-play:not(.is-share-embed) .play-side,
body.is-share-play:not(.is-share-embed) .play-meta {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.is-share-play:not(.is-share-embed) .coda-ap--share-v2 .coda-ap-controls {
  max-width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* 合集：≥992 两列；<992 单列（仅直链，embed 规则另见） */
@media (max-width: 991px) {
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "side"
      "meta";
    gap: 14px;
  }
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection .play-side {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .play-shell--share .play-shell-inner {
    width: 100%;
    padding: 16px 12px max(16px, env(safe-area-inset-bottom));
  }
  body.is-share-play:not(.is-share-embed) .coda-ap--share-v2 .coda-ap-body {
    padding: 24px 14px 20px;
  }
  body.is-share-play:not(.is-share-embed) .coda-ap--share-v2 .coda-ap-controls {
    gap: 6px;
  }
  body.is-share-play:not(.is-share-embed) .coda-ap--share-v2 .coda-ap-vol-wrap {
    width: 56px;
  }
  .play-gate--v2 {
    padding: 22px 16px 18px;
  }
  .play-title-row {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .play-dl-link {
    margin-top: 0;
  }
  .play-ep-now {
    flex-direction: column;
    align-items: flex-start;
  }
  .play-footer--share {
    padding-top: 24px;
  }
}

/* —— 嵌入播放（客户网页内 iframe）：只留播放器，无主页/个人信息 ——
 * 用 fixed 铺满 iframe 视口，避免 % 高度链 + 绝对定位子元素导致 stage 高度为 0，
 * Artplayer 初始化在 0×0 容器里会表现为「黑屏/无法播放」。
 */
html.is-share-embed,
html.is-share-embed body.is-share-embed {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}
body.is-share-embed .play-shell--embed {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}
body.is-share-embed .play-shell--embed::before {
  display: none;
}
body.is-share-embed .play-shell-inner {
  position: absolute !important;
  inset: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
body.is-share-embed .play-topbar--embed {
  display: none;
}
body.is-share-embed .play-layout {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  gap: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}
body.is-share-embed .play-layout.has-collection {
  display: flex !important;
  flex-direction: column !important;
}
body.is-share-embed .play-stage-col {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: auto !important;
}
body.is-share-embed .play-layout.is-single .play-stage-col {
  height: 100% !important;
}
body.is-share-embed .play-stage {
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  box-shadow: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.is-share-embed .play-stage #video_player,
body.is-share-embed .play-stage .artplayer-app,
body.is-share-embed .play-stage .art-video-player,
body.is-share-embed .play-stage .art-video-player .art-video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
body.is-share-embed .play-stage--audio {
  position: relative !important;
  inset: auto !important;
  min-height: 0;
  height: 100% !important;
}
body.is-share-embed .play-layout.has-collection .play-stage--audio.coda-ap--compact {
  min-height: 120px;
}
body.is-share-embed .play-layout.has-collection.is-audio-coll .play-stage-col {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 140px;
}
body.is-share-embed .play-layout.has-collection.is-audio-coll .play-stage--audio {
  position: relative !important;
  height: auto !important;
  min-height: 140px;
}
body.is-share-embed .play-layout.has-collection.is-audio-coll .play-side {
  flex: 0 0 auto !important;
  max-height: none;
}
body.is-share-embed .play-side {
  flex: 0 0 auto !important;
  max-height: none;
  border-radius: 0;
  border-left: 0;
  border-top: 1px solid var(--play-line);
  position: relative !important;
  z-index: 6;
  background: #0b1220;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.is-share-embed .play-gate--embed {
  margin: auto;
  max-width: 360px;
  box-shadow: none;
}
body.is-share-embed.is-share-unavailable .play-shell--embed,
body.is-share-embed .play-shell--unavailable {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0b1220 !important;
}
body.is-share-embed.is-embed-light.is-share-unavailable .play-shell--embed,
body.is-share-embed.is-embed-light .play-shell--unavailable {
  background: #f1f5f9 !important;
}
body.is-share-embed.is-share-unavailable .play-shell-inner {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  padding: 16px !important;
  align-items: center;
  justify-content: center;
}
body.is-share-embed.is-share-unavailable .play-topbar--embed {
  display: none;
}
body.is-share-embed .play-gate--embed.play-gate--error {
  max-width: 320px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
}
/* 独立底条：避免被视频播放器/控件盖住（勿用 absolute 叠在画面上） */
body.is-share-embed .play-embed-credit {
  position: relative;
  flex: 0 0 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.42);
  background: #000;
  pointer-events: none;
  user-select: none;
}
body.is-share-embed.is-embed-light .play-embed-credit {
  color: rgba(15, 23, 42, 0.42);
  background: #f8fafc;
}
body.is-share-embed.is-share-unavailable .play-embed-credit {
  background: transparent;
}

/* —— 音频简洁 / 浅色（内嵌） —— */
.coda-ap--compact.play-stage--audio,
body.is-share-embed .coda-ap--compact.play-stage--audio {
  min-height: 0 !important;
  height: 100% !important;
}
.coda-ap--compact .coda-ap-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  min-height: 0;
  padding: 12px 14px;
  height: 100%;
  box-sizing: border-box;
}
.coda-ap--compact .coda-ap-art {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  max-width: 88px;
  max-height: 88px;
  aspect-ratio: 1 / 1;
  align-self: center;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  flex-shrink: 0;
}
.coda-ap--compact .coda-ap-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coda-ap--compact .coda-ap-art.is-placeholder,
.coda-ap--compact .coda-ap-art-fallback {
  width: 88px;
  height: 88px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coda-ap--compact .coda-ap-art-fallback {
  font-size: 28px;
  filter: none;
}
.coda-ap--compact .coda-ap-art-ring,
.coda-ap--compact .coda-ap-kicker,
.coda-ap--compact .coda-ap-hint,
.coda-ap--compact .coda-ap-wave,
.coda-ap--compact .coda-ap-bg,
.coda-ap--compact .coda-ap-veil {
  display: none !important;
}
.coda-ap--compact .coda-ap-main {
  gap: 6px;
  min-width: 0;
  padding-bottom: 0;
  justify-content: center;
}
.coda-ap--compact .coda-ap-title {
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.coda-ap--compact .coda-ap-seek-row {
  margin: 0;
}
.coda-ap--compact .coda-ap-controls {
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  flex-wrap: nowrap;
}
.coda-ap--compact .coda-ap-iconbtn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
}
.coda-ap--compact .coda-ap-rate {
  height: 34px;
  min-width: 40px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
}
.coda-ap--compact .coda-ap-play {
  width: 36px;
  height: 36px;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(96, 93, 255, 0.35);
}
.coda-ap--compact .coda-ap-vol-wrap {
  width: 72px;
}
/* 默认档：同为横条，略宽松；封面仍固定 1:1，不拉高 */
.coda-ap--roomy.coda-ap--compact .coda-ap-body {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px 16px;
  padding: 14px 16px;
  align-items: center;
}
.coda-ap--roomy.coda-ap--compact .coda-ap-art {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  max-width: 96px;
  max-height: 96px;
}
.coda-ap--roomy.coda-ap--compact .coda-ap-art.is-placeholder,
.coda-ap--roomy.coda-ap--compact .coda-ap-art-fallback {
  width: 96px;
  height: 96px;
  min-height: 96px;
}
/* 窄屏：缩小封面，避免挤占右侧控件 */
@media (max-width: 560px) {
  .coda-ap--compact .coda-ap-body,
  .coda-ap--roomy.coda-ap--compact .coda-ap-body {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 10px 12px;
  }
  .coda-ap--compact .coda-ap-art,
  .coda-ap--compact .coda-ap-art.is-placeholder,
  .coda-ap--compact .coda-ap-art-fallback,
  .coda-ap--roomy.coda-ap--compact .coda-ap-art,
  .coda-ap--roomy.coda-ap--compact .coda-ap-art.is-placeholder,
  .coda-ap--roomy.coda-ap--compact .coda-ap-art-fallback {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
  .coda-ap--compact .coda-ap-controls {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .coda-ap--compact .coda-ap-vol-wrap {
    width: 56px;
  }
}
/* 极窄：隐藏封面，优先控件可点 */
@media (max-width: 400px) {
  .coda-ap--compact .coda-ap-body,
  .coda-ap--roomy.coda-ap--compact .coda-ap-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .coda-ap--compact .coda-ap-art,
  .coda-ap--compact .coda-ap-art.is-placeholder,
  .coda-ap--compact .coda-ap-art-fallback {
    display: none !important;
  }
}
.coda-ap--roomy.coda-ap--compact .coda-ap-title {
  font-size: 16px;
}
.coda-ap--roomy.coda-ap--compact .coda-ap-iconbtn {
  width: 36px;
  height: 36px;
}
.coda-ap--roomy.coda-ap--compact .coda-ap-rate {
  height: 36px;
  min-width: 42px;
}
.coda-ap--roomy.coda-ap--compact .coda-ap-play {
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.coda-ap-dl {
  text-decoration: none;
  color: inherit;
}
.coda-ap--light {
  background: #f8fafc !important;
  color: #0f172a;
}
body.is-share-embed.is-embed-light .coda-ap--light.play-stage--audio {
  background: #f8fafc !important;
}
.coda-ap--light .coda-ap-title,
.coda-ap--light .coda-ap-time,
.coda-ap--light .coda-ap-rate {
  color: #0f172a;
}
.coda-ap--light .coda-ap-iconbtn,
.coda-ap--light .coda-ap-rate {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.coda-ap--light .coda-ap-play {
  background: #605dff;
  color: #fff;
}
.coda-ap--light .coda-ap-seek-track,
.coda-ap--light .coda-ap-vol-track {
  background: rgba(15, 23, 42, 0.12);
}
.coda-ap--light .coda-ap-art.is-placeholder {
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}
.coda-ap--light .coda-ap-art-fallback {
  color: #605dff;
}

/* —— 合集目录收起 —— */
.play-side-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 1px;
}
.play-side-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.play-side-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.play-side-dock {
  display: none;
}
.play-side-dock-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 12px;
  cursor: pointer;
}
.play-side-dock-btn:hover {
  background: #1e293b;
}
.play-layout.has-collection.is-side-collapsed .play-side {
  display: none !important;
}
.play-layout.has-collection.is-side-collapsed .play-side-dock {
  display: block;
}
body.is-share-embed .play-layout.has-collection.is-side-collapsed .play-side-dock {
  position: relative !important;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 6;
  flex: 0 0 auto;
}
/* 内嵌合集：上下流布局（播放器 + 下方队列），配合外框定高/动态高度 */
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) {
  display: flex !important;
  flex-direction: column !important;
}
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .play-stage-col {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: auto !important;
  z-index: 1 !important;
}
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .play-stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  box-shadow: none !important;
}
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .play-side {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: 100% !important;
  max-height: 200px !important;
  height: 200px !important;
  z-index: 6 !important;
  background: rgba(11, 18, 32, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  pointer-events: auto !important;
  flex: 0 0 200px !important;
}
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .play-stage-col,
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .play-stage,
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) #video_player,
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .art-video-player,
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .art-controls,
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .art-mask,
body.is-share-embed .play-layout.has-collection.is-embed-list-flow:not(.is-side-collapsed) .art-layers {
  pointer-events: auto !important;
}

/* 内嵌合集：无流布局时仍用底部抽屉（兼容旧链接） */
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .play-side {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100%;
  max-height: min(72%, 420px) !important;
  height: min(72%, 420px) !important;
  z-index: 10050 !important;
  background: rgba(11, 18, 32, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  pointer-events: auto !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .play-stage-col,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .play-stage,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) #video_player,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .art-video-player,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .art-controls,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .art-mask,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .art-layers {
  pointer-events: none !important;
}
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .play-side a,
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed) .play-side button {
  pointer-events: auto !important;
}
body.is-share-embed .play-layout.has-collection:not(.is-embed-list-flow):not(.is-side-collapsed).is-audio-coll .play-side {
  max-height: min(70%, 360px) !important;
  height: min(70%, 360px) !important;
}
body.is-share-embed .play-side-list {
  display: block !important;
  flex-direction: column !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  gap: 0 !important;
  scroll-snap-type: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
body.is-share-embed .play-side-list::-webkit-scrollbar {
  width: 6px;
}
body.is-share-embed .play-side-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
body.is-share-embed .play-side-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
body.is-share-embed .play-side-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}
body.is-share-embed.is-embed-light .play-side-list {
  scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}
body.is-share-embed.is-embed-light .play-side-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
}
body.is-share-embed.is-embed-light .play-side-list::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.4);
}
body.is-share-embed .play-side-head {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 1;
  background: inherit;
}
body.is-share-embed .play-ep {
  display: flex !important;
  flex: none !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 12px 14px;
  gap: 10px;
  min-height: 52px;
  border: 0 !important;
  border-bottom: 1px solid var(--play-line) !important;
  border-radius: 0 !important;
  scroll-snap-align: none !important;
  background: transparent;
}
body.is-share-embed .play-ep.is-active {
  background: rgba(96, 93, 255, 0.14);
}
body.is-share-embed .play-ep img {
  display: none;
}
body.is-share-embed .play-ep-num {
  position: static !important;
  box-shadow: none !important;
}
body.is-share-embed .play-ep-label {
  display: none;
}
body.is-share-embed .play-ep-title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  -webkit-line-clamp: unset;
}
body.is-share-embed .play-ep-meta {
  font-size: 11px;
}
body.is-share-embed .play-side-dock-btn {
  justify-content: flex-start;
  padding: 12px 14px;
  gap: 10px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255,255,255,.06);
  min-height: 48px;
}
body.is-share-embed .play-side-dock-btn span {
  flex: 1;
  text-align: left;
}
body.is-share-embed.is-embed-light .play-side {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
  color: #0f172a;
}
body.is-share-embed.is-embed-light .play-layout.has-collection:not(.is-side-collapsed) .play-side {
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}
body.is-share-embed.is-embed-light .play-side-head-text strong,
body.is-share-embed.is-embed-light .play-ep-title {
  color: #0f172a;
}
body.is-share-embed.is-embed-light .play-ep {
  color: #334155;
}
body.is-share-embed.is-embed-light .play-ep.is-active {
  background: rgba(96, 93, 255, 0.1);
}
body.is-share-embed.is-embed-light .play-side-dock-btn {
  background: #e2e8f0;
  color: #0f172a;
  border-top-color: #cbd5e1;
}
/* 手机合集列表：站内/嵌入用底部抽屉；直链分享走文档流，避免盖住播放器/标题 */
@media (max-width: 900px) {
  body:not(.is-share-play) .play-layout.has-collection:not(.is-side-collapsed) .play-side,
  body.is-share-embed .play-layout.has-collection:not(.is-side-collapsed) .play-side {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 80;
    max-height: min(68vh, 480px) !important;
    height: min(68vh, 480px) !important;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.4);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    background: #0b1220;
  }
  body:not(.is-share-play) .play-layout.has-collection:not(.is-side-collapsed) .play-side-list,
  body.is-share-embed .play-layout.has-collection:not(.is-side-collapsed) .play-side-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  }
  body:not(.is-share-play) .play-layout.has-collection:not(.is-side-collapsed) .play-side-list::-webkit-scrollbar,
  body.is-share-embed .play-layout.has-collection:not(.is-side-collapsed) .play-side-list::-webkit-scrollbar {
    width: 6px;
  }
  body:not(.is-share-play) .play-layout.has-collection:not(.is-side-collapsed) .play-side-list::-webkit-scrollbar-track,
  body.is-share-embed .play-layout.has-collection:not(.is-side-collapsed) .play-side-list::-webkit-scrollbar-track {
    background: transparent;
  }
  body:not(.is-share-play) .play-layout.has-collection:not(.is-side-collapsed) .play-side-list::-webkit-scrollbar-thumb,
  body.is-share-embed .play-layout.has-collection:not(.is-side-collapsed) .play-side-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
  }
  body:not(.is-share-play) .play-layout.has-collection:not(.is-side-collapsed) .play-side-head,
  body.is-share-embed .play-layout.has-collection:not(.is-side-collapsed) .play-side-head {
    flex: 0 0 auto;
  }
  .play-layout.has-collection.is-side-collapsed .play-side-dock {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
  }
  /* 直链分享：队列紧跟播放器下方，正常滚动，不浮层 */
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection {
    grid-template-areas:
      "stage"
      "side"
      "meta";
  }
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection:not(.is-side-collapsed) .play-side {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    z-index: auto !important;
    max-height: min(52vh, 420px) !important;
    height: auto !important;
    border-radius: 16px;
    box-shadow: none;
    background: var(--play-surface);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
  }
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection:not(.is-side-collapsed) .play-side-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(44vh, 360px);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection:not(.is-side-collapsed) .play-side-head {
    flex: 0 0 auto;
  }
}
@media (max-width: 991.98px) {
  .play-layout.has-collection.is-side-collapsed .play-side-dock {
    display: block;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
  }
}

/* ========== 合集下载任务抽屉 ========== */
body.play-dl-drawer-open {
  overflow: hidden;
}
.play-dl-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}
.play-dl-drawer[hidden] {
  display: none !important;
}
.play-dl-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: auto;
}
.play-dl-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, rgba(96, 93, 255, 0.12) 0%, transparent 28%),
    linear-gradient(180deg, #151a24 0%, #10141c 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(104%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  box-sizing: border-box;
}
.play-dl-drawer.is-open .play-dl-drawer-mask {
  opacity: 1;
}
.play-dl-drawer.is-open .play-dl-drawer-panel {
  transform: translateX(0);
}
.play-dl-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--play-line);
  flex: 0 0 auto;
}
.play-dl-drawer-head-text {
  min-width: 0;
}
.play-dl-drawer-head-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.play-dl-drawer-head-text span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--play-muted);
  line-height: 1.4;
}
.play-dl-drawer-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--play-text);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.play-dl-drawer-x:hover {
  background: rgba(255, 255, 255, 0.12);
}
.play-dl-drawer-progress {
  padding: 14px 20px 0;
  flex: 0 0 auto;
}
.play-dl-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--play-muted);
}
.play-dl-progress-meta strong {
  color: var(--play-text);
  font-weight: 600;
}
.play-dl-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.play-dl-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #605dff, #8b87ff);
  box-shadow: 0 0 12px rgba(96, 93, 255, 0.45);
  transition: width 0.35s ease;
}
.play-dl-drawer.is-done .play-dl-progress-fill {
  background: linear-gradient(90deg, #2dd4a8, #5eead4);
  box-shadow: 0 0 12px rgba(45, 212, 168, 0.35);
}
.play-dl-drawer-tip {
  margin: 12px 20px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(96, 93, 255, 0.1);
  border: 1px solid rgba(96, 93, 255, 0.22);
  color: #c8c6ff;
  font-size: 12px;
  line-height: 1.5;
  flex: 0 0 auto;
}
.play-dl-drawer-tip i {
  margin-right: 4px;
  vertical-align: -1px;
}
.play-dl-drawer-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 12px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.play-dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.play-dl-item.is-run {
  background: rgba(96, 93, 255, 0.14);
  border-color: rgba(96, 93, 255, 0.28);
  transform: translateX(-2px);
}
.play-dl-item.is-done {
  background: rgba(45, 212, 168, 0.08);
  border-color: rgba(45, 212, 168, 0.18);
}
.play-dl-item.is-skip,
.play-dl-item.is-fail {
  opacity: 0.72;
}
.play-dl-item-ep {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--play-muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.play-dl-item.is-run .play-dl-item-ep {
  background: rgba(96, 93, 255, 0.28);
  color: #fff;
}
.play-dl-item.is-done .play-dl-item-ep {
  background: rgba(45, 212, 168, 0.22);
  color: #9af0d6;
}
.play-dl-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--play-muted);
  font-size: 15px;
  flex: 0 0 auto;
}
.play-dl-item-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.play-dl-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-dl-item-status {
  font-size: 11px;
  font-style: normal;
  color: var(--play-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.play-dl-item.is-run .play-dl-item-status {
  color: #b4b1ff;
}
.play-dl-item.is-run .play-dl-item-status i {
  animation: play-dl-spin 0.8s linear infinite;
}
.play-dl-item.is-done .play-dl-item-status {
  color: #7ee0c3;
}
.play-dl-item.is-fail .play-dl-item-status {
  color: var(--play-danger);
}
.play-dl-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--play-muted);
  font-size: 13px;
}
.play-dl-drawer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--play-line);
  background: rgba(10, 12, 18, 0.55);
  flex: 0 0 auto;
}
.play-dl-drawer-foot .play-btn {
  flex: 1 1 auto;
  justify-content: center;
}
@keyframes play-dl-spin {
  to { transform: rotate(360deg); }
}

/* 收起后的右下角展开胶囊 */
.play-dl-dock {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1190;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, #1a1f2e 0%, #121722 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(96, 93, 255, 0.15);
  color: var(--play-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.play-dl-dock[hidden] {
  display: none !important;
}
.play-dl-dock.is-visible {
  display: inline-flex;
  animation: play-dl-dock-in 0.28s ease;
}
.play-dl-dock:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 93, 255, 0.28);
}
.play-dl-dock > i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 93, 255, 0.22);
  color: #c8c6ff;
  font-size: 15px;
  flex: 0 0 auto;
}
.play-dl-dock.is-busy > i {
  animation: play-dl-spin 1s linear infinite;
}
.play-dl-dock.is-done > i {
  background: rgba(45, 212, 168, 0.22);
  color: #9af0d6;
  animation: none;
}
.play-dl-dock span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-dl-dock em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #b4b1ff;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96, 93, 255, 0.18);
}
.play-dl-dock.is-done em {
  color: #9af0d6;
  background: rgba(45, 212, 168, 0.16);
}
@keyframes play-dl-dock-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .play-dl-drawer-panel {
    width: 100vw;
  }
  .play-dl-dock {
    right: 12px;
    bottom: 16px;
  }
}

/* —— 直链音频合集：专辑头图 + 播放全部 + 切集 + 自动连播 —— */
.coda-ap-iconbtn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-template-areas:
    "hero hero"
    "stage side"
    "meta meta";
  gap: 18px 22px;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-album-hero {
  grid-area: hero;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 22px;
  min-width: 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.96), rgba(16, 20, 30, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
body.is-share-play:not(.is-share-embed) .play-album-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 86% 28%, rgba(96, 93, 255, 0.28), transparent 42%),
    radial-gradient(ellipse at 100% 90%, rgba(55, 73, 233, 0.16), transparent 46%);
}
body.is-share-play:not(.is-share-embed) .play-album-hero-bg::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 50%;
  width: 38%;
  height: 52px;
  transform: translateY(-50%);
  opacity: 0.28;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 6px,
      rgba(163, 168, 255, 0.08) 6px 8px,
      transparent 8px 10px,
      rgba(96, 93, 255, 0.55) 10px 12px
    );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
body.is-share-play:not(.is-share-embed) .play-album-cover {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  height: auto;
  min-width: 168px;
  min-height: 168px;
  max-width: 220px;
  max-height: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1f2b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
body.is-share-play:not(.is-share-embed) .play-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.is-share-play:not(.is-share-embed) .play-album-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #a5a1ff;
  background: linear-gradient(145deg, #2a2a4a, #1a1f2b);
}
body.is-share-play:not(.is-share-embed) .play-album-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
body.is-share-play:not(.is-share-embed) .play-album-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
body.is-share-play:not(.is-share-embed) .play-album-desc-wrap {
  max-width: 62ch;
}
body.is-share-play:not(.is-share-embed) .play-album-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-height: 4.8em;
  color: rgba(199, 205, 220, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
body.is-share-play:not(.is-share-embed) .play-album-desc.is-open {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
}
body.is-share-play:not(.is-share-embed) .play-album-desc-more {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #c8c6ff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
body.is-share-play:not(.is-share-embed) .play-album-desc-more:hover {
  color: #fff;
}
body.is-share-play:not(.is-share-embed) .play-album-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--play-muted);
  font-size: 13px;
}
body.is-share-play:not(.is-share-embed) .play-album-creator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.is-share-play:not(.is-share-embed) .play-album-creator img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a3140;
}
body.is-share-play:not(.is-share-embed) .play-album-creator em {
  font-style: normal;
  font-weight: 650;
  color: var(--play-text);
}
body.is-share-play:not(.is-share-embed) .play-album-count {
  font-variant-numeric: tabular-nums;
}
body.is-share-play:not(.is-share-embed) .play-album-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 4px;
}
body.is-share-play:not(.is-share-embed) .play-album-playall {
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(145deg, #7a77ff, var(--play-accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(96, 93, 255, 0.32);
}
body.is-share-play:not(.is-share-embed) .play-album-playall:hover {
  filter: brightness(1.06);
}
body.is-share-play:not(.is-share-embed) .play-album-playall i {
  font-size: 18px;
}
body.is-share-play:not(.is-share-embed) .play-album-dl {
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e8eaf2;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
body.is-share-play:not(.is-share-embed) .play-album-dl:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
body.is-share-play:not(.is-share-embed) .play-autonext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--play-muted);
  font-size: 13px;
  font-weight: 600;
}
body.is-share-play:not(.is-share-embed) .play-autonext input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
body.is-share-play:not(.is-share-embed) .play-autonext-ui {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s;
}
body.is-share-play:not(.is-share-embed) .play-autonext-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
body.is-share-play:not(.is-share-embed) .play-autonext input:checked + .play-autonext-ui {
  background: var(--play-accent);
}
body.is-share-play:not(.is-share-embed) .play-autonext input:checked + .play-autonext-ui::after {
  transform: translateX(16px);
}
body.is-share-play:not(.is-share-embed) .play-autonext input:checked ~ .play-autonext-label,
body.is-share-play:not(.is-share-embed) .play-autonext:has(input:checked) .play-autonext-label {
  color: var(--play-text);
}
body.is-share-play:not(.is-share-embed) .coda-ap--album.play-stage {
  min-height: 0;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: none;
  gap: 0;
  padding: 28px 28px 22px;
  min-height: 0;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-main {
  align-items: center;
  text-align: center;
  gap: 12px;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(163, 168, 255, 0.92);
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-now em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #c8c6ff;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-title {
  max-width: 100%;
  font-size: clamp(22px, 2.4vw, 30px);
  display: block;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-wave {
  width: 100%;
  max-width: 560px;
  height: 48px;
  margin: 8px auto 0;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-seek-row {
  width: 100%;
  max-width: 640px;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-controls {
  width: 100%;
  max-width: 640px;
  justify-content: center;
}
body.is-share-play:not(.is-share-embed) .coda-ap--album .play-autonext {
  margin-left: 4px;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-side {
  border-radius: 16px;
  background: rgba(20, 24, 33, 0.72);
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-side-head {
  padding: 14px 14px 12px;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-ep {
  gap: 12px;
  padding: 10px 14px;
  border-bottom-color: rgba(255, 255, 255, 0.04);
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-ep img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-ep-num {
  width: 24px;
  height: 24px;
  background: transparent;
  font-variant-numeric: tabular-nums;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-ep.is-active {
  background: rgba(96, 93, 255, 0.12);
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-ep.is-active .play-ep-num {
  background: transparent;
  color: #c8c6ff;
}
body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-meta--share {
  margin-top: 0;
}
@media (max-width: 991px) {
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "stage"
      "side"
      "meta";
  }
  body.is-share-play:not(.is-share-embed) .play-layout.has-collection.is-audio-album .play-album-hero {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    align-items: start;
    gap: 8px 12px;
    padding: 14px 14px 16px;
    border-radius: 14px;
    overflow: visible;
  }
  body.is-share-play:not(.is-share-embed) .play-album-hero-bg::after {
    display: none;
  }
  body.is-share-play:not(.is-share-embed) .play-album-cover {
    grid-column: 1;
    grid-row: 1 / span 3;
    flex: none;
    align-self: start;
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
    max-width: 92px;
    max-height: 92px;
    border-radius: 12px;
  }
  body.is-share-play:not(.is-share-embed) .play-album-info {
    display: contents;
  }
  body.is-share-play:not(.is-share-embed) .play-album-hero .play-kicker {
    grid-column: 2;
    grid-row: 1;
  }
  body.is-share-play:not(.is-share-embed) .play-album-title {
    grid-column: 2;
    grid-row: 2;
    font-size: 18px;
    line-height: 1.3;
  }
  body.is-share-play:not(.is-share-embed) .play-album-byline {
    grid-column: 2;
    grid-row: 3;
  }
  body.is-share-play:not(.is-share-embed) .play-album-desc-wrap {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: none;
  }
  body.is-share-play:not(.is-share-embed) .play-album-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
    max-height: 3.2em;
  }
  body.is-share-play:not(.is-share-embed) .play-album-actions {
    grid-column: 1 / -1;
    grid-row: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 2px;
    min-height: 36px;
  }
  body.is-share-play:not(.is-share-embed) .play-album-actions:has(.play-album-dl) {
    grid-template-columns: 1fr 1fr;
  }
  body.is-share-play:not(.is-share-embed) .play-album-playall,
  body.is-share-play:not(.is-share-embed) .play-album-dl {
    width: 100%;
    justify-content: center;
    height: 36px;
    padding: 0 10px;
    box-shadow: none;
    box-sizing: border-box;
  }
}
@media (max-width: 640px) {
  body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-body {
    padding: 20px 14px 16px;
  }
  body.is-share-play:not(.is-share-embed) .coda-ap--album .coda-ap-title {
    font-size: 18px;
  }
  body.is-share-play:not(.is-share-embed) .is-audio-album [data-ap="back"],
  body.is-share-play:not(.is-share-embed) .is-audio-album [data-ap="fwd"] {
    display: none;
  }
}
