/* ============ 婚礼歌单 ============ */
.pl-hero {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 22px;
  background:
    radial-gradient(110% 160% at 0% 0%, rgba(196, 154, 91, 0.16) 0%, rgba(255, 253, 248, 0) 55%),
    linear-gradient(135deg, #FFFDF8 0%, #F8EFE4 100%);
  border: 1px solid rgba(196, 154, 91, 0.36);
  box-shadow: 0 18px 42px rgba(74, 21, 32, 0.09);
}
.pl-cover {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #8B2635, #5C1622);
  color: #E8D5A8;
  font-family: var(--font-display, serif);
  font-size: 34px;
  box-shadow: 0 12px 28px rgba(139, 38, 53, 0.28), 0 0 0 3px rgba(232, 213, 168, 0.35);
}
.pl-main { min-width: 0; }
.pl-kicker {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold-deep, #A8752E);
}
.pl-title {
  margin-top: 4px;
  font-family: var(--font-display, serif);
  font-size: 23px;
  letter-spacing: 0.04em;
  color: var(--ink, #2E1A20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-soft, #7A5560);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-progress {
  height: 5px;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(139, 38, 53, 0.08);
  overflow: hidden;
}
.pl-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C49A5B, #8B2635);
  transition: width 0.25s linear;
}
.pl-time {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(122, 85, 96, 0.65);
  font-variant-numeric: tabular-nums;
}
.pl-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(139, 38, 53, 0.18);
  background: rgba(255, 253, 248, 0.8);
  color: var(--wine, #8B2635);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pl-ctrl:hover {
  border-color: rgba(196, 154, 91, 0.6);
  background: #FFFDF8;
}
.pl-play {
  width: 54px;
  height: 54px;
  background: linear-gradient(145deg, #8B2635, #5C1622);
  border-color: transparent;
  color: #FFF6E4;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(139, 38, 53, 0.3);
}
.pl-play:hover {
  background: linear-gradient(145deg, #9B3041, #6A1A29);
}
.pl-list {
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 18px;
}
.pl-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  border-bottom: 1px dashed rgba(196, 154, 91, 0.18);
  transition: background 0.2s ease;
}
.pl-row:last-child { border-bottom: none; }
.pl-row:hover { background: rgba(196, 154, 91, 0.06); }
.pl-row.is-current {
  background: linear-gradient(135deg, rgba(139, 38, 53, 0.07), rgba(196, 154, 91, 0.05));
}
.pl-num {
  font-family: var(--font-display, serif);
  font-size: 14px;
  color: var(--gold-deep, #A8752E);
  text-align: center;
}
.pl-row.is-current .pl-num { color: var(--wine, #8B2635); }
.pl-row-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  padding: 0;
}
.pl-row-name {
  font-size: 14.5px;
  color: var(--ink, #2E1A20);
  letter-spacing: 0.02em;
}
.pl-row.is-current .pl-row-name {
  color: var(--wine, #8B2635);
  font-weight: 600;
}
.pl-row-src {
  max-width: 100%;
  font-size: 10.5px;
  color: rgba(122, 85, 96, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-row-del {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(139, 38, 53, 0.12);
  background: transparent;
  color: rgba(139, 38, 53, 0.5);
  font-size: 12px;
  cursor: pointer;
}
.pl-row-del:hover {
  color: #B23A48;
  border-color: rgba(178, 58, 72, 0.4);
  background: rgba(178, 58, 72, 0.06);
}
.pl-add {
  margin-top: 18px;
  padding: 22px 24px;
}
.pl-empty {
  padding: 34px 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(122, 85, 96, 0.7);
}

/* ---- 宾客歌单入口 ---- */
.pl-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9991;
  display: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 168, 0.5);
  background: linear-gradient(145deg, #8B2635, #5C1622);
  color: #FFF6E4;
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(139, 38, 53, 0.32);
  transition: transform 0.2s ease;
}
body.role-guest .pl-fab { display: flex; }
.pl-fab:hover { transform: translateY(-2px); }
.pl-fab-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 213, 168, 0.16);
  border: 1px solid rgba(232, 213, 168, 0.36);
  font-size: 15px;
}

.pl-panel {
  position: fixed;
  left: auto;
  right: 24px;
  top: 96px;
  bottom: auto;
  z-index: 9996;
  width: 360px;
  max-width: 92vw;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  border-radius: 22px;
  transform-origin: top right;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(248, 239, 228, 0.98));
  border: 1px solid rgba(196, 154, 91, 0.45);
  box-shadow: 0 26px 60px rgba(26, 9, 16, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.pl-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.pl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pl-panel-kicker {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--gold-deep, #A8752E);
}
.pl-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(139, 38, 53, 0.16);
  background: transparent;
  color: var(--wine, #8B2635);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.pl-panel-now { margin-top: 12px; }
.pl-panel-title {
  font-family: var(--font-display, serif);
  font-size: 20px;
  color: var(--ink, #2E1A20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-panel-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(122, 85, 96, 0.7);
}
.pl-panel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 12px;
}
.pl-panel-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(139, 38, 53, 0.18);
  background: rgba(255, 253, 248, 0.85);
  color: var(--wine, #8B2635);
  font-size: 15px;
  cursor: pointer;
}
.pl-panel-controls [data-pl="play"] {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #8B2635, #5C1622);
  border-color: transparent;
  color: #FFF6E4;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(139, 38, 53, 0.28);
}
.pl-panel-list {
  overflow-y: auto;
  max-height: 34vh;
  margin: 0 -6px;
  padding: 2px 6px;
}
.pl-panel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border: none;
  border-bottom: 1px dashed rgba(196, 154, 91, 0.16);
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}
.pl-panel-item:last-child { border-bottom: none; }
.pl-panel-item:hover { background: rgba(196, 154, 91, 0.07); }
.pl-panel-item.is-current {
  background: rgba(139, 38, 53, 0.06);
}
.pl-panel-num {
  font-family: var(--font-display, serif);
  font-size: 11px;
  color: var(--gold-deep, #A8752E);
  width: 20px;
  flex-shrink: 0;
}
.pl-panel-name {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink, #2E1A20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-panel-item.is-current .pl-panel-name {
  color: var(--wine, #8B2635);
  font-weight: 600;
}
.pl-panel-mark {
  width: 16px;
  color: var(--wine, #8B2635);
  font-size: 13px;
  text-align: center;
}
.pl-panel-tip {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(196, 154, 91, 0.16);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(122, 85, 96, 0.6);
  text-align: center;
}

@media (max-width: 640px) {
  .pl-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }
  .pl-cover { width: 58px; height: 58px; font-size: 25px; }
  .pl-title { font-size: 19px; }
  .pl-controls {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 4px;
  }
  .pl-fab { left: 14px; bottom: 14px; height: 44px; padding-right: 14px; }
  .pl-panel { left: 14px; right: auto; top: auto; bottom: 68px; width: calc(100vw - 28px); }
}

/* 歌单页隐藏左下快捷添加，避免压住播放器 */
body.music-view .fab-wrap {
  display: none !important;
}

/* 桌面上给右下角的杜肖肖气泡留出空间，避免盖住删除按钮 */
@media (min-width: 900px) {
  .pl-list {
    padding-right: 88px;
  }
}

/* 上传区 */
.pl-add-tip {
  margin: -4px 0 14px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(122, 85, 96, 0.8);
}
.pl-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px dashed rgba(196, 154, 91, 0.55);
  border-radius: 16px;
  background: rgba(196, 154, 91, 0.055);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pl-drop:hover {
  border-color: var(--wine, #8B2635);
  background: rgba(139, 38, 53, 0.05);
}
.pl-drop-ico {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #8B2635, #5C1622);
  color: #E8D5A8;
  font-family: var(--font-display, serif);
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(139, 38, 53, 0.22);
}
.pl-drop-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pl-drop-text strong {
  font-size: 14px;
  color: var(--ink, #2E1A20);
  letter-spacing: 0.03em;
}
.pl-drop-text small {
  font-size: 10.5px;
  color: rgba(122, 85, 96, 0.7);
}
.pl-add-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(122, 85, 96, 0.6);
}
.pl-add-sep::before,
.pl-add-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(196, 154, 91, 0.2);
}
.pl-local-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(196, 154, 91, 0.14);
  color: #A8752E;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.pl-panel-name .pl-local-tag {
  font-size: 8px;
  padding: 1px 5px;
}

/* ===== 宾客歌单入口：相册标题栏胶囊 ===== */
.guest-music-pill {
  display: none;
  align-items: center;
  height: 32px;
  padding: 0 2px 0 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(196, 154, 91, 0.34);
  box-shadow: 0 4px 12px rgba(74, 21, 32, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.role-guest .guest-music-pill {
  display: inline-flex;
}
body.role-guest #bgm-toggle {
  display: none;
}
.gmp-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 7px 0 0;
  border: none;
  background: transparent;
  color: var(--wine, #8B2635);
  font-family: var(--font-display, serif);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.gmp-note {
  color: var(--gold-deep, #A8752E);
  font-size: 12px;
  line-height: 1;
}
.gmp-sep {
  width: 1px;
  height: 14px;
  background: rgba(196, 154, 91, 0.3);
}
.gmp-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--wine, #8B2635);
  font-size: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gmp-toggle:hover {
  background: rgba(139, 38, 53, 0.07);
}
@media (max-width: 560px) {
  .guest-music-pill {
    height: 30px;
    padding-left: 8px;
  }
  .gmp-open {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}
