/**
 * 茶座同文档全屏播放壳样式
 * 对齐 player.php 竖屏短字幕：主色底、圆盘封面、黑字歌词、jiaohu、紫进度、底栏图标
 */

.czpc-full-player {
  --czpc-fp-dominant: #bbc7a4;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  color: #111;
  background: var(--czpc-fp-dominant);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.czpc-full-player.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.czpc-full-player.is-bg-image {
  background: #1a1a1a;
}

.czpc-full-player.is-bg-image .czpc-fp-bg {
  opacity: 0.55;
  filter: none;
  transform: none;
}

.czpc-full-player.is-bg-image .czpc-fp-bg::after {
  background: rgba(0, 0, 0, 0.35);
}

/* 神光简化态：深底 + 柔光（对齐 player color→image→divine 第三态观感） */
.czpc-full-player.is-bg-divine {
  background: #0a0a14;
  color: #f5f5f5;
}

.czpc-full-player.is-bg-divine .czpc-fp-bg {
  opacity: 0.22;
  filter: blur(8px) brightness(0.55) saturate(1.2);
}

.czpc-full-player.is-bg-divine .czpc-fp-bg::after {
  background: rgba(8, 8, 20, 0.45);
}

.czpc-full-player.is-bg-divine .czpc-fp-divine-glow {
  opacity: 1;
}

.czpc-full-player.is-bg-divine .czpc-fp-lyrics-line {
  color: rgba(255, 255, 255, 0.5);
}

.czpc-full-player.is-bg-divine .czpc-fp-lyrics-line.is-active {
  color: #fff;
  text-shadow:
    0 0 8px rgba(140, 180, 255, 0.55),
    -1px -1px 0 rgba(0, 0, 0, 0.35),
    1px 1px 0 rgba(0, 0, 0, 0.35);
}

.czpc-full-player.is-bg-divine .czpc-fp-title,
.czpc-full-player.is-bg-divine .czpc-fp-artist,
.czpc-full-player.is-bg-divine .czpc-fp-linkish,
.czpc-full-player.is-bg-divine .czpc-fp-close {
  color: #f2f4ff;
}

.czpc-fp-divine-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(ellipse 70% 40% at 50% 18%, rgba(120, 160, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 70%, rgba(180, 120, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 65%, rgba(80, 200, 255, 0.12), transparent 70%);
  z-index: 0;
}

.chazuo-pc-body.czpc-full-player-open,
body.cz-full-player-open {
  overflow: hidden !important;
}

.chazuo-pc-body.czpc-full-player-open .mini-player-container,
body.cz-full-player-open .mini-player-container {
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 13000 !important;
}

.chazuo-pc-body.czpc-full-player-open .mini-player-container > *:not(.playlist-sidebar-mini),
body.cz-full-player-open .mini-player-container > *:not(.playlist-sidebar-mini) {
  visibility: hidden !important;
}

.chazuo-pc-body.czpc-full-player-open .playlist-sidebar-mini,
body.cz-full-player-open .playlist-sidebar-mini {
  pointer-events: auto !important;
  z-index: 13001 !important;
}

body.cz-full-player-open #bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

.chazuo-pc-body.czpc-full-player-open .tingdan-action-overlay,
.chazuo-pc-body.czpc-full-player-open .tingdan-create-modal,
.chazuo-pc-body.czpc-full-player-open .tingdan-list-overlay,
.chazuo-pc-body.czpc-full-player-open .tingdan-notification,
body.cz-full-player-open .tingdan-action-overlay,
body.cz-full-player-open .tingdan-create-modal,
body.cz-full-player-open .tingdan-list-overlay,
body.cz-full-player-open .tingdan-notification,
#sleep-timer-menu-backdrop,
body.cz-full-player-open #sleep-timer-menu,
body.cz-full-player-open .sleep-timer-menu {
  z-index: 14000 !important;
}

.czpc-fp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.05);
  transform: scale(1.12);
  opacity: 0.22;
  pointer-events: none;
}

.czpc-fp-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
}

.czpc-fp-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  box-sizing: border-box;
}

/* 顶栏对齐 player-header */
.czpc-fp-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 15px;
  box-sizing: border-box;
}

.czpc-fp-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 18px;
  cursor: pointer;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

.czpc-fp-meta {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.czpc-fp-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}

.czpc-fp-artist {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.czpc-fp-linkish {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  text-shadow: 0 0 3px #fff;
}

/* 圆盘封面 + 唱针（相对唱片定位，对齐 tonearm.251118.js） */
.czpc-fp-cover-wrap {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 1px auto 0;
  flex-shrink: 0;
  overflow: visible;
}

.czpc-fp-album {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: url('/images/changpian.png') center / 95% no-repeat,
    linear-gradient(45deg, rgba(200, 200, 200, 0.6), rgba(80, 80, 80, 0.4));
  position: relative;
  overflow: hidden;
}

.czpc-fp-album::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background: #16213e center / cover no-repeat;
  background-image: var(--czpc-fp-cover, none);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: czpc-fp-spin 20s linear infinite;
  animation-play-state: paused;
}

.czpc-fp-album.is-playing::before {
  animation-play-state: running;
}

@keyframes czpc-fp-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 枢轴在唱片中心右侧 130px，与原播放页 calc(50% + 130px) 一致 */
.czpc-fp-tonearm {
  position: absolute;
  top: 10%;
  left: calc(50% + 130px);
  width: 35px;
  z-index: 4;
  transform: rotate(0deg);
  transform-origin: center 13.5%;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.czpc-fp-tonearm img {
  display: block;
  width: 35px;
  height: auto;
}

/* 播放：落针；暂停：抬起（无播放中持续摇动，见 tonearm.251118.js） */
.czpc-fp-tonearm.is-playing {
  transform: rotate(32deg);
}

.czpc-fp-tonearm-light {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 8px;
  height: 3px;
  margin-left: -4px;
  border-radius: 50%;
  background: #2cabff;
  box-shadow: 0 15px 25px 10px rgba(44, 171, 255, 0.55);
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* 歌词：黑字 + 高亮白字描边 */
.czpc-fp-lyrics-col {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding: 0 16px;
}

.czpc-fp-lyrics {
  flex: 1;
  min-height: 0;
  max-height: 30vh;
  overflow: auto;
  text-align: center;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.czpc-full-player.is-long-lyrics .czpc-fp-cover-wrap {
  display: none;
}

.czpc-full-player.is-long-lyrics .czpc-fp-lyrics {
  max-height: none;
  flex: 1;
}

.czpc-full-player.is-long-lyrics .czpc-fp-lyrics-col {
  flex: 1;
  min-height: 0;
}

.czpc-fp-lyrics-line {
  padding: 6px 8px;
  margin: 4px 0;
  font-size: 22px;
  line-height: 1.65;
  color: #000;
  cursor: pointer;
  transition: color 0.15s ease, font-weight 0.15s ease, opacity 0.15s ease;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  opacity: 0.72;
  text-align: center;
}

.czpc-fp-lyrics-line.pinyin-mode {
  line-height: 2.5;
}

.czpc-fp-lyric-text {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: inherit;
  color: inherit;
  font-size: inherit;
}

.czpc-fp-lyrics-line.is-active {
  color: #fff;
  font-weight: 700;
  opacity: 1;
  text-shadow:
    -1px -1px 0 #333,
    1px -1px 0 #333,
    -1px 1px 0 #333,
    1px 1px 0 #333;
}

/* 逐字注音：对齐 player 竖屏 .py-pair */
.czpc-fp-lyric-text .py-pair {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  vertical-align: baseline;
  margin-right: -0.06em;
  color: inherit;
}

.czpc-fp-lyric-text .py-pair:last-child {
  margin-right: 0;
}

.czpc-fp-lyric-text .py-top {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  height: 1.2em;
  color: #000;
  text-shadow: none;
}

.czpc-fp-lyric-text .py-char {
  display: inline-block;
  line-height: 1.2;
  font-size: inherit;
  color: inherit;
}

.czpc-fp-lyrics-line.is-active .py-top {
  color: #fff;
  text-shadow:
    -1px -1px 0 #333,
    1px -1px 0 #333,
    -1px 1px 0 #333,
    1px 1px 0 #333;
}

/* 行间译文：对齐 player .translation / .active-translation */
.czpc-fp-line-yiwen {
  margin-top: 5px;
  padding: 0 0 18px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: #000;
  text-shadow: none;
  white-space: normal;
  word-break: break-word;
  opacity: 0.9;
}

.czpc-fp-line-yiwen.is-active-translation {
  color: #fff;
  font-weight: 500;
  opacity: 1;
  text-shadow:
    -1px -1px 0 #333,
    1px -1px 0 #333,
    -1px 1px 0 #333,
    1px 1px 0 #333;
}

.czpc-full-player.is-bg-divine .czpc-fp-lyric-text .py-top {
  color: rgba(220, 230, 255, 0.75);
}

.czpc-full-player.is-bg-divine .czpc-fp-lyrics-line.is-active .py-top {
  color: #fff;
}

.czpc-full-player.is-bg-divine .czpc-fp-line-yiwen {
  color: rgba(220, 230, 255, 0.55);
}

.czpc-full-player.is-bg-divine .czpc-fp-line-yiwen.is-active-translation {
  color: rgba(230, 240, 255, 0.95);
}

.czpc-fp-lyrics-empty {
  color: rgba(0, 0, 0, 0.45);
  font-size: 15px;
  padding: 28px 12px;
}

.czpc-fp-yiwen {
  display: none;
}

@media screen and (max-width: 768px) {
  .czpc-fp-lyrics-line.pinyin-mode {
    line-height: 1.8;
  }
}

.czpc-fp-yiwen-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

/* jiaohu 图标条 */
.czpc-fp-jiaohu {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px 4px;
}

.czpc-fp-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #111;
}

.czpc-fp-icon-btn img {
  height: 30px;
  width: auto;
  display: block;
  filter: grayscale(100%) brightness(0%) drop-shadow(0 0 4px #fff);
}

.czpc-fp-icon-btn.is-active img {
  filter: none;
}

.czpc-fp-text-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 0 3px #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.czpc-fp-fav.active {
  background-image: url('/images/fav.png');
}

.czpc-fp-fav.inactive {
  background-image: url('/images/favnone.png');
}

/* 进度条：紫渐变 */
.czpc-fp-progress {
  flex-shrink: 0;
  padding: 6px 30px 0;
}

.czpc-fp-progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
  margin-bottom: 4px;
}

.czpc-fp-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.czpc-fp-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  position: relative;
}

.czpc-fp-progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

/* 底栏控件 */
.czpc-fp-controls {
  flex-shrink: 0;
  display: flex;
  height: 110px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 18px;
  box-sizing: border-box;
}

.czpc-fp-ctrl {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.czpc-fp-ctrl:hover {
  background: rgba(255, 255, 255, 0.12);
}

.czpc-fp-ctrl.mode {
  width: 40px;
  height: 40px;
}

.czpc-fp-ctrl.play {
  width: 70px;
  height: 70px;
}

.czpc-fp-ctrl img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}

.czpc-fp-ctrl.play img {
  width: 40px;
  height: 40px;
}

.czpc-fp-toast {
  position: absolute;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%) translateY(8px);
  z-index: 5;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.czpc-fp-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* PC 宽屏：仍保持播放页文档宽，居中 */
.chazuo-pc-body .czpc-fp-inner {
  max-width: 480px;
}

.chazuo-pc-body .czpc-fp-lyrics {
  max-height: 34vh;
}

@media (max-width: 400px) {
  .czpc-fp-cover-wrap,
  .czpc-fp-album {
    width: 200px;
    height: 200px;
  }

  .czpc-fp-album::before {
    width: 104px;
    height: 104px;
  }

  .czpc-fp-tonearm {
    left: calc(50% + 118px);
  }

  .czpc-fp-tonearm img {
    width: 32px;
  }

  .czpc-fp-lyrics-line {
    font-size: 18px;
  }

  .czpc-fp-controls {
    padding: 8px 14px 16px;
  }

  .czpc-fp-progress {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* 评论角标 */
.czpc-fp-comment-btn {
  position: relative;
}

.czpc-fp-comment-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
  filter: none !important;
}

.czpc-fp-dim {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.45);
}

.czpc-fp-comment-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  max-height: 72%;
  display: none;
  flex-direction: column;
  background: #fff;
  color: #222;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.2);
}

.czpc-fp-comment-overlay.is-open {
  display: flex;
}

.czpc-fp-comment-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eee;
}

.czpc-fp-comment-title {
  font-size: 16px;
  font-weight: 600;
}

.czpc-fp-comment-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.czpc-fp-comment-list {
  flex: 1;
  min-height: 120px;
  overflow: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.czpc-fp-cmt-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.czpc-fp-cmt-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.czpc-fp-cmt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dfe6f3;
  color: #4169e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.czpc-fp-cmt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.czpc-fp-cmt-name {
  font-size: 14px;
  font-weight: 600;
}

.czpc-fp-cmt-time {
  margin-left: auto;
  font-size: 12px;
  color: #999;
}

.czpc-fp-cmt-body {
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  padding-left: 40px;
}

.czpc-fp-cmt-reply {
  margin-left: 40px;
  margin-top: 6px;
  font-size: 12px;
  color: #4169e1;
  cursor: pointer;
}

.czpc-fp-cmt-replies {
  margin: 8px 0 0 40px;
  padding: 8px 10px;
  background: #f7f8fa;
  border-radius: 8px;
}

.czpc-fp-cmt-reply-item {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  margin: 4px 0;
}

.czpc-fp-comment-input-wrap {
  flex-shrink: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #eee;
  background: #fff;
}

.czpc-fp-cmt-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.czpc-fp-cmt-textarea {
  flex: 1;
  min-height: 36px;
  max-height: 100px;
  resize: none;
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.czpc-fp-cmt-send {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: #4169e1;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.czpc-fp-cmt-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.czpc-fp-cmt-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

.czpc-fp-share-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0));
  z-index: 22;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.czpc-fp-share-sheet.is-open {
  display: flex;
}

.czpc-fp-dim[hidden],
.czpc-fp-comment-overlay[hidden],
.czpc-fp-share-sheet[hidden],
.czpc-fp-yiwen[hidden] {
  display: none !important;
}

.czpc-fp-share-opt {
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #222;
  font-size: 15px;
  padding: 12px;
  cursor: pointer;
}

.czpc-fp-share-opt.is-cancel {
  background: transparent;
  color: #666;
}

.czpc-fp-share-data {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

