/* 播放页布局：对标公开站播放页结构（播放器区、分集、线路、评论空态）。
   品牌色沿用站点 --acc（漫剧），不引入第三方站点标识。 */

.play-page { min-width: 0; }
.play-page .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.play-page .crumb-sep { margin: 0 4px; color: #5d6370; }
.play-page .play-heading {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.play-page .play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  row-gap: 14px;
  align-items: start;
}
.play-page.theater .play-toolbar,
.play-page.theater .play-info,
.play-page.theater .play-below,
.play-page.theater .play-related,
.play-page.theater .play-hint { display: none; }

.play-page .player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  margin: 0;
  padding: 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  min-height: 0;
  color: var(--muted);
  text-align: center;
}
.play-page .player-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  background: #000;
  border-radius: 10px;
}
.play-page .player-shell video,
.play-page .player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  background: #000;
  display: block;
  object-fit: contain;
}
.play-page .player .state,
.play-page .play-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #000;
  z-index: 3;
}
.play-page .player .state h2,
.play-page .play-state h2 { margin: 0 0 8px; color: #fff; }
.play-page .player .state p,
.play-page .play-state p { margin: 0 0 10px; color: var(--muted); }

.play-mark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.55);
  pointer-events: none;
  z-index: 1;
}
.play-mark[hidden] { display: none !important; }
.play-mark-svg { width: 88px; height: 88px; display: block; opacity: .85; }

.play-clock {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
}

.play-resume-chip {
  position: absolute;
  left: 16px;
  bottom: 64px;
  z-index: 3;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ffffff22;
}
.play-resume-chip[hidden] { display: none !important; }

.play-page .play-fab {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 96px;
  min-height: 96px;
  border-radius: 48px;
  font-size: 18px;
  z-index: 4;
  touch-action: manipulation;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  background: var(--acc);
  color: var(--acc-text);
  border: 0;
  font-weight: 800;
}
.play-page .play-fab[hidden] { display: none !important; }

.play-ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82) 55%);
  padding: 22px 10px 8px;
  color: #fff;
}
.play-progress { height: 14px; display: flex; align-items: center; padding: 0 6px; }
.play-progress input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #ffffff33;
  border-radius: 2px;
  padding: 0;
  border: 0;
  outline: none;
}
.play-progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 3px #ffffff55;
}
.play-ctrl-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding: 0 2px;
}
.play-page .play-ctrl .iconbtn.play-ib {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  flex: 0 0 auto;
}
.play-page .play-ctrl .iconbtn.play-ib:hover { background: #ffffff18 !important; }
.play-vol {
  width: 64px;
  height: 4px;
  padding: 0;
  border: 0;
  background: #ffffff33;
  border-radius: 2px;
  accent-color: #fff;
  flex: 0 0 auto;
}
.play-time {
  font-size: 12px;
  color: #d0d3d8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-right: 6px;
}
.play-danmu {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 30px;
  background: #ffffff18;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 8px;
}
.play-danmu-warn {
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #f5c16c;
}
.play-danmu input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
}
.play-danmu input::placeholder { color: #b5b8bf; }
.play-page .play-danmu-send {
  flex: 0 0 auto;
  height: 30px !important;
  border: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  background: #00a1d7 !important;
  color: #fff !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 700;
}
.play-page .play-danmu-send:hover { filter: brightness(1.08); }
.play-rate-wrap { position: relative; flex: 0 0 auto; }
.play-rate-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  background: #1b1f28;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 2px;
  min-width: 76px;
  z-index: 5;
}
.play-rate-menu[hidden] { display: none !important; }
.play-page .play-rate-opt {
  border: 0 !important;
  background: transparent !important;
  color: #ddd !important;
  height: 28px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  text-align: left;
}
.play-page .play-rate-opt.on,
.play-page .play-rate-opt:hover { background: #ffffff14 !important; color: var(--acc) !important; }

 .play-hint {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  min-height: 28px;
  padding: 0 2px 2px;
  color: #7b818c;
  font-size: 12px;
}
.play-hint-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.play-page .play-mini {
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  color: #c5c8ce !important;
  border-color: #3a414c !important;
  background: #1a1e26 !important;
}

.play-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-width: 0;
  padding: 8px 4px;
}
.play-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  width: fit-content;
  margin: 0;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s cubic-bezier(.22,.7,.3,1), box-shadow .22s ease;
}
.play-back:hover {
  color: var(--text);
  border-color: var(--acc);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.play-back-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: 50%;
  font-size: 11px;
}

.play-below {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.play-page .play-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  overflow: hidden;
}
.play-sec-hd,
.play-sec h3,
.play-page .play-panel h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: #d8dbe0;
}
.play-page .line-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.play-page .line-btns.play-pulse { animation: playPulse .7s ease; }
@keyframes playPulse {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 2px var(--acc); border-radius: 10px; }
}
.play-page .play-line,
.play-page .line-btns button.ghost {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 16px !important;
  font-size: 12px !important;
  border-color: #2a3544 !important;
  background: #1a2433 !important;
  color: #d6d9df !important;
}
.play-page .line-btns button.now,
.play-page .play-line.now {
  background: var(--acc) !important;
  color: var(--acc-text) !important;
  border-color: var(--acc) !important;
  font-weight: 700;
}
.play-ep-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  min-height: 28px;
}
.play-ep-hd strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: #e8eaee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-ep-hd .meta { flex: 0 0 auto; font-size: 12px; }
.play-page .play-order {
  height: 26px !important;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}
.play-page .play-order.on,
.play-page .play-order:hover { color: var(--acc) !important; }
.play-order-ico { font-size: 11px; }
.play-page .play-eps-panel .eps {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  padding: 2px 0 4px;
  max-height: 360px;
  scrollbar-width: thin;
  scrollbar-color: #5a6270 transparent;
}
.play-page .play-eps-panel .eps::-webkit-scrollbar { width: 6px; }
.play-page .play-eps-panel .eps::-webkit-scrollbar-thumb {
  background: #5a6270;
  border-radius: 4px;
}
.play-page .play-eps-panel .eps a,
.play-page .play-eps-panel .eps span {
  min-height: 34px;
  padding: 4px 4px;
  border-radius: 8px;
  background: #1a2433;
  color: #c9ced6;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.play-page .play-eps-panel .eps a:hover { background: #243044; color: #fff; }
.play-page .play-eps-panel .eps a.now {
  background: var(--acc);
  color: var(--acc-text);
  font-weight: 700;
}
.play-eps-empty { grid-column: 1 / -1; margin: 12px 0; }

.play-cmt-pane { overflow: auto; }
.play-cmt-form textarea {
  width: 100%;
  min-height: 88px;
  background: #0d141f;
  border: 1px solid #2a3544;
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  resize: vertical;
  font-size: 13px;
}
.play-cmt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
  min-width: 0;
}
.play-cmt-bar .meta { font-size: 12px; }
.play-cmt-bar .meta b { color: var(--text); font-weight: 650; }
.play-cmt-empty {
  text-align: center;
  color: #8b919c;
  font-size: 13px;
  padding: 28px 8px 16px;
  margin: 0;
}
.play-cmt-item {
  padding: 10px 0;
  border-bottom: 1px solid #ffffff0c;
}
.play-cmt-hd { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.play-cmt-hd b { font-size: 13px; }
.play-cmt-item p { margin: 0; font-size: 13px; color: #d4d6d8; overflow-wrap: anywhere; word-break: break-word; }

.play-ep-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  margin-left: auto;
}
.play-prev,
.play-page a.play-next,
.play-next.dim,
.play-prev.dim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 650;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s cubic-bezier(.22,.7,.3,1), filter .2s ease, box-shadow .22s ease;
}
.play-prev {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}
.play-prev:hover {
  color: var(--text);
  border-color: var(--acc);
  transform: translateY(-1px);
}
.play-page a.play-next {
  background: var(--acc);
  color: var(--acc-text) !important;
  border: 1px solid var(--acc);
}
.play-page a.play-next:hover { filter: brightness(1.05); color: var(--acc-text) !important; transform: translateY(-1px); }
.play-next.dim,
.play-prev.dim {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface2);
  cursor: default;
  font-weight: 500;
}
.play-next-ico { font-size: 11px; }

.play-page .play-info {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  align-items: flex-start;
}
.play-page .play-info .pc {
  width: 92px;
  flex: 0 0 auto;
}
.play-page .play-info .poster-cover { border-radius: 8px; overflow: hidden; }
.play-info-body { min-width: 0; flex: 1 1 auto; }
.play-info-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.play-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.play-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  background: #c77b22;
  color: #fff8e8;
}
.play-tag-year {
  background: transparent;
  color: var(--acc);
  padding: 1px 2px;
  font-weight: 650;
}
.play-syn-hd {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  color: #d8dbe0;
}
.play-page .play-info .syn {
  font-size: 12px;
  color: #8b919c;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-share {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-left: 0;
}
.play-page .play-act {
  width: auto;
  min-width: 86px;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.play-page .play-act.on { color: var(--acc) !important; border-color: #5a4e16 !important; }
.play-act-ico { font-size: 13px; }

@media (max-width: 899px) {
  .play-danmu {
    flex: 1 1 100%;
    margin: 6px 0 0;
  }
}
@media (max-width: 1024px) {
  .play-below {
    grid-template-columns: 1fr;
  }
  .play-page .play-eps-panel .eps { max-height: 42vh; }
  .play-page.theater .play-toolbar,
  .play-page.theater .play-info,
  .play-page.theater .play-below,
  .play-page.theater .play-related,
  .play-page.theater .play-hint { display: revert; }
}
@media (max-width: 720px) {
  .play-toolbar { gap: 8px; }
  .play-ep-nav { margin-left: 0; width: 100%; }
  .play-share { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .play-page .play-heading { font-size: 20px; margin-bottom: 12px; }
  .play-page .player { max-height: none; border-radius: 8px; }
  .play-vol { display: none; }
  .play-danmu { margin: 0 4px; }
  .play-time { font-size: 11px; }
  .play-page .play-info .pc { width: 72px; }
}

/* ----- motion ----- */
@keyframes mj-play-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.play-page {
  animation: mj-play-in .45s cubic-bezier(.22,.7,.3,1) both;
}
.play-page .play-line,
.play-page .line-btns button.ghost,
.play-page .play-order {
  transition: color .22s ease, background .22s ease, border-color .22s ease, filter .2s ease, transform .22s cubic-bezier(.22,.7,.3,1);
}
.play-page .play-eps-panel .eps a,
.play-page .play-eps-panel .eps span {
  transition: color .2s ease, background .2s ease, transform .22s cubic-bezier(.22,.7,.3,1), box-shadow .22s ease;
}
.play-page .play-eps-panel .eps a:hover {
  transform: translateY(-1px);
}
.play-page .play-info .poster-cover {
  transition: box-shadow .35s cubic-bezier(.22,.7,.3,1), transform .35s cubic-bezier(.22,.7,.3,1);
}
.play-page .play-info .pc {
  transition: transform .35s cubic-bezier(.22,.7,.3,1);
}
.play-page .play-info:hover .pc {
  transform: translateY(-4px);
}
.play-page .play-act {
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s cubic-bezier(.22,.7,.3,1);
}
.play-page .play-act:hover {
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .play-page {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .play-page *,
  .play-page *::before,
  .play-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .play-page .play-eps-panel .eps a:hover,
  .play-page .play-info:hover .pc,
  .play-page .play-act:hover {
    transform: none;
  }
  .play-page .play-fab,
  .play-mark {
    transform: translate(-50%, -50%);
  }
}


.play-cmt-submit {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--acc);
  color: var(--acc-text);
  font-size: 13px;
  font-weight: 700;
  transition: filter .2s ease, transform .22s cubic-bezier(.22,.7,.3,1);
}
.play-cmt-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.play-page .play-cmt-form textarea {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
}
.play-cmt-item p { color: var(--text); }
.play-cmt-empty { color: var(--muted); }
.play-syn-hd { color: var(--text); }
.play-ep-hd strong { color: var(--text); }
.play-page .play-panel h3 { color: var(--text); }

.play-related { min-width: 0; }
.play-related .floor { margin: 8px 0 0; }

/* PC 滚动悬浮小窗：同一路 <video> 移到右下角，不新开流 */
.play-float-dock {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(360px, 36vw);
  z-index: 80;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.play-float-dock.on { display: block; }
.play-float-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.play-float-dock video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}
.play-float-dock .play-float-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.62) !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1;
  box-shadow: none !important;
}
.play-float-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
}
.play-float-dock .play-float-toggle {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--acc) !important;
  color: var(--acc-text) !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
.play-float-tip {
  color: #fff;
  font-size: 12px;
  opacity: .9;
}
body.play-float-on #playerShell::after {
  content: "正在小窗播放";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  background: rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 959px) {
  .play-float-dock { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .play-float-dock { transition: none; }
  .play-back:hover,
  .play-prev:hover,
  .play-page a.play-next:hover,
  .play-cmt-submit:hover { transform: none; }
}

html[data-theme="light"] .play-page .play-line,
html[data-theme="light"] .play-page .line-btns button.ghost {
  background: var(--surface2) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .play-page .play-eps-panel .eps a,
html[data-theme="light"] .play-page .play-eps-panel .eps span {
  background: var(--surface2);
  color: var(--text);
}
html[data-theme="light"] .play-page .play-eps-panel .eps a:hover {
  background: color-mix(in srgb, var(--acc) 16%, var(--surface2));
  color: var(--text);
}
html[data-theme="light"] .play-page .play-mini {
  color: var(--text) !important;
  border-color: var(--line) !important;
  background: var(--surface) !important;
}
html[data-theme="light"] .play-hint { color: var(--muted); }

html[data-theme="light"] .play-page .play-eps-panel .eps a.now,
html[data-theme="light"] .play-page .play-line.now,
html[data-theme="light"] .play-page .line-btns button.now {
  background: var(--acc) !important;
  color: var(--acc-text) !important;
  border-color: var(--acc) !important;
}
