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

.play-page { min-width: 0; }
.play-page .crumb { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.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: #fff;
}

.play-page .play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto auto auto auto;
  column-gap: 16px;
  row-gap: 10px;
  align-items: stretch;
}
.play-page.theater .play-layout {
  grid-template-columns: minmax(0, 1fr);
}
.play-page.theater .play-side,
.play-page.theater .play-ep-nav,
.play-page.theater .play-share { display: none; }

.play-page .player {
  grid-column: 1;
  grid-row: 1;
  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;
  gap: 6px;
  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 auto;
  min-width: 120px;
  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 {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  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-back {
  grid-column: 1;
  grid-row: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
  margin: 4px 0 0;
}
.play-back:hover { color: #fff; }
.play-back-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  font-size: 11px;
}

.play-page .play-side {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #111a29;
  border: 1px solid #1b2533;
  border-radius: 12px;
  padding: 0 0 10px;
  overflow: hidden;
}
.play-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 14px 0;
  border-bottom: 1px solid #1e2836;
  flex: 0 0 auto;
}
.play-page .play-tab {
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  position: relative;
}
.play-page .play-tab.on {
  color: #fff !important;
  font-weight: 650;
}
.play-page .play-tab.on:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--acc);
  border-radius: 1px;
}
.play-tab-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 0;
  overflow: hidden;
}
.play-tab-body[hidden] { display: none !important; }
.play-sec h3,
.play-page .play-side 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-side .eps {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 4px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #5a6270 transparent;
}
.play-page .play-side .eps::-webkit-scrollbar { width: 6px; }
.play-page .play-side .eps::-webkit-scrollbar-thumb {
  background: #5a6270;
  border-radius: 4px;
}
.play-page .play-side .eps a,
.play-page .play-side .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-side .eps a:hover { background: #243044; color: #fff; }
.play-page .play-side .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;
  gap: 10px;
  margin: 8px 0 16px;
}
.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; }

.play-ep-nav {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 4px 0 0;
}
.play-prev { color: var(--muted); font-size: 13px; }
.play-prev:hover { color: #fff; }
.play-page a.play-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--acc);
  color: var(--acc-text) !important;
  font-size: 13px;
  font-weight: 700;
}
.play-page a.play-next:hover { filter: brightness(1.05); color: var(--acc-text) !important; }
.play-next.dim,
.play-prev.dim { color: #6a707a; }
.play-next-ico { font-size: 11px; }

.play-page .play-info {
  grid-column: 1;
  grid-row: 4;
  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: #fff;
}
.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 {
  grid-column: 2;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 8px;
}
.play-page .play-act {
  width: 86px;
  height: 36px !important;
  padding: 0 8px !important;
  border-radius: 18px !important;
  border-color: #2c3542 !important;
  background: #141b26 !important;
  color: #c5c9d0 !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: 1024px) {
  .play-page .play-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .play-page .player,
  .play-page .play-side,
  .play-page .play-hint,
  .play-page .play-back,
  .play-page .play-ep-nav,
  .play-page .play-info,
  .play-page .play-share { grid-column: 1; grid-row: auto; }
  .play-page .play-side {
    height: auto;
    max-height: none;
    min-height: 280px;
  }
  .play-page .play-side .eps { max-height: 42vh; }
  .play-share {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  .play-page.theater .play-side,
  .play-page.theater .play-ep-nav,
  .play-page.theater .play-share { display: flex; }
}
@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; }
}
