/* 播放页 */

.wy-player-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.wy-player-adbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  padding: 7px 14px;
}
.wy-adbar-close { color: var(--accent-dark); font-size: 13px; }
.wy-player-box { aspect-ratio: 16/9; background: #000; }
.wy-player-box iframe, .wy-player-box video { width: 100%; height: 100%; }

.wy-player-detail-bar {
  margin-top: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}
.wy-pdb-actions { display: flex; gap: 16px; margin-bottom: 8px; }
.wy-pdb-actions a, .wy-pdb-actions .wy-pdb-btn, .wy-pdb-actions .is-disabled { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-muted); }
.wy-pdb-actions a:hover, .wy-pdb-actions .wy-pdb-btn:hover { color: var(--accent); }
.wy-pdb-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.wy-pdb-actions .is-disabled { opacity: .4; cursor: default; }
.wy-pdb-title a { color: inherit; }
.wy-pdb-ep { margin-left: 6px; font-weight: 400; color: var(--text-muted); }
.wy-pdb-score { margin-left: 8px; display: inline-block; padding: 0 6px; border-radius: var(--radius-sm); background: #37b87a; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 3px; }
.wy-pdb-detail-link { color: var(--accent) !important; }
.wy-pdb-title { font-size: 16px; font-weight: 800; line-height: 1.5; }
.wy-pdb-title:hover { color: var(--accent); }
.wy-pdb-meta { margin-top: 8px; font-size: 12px; color: var(--text-faint); }
.wy-pdb-meta a { color: var(--text-second); margin-right: 4px; }
.wy-pdb-meta a:hover { color: var(--accent); }

.wy-play-row { display: flex; flex-direction: column; gap: var(--gap); align-items: flex-start; margin-top: 4px; }
.wy-play-content { min-width: 0; width: 100%; }

/* 猜你喜欢＋评论区 与 排行榜 sidebar 并排双栏：平板起（含桌面）；<640px 手机版排行榜自成一栏（单栏堆叠） */
@media (min-width: 640px) {
  .wy-play-row { flex-direction: row; margin-top: 22px; }
  .wy-play-content { flex: 1; }
  .wy-detail-sidebar { flex: 0 0 240px; }
  /* 双栏并排时左右两栏顶部对齐：.wy-play-content 首个 .wy-pannel-box 的 margin-top
     会让左栏内容比右栏 aside（.wy-aside-block 无 margin-top）低一截，故此处去掉，
     改由 .wy-play-row 的 margin-top（同 .wy-pannel-box 的 22px）撑开与上方区块的间距 */
  .wy-play-content > .wy-pannel-box:first-child { margin-top: 0; }
}

/* 猜你喜欢卡片墙：.wy-card-grid 的全局栏数断点是按「视窗宽度」设计（预设满版单栏布局），
   但 .wy-play-content 在平板起要跟右侧排行榜并排、实际可用宽度比视窗窄了约 260px，
   直接沿用全局断点会把卡片挤得过窄，故在此按并排后的实际宽度重新分级栏数 */
@media (min-width: 640px) and (max-width: 1024.98px) {
  .wy-play-content .wy-card-grid { grid-template-columns: repeat(3, 1fr); }
  /* 平板宽度较窄，排行榜栏进一步收窄，让左栏多留些空间 */
  .wy-detail-sidebar { flex: 0 0 200px; }
}
@media (min-width: 1025px) and (max-width: 1439.98px) {
  .wy-play-content .wy-card-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1440px) {
  .wy-play-content .wy-card-grid { grid-template-columns: repeat(6, 1fr); }
}
