/* ===== 视频页：播放器 + 线路列表 ===== */

/* ---------- 播放器区 ---------- */
.player-box {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 36px;
}

.player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.player-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-info {
  padding: 14px 4px 2px;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.now-badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  padding: 3px 13px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.now-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.03em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.player-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  font-family: 'ZC0005', system-ui, sans-serif;
  word-break: break-word;
}

.player-actions {
  display: flex;
  justify-content: flex-end;
}

.player-link {
  font-size: 0.85rem;
  color: #f6821f;
  text-decoration: none;
  border-bottom: 1px dashed #f6821f;
  letter-spacing: 0.03em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.player-link:hover { opacity: 0.8; }

/* ---------- 小节标题 ---------- */
.section-title {
  font-size: 1.1rem;
  color: #222;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid #f6821f;
  letter-spacing: 0.06em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* ---------- 线路列表 ---------- */
.route-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.route-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.route-item.active {
  border-color: #f6821f;
  background: #fffdfa;
  box-shadow: 0 4px 16px rgba(246, 130, 31, 0.16);
}

/* 封面 */
.route-cover {
  position: relative;
  flex-shrink: 0;
  width: 210px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

.route-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.route-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6821f;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fdf5ec, #ffe4cc);
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* 时长角标：封面图本身通常已带 B 站原生角标，故默认隐藏避免重叠。
   如需启用，给对应元素加上 .show-dur 即可。 */
.route-dur {
  display: none;
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  padding: 1px 7px;
  border-radius: 4px;
  font-family: 'ZC0005', system-ui, sans-serif;
  letter-spacing: 0.03em;
  z-index: 2;
}

.route-cover.show-dur .route-dur { display: inline-block; }

.route-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.route-play-icon svg {
  width: 42px;
  height: 42px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.route-item:hover .route-play-icon,
.route-item.active .route-play-icon {
  opacity: 1;
}

/* 正文 */
.route-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.route-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.route-ep {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f6821f;
  background: #fdf5ec;
  border: 1px solid rgba(246, 130, 31, 0.3);
  padding: 2px 11px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.route-item.active .route-ep {
  color: #fff;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  border-color: transparent;
}

.route-name {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.03em;
  font-family: 'ZC0005', system-ui, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.route-desc {
  font-size: 0.87rem;
  color: #888;
  line-height: 1.65;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  font-family: 'ZC0005', system-ui, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.route-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 1.2em; /* 即使某集没拉到播放量，卡片高度也保持一致 */
}

.rm-item {
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.03em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* 右侧按钮 */
.route-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.route-btn {
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(246, 130, 31, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.route-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(246, 130, 31, 0.42);
}

.route-btn:active {
  transform: translateY(0);
}

.route-item.active .route-btn {
  background: #fff;
  color: #f6821f;
  border: 1.5px solid #f6821f;
  box-shadow: none;
}

/* ---------- 页脚注释 ---------- */
.video-note {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  padding: 16px 0 0;
  letter-spacing: 0.04em;
  border-top: 1px dashed #eee;
  margin-top: 32px;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.video-note a {
  color: #f6821f;
  text-decoration: none;
  border-bottom: 1px dashed #f6821f;
}

.video-note a:hover { opacity: 0.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 700px) {
  .route-cover { width: 150px; }
  .route-name { font-size: 0.95rem; }
  .route-desc { -webkit-line-clamp: 2; font-size: 0.84rem; }
  .route-btn { padding: 8px 16px; font-size: 0.82rem; }
}

@media (max-width: 520px) {
  .player-box { padding: 12px; margin-bottom: 26px; }
  .player-now { gap: 8px; }
  .now-title { font-size: 0.95rem; }

  .route-item {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .route-cover { width: 100%; }

  .route-actions {
    width: 100%;
  }

  .route-btn {
    width: 100%;
    padding: 11px 0;
    font-size: 0.9rem;
  }

  .route-item.active .route-btn {
    background: #fdf5ec;
  }
}
