/* ============================================================
   MacCMS 2025 · Player Page Styles
   播放器 / 选集 / 影片资料 / 相关推荐
   ============================================================ */

/* ── Player Wrapper ── */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.player-wrapper iframe,
.player-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.player-wrapper > * {
  width: 100%;
  height: 100%;
}

/* ── Player Meta Bar ── */
.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.player-meta__info { flex: 1; min-width: 0; }
.player-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.player-ep {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.player-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}

/* ── Section Title ── */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ── Related Grid ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: 10px;
}
.related-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
}
.related-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.related-card__info { padding: 8px; }
.related-card__name {
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.related-card__meta {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ── Btn Small ── */
.btn-sm {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
}
.btn-sm:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .player-wrapper {
    border-radius: 0;
    min-height: 56vw;
  }
}
@media (max-width: 640px) {
  .meta-list { grid-template-columns: 1fr; }
}
