/* 播放页：对齐 PanAsiaPlayer 设计稿（左播放器 + 右 466 侧栏 + 底部近期热播） */

.panasia-play-wrap {
  max-width: 1920px;
  margin: 0 auto;
  padding: 12px 32px 48px;
  box-sizing: border-box;
}

.panasia-play-topnav {
  margin-bottom: 20px;
}

.panasia-play-mainrow {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.panasia-play-player-col {
  flex: 1;
  min-width: 0;
}

.panasia-play-player-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.panasia-play-player-tools--under {
  margin-top: 40px;
}

.panasia-play-player-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2c2c2c;
  color: #eeeeee;
  box-sizing: border-box;
}

.panasia-play-player-tools a:hover {
  border-color: #00e7e7;
  color: #00e7e7;
}

.panasia-play-player-tools a.panasia-play-player-tools-primary {
  background: #00e7e7;
  border-color: #00e7e7;
  color: #084949;
}

.panasia-play-player-tools a.panasia-play-player-tools-primary:hover {
  filter: brightness(1.05);
}

.panasia-play-player-col .pm-player-wrap,
.panasia-play-player-col .pm-player-wrap-plus {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.panasia-play-player-col .pm-player-box {
  aspect-ratio: 1366 / 768;
  border-radius: 12px;
}

.panasia-play-actor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.panasia-play-actor-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 22.4px;
  text-decoration: none;
  background: #2c2d2f;
  border: 1px solid #3b3b3d;
  color: #9b9998;
  box-sizing: border-box;
}

.panasia-play-actor-strip a:first-of-type {
  color: #00e7e7;
  border-color: rgba(0, 231, 231, 0.45);
}

.panasia-play-actor-strip a:hover {
  color: #00e7e7;
  border-color: #00e7e7;
}

/* 右侧主栏：#1a1a1a 圆角 12 */
.panasia-play-side {
  width: 466px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 20px 20px 24px;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 16px;
  align-self: flex-start;
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
}

.panasia-play-score {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  color: #ffaf06;
  margin: 0 0 10px;
}

.panasia-play-side-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.panasia-play-side-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 25.2px;
  color: #9b9998;
}

.panasia-play-meta-item {
  max-width: 100%;
}

.panasia-play-meta-item a {
  color: #9b9998;
  text-decoration: none;
}

.panasia-play-meta-item a:hover {
  color: #00e7e7;
}

.panasia-play-meta-sep {
  width: 1px;
  height: 16px;
  margin: 0 12px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    rgba(216, 216, 216, 0),
    rgba(216, 216, 216, 0.36),
    rgba(216, 216, 216, 0)
  );
}

.panasia-play-side-blurb {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: #9b9998;
  word-break: break-word;
}

.panasia-play-side-h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  color: #ffffff;
}

.panasia-play-ep-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.panasia-play-ep-remarks {
  font-size: 16px;
  line-height: 22.4px;
  color: #9b9998;
}

.panasia-play-src-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.panasia-play-src-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2c2c2c;
  color: #eeeeee;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.panasia-play-src-btn:hover {
  border-color: #00e7e7;
  color: #00e7e7;
}

.panasia-play-src-btn.panasia-play-src-cur {
  border-color: #00e7e7;
  color: #00e7e7;
  background: rgba(0, 231, 231, 0.12);
}

/* 选集：约 72×60、圆角 12 */
.panasia-play-ep-panel {
  margin-bottom: 0;
}

.panasia-play-ep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 20px;
}

.panasia-play-ep-cell {
  position: relative;
  box-sizing: border-box;
  min-height: 60px;
  padding: 6px 4px;
  border-radius: 12px;
  background: #2c2d2f;
  border: 1px solid #3b3b3d;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.panasia-play-ep-cell:hover {
  border-color: #00e7e7;
  color: #00e7e7;
}

.panasia-play-ep-cell.panasia-play-ep-cur {
  background: #222324;
  border: 1px solid #00e7e7;
  color: #00e7e7;
}

.panasia-play-ep-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-width: 24px;
  height: 16px;
  padding: 0 6px;
  border-radius: 0 10px 0 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}

.panasia-play-ep-badge--new {
  background: linear-gradient(to bottom, #7bdda4, #3ac37e);
  color: #0c331f;
}

.panasia-play-ep-badge--prev {
  background: linear-gradient(to bottom, #76cbe4, #4baad8);
  color: #0e2733;
}

.panasia-play-bottom {
  margin-top: 40px;
  padding-top: 8px;
}

.panasia-play-bottom-grid {
  display: flex;
  flex-direction: row;
  /* 与 .panasia-play-mainrow 同间距，保证左列（播放器/近期热播）同宽 */
  gap: 24px;
  align-items: flex-start;
}

.panasia-play-bottom-main {
  flex: 1;
  min-width: 0;
}

/* 与 .panasia-play-side 同宽；左右内边距与侧栏一致，广告/相关推荐与选集内容区对齐 */
.panasia-play-bottom-side {
  width: 466px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

.panasia-play-bottom-reco-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #ffffff;
}

.panasia-play-bottom-main .panasia-card-rows {
  gap: 24px;
}

/* 近期热播：两行 × 每行 5 个，间距 24 */
.panasia-play-bottom-main .panasia-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  justify-items: stretch;
  justify-content: stretch;
}

.panasia-play-bottom-main .panasia-card-row > .panasia-card:nth-child(n + 11) {
  display: none;
}

.panasia-play-bottom-main .panasia-card {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.panasia-play-bottom-side .panasia-play-ad-wrap {
  margin-left: 0;
  margin-right: 0;
}

.panasia-play-ad-wrap {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 120px;
}

.panasia-play-ad-link {
  display: block;
  line-height: 0;
}

.panasia-play-ad-img {
  width: 100%;
  height: auto;
  min-height: 120px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.panasia-play-reco-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panasia-play-bottom-side .panasia-play-reco-list > .panasia-play-reco-item:nth-child(n + 6) {
  display: none;
}

.panasia-play-reco-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.panasia-play-reco-item:last-child {
  border-bottom: none;
}

.panasia-play-reco-thumb {
  position: relative;
  width: 96px;
  flex-shrink: 0;
  aspect-ratio: 96 / 128;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0d0d;
}

.panasia-play-reco-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panasia-play-reco-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75));
  border-radius: 0 0 8px 8px;
}

.panasia-play-reco-ep {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 1;
  font-size: 10px;
  line-height: 14px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.panasia-play-reco-body {
  flex: 1;
  min-width: 0;
}

.panasia-play-reco-name {
  font-size: 18px;
  line-height: 25.2px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 8px;
}

.panasia-play-reco-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #9b9998;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panasia-play-reco-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 14px;
  line-height: 19.6px;
  color: #9b9998;
  margin: 0;
}

.panasia-play-reco-meta .panasia-play-meta-sep {
  margin: 0 10px;
  height: 14px;
}

.panasia-play-hot-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #ffffff;
}

/* 窄屏选集（DOM 在侧栏内，手机端通过 order 排到演员表下方） */
.panasia-play-ep-fallback {
  display: none;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.panasia-play-fallback-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9b9998;
}

.panasia-play-fb-group {
  margin-bottom: 16px;
}

.panasia-play-fb-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #9b9998;
  font-weight: 500;
}

.panasia-play-fb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panasia-play-fb-list a {
  min-width: 48px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #2c2d2f;
  border: 1px solid #3b3b3d;
  font-size: 18px;
  color: #eeeeee;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.panasia-play-fb-list a:hover,
.panasia-play-fb-list a.panasia-play-ep-cur {
  border-color: #00e7e7;
  color: #00e7e7;
  background: rgba(0, 231, 231, 0.1);
}

@media (max-width: 1440px) {
  .panasia-play-side {
    width: 400px;
  }

  .panasia-play-bottom-side {
    width: 400px;
  }
}

@media (max-width: 1100px) {
  .panasia-play-mainrow {
    flex-direction: column;
    gap: 20px;
  }

  .panasia-play-player-col .pm-player-box {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .panasia-play-side {
    width: 100%;
    max-width: none;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .panasia-play-ep-grid {
    grid-template-columns: repeat(6, minmax(64px, 1fr));
    max-height: 280px;
  }

  .panasia-play-ad-wrap {
    max-width: none;
  }

  .panasia-play-bottom-grid {
    flex-direction: column;
    gap: 28px;
  }

  .panasia-play-bottom-side {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .panasia-play-wrap {
    padding: 8px 16px 32px;
  }

  .panasia-play-topnav {
    margin-bottom: 14px;
  }

  .panasia-play-side {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* 播放器列结束于演员表后，侧栏内顺序：选集 → 窄屏集数列表 → 片名/简介 */
  .panasia-play-side-epblock {
    order: 1;
  }

  .panasia-play-ep-fallback {
    order: 2;
    display: block;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .panasia-play-side-info {
    order: 3;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .panasia-play-side-title {
    font-size: 22px;
  }

  .panasia-play-side-meta {
    font-size: 15px;
  }

  .panasia-play-ep-panel {
    display: none !important;
  }

  .panasia-play-player-col .pm-player-box {
    min-height: min(56.25vw, 72vh);
  }

  .panasia-play-ep-cell {
    min-height: 52px;
  }

  /* 近期热播：手机每行 2 个 */
  .panasia-play-bottom-main .panasia-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
