/* ===== 播放页样式 ===== */

.play-container {
  display: flex;
  gap: 20px;
}

.play-main {
  flex: 1;
  min-width: 0;
}

/* 视频播放器区域 */
.player-wrapper {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.player-inner {
  position: relative;
  padding-top: 56.25%;
  background: #0a0a0a;
}

.player-inner .player-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
}

.player-inner .play-icon {
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  transition: all 0.3s;
}

.player-inner .play-icon:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  transform: scale(1.1);
}

.player-inner .play-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.player-inner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 播放器控制栏 */
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1a1a1a;
  color: #ccc;
  font-size: 13px;
}

.player-controls .ctrl-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.player-controls .ctrl-btn:hover {
  color: #e74c3c;
  background: rgba(255,255,255,0.08);
}

.player-controls .progress-bar {
  flex: 1;
  height: 5px;
  background: #333;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.player-controls .progress-bar .progress-fill {
  height: 100%;
  background: #e74c3c;
  border-radius: 3px;
  width: 0%;
  transition: width 0.2s;
}

.player-controls .volume-slider {
  width: 70px;
  accent-color: #e74c3c;
}

/* 剧集信息 */
.player-info {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.player-info h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.player-info .player-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.player-info .player-meta a {
  color: #e74c3c;
}

.player-info .player-meta a:hover {
  text-decoration: underline;
}

.player-info .player-meta em {
  color: #e74c3c;
  font-style: normal;
  font-weight: bold;
}

/* 换源/选集 */
.source-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.source-tabs a {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #888;
  background: #222;
  transition: all 0.2s;
}

.source-tabs a:hover,
.source-tabs a.active {
  background: #e74c3c;
  color: #fff;
}

/* 剧集选择 */
.episode-select {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.episode-select h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.episode-select h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #e74c3c;
  border-radius: 2px;
}

.episode-links {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.episode-links a {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  background: #222;
  font-size: 13px;
  color: #aaa;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-links a:hover,
.episode-links a.active {
  background: #e74c3c;
  color: #fff;
}

/* 右侧推荐 */
.play-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #e74c3c;
  border-radius: 2px;
}

.sidebar-video-list .sv-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #2a2a2a;
  transition: background 0.2s;
}

.sidebar-video-list .sv-item:last-child {
  border-bottom: none;
}

.sidebar-video-list .sv-item:hover {
  background: #222;
  margin: 0 -16px;
  padding: 10px 16px;
  border-radius: 6px;
}

.sv-poster {
  width: 80px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2a2a;
}

.sv-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sv-info .sv-title {
  font-size: 14px;
  font-weight: 500;
  color: #e0e0e0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.sv-info .sv-meta {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.sv-info .sv-score {
  color: #ff9800;
  font-size: 13px;
  font-weight: bold;
}

/* 响应式 */
@media (max-width: 1024px) {
  .play-container {
    flex-direction: column;
  }

  .play-sidebar {
    width: 100%;
  }

  .sidebar-video-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .sidebar-video-list .sv-item {
    padding: 0;
    border-bottom: none;
    flex-direction: column;
  }

  .sidebar-video-list .sv-item:hover {
    margin: 0;
    padding: 0;
    background: none;
  }

  .sv-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
  }
}

@media (max-width: 768px) {
  .episode-links {
    grid-template-columns: repeat(5, 1fr);
  }

  .sidebar-video-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .episode-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .player-controls {
    flex-wrap: wrap;
  }

  .player-controls .volume-slider {
    width: 50px;
  }
}
