/* 导航栏样式 */
.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.search-box {
  max-width: 300px;
}

/* 播放器区域 */
.player-container {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 剧集列表样式优化 */
.episodes-container {
  position: relative;
}

.episode-tabs {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
}

.episode-tabs .nav-link {
  border: none;
  color: #666;
  padding: 8px 15px;
  font-size: 14px;
}

.episode-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 20px;
}

.episode-grid {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.episode-item {
  display: inline-block;
  width: calc(25% - 10px);
  margin: 5px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 768px) {
  .episode-item {
    width: calc(33.333% - 10px);
  }
}

@media (max-width: 576px) {
  .episode-item {
    width: calc(50% - 10px);
  }
}

.episode-btn {
  width: 100%;
  padding: 8px 5px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  color: #333;
  transition: all 0.2s;
  font-size: 14px;
}

.episode-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: rgba(255, 107, 129, 0.05);
}

.episode-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(255, 107, 129, 0.3);
}

/* 动漫卡片 */
.anime-card {
  transition: transform 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.anime-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.anime-card-img {
  height: 200px;
  object-fit: cover;
}

.anime-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  text-decoration: none;
}

/* 播放控制栏 */
.play-controls {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .search-box {
    max-width: 100%;
    margin-top: 10px;
  }

  .anime-card-img {
    height: 150px;
  }
}

/* 自定义滚动条 */
.episode-grid::-webkit-scrollbar {
  width: 6px;
}

.episode-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.episode-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.episode-grid::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* 换源选择器 */
.source-selector .btn-group .btn {
  border-radius: 20px;
  margin: 0 5px;
}

.source-selector .btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 页脚 */
footer {
  margin-top: 50px;
  padding: 30px 0;
  background-color: #2c3e50;
  color: white;
}

/* 加载更多按钮 */
.load-more-btn {
  margin-top: 20px;
}

/* 剧集筛选器 */
.episode-filter {
  margin-bottom: 15px;
}

.episode-filter .form-select {
  max-width: 200px;
}

.text-primary {
  font-size: 14px;
}

.vod-content {
  height: 0;
  overflow: hidden;
}
.expanded {
  -webkit-line-clamp: unset;
  height: auto;
}
.toggle-btn {
  color: #0d6efd;
  cursor: pointer;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}
