/* 下载信息样式表 */
.social-section {
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.tab {
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
}

.tab.active {
  color: #2196F3;
  border-bottom: 2px solid #2196F3;
}

.download-content {
  max-height: 350px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.download-content.expanded {
  max-height: 800px;
}

.download-panel {
  display: none;
}

.download-panel.active {
  display: block;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-item {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.download-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quality-badge {
  background: #2196F3;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.size-info {
  color: #666;
  font-size: 14px;
}


.download-date {
  color: #999;
  font-size: 13px;
}

/* 角标形式的更新时间 */
.download-item {
  position: relative;
}
.badge-date {
  display: inline-block;
  position: absolute;
  top: -2px;
  left: 5px;
  background: #f5f5f5;
  color: #bdbdbd;
  border-radius: 8px;
  font-size: 11px;
  padding: 0 7px;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-style: italic;
  letter-spacing: 0.5px;
  z-index: 2;
}

.download-url {
  display: flex;
  gap: 10px;
}

.download-btn {
  background: #4c9baf;
  color: white !important;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.download-btn:hover {
  background: #388E3C;
  color: white;
}

.source-link {
  background: #FF9800;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.source-link:hover {
  background: #F57C00;
  color: white;
}

.more-downloads {
  cursor: pointer;
  color: #2196F3;
  font-weight: 500;
  transition: all 0.2s;
}

.more-downloads:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .download-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .download-url {
    width: 100%;
  }
}

.extract-code {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  background: #f3f3f3;
  border-radius: 4px;
  padding: 5px 8px;
}

.code-label {
  color: #666;
  margin-right: 5px;
  font-size: 13px;
}

.code-value {
  color: #ff6600;
  font-weight: bold;
  letter-spacing: 1px;
}

.copy-btn {
  background: none;
  border: none;
  color: #2196F3;
  cursor: pointer;
  margin-left: 5px;
  padding: 0 5px;
}

.copy-btn:hover {
  color: #0b7dda;
}

.source-icon {
  height: 16px;
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}

/* 复制按钮样式 */
.extract-code {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  background: #f3f3f3;
  border-radius: 4px;
  padding: 5px 8px;
}

.code-label {
  color: #666;
  margin-right: 5px;
  font-size: 13px;
}

.code-value {
  color: #ff6600;
  font-weight: bold;
  letter-spacing: 1px;
  margin-right: 8px;
}

/* 美化复制按钮样式 */
.copy-btn {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 5px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover {
  background: linear-gradient(90deg, #43A047, #388E3C);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.copy-btn i {
  margin-right: 6px;
  font-size: 16px;
}

.source-icon {
  height: 16px;
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}

.download-url a{
    color: white !important;
}

.type-badge{
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.type-full {
  background: linear-gradient(90deg, #FF9800, #FFA726);
}

.type-season {
  background: linear-gradient(90deg, #3da40b, #79b378);
}

.type-episode {
  background: linear-gradient(90deg, #ff00a8, #8026ff);
}

.bind-type {
  display: inline-flex;
  align-items: center;
}

/* 确保所有badge样式统一 */
.quality-badge {
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 清晰度不同颜色 */
/* 清晰度标签优化，按 common.php 列表顺序 */
.quality-badge.quality-unknown {
  background: linear-gradient(90deg, #bdbdbd, #e0e0e0); /* 未知 */
}
.quality-badge.quality-sd {
  background: linear-gradient(90deg, #607d8b, #90a4ae); /* 标清 */
}
.quality-badge.quality-hd {
  background: linear-gradient(90deg, #2196F3, #42A5F5); /* 高清 */
}
.quality-badge.quality-fhd {
  background: linear-gradient(90deg, #00bcd4, #4dd0e1); /* 超清 */
}
.quality-badge.quality-bluray {
  background: linear-gradient(90deg, #512da8, #00bcd4); /* 蓝光 */
  /* 蓝光色调更突出 */
}
.quality-badge.quality-4k {
  background: linear-gradient(90deg, #ff9800, #ffd600); /* 4K */
  color: #222;
  text-shadow: 0 1px 2px #fff8; /* 4K更亮 */
}
.quality-badge.quality-8k {
  background: linear-gradient(90deg, #d50000, #ff4081); /* 8K */
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  border: 1px solid #fff3;
}

.subtitle-badge {
  background: linear-gradient(90deg, #FF5722, #FF7043);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.size-info {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.extension-info {
  background: linear-gradient(90deg, #9C27B0, #AB47BC);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dolby-badge {
  background: linear-gradient(90deg, #FFEB3B, #FFC107);
  color: black;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 限制初始显示的下载面板数量，查看更多后全部展开 */
.social-section .download-content:not(.expanded) .download-panel {
  display: none;
}
.social-section .download-content:not(.expanded) .download-panel.active {
  display: block;
}
.social-section .download-content.expanded .download-panel {
  display: block;
}

/* 资源数量角标样式 */
.tab {
  position: relative;
}
.source-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff5722;
  color: white;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}