/* VideoSite 视频站模板 - 恢复之前的样式 */

/* CSS变量 */
:root {
  --bg: #0a0a0f;
  --bg-card: #15151d;
  --bg-hover: #1d1d28;
  --text: #e6e6ea;
  --text-dim: #9a9aa8;
  --text-muted: #6a6a78;
  --accent: #ff3366;
  --accent-hover: #ff5580;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --radius: 8px;
}

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* 容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.mt-20 { margin-top: 20px; }

/* 区块标题 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 26px;
  background: var(--accent);
  border-radius: 3px;
}

/* 头部 */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 8px;
  margin-right: auto;
}
.nav a {
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 15px;
  transition: all 0.2s;
}
.nav a:hover {
  background: var(--bg-card);
  color: var(--text);
}
.search {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.search input {
  background: none;
  border: none;
  padding: 0 18px;
  color: var(--text);
  outline: none;
  width: 260px;
  height: 44px;
  font-size: 14px;
}
.search input::placeholder { color: var(--text-muted); }
.search button {
  background: var(--accent);
  border: none;
  padding: 0 20px;
  height: 44px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.search button:hover { background: var(--accent-hover); }

/* 面包屑 */
.chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
  margin-right: 8px;
}

/* 播放器区域 */
.player-section {
  padding: 32px 0;
}
.player-wrapper {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 15px 35px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.player-container {
  width: 100%;
  min-height: 600px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.player-container video,
.player-container iframe,
.player-container embed,
.player-container object,
.player-container .MacPlayer {
  width: 100% !important;
  height: 100% !important;
  min-height: 600px !important;
  border: none !important;
  border-radius: 0 !important;
}
.play-info {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border-top: 1px solid var(--border);
}
.play-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.play-episode {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 400;
}
.play-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

/* 网盘引导样式 */
.netdisk-guide-page {
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 40px 20px;
}
.guide-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.guide-icon {
  font-size: 60px;
  margin-bottom: 20px;
}
.guide-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.guide-subtitle {
  font-size: 16px;
  color: #dc3545;
  font-weight: 600;
  margin-bottom: 20px;
}
.guide-text {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}
.guide-text p {
  margin-bottom: 8px;
}
.guide-text strong {
  color: #dc3545;
  font-weight: 600;
}
.guide-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.guide-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.guide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.btn-quark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.btn-baidu {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.btn-back {
  background: #6c757d;
}
.btn-back:hover {
  background: #5a6268;
}
.guide-notice {
  margin-top: 20px;
  font-size: 13px;
  color: #999;
}

/* 播放页区块样式 */
.playlist-section,
.content-section,
.related-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
}
.playlist-group {
  margin-bottom: 24px;
}
.playlist-group:last-child {
  margin-bottom: 0;
}
.playlist-source {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 16px;
}
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.episode-btn {
  padding: 10px 8px;
  background: var(--bg);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-btn:hover,
.episode-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 详情页 */
.detail-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 36px 0;
}
.detail-poster img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 16px;
}
.info-item {
  display: flex;
  gap: 14px;
}
.info-label {
  color: var(--text-muted);
  min-width: 70px;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-play:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,51,102,0.5);
}
.episode-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.episode {
  padding: 10px 8px;
  background: var(--bg-card);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode:hover,
.episode.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 内容折叠 */
.content-collapse {
  position: relative;
}
.content-collapse .content-inner {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-collapse.expanded .content-inner {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.content-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.content-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* 播放页区块标题样式优化 */
.playlist-section .section-title,
.content-section .section-title,
.related-section .section-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 0;
}
.playlist-section .section-title::before,
.content-section .section-title::before,
.related-section .section-title::before {
  display: none;
}

/* 列表页 */
.items {
  padding: 32px 0;
}
.items-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
  padding-left: 18px;
  position: relative;
}
.items-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 28px;
  background: var(--accent);
  border-radius: 3px;
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 26px;
  background: var(--accent);
  border-radius: 3px;
}
.more-link {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.more-link:hover {
  color: var(--accent);
}

/* 网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px;
}

/* 卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.card-img,
.card-thumb {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: var(--bg-hover);
  overflow: hidden;
}
.card-img img,
.card-thumb .thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img img,
.card:hover .card-thumb .thumb {
  transform: scale(1.1);
}
.card-tag,
.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255,51,102,0.5);
}
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .card-overlay {
  opacity: 1;
}
.card-play {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}
.card-score {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #ffd700;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.card-body,
.card-info {
  padding: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分页 */
.pagination {
  padding: 32px 0;
  text-align: center;
}

/* 底部 */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 72px;
  color: var(--text-dim);
}
.footer-sitemap {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.sitemap-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.sitemap-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.sitemap-links a {
  color: var(--text-dim);
  transition: color 0.2s;
  white-space: nowrap;
}
.sitemap-links a:hover {
  color: var(--accent);
}
.sitemap-links .sep {
  color: var(--border);
}
.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .header-wrap { height: 60px; gap: 0; justify-content: space-between; }
  .logo { font-size: 18px; margin-right: auto; }
  .nav { display: none; }
  .search input { width: 140px; height: 38px; font-size: 13px; padding: 0 12px; }
  .search button { height: 38px; padding: 0 14px; font-size: 13px; }
  
  .grid,
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .card-body,
  .card-info {
    padding: 8px 6px;
  }
  .card-title {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .card-meta {
    font-size: 11px;
  }
  .card-tag,
  .card-badge {
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 10px;
  }
  .card-score {
    bottom: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 10px;
  }
  
  .detail-box {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }
  .detail-poster img {
    width: 140px;
    border-radius: 10px;
  }
  .detail-title {
    font-size: 18px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-width: 100%;
  }
  .detail-info {
    gap: 8px;
  }
  .info-item {
    font-size: 14px;
  }
  .info-label {
    min-width: 45px;
    font-size: 13px;
  }
  .btn-play {
    padding: 10px 20px;
    font-size: 14px;
  }
  .hide-mobile {
    display: none;
  }
  
  .player-container {
    min-height: 250px;
  }
  .player-container video,
  .player-container iframe,
  .player-container embed,
  .player-container object,
  .player-container .MacPlayer {
    min-height: 250px !important;
  }
  .play-info {
    padding: 16px;
  }
  .play-title {
    font-size: 18px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .play-episode {
    font-size: 14px;
  }
  .play-meta {
    font-size: 13px;
    gap: 16px;
  }
  
  .playlist-section {
    padding: 20px 16px;
  }
  .playlist-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .episode-btn {
    padding: 8px 4px;
    font-size: 13px;
  }
  
  .netdisk-guide-page {
    min-height: 250px;
    padding: 30px 15px;
  }
  .guide-content {
    padding: 30px 20px;
    border-radius: 15px;
  }
  .guide-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  .guide-title {
    font-size: 20px;
  }
  .guide-subtitle {
    font-size: 14px;
  }
  .guide-text {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .guide-btn {
    min-width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .detail-wrapper {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }
  .detail-poster img {
    width: 140px;
    border-radius: 10px;
  }
  .detail-title {
    font-size: 20px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .detail-meta {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .meta-item {
    font-size: 14px;
  }
  .meta-label {
    min-width: 45px;
    font-size: 13px;
  }
  .btn-play {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .section {
    padding: 32px 0;
  }
  .section-title {
    font-size: 22px;
  }
  
  .episode-box {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .episode {
    padding: 8px 4px;
    font-size: 13px;
  }
  
  .sitemap-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .sitemap-links {
    font-size: 11px;
    gap: 6px;
    overflow-x: auto;
    padding: 0 2px;
  }
  .sitemap-links::-webkit-scrollbar {
    display: none;
  }
  .sitemap-links .sep {
    font-size: 10px;
  }
  
  .playlist-section,
  .content-section,
  .related-section {
    padding: 20px 16px;
    margin-bottom: 20px;
  }
  
  .playlist-section .section-title,
  .content-section .section-title,
  .related-section .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

/* Theme Override: VideoSite 07 - Indigo */
:root {
  --bg: #0a0b14;
  --bg-card: #12142a;
  --bg-hover: #181b35;
  --text: #eef0ff;
  --text-dim: #b2b9f0;
  --text-muted: #8b93d6;
  --accent: #6366f1;        /* Indigo */
  --accent-hover: #818cf8;
  --border: rgba(99,102,241,0.22);
  --shadow: 0 8px 30px rgba(10,15,45,0.6);
  --radius: 12px;
}
