/* 零和影视 - UI Style 0 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-0 {
  --primary-color: #ff6b6b;
  --bg-dark: #1a1a1a;
  --text-light: #fff;
}

.ui-style-0 body {
  background: #000;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #000;
  padding: 15px 0;
  border-bottom: 1px solid #333;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ff6b6b;
}

.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #ccc;
}

.site-intro {
  padding: 40px 0;
  background: #1a1a1a;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #ddd;
}

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.video-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.video-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #666;
}

.page-main {
  padding: 40px 0;
  min-height: 60vh;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 28px;
  color: #fff;
}

.page--top .top-list__items {
  list-style: none;
}

.top-item {
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  padding: 20px;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(10px);
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b6b;
  min-width: 60px;
  text-align: center;
}

.top-item__link {
  display: flex;
  gap: 20px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.top-item .video-cover {
  width: 200px;
  flex-shrink: 0;
}

.page--with-sidebar .layout__wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.layout__side--filters {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h3 {
  color: #fff;
  margin-bottom: 15px;
}

.layout__side--filters p {
  color: #999;
  font-size: 14px;
}

.page--grouped .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 30px;
  border-left: 4px solid #ff6b6b;
  padding-left: 15px;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.detail-main {
  padding: 40px 0;
}

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  width: 100%;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(255, 107, 107, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #fff;
}

.detail-header {
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 32px;
  color: #fff;
}

.detail-info,
.detail-module,
.detail-related {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.detail-info h2,
.detail-module h2,
.detail-related h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  color: #ddd;
}

.info-list dt {
  font-weight: bold;
  color: #ff6b6b;
}

.detail-module p {
  color: #ddd;
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  background: #2d2d2d;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.video-card--related {
  background: #2d2d2d;
}

.site-footer {
  background: #000;
  padding: 30px 0;
  text-align: center;
  color: #666;
  border-top: 1px solid #333;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  transition: all 0.3s;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  background: #ff5252;
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-around;
    gap: 10px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 24px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .video-cover {
    padding-top: 45%;
  }

  .video-info {
    padding: 10px;
  }

  .video-title {
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .video-one-line {
    font-size: 12px;
  }

  .page--with-sidebar .layout__wrap {
    grid-template-columns: 1fr;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

  .top-item__link {
    flex-direction: column;
  }

  .top-item .video-cover {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}