* {
  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;
}

body.ui-style-9 {
  background: #141414;
  color: #fff;
}

.site-header {
  background: #000;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #e5e5e5;
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.hero-section {
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.hero-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.hero-scroll-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.hero-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.hero-card {
  flex: 0 0 400px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.hero-card:hover {
  transform: scale(1.05);
}

.hero-cover {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: #e5e5e5;
  line-height: 1.5;
}

.content-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.section-more {
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.section-more:hover {
  color: #fff;
}

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

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

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

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

.video-cover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-cover img {
  transform: scale(1.1);
}

.video-info {
  padding: 1.2rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.video-one-line {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-intro {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.site-intro h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.site-intro p {
  color: #bbb;
  font-size: 1rem;
}

.page-header {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-desc {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.6;
}

.page--grid .video-grid {
  margin-bottom: 2rem;
}

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

.layout__side--filters {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
}

.filter-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.filter-list {
  list-style: none;
}

.filter-list li {
  padding: 0.5rem 0;
  color: #bbb;
  cursor: pointer;
  transition: color 0.3s;
}

.filter-list li:hover {
  color: #fff;
}

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

.top-list__items li {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s;
}

.top-list__items li:hover {
  transform: translateX(8px);
}

.top-rank {
  font-size: 2rem;
  font-weight: 700;
  color: #666;
  min-width: 50px;
  text-align: center;
}

.top-list__items li:nth-child(1) .top-rank {
  color: #FFD700;
}

.top-list__items li:nth-child(2) .top-rank {
  color: #C0C0C0;
}

.top-list__items li:nth-child(3) .top-rank {
  color: #CD7F32;
}

.top-cover {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.top-desc {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333;
}

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

.video-player-section {
  margin-bottom: 2rem;
}

.video-player {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 2rem;
  color: #000;
}

.detail-main h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.video-basic-info {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  color: #999;
  min-width: 60px;
}

.info-value {
  color: #fff;
}

.detail-module {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333;
}

.module-content {
  color: #bbb;
  line-height: 1.8;
  font-size: 1rem;
}

.module-content p {
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-item {
  background: #2a2a2a;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.related-section {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
}

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

.site-footer {
  background: #0a0a0a;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: #666;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 999;
}

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

.back-to-top.visible {
  display: flex;
}

@media (max-width: 768px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero-card {
    flex: 0 0 300px;
  }

  .hero-cover {
    height: 180px;
  }

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

  .video-cover {
    height: 120px;
  }

  .video-info {
    padding: 0.8rem;
  }

  .video-title {
    font-size: 0.95rem;
  }

  .video-one-line {
    font-size: 0.85rem;
  }

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

  .layout__side--filters {
    display: none;
  }

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

  .top-cover {
    width: 100%;
    height: 150px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
