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

:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-primary: #ff0050;
  --color-secondary: #00f2ea;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: var(--spacing-md);
  white-space: nowrap;
  overflow: visible;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 8px;
  transition: var(--transition);
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}

.main-content {
  min-height: 80vh;
  padding: var(--spacing-lg) 0;
}

.hero-section {
  margin-bottom: var(--spacing-xl);
}

.hero-slider {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 500px;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.hero-content {
  position: absolute;
  left: var(--spacing-xl);
  top: 50%;
  transform: translateY(-50%);
  max-width: 600px;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.hero-desc {
  font-size: 18px;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 0, 80, 0.4);
}

.section-title {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.intro-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.85;
}

.horizontal-scroll-section {
  margin-bottom: var(--spacing-xl);
}

.horizontal-scroll {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.1);
}

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

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

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.video-grid-section,
.video-list-section {
  margin-bottom: var(--spacing-xl);
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  min-width: 280px;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

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

.video-cover {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.video-info {
  padding: var(--spacing-sm);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: var(--spacing-xs);
  font-size: 12px;
  opacity: 0.6;
}

.video-player-section {
  margin-bottom: var(--spacing-xl);
}

.video-player {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 0, 80, 0.5);
}

.player-play-icon {
  font-size: 32px;
  color: var(--color-text);
  margin-left: 4px;
}

.detail-header h1 {
  font-size: 40px;
  margin-bottom: var(--spacing-md);
}

.detail-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.detail-info h2 {
  font-size: 24px;
  margin-bottom: var(--spacing-md);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-sm);
}

.info-item {
  display: flex;
  gap: var(--spacing-xs);
}

.info-label {
  font-weight: 600;
  opacity: 0.7;
}

.detail-module {
  margin-bottom: var(--spacing-xl);
}

.detail-module h2 {
  font-size: 28px;
  margin-bottom: var(--spacing-md);
}

.module-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-bottom: var(--spacing-xl);
}

.related-section h2 {
  font-size: 28px;
  margin-bottom: var(--spacing-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.page-header {
  margin-bottom: var(--spacing-xl);
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: var(--spacing-sm);
}

.page-desc {
  font-size: 16px;
  opacity: 0.7;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--spacing-xl);
}

.layout__side--filters {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: var(--spacing-md);
}

.filter-group h4 {
  font-size: 16px;
  margin-bottom: var(--spacing-sm);
  opacity: 0.7;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.filter-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tag:hover {
  background: var(--color-primary);
}

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

.top-item {
  display: flex;
  gap: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.top-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.top-rank {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: var(--spacing-xs);
}

.top-title a {
  color: inherit;
  text-decoration: none;
}

.top-title a:hover {
  color: var(--color-primary);
}

.top-meta {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: var(--spacing-sm);
}

.top-desc {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.6;
}

.group {
  margin-bottom: var(--spacing-xl);
}

.group__title {
  font-size: 28px;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

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

.site-footer {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  opacity: 0.6;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: var(--spacing-lg);
  bottom: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-text);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 0, 80, 0.4);
}

@media (max-width: 768px) {
  .site-nav {
    gap: var(--spacing-xs);
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-content {
    left: var(--spacing-md);
    max-width: 90%;
  }

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

  .hero-desc {
    font-size: 14px;
  }

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

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

  .video-card {
    min-width: 150px;
  }

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

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

  .layout__side--filters {
    position: static;
  }

  .page-header h1,
  .detail-header h1 {
    font-size: 28px;
  }

  .detail-module h2,
  .related-section h2 {
    font-size: 22px;
  }

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

  .top-rank {
    font-size: 24px;
    min-width: auto;
  }

  .top-cover {
    width: 100%;
    max-width: 200px;
    height: auto;
    padding-top: 133%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

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