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

:root {
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.ui-style-0 { --primary: #000; --secondary: #fff; --accent: #ff4444; }
.ui-style-1 { --primary: #1a1a1a; --secondary: #fff; --accent: #ff5722; }
.ui-style-2 { --primary: #fff; --secondary: #333; --accent: #ff6b35; }
.ui-style-3 { --primary: #fff; --secondary: #e60023; --accent: #bd081c; }
.ui-style-4 { --primary: #fff; --secondary: #282828; --accent: #e50914; }
.ui-style-5 { --primary: #141414; --secondary: #e5e5e5; --accent: #e50914; }
.ui-style-6 { --primary: #0f1626; --secondary: #fff; --accent: #1e90ff; }
.ui-style-7 { --primary: #0d1b2a; --secondary: #fff; --accent: #ffd700; }
.ui-style-8 { --primary: #1a1a1a; --secondary: #fff; --accent: #00d26a; }
.ui-style-9 { --primary: #000; --secondary: #fff; --accent: #e5e5e5; }
.ui-style-10 { --primary: #fff; --secondary: #00c75a; --accent: #00a047; }
.ui-style-11 { --primary: #fff; --secondary: #0099ff; --accent: #ff6b35; }
.ui-style-12 { --primary: #fff; --secondary: #ff6700; --accent: #ff8533; }
.ui-style-13 { --primary: #fff; --secondary: #00a1d6; --accent: #fb7299; }
.ui-style-14 { --primary: #fff; --secondary: #003a8c; --accent: #ff4d4f; }

.site-nav {
  background: var(--primary);
  color: var(--secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

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

  .nav-links {
    gap: var(--spacing-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

.layout-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.layout__sidebar {
  width: 280px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  padding: var(--spacing-lg);
  flex-shrink: 0;
}

.layout__main {
  flex: 1;
  padding: var(--spacing-lg);
  max-width: 1400px;
}

@media (max-width: 968px) {
  .layout-container {
    flex-direction: column;
  }

  .layout__sidebar {
    width: 100%;
  }
}

.sidebar-content {
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.sidebar-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.sidebar-stats {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: bold;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-section {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: 16px;
  margin-bottom: var(--spacing-xl);
}

.hero-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.8;
  max-width: 900px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
  }
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 1.8rem;
  color: var(--secondary);
}

.section-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.section-more:hover {
  transform: translateX(4px);
}

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-sm);
  }
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
  .video-cover {
    padding-top: 130%;
  }
}

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 3rem;
  color: #fff;
}

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

.video-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  height: 2.8em;
}

@media (max-width: 768px) {
  .video-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
    height: 2.6em;
  }
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .video-one-line {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }
}

.video-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #999;
}

.video-meta span {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.list-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

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

.page-header h1 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

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

.filter-bar {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm);
  background: #f5f5f5;
  border-radius: 8px;
}

.filter-label {
  color: #666;
  font-weight: 500;
}

.page--with-sidebar {
  display: flex;
  gap: var(--spacing-lg);
}

.layout__side--filters {
  width: 200px;
  flex-shrink: 0;
}

.layout__side--filters h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-tag {
  padding: 8px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--accent);
  color: #fff;
}

.main-content {
  flex: 1;
}

@media (max-width: 968px) {
  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

  .filter-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

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

.top-list__item {
  margin-bottom: var(--spacing-md);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.top-list__item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.top-item-link {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.rank-badge {
  font-size: 1.5rem;
  font-weight: bold;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #999;
  flex-shrink: 0;
}

.rank-badge.rank-top {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #fff;
}

.top-item-cover {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-item-cover {
    width: 80px;
    height: 110px;
  }

  .rank-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .top-item-link {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
}

.top-item-info {
  flex: 1;
}

.top-item-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.top-item-desc {
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.top-item-meta {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: #999;
}

.top-item-meta span {
  padding: 4px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

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

.group__title {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--accent);
}

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

@media (max-width: 768px) {
  .group__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-sm);
  }
}

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

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

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

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

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

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

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

.detail-header {
  margin-bottom: var(--spacing-lg);
}

.detail-title {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.detail-module {
  background: #fff;
  padding: var(--spacing-lg);
  border-radius: 12px;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-module h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid #f0f0f0;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-sm) var(--spacing-md);
}

.info-list dt {
  font-weight: 600;
  color: #666;
}

.info-list dd {
  color: #333;
}

.oneline-text, .summary-text, .review-text, .audience-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag-item {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #fff;
  border-radius: 20px;
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
  }
}

.site-footer {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
