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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.site-nav {
  display: flex;
  gap: 25px;
  white-space: nowrap;
}

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

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

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.site-intro {
  background: white;
  padding: 40px 20px;
  margin: 40px 0;
}

.site-intro h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

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

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

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

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

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.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;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

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

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

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #333;
}

.page-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.page--grid,
.page--top,
.page--with-sidebar,
.page--grouped {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin: 20px 0;
}

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

.top-list__item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.top-list__item:last-child {
  border-bottom: none;
}

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

.top-cover {
  width: 150px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #e74c3c;
}

.page--with-sidebar {
  display: flex;
  gap: 30px;
}

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

.layout__side--filters h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #666;
}

.layout__main {
  flex: 1;
}

.group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
}

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

.video-player-section {
  background: #000;
  padding: 20px 0;
}

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

.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-radius: 50%;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 36px;
  color: white;
}

.detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.detail-info {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.detail-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

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

.info-item {
  font-size: 16px;
  line-height: 1.8;
}

.info-item strong {
  color: #666;
}

.detail-module {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

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

.video-card--related .video-cover {
  padding-top: 56.25%;
}

.site-footer {
  background: #333;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

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

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

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

@media (max-width: 768px) {
  .site-nav {
    gap: 15px;
    font-size: 14px;
  }

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

  .hero-description {
    font-size: 16px;
  }

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

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

  .page--with-sidebar {
    flex-direction: column;
  }

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

  .top-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-cover {
    width: 100%;
  }

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

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

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
  }
}

body.ui-style-0 {
  --primary-color: #e74c3c;
  --secondary-color: #000;
}

body.ui-style-1 {
  --primary-color: #ff6b6b;
  --secondary-color: #2c3e50;
}

body.ui-style-2 {
  --primary-color: #ee5a6f;
  --secondary-color: #34495e;
}

body.ui-style-3 {
  --primary-color: #e53935;
  --secondary-color: #263238;
}

body.ui-style-4 {
  --primary-color: #d32f2f;
  --secondary-color: #212121;
}

body.ui-style-5 {
  --primary-color: #c62828;
  --secondary-color: #1a1a1a;
}

body.ui-style-6 {
  --primary-color: #1976d2;
  --secondary-color: #263238;
}

body.ui-style-7 {
  --primary-color: #0288d1;
  --secondary-color: #37474f;
}

body.ui-style-8 {
  --primary-color: #00c853;
  --secondary-color: #1b5e20;
}

body.ui-style-9 {
  --primary-color: #fafafa;
  --secondary-color: #000;
}

body.ui-style-10 {
  --primary-color: #00c75a;
  --secondary-color: #fff;
}

body.ui-style-11 {
  --primary-color: #0099ff;
  --secondary-color: #fff;
}

body.ui-style-12 {
  --primary-color: #ff6700;
  --secondary-color: #fff;
}

body.ui-style-13 {
  --primary-color: #00a1d6;
  --secondary-color: #fff;
}

body.ui-style-14 {
  --primary-color: #1a5490;
  --secondary-color: #fff;
}

.site-logo a {
  color: var(--primary-color, #e74c3c);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-color, #e74c3c);
}

.top-rank {
  color: var(--primary-color, #e74c3c);
}

.group__title {
  border-bottom-color: var(--primary-color, #e74c3c);
}

.player-play-btn {
  background: rgba(231, 76, 60, 0.9);
}
