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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, 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;
}

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

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

.main-nav {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow: hidden;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #333;
}

.hero-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.main-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.4;
}

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

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

.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: 140%;
  background: #ddd;
  overflow: hidden;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.intro-section,
.top-section,
.latest-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.back-to-top:hover {
  transform: scale(1.1);
}

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

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

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-desc {
  color: #666;
  font-size: 15px;
}

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

.top-list__item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-badge {
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  text-align: center;
}

.item-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}

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

.item-info {
  flex: 1;
}

.item-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.item-title a {
  text-decoration: none;
  color: #333;
}

.item-title a:hover {
  color: #667eea;
}

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

.item-desc {
  font-size: 15px;
  color: #666;
}

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

.layout__side--filters {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

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

.tag {
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.tag:hover,
.tag.active {
  background: #667eea;
  color: #fff;
}

.group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

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

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

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

.video-player {
  max-width: 1000px;
  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(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

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

.player-play-icon {
  font-size: 32px;
  color: #333;
  margin-left: 4px;
}

.title-section {
  margin-bottom: 30px;
}

.title-section h1 {
  font-size: 32px;
  line-height: 1.4;
}

.basic-info,
.detail-module {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.module-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
}

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

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

.module-content p {
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  text-indent: 2em;
}

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

.related-section {
  margin-top: 40px;
}

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

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

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

  .hero-grid,
  .video-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

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

  .main-title {
    font-size: 20px;
  }

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

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

  .layout__side--filters {
    position: static;
  }

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

  .item-cover {
    width: 100%;
    height: 200px;
  }

  .video-player-inner {
    padding-top: 56.25%;
  }

  .info-list {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #000 0%, #333 100%);
}

.ui-style-0 .section-title,
.ui-style-0 .rank-badge {
  color: #ff6b6b;
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.ui-style-1 .section-title,
.ui-style-1 .rank-badge {
  color: #ff6347;
}

.ui-style-2 body {
  background: #fff;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #333;
}

.ui-style-2 .section-title,
.ui-style-2 .rank-badge {
  color: #ff6347;
}

.ui-style-3 body {
  background: #fff;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  color: #333;
}

.ui-style-3 .section-title,
.ui-style-3 .rank-badge {
  color: #ff4458;
}

.ui-style-4 body {
  background: #fff;
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  color: #333;
}

.ui-style-4 .section-title,
.ui-style-4 .rank-badge {
  color: #e50914;
}

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

.ui-style-5 .video-card,
.ui-style-5 .basic-info,
.ui-style-5 .detail-module {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.ui-style-5 .section-title,
.ui-style-5 .rank-badge {
  color: #e50914;
}

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

.ui-style-6 .video-card,
.ui-style-6 .basic-info,
.ui-style-6 .detail-module {
  background: #1a1d29;
  color: #fff;
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #141b2d 0%, #1a1d29 100%);
}

.ui-style-6 .section-title,
.ui-style-6 .rank-badge {
  color: #00a8e1;
}

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

.ui-style-7 .video-card,
.ui-style-7 .basic-info,
.ui-style-7 .detail-module {
  background: #1a2332;
  color: #fff;
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #0e1621 0%, #1a2332 100%);
}

.ui-style-7 .section-title,
.ui-style-7 .rank-badge {
  color: #00c4cc;
}

.ui-style-8 body {
  background: #121212;
  color: #fff;
}

.ui-style-8 .video-card,
.ui-style-8 .basic-info,
.ui-style-8 .detail-module {
  background: #1e1e1e;
  color: #fff;
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #000 0%, #1e1e1e 100%);
}

.ui-style-8 .section-title,
.ui-style-8 .rank-badge {
  color: #1ed760;
}

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

.ui-style-9 .video-card,
.ui-style-9 .basic-info,
.ui-style-9 .detail-module {
  background: #141414;
  color: #fff;
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
}

.ui-style-9 .section-title,
.ui-style-9 .rank-badge {
  color: #fff;
}

.ui-style-10 body {
  background: #f7f9fa;
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00C75A 0%, #00b350 100%);
}

.ui-style-10 .section-title,
.ui-style-10 .rank-badge {
  color: #00C75A;
}

.ui-style-11 body {
  background: #fff;
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  color: #333;
}

.ui-style-11 .section-title,
.ui-style-11 .rank-badge {
  color: #0099FF;
}

.ui-style-12 body {
  background: #fff;
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #FF6700 0%, #ff5500 100%);
}

.ui-style-12 .section-title,
.ui-style-12 .rank-badge {
  color: #FF6700;
}

.ui-style-13 body {
  background: #fff;
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #00A1D6 0%, #0090c0 100%);
}

.ui-style-13 .section-title,
.ui-style-13 .rank-badge {
  color: #00A1D6;
}

.ui-style-14 body {
  background: #fff;
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  color: #333;
}

.ui-style-14 .section-title,
.ui-style-14 .rank-badge {
  color: #2a5caa;
}
