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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: #e50914;
}

.nav-links {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-links a {
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  color: #666;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e50914;
  background: #fff0f0;
}

.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 180px);
}

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

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

.site-intro {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.content-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #222;
  padding-bottom: 12px;
  border-bottom: 3px solid #e50914;
}

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

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

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

.video-card__link {
  display: block;
}

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

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}

.video-card:hover .play-overlay {
  background: rgba(0,0,0,0.5);
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(229,9,20,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
}

.video-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  font-size: 13px;
  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-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

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

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

.layout__side--filters {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.layout__side--filters h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #333;
}

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

.top-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.top-list-item:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.rank-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-top {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.rank-normal {
  background: #e0e0e0;
  color: #666;
}

.top-list-item .video-cover {
  width: 120px;
  height: 160px;
  padding-top: 0;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.top-list-item .video-cover img {
  position: static;
}

.top-list-item .video-info {
  padding: 0;
  flex: 1;
}

.top-list-item .video-title a {
  color: #222;
  transition: color 0.3s;
}

.top-list-item .video-title a:hover {
  color: #e50914;
}

.group {
  margin-bottom: 40px;
}

.group-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  padding-left: 12px;
  border-left: 4px solid #e50914;
}

.detail-page {
  max-width: 1000px;
}

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

.video-player {
  width: 100%;
  background: #000;
  border-radius: 8px;
  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(229,9,20,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(229,9,20,1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.detail-header {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
}

.detail-module {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-module h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
}

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

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.tag:hover {
  background: #e50914;
  color: white;
}

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

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

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #e50914;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .site-nav {
    height: auto;
    flex-direction: column;
    padding: 12px 20px;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    gap: 12px;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 10px;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
  }

  .video-meta,
  .video-one-line {
    font-size: 12px;
  }

  .page-container {
    padding: 20px;
  }

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

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

  .top-list-item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 140%;
  }

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

  .detail-module h2 {
    font-size: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

.ui-style-0 body { background: #111; color: #fff; }
.ui-style-0 .site-header { background: #1a1a1a; border-bottom: 1px solid #333; }
.ui-style-0 .nav-logo { color: #00f2ea; }
.ui-style-0 .video-card,
.ui-style-0 .page-container,
.ui-style-0 .detail-module,
.ui-style-0 .detail-header,
.ui-style-0 .site-intro { background: #1a1a1a; color: #fff; }
.ui-style-0 .video-title,
.ui-style-0 h1, .ui-style-0 h2 { color: #fff; }

.ui-style-1 .nav-logo { color: #ff6b35; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); }

.ui-style-2 body { background: #fff; }
.ui-style-2 .nav-logo { color: #ff4757; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #ff6348 0%, #ff4757 100%); }

.ui-style-3 .nav-logo { color: #ee5a6f; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.ui-style-4 body { background: #f8f9fa; }
.ui-style-4 .nav-logo { color: #e50914; }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .site-header { background: #1a1a1a; }
.ui-style-5 .video-card,
.ui-style-5 .page-container,
.ui-style-5 .detail-module { background: #222; color: #fff; }

.ui-style-6 body { background: #0f1419; color: #fff; }
.ui-style-6 .site-header { background: #1a2332; }
.ui-style-6 .nav-logo { color: #1da1f2; }

.ui-style-7 body { background: #0d1117; color: #fff; }
.ui-style-7 .site-header { background: #161b22; }
.ui-style-7 .nav-logo { color: #58a6ff; }

.ui-style-8 body { background: #0a0e27; color: #fff; }
.ui-style-8 .site-header { background: #161b33; }
.ui-style-8 .nav-logo { color: #1db954; }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .site-header { background: #0a0a0a; }
.ui-style-9 .video-card,
.ui-style-9 .page-container { background: #141414; }

.ui-style-10 .nav-logo { color: #00c75a; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00c75a 0%, #00e676 100%); }

.ui-style-11 body { background: #f5f7fa; }
.ui-style-11 .nav-logo { color: #0099ff; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%); }

.ui-style-12 .nav-logo { color: #ff6700; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #ff6700 0%, #ff8533 100%); }

.ui-style-13 .nav-logo { color: #00a1d6; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00a1d6 0%, #fb7299 100%); }

.ui-style-14 body { background: #fff; }
.ui-style-14 .nav-logo { color: #003a70; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #003a70 0%, #0055a5 100%); }
