* {
  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: #f8f9fa;
}

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

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

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #2563eb;
}

.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;
  font-weight: 700;
}

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

.intro-section {
  background: white;
  padding: 40px 20px;
}

.intro-section p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.video-section {
  padding: 40px 20px;
}

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

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

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.list-page {
  min-height: calc(100vh - 160px);
  padding: 40px 20px;
}

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

.page-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
  color: #1f2937;
}

.page-desc {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
}

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

.top-item {
  display: flex;
  gap: 20px;
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-items: center;
}

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

.top-item .video-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
}

.top-item .video-cover img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

.top-item .video-title a {
  text-decoration: none;
  color: #1f2937;
}

.top-item .video-title a:hover {
  color: #2563eb;
}

.page--grouped .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1f2937;
  border-left: 4px solid #2563eb;
  padding-left: 16px;
}

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

.detail-page {
  min-height: calc(100vh - 160px);
  padding: 40px 20px;
  background: white;
}

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

.video-player {
  max-width: 1000px;
  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;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  max-width: 900px;
  margin: 0 auto 30px;
}

.detail-header h1 {
  font-size: 36px;
  color: #1f2937;
  margin-bottom: 16px;
}

.detail-info,
.detail-module,
.related-section {
  max-width: 900px;
  margin: 0 auto 40px;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1f2937;
  border-left: 4px solid #2563eb;
  padding-left: 16px;
}

.info-list {
  list-style: none;
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-list li:last-child {
  border-bottom: none;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 20px;
  font-size: 14px;
}

.related-section .video-grid {
  margin-top: 20px;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: transform 0.3s;
}

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

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

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

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

.ui-style-0 .video-card,
.ui-style-0 .top-item,
.ui-style-0 .detail-page {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-1 .logo {
  color: #ff6b35;
}

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

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}

.ui-style-3 .logo {
  color: #ef4444;
}

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

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.ui-style-5 body,
.ui-style-6 body {
  background: #0f172a;
  color: #e2e8f0;
}

.ui-style-5 .video-card,
.ui-style-6 .video-card {
  background: #1e293b;
}

.ui-style-7 .logo {
  color: #10b981;
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.ui-style-9 body {
  background: #09090b;
  color: #fafafa;
}

.ui-style-10 .logo {
  color: #00c75a;
}

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

.ui-style-11 .logo {
  color: #0099ff;
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099ff 0%, #06b6d4 100%);
}

.ui-style-12 .logo {
  color: #ff6700;
}

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

.ui-style-13 .logo {
  color: #00a1d6;
}

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

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #4f46e5 100%);
}

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

  .logo {
    font-size: 20px;
  }

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

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

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

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

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

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

  .top-rank {
    min-width: auto;
  }

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

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

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

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 15px;
  }

  .nav-menu {
    width: 100%;
    justify-content: space-around;
    gap: 10px;
    font-size: 13px;
  }

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

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