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

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

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

.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: 700;
  color: #1a1a1a;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu li a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #666;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-menu li a:hover {
  background: #f0f0f0;
  color: #000;
}

.nav-menu li.active a {
  background: #00C75A;
  color: #fff;
}

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

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero-desc {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.8;
}

.intro-section {
  background: #fff;
  padding: 40px 20px;
  margin: 20px 0;
}

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

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

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

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

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

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

.video-card {
  background: #fff;
  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(-4px);
  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%;
  background: #ddd;
  overflow: hidden;
}

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

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

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

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

.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #eee;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

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

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

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

.layout__side--filters h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.tag:hover {
  background: #00C75A;
  color: #fff;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-list__item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.3s;
}

.top-list__item:hover {
  transform: translateX(8px);
}

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: #00C75A;
  min-width: 50px;
  text-align: center;
}

.top-list__item:nth-child(1) .top-rank { color: #FFD700; }
.top-list__item:nth-child(2) .top-rank { color: #C0C0C0; }
.top-list__item:nth-child(3) .top-rank { color: #CD7F32; }

.top-list__item .video-cover {
  width: 120px;
  min-width: 120px;
  padding-top: 67.5px;
  flex-shrink: 0;
}

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

.top-list__item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-list__item h3 a {
  text-decoration: none;
  color: #1a1a1a;
}

.top-list__item h3 a:hover {
  color: #00C75A;
}

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

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 2px solid #00C75A;
}

.detail-main {
  background: #fff;
  min-height: calc(100vh - 200px);
}

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

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  margin-left: 4px;
}

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

.detail-title {
  font-size: 36px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 40px;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 16px;
  font-size: 16px;
}

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

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

.summary-content,
.review-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.summary-content p,
.review-content p {
  margin-bottom: 12px;
}

.module-e p,
.module-b p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

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

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

.video-card--related {
  background: #f9f9f9;
}

.site-footer {
  background: #1a1a1a;
  color: #999;
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
}

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

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #00C75A;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .nav-menu {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-menu li a {
    padding: 6px 12px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-list__item {
    flex-direction: column;
    text-align: center;
  }

  .top-list__item .video-cover {
    width: 100%;
  }

  .detail-title {
    font-size: 28px;
  }

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

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

.ui-style-0 {
  --primary-color: #ff4458;
  --accent-color: #00f2fe;
}

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

.ui-style-0 .nav-menu li.active a {
  background: #ff4458;
}

.ui-style-1 {
  --primary-color: #fe2c55;
  --accent-color: #00f2ea;
}

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

.ui-style-1 .nav-menu li.active a {
  background: #fe2c55;
}

.ui-style-2 {
  --primary-color: #ff385c;
  --accent-color: #00a699;
}

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

.ui-style-2 .nav-menu li.active a {
  background: #ff385c;
}

.ui-style-3 {
  --primary-color: #ff2d55;
  --accent-color: #5ac8fa;
}

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

.ui-style-3 .nav-menu li.active a {
  background: #ff2d55;
}

.ui-style-4 {
  --primary-color: #e50914;
  --accent-color: #b9090b;
}

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

.ui-style-4 .video-card {
  background: #1f1f1f;
}

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

.ui-style-4 .nav-menu li.active a {
  background: #e50914;
}

.ui-style-5 {
  --primary-color: #0080ff;
  --accent-color: #00d9ff;
}

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

.ui-style-5 .video-card {
  background: #132f4c;
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #0a1929 0%, #132f4c 100%);
}

.ui-style-5 .nav-menu li.active a {
  background: #0080ff;
}

.ui-style-6 {
  --primary-color: #006edc;
  --accent-color: #1a73e8;
}

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

.ui-style-6 .video-card {
  background: #1a2332;
}

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

.ui-style-6 .nav-menu li.active a {
  background: #006edc;
}

.ui-style-7 {
  --primary-color: #0063e5;
  --accent-color: #0072d2;
}

.ui-style-7 body {
  background: #040714;
  color: #f9f9f9;
}

.ui-style-7 .video-card {
  background: #1a1d29;
}

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

.ui-style-7 .nav-menu li.active a {
  background: #0063e5;
}

.ui-style-8 {
  --primary-color: #00eb87;
  --accent-color: #00c75a;
}

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

.ui-style-8 .video-card {
  background: #16213e;
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
}

.ui-style-8 .nav-menu li.active a {
  background: #00eb87;
}

.ui-style-9 {
  --primary-color: #e5e5e5;
  --accent-color: #a6a6a6;
}

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

.ui-style-9 .video-card {
  background: #1c1c1e;
}

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

.ui-style-9 .nav-menu li.active a {
  background: #2c2c2e;
  color: #fff;
}

.ui-style-10 {
  --primary-color: #00C75A;
  --accent-color: #00eb87;
}

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

.ui-style-10 .nav-menu li.active a {
  background: #00C75A;
}

.ui-style-11 {
  --primary-color: #0099FF;
  --accent-color: #00d4ff;
}

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

.ui-style-11 .nav-menu li.active a {
  background: #0099FF;
}

.ui-style-12 {
  --primary-color: #FF6700;
  --accent-color: #ff8533;
}

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

.ui-style-12 .nav-menu li.active a {
  background: #FF6700;
}

.ui-style-13 {
  --primary-color: #00A1D6;
  --accent-color: #FB7299;
}

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

.ui-style-13 .nav-menu li.active a {
  background: #00A1D6;
}

.ui-style-14 {
  --primary-color: #003d7a;
  --accent-color: #005aab;
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #003d7a 0%, #005aab 100%);
}

.ui-style-14 .nav-menu li.active a {
  background: #003d7a;
}
