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

.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 {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.main-nav {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.main-nav a {
  padding: 8px 12px;
  text-decoration: none;
  color: #555;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
}

.main-nav a:hover {
  background: #3498db;
  color: #fff;
}

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

.hero-title {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.site-intro {
  background: #fff;
  padding: 40px 0;
}

.site-intro p {
  text-align: justify;
  line-height: 1.8;
  color: #555;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: #3498db;
  border-radius: 2px;
}

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

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

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

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

.video-cover {
  position: relative;
  padding-top: 140%;
  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: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

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

.page-header p {
  color: #666;
  line-height: 1.6;
}

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

.top-list__item {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-item-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px;
  gap: 20px;
}

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

.top-list__item:nth-child(1) .rank-badge { color: #f39c12; }
.top-list__item:nth-child(2) .rank-badge { color: #95a5a6; }
.top-list__item:nth-child(3) .rank-badge { color: #e67e22; }

.top-item-link .video-cover {
  width: 120px;
  min-width: 120px;
  padding-top: 0;
  height: 160px;
}

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

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

.layout__side--filters {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
}

.layout__side--filters h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

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

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

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

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-page {
  background: #f5f5f5;
}

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

.detail-title {
  font-size: 36px;
  color: #2c3e50;
}

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

.detail-info h2, .detail-module h2, .related-section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

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

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

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

.detail-module p {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #ecf0f1;
  color: #555;
  border-radius: 4px;
  font-size: 14px;
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav a {
    font-size: 13px;
    padding: 6px 10px;
    flex-shrink: 0;
  }

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

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

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

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

  .video-info {
    padding: 10px;
  }

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

  .video-desc {
    font-size: 13px;
  }

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

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

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

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

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

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

.ui-style-0 body { background: #1a1a1a; color: #fff; }
.ui-style-0 .site-header { background: #2a2a2a; }
.ui-style-0 .video-card { background: #2a2a2a; }
.ui-style-0 .detail-info, .ui-style-0 .detail-module { background: #2a2a2a; }

.ui-style-1 body { background: #f8f9fa; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }

.ui-style-2 body { background: #ffffff; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.ui-style-3 body { background: #fafafa; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.ui-style-4 body { background: #f5f5f5; }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .site-header { background: #1f1f1f; }
.ui-style-5 .video-card { background: #1f1f1f; }

.ui-style-6 body { background: #0f1419; color: #fff; }
.ui-style-6 .site-header { background: #172331; }
.ui-style-6 .video-card { background: #172331; }

.ui-style-7 body { background: #0a0e27; color: #fff; }
.ui-style-7 .site-header { background: #141b2d; }
.ui-style-7 .video-card { background: #141b2d; }

.ui-style-8 body { background: #121212; color: #fff; }
.ui-style-8 .site-header { background: #1e1e1e; }
.ui-style-8 .video-card { background: #1e1e1e; }

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

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

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

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

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

.ui-style-14 body { background: #f4f5f7; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
