* {
  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 4px 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: #1a1a1a;
}

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

.main-nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e3f2fd;
  color: #1976d2;
}

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

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

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

.site-intro h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

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

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

.video-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

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

.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.2);
}

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

.video-cover {
  position: relative;
  padding-top: 56.25%;
  background: #e0e0e0;
  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;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  padding: 40px 0 20px;
}

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

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

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

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

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

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

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #1976d2;
}

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

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

.group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1976d2;
}

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

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

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

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

.player-play-btn:hover {
  background: #fff;
}

.detail-header {
  padding: 30px 0 20px;
}

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

.detail-info,
.detail-module,
.related-section {
  background: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1976d2;
}

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

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

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

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

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

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

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

  .main-nav a {
    padding: 6px 8px;
  }

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

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

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

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

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

  .layout__side--filters {
    order: -1;
  }

  .top-item {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

.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 .hero { background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%); }
.ui-style-2 body { background: #fafafa; }
.ui-style-3 .main-nav a:hover { background: #ffebee; color: #d32f2f; }
.ui-style-4 .hero { background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%); }
.ui-style-5 body { background: #121212; color: #e0e0e0; }
.ui-style-5 .site-header { background: #1e1e1e; }
.ui-style-6 .hero { background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%); }
.ui-style-7 .hero { background: linear-gradient(135deg, #1e88e5 0%, #ffc107 100%); }
.ui-style-8 .hero { background: linear-gradient(135deg, #00897b 0%, #4caf50 100%); }
.ui-style-9 body { background: #0a0a0a; }
.ui-style-9 .site-header { background: #151515; }
.ui-style-10 .hero { background: linear-gradient(135deg, #00C75A 0%, #26de81 100%); }
.ui-style-11 .hero { background: linear-gradient(135deg, #0099FF 0%, #42a5f5 100%); }
.ui-style-12 .hero { background: linear-gradient(135deg, #FF6700 0%, #ff8a50 100%); }
.ui-style-13 .hero { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }
.ui-style-14 body { background: #f8f9fa; }
.ui-style-14 .hero { background: linear-gradient(135deg, #1a237e 0%, #ff5722 100%); }
