:root {
  --spacing-unit: 8px;
  --container-max-width: 1200px;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

* {
  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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2);
}

.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;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.site-nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: #000;
}

.main-content {
  flex: 1;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: calc(var(--spacing-unit) * 8) 0;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-weight: 600;
}

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

.site-intro {
  padding: calc(var(--spacing-unit) * 6) 0;
  background: #f8f9fa;
}

.site-intro p {
  text-align: center;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.video-section {
  padding: calc(var(--spacing-unit) * 6) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
  font-size: 28px;
  font-weight: 600;
}

.section-more {
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

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

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

.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: white;
  font-size: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.video-info {
  padding: calc(var(--spacing-unit) * 2);
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: calc(var(--spacing-unit));
}

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

.page-content {
  padding: calc(var(--spacing-unit) * 6) 0;
}

.page-header {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.page-desc {
  color: #666;
  line-height: 1.8;
}

.page--with-sidebar .container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing-unit) * 4);
}

.layout__side--filters {
  background: #f8f9fa;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h2 {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.filter-section {
  margin-top: calc(var(--spacing-unit) * 2);
}

.filter-section h3 {
  font-size: 16px;
  margin-bottom: calc(var(--spacing-unit));
}

.filter-section p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

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

.top-item {
  display: grid;
  grid-template-columns: 60px 160px 1fr;
  gap: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 3);
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
  text-align: center;
}

.top-cover {
  width: 160px;
  height: 90px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit));
}

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

.top-title a:hover {
  color: #667eea;
}

.top-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: calc(var(--spacing-unit));
}

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

.group {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.group-title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid #667eea;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.detail-page {
  background: #f8f9fa;
}

.video-player-section {
  padding: calc(var(--spacing-unit) * 4) 0;
  background: #000;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--border-radius);
  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;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  padding: calc(var(--spacing-unit) * 4) 0;
  background: white;
}

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

.detail-info,
.detail-module,
.detail-related {
  padding: calc(var(--spacing-unit) * 4) 0;
  background: white;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.detail-info h2,
.detail-module h2,
.detail-related h2 {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: calc(var(--spacing-unit) * 2);
  max-width: 800px;
}

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

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

.detail-module p {
  line-height: 1.8;
  color: #666;
  max-width: 800px;
}

.tags-container {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.tag {
  display: inline-block;
  background: #e9ecef;
  padding: calc(var(--spacing-unit) / 2) calc(var(--spacing-unit) * 1.5);
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
  margin-right: calc(var(--spacing-unit));
  margin-bottom: calc(var(--spacing-unit));
}

.site-footer {
  background: #333;
  color: white;
  padding: calc(var(--spacing-unit) * 4) 0;
  text-align: center;
  margin-top: auto;
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 4);
  right: calc(var(--spacing-unit) * 4);
  width: 48px;
  height: 48px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .site-nav {
    gap: calc(var(--spacing-unit) * 2);
    font-size: 14px;
  }

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

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
  }

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

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    grid-template-columns: 40px 1fr;
  }

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

  .top-rank {
    font-size: 24px;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: calc(var(--spacing-unit));
    font-size: 14px;
  }
}

.ui-style-0 body {
  background: #000;
  color: #fff;
}
.ui-style-0 .site-header {
  background: #111;
  border-bottom: 1px solid #333;
}
.ui-style-0 .site-logo a,
.ui-style-0 .site-nav a {
  color: #fff;
}
.ui-style-0 .video-card,
.ui-style-0 .detail-info,
.ui-style-0 .detail-module,
.ui-style-0 .detail-related,
.ui-style-0 .detail-header {
  background: #1a1a1a;
  color: #fff;
}

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

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

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

.ui-style-4 body {
  background: #f5f5f5;
}
.ui-style-4 .site-header {
  background: #fff;
}
.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

.ui-style-5 body {
  background: #141414;
  color: #fff;
}
.ui-style-5 .site-header {
  background: #1f1f1f;
}
.ui-style-5 .site-logo a,
.ui-style-5 .site-nav a {
  color: #fff;
}
.ui-style-5 .video-card,
.ui-style-5 .detail-info,
.ui-style-5 .detail-module,
.ui-style-5 .detail-related,
.ui-style-5 .detail-header {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-6 body {
  background: #0a1929;
  color: #fff;
}
.ui-style-6 .site-header {
  background: #132f4c;
}
.ui-style-6 .site-logo a,
.ui-style-6 .site-nav a {
  color: #fff;
}
.ui-style-6 .video-card,
.ui-style-6 .detail-info,
.ui-style-6 .detail-module,
.ui-style-6 .detail-related,
.ui-style-6 .detail-header {
  background: #132f4c;
  color: #fff;
}

.ui-style-7 body {
  background: #1a1a2e;
  color: #fff;
}
.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.ui-style-8 body {
  background: #0d1117;
  color: #fff;
}
.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.ui-style-9 body {
  background: #000;
  color: #fff;
}
.ui-style-9 .site-header {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
}

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

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

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

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

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