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

.site-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: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1890ff;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 200px);
}

.hero-section {
  text-align: center;
  padding: 3rem 0;
}

.main-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1890ff;
}

.site-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1890ff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.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: #ddd;
  overflow: hidden;
}

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 0.875rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-desc {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.top-list__items {
  list-style: none;
  counter-reset: rank;
}

.top-list__item {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-badge {
  counter-increment: rank;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1890ff;
  min-width: 40px;
  text-align: center;
}

.top-item-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

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

.top-item-info {
  flex: 1;
}

.top-item-info h3 {
  margin-bottom: 0.5rem;
}

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

.top-item-info a:hover {
  color: #1890ff;
}

.video-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.group {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1890ff;
}

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

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

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

.video-player-section {
  margin-bottom: 2rem;
}

.video-player {
  max-width: 100%;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  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;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 2rem;
  color: #333;
}

.video-header {
  text-align: center;
  margin-bottom: 2rem;
}

.video-header h1 {
  font-size: 2rem;
}

.video-info-section,
.detail-module {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

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

.detail-module h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1890ff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
  color: #666;
}

.related-section {
  margin-top: 3rem;
}

.related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1890ff;
}

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

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }

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

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

  .main-title {
    font-size: 1.5rem;
  }

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

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

  .top-item-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  main {
    padding: 0 1rem;
  }
}

.ui-style-0 body { --primary: #1890ff; --secondary: #ff4d4f; }
.ui-style-1 body { --primary: #ff6700; --secondary: #ff4d4f; }
.ui-style-2 body { --primary: #1890ff; --secondary: #ff6700; }
.ui-style-3 body { --primary: #ff4757; --secondary: #1890ff; }
.ui-style-4 body { --primary: #f5222d; --secondary: #1890ff; }
.ui-style-5 body { --primary: #1890ff; --secondary: #f5222d; }
.ui-style-6 body { --primary: #1890ff; --secondary: #52c41a; }
.ui-style-7 body { --primary: #faad14; --secondary: #1890ff; }
.ui-style-8 body { --primary: #52c41a; --secondary: #1890ff; }
.ui-style-9 body { --primary: #1890ff; --secondary: #722ed1; }
.ui-style-10 body { --primary: #00C75A; --secondary: #1890ff; }
.ui-style-11 body { --primary: #0099FF; --secondary: #ff6700; }
.ui-style-12 body { --primary: #FF6700; --secondary: #ff4d4f; }
.ui-style-13 body { --primary: #00A1D6; --secondary: #FB7299; }
.ui-style-14 body { --primary: #1890ff; --secondary: #ff6700; }

.ui-style-0 .main-title,
.ui-style-0 .section-title,
.ui-style-0 .nav-links a.active { color: var(--primary); }
