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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-0 { --primary: #000; --accent: #ff0050; --bg: #000; --text: #fff; }
.ui-style-1 { --primary: #1a1a1a; --accent: #ff4500; --bg: #1a1a1a; --text: #fff; }
.ui-style-2 { --primary: #fff; --accent: #ff6b35; --bg: #fff; --text: #333; }
.ui-style-3 { --primary: #fff; --accent: #ff2d55; --bg: #fff; --text: #333; }
.ui-style-4 { --primary: #fff; --accent: #e50914; --bg: #fff; --text: #222; }
.ui-style-5 { --primary: #141414; --accent: #e50914; --bg: #141414; --text: #fff; }
.ui-style-6 { --primary: #0f1b2e; --accent: #1e90ff; --bg: #0f1b2e; --text: #fff; }
.ui-style-7 { --primary: #001d3d; --accent: #ffd700; --bg: #001d3d; --text: #fff; }
.ui-style-8 { --primary: #1a1a1a; --accent: #00c851; --bg: #1a1a1a; --text: #fff; }
.ui-style-9 { --primary: #000; --accent: #fff; --bg: #000; --text: #fff; }
.ui-style-10 { --primary: #fff; --accent: #00c75a; --bg: #fff; --text: #333; }
.ui-style-11 { --primary: #fff; --accent: #0099ff; --bg: #fff; --text: #333; }
.ui-style-12 { --primary: #fff; --accent: #ff6700; --bg: #fff; --text: #333; }
.ui-style-13 { --primary: #fff; --accent: #00a1d6; --bg: #fff; --text: #333; }
.ui-style-14 { --primary: #fff; --accent: #003d7a; --bg: #fff; --text: #333; }

.main-nav {
  background: var(--primary, #fff);
  color: var(--text, #333);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent, #ff4500);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-links a {
  color: var(--text, #333);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent, #ff4500);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.hero-section {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary, #fff) 0%, var(--accent, #ff4500) 100%);
  color: var(--text, #fff);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.content-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary, #333);
  border-left: 4px solid var(--accent, #ff4500);
  padding-left: 1rem;
}

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

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

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #eee;
}

.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;
  line-height: 1.4;
}

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

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #999;
}

.video-meta span {
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

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

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary, #333);
}

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

.page--top .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.rank-badge {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent, #ff4500);
  min-width: 40px;
  text-align: center;
}

.top-list-item .video-cover {
  width: 120px;
  flex-shrink: 0;
  padding-top: 0;
  height: 80px;
}

.top-list-item .video-cover img {
  position: static;
  width: 100%;
  height: 100%;
}

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

.page--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: 100px;
}

.layout__side--filters h3 {
  margin-bottom: 1rem;
  color: var(--primary, #333);
}

.filter-group p {
  color: #666;
  font-size: 0.9rem;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary, #333);
  border-left: 4px solid var(--accent, #ff4500);
  padding-left: 1rem;
}

.detail-page {
  max-width: 1000px;
}

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  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: var(--accent, #ff4500);
}

.detail-header {
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  color: var(--primary, #333);
}

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

.detail-info h2, .detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary, #333);
  border-left: 4px solid var(--accent, #ff4500);
  padding-left: 1rem;
}

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

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

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

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

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

.tag {
  background: var(--accent, #ff4500);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

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

.site-footer {
  background: var(--primary, #333);
  color: var(--text, #fff);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.site-footer p {
  color: rgba(255,255,255,0.7);
}

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

  .site-logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

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

  .hero-desc {
    font-size: 0.95rem;
  }

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

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

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

  .layout__side--filters {
    position: static;
  }

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

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

  .detail-info, .detail-module {
    padding: 1.5rem;
  }
}
