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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #000;
}

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

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

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

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #667eea;
}

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

.video-card {
  background: white;
  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.15);
}

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

.video-cover {
  position: relative;
  width: 100%;
  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-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.5rem;
}

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

.detail-page {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-section {
  width: 100%;
  background: #000;
}

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

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

.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;
  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: 2rem;
  color: #333;
  margin-left: 5px;
}

.title-section, .info-section, .detail-module, .related-section {
  padding: 2rem;
  border-bottom: 1px solid #eee;
}

.detail-title {
  font-size: 2rem;
  color: #333;
}

.info-title, .module-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

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

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

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

.module-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

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

.video-card--related {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.list-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #667eea;
}

.page-header h1 {
  font-size: 2rem;
  color: #333;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.top-list__item:hover {
  background: #f9f9f9;
}

.rank-badge {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

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

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

.item-info {
  flex: 1;
}

.item-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.item-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

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

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

.item-desc {
  font-size: 0.875rem;
  color: #666;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #667eea;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s;
}

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

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

.ui-style-0 {
  --primary: #000;
  --secondary: #fff;
  --accent: #ff0050;
}

.ui-style-0 .site-header {
  background: var(--primary);
  border-bottom: 2px solid var(--accent);
}

.ui-style-0 .site-logo a, .ui-style-0 .main-nav a {
  color: var(--secondary);
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #000 0%, #333 100%);
}

.ui-style-1 {
  --primary: #ff6500;
  --bg: #fafafa;
}

.ui-style-1 body {
  background: var(--bg);
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #ff6500 0%, #ff8800 100%);
}

.ui-style-2 {
  --primary: #ff6600;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #ff6600 0%, #ff4400 100%);
}

.ui-style-3 {
  --primary: #ff0000;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.ui-style-4 {
  --primary: #e50914;
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

.ui-style-5 body {
  background: #141414;
  color: #fff;
}

.ui-style-5 .site-header {
  background: #000;
}

.ui-style-5 .site-logo a, .ui-style-5 .main-nav a {
  color: #fff;
}

.ui-style-5 .video-card, .ui-style-5 .intro-section, .ui-style-5 .detail-page, .ui-style-5 .list-page {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-6 body {
  background: #0f1419;
  color: #fff;
}

.ui-style-6 .site-header {
  background: #1a1f29;
}

.ui-style-6 .site-logo a, .ui-style-6 .main-nav a {
  color: #fff;
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
}

.ui-style-7 body {
  background: #0e1621;
  color: #fff;
}

.ui-style-7 .site-header {
  background: #1a2332;
}

.ui-style-7 .site-logo a, .ui-style-7 .main-nav a {
  color: #fff;
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #0088cc 0%, #ffcc00 100%);
}

.ui-style-8 body {
  background: #0d0d0d;
  color: #fff;
}

.ui-style-8 .site-header {
  background: #1a1a1a;
}

.ui-style-8 .site-logo a, .ui-style-8 .main-nav a {
  color: #fff;
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #00c853 0%, #00a043 100%);
}

.ui-style-9 body {
  background: #000;
  color: #fff;
}

.ui-style-9 .site-header {
  background: #0a0a0a;
}

.ui-style-9 .site-logo a, .ui-style-9 .main-nav a {
  color: #fff;
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #222 0%, #000 100%);
}

.ui-style-10 {
  --primary: #00c75a;
}

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

.ui-style-11 {
  --primary: #0099ff;
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%);
}

.ui-style-12 {
  --primary: #ff6700;
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #ff6700 0%, #ff4500 100%);
}

.ui-style-13 {
  --primary: #00a1d6;
  --secondary: #fb7299;
}

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

.ui-style-14 {
  --primary: #1e3a8a;
}

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

@media (max-width: 768px) {
  .main-nav {
    gap: 0.75rem;
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: nowrap;
  }

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

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

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

  .title-section, .info-section, .detail-module, .related-section {
    padding: 1rem;
  }

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

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