* {
  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-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb !important;
}

.site-nav a:hover {
  color: #2563eb;
}

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

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

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

.intro-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #2563eb;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 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 {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background: #e0e0e0;
  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: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

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

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

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

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
  min-width: 40px;
  text-align: center;
}

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

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

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

.top-list__item .video-title a:hover {
  color: #2563eb;
}

.video-meta {
  font-size: 0.85rem;
  color: #888;
  margin: 0.25rem 0;
}

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

.video-player {
  max-width: 900px;
  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%);
  background: rgba(37, 99, 235, 0.9);
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.player-play-btn:hover {
  background: rgba(37, 99, 235, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: white;
  font-size: 2rem;
  display: block;
}

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

.detail-header h1 {
  font-size: 2.5rem;
  color: #333;
}

.detail-info, .detail-module {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.detail-module h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2563eb;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  line-height: 1.8;
}

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

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

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

.tag {
  background: #e0e7ff;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .site-nav {
    gap: 1rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }

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

  .site-nav a {
    font-size: 0.9rem;
  }

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

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

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

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

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

  .detail-header h1 {
    font-size: 1.75rem;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

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

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

.ui-style-0 .site-nav a {
  color: #fff;
}

.ui-style-0 .site-nav a:hover {
  color: #ff6b6b;
}

.ui-style-0 .intro-section,
.ui-style-0 .detail-info,
.ui-style-0 .detail-module,
.ui-style-0 .video-card {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-0 .video-title {
  color: #fff;
}

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

.ui-style-1 .nav-logo {
  color: #ff6b6b !important;
}

.ui-style-2 body {
  background: #fafafa;
}

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

.ui-style-3 .nav-logo {
  color: #ee0a24 !important;
}
