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

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

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

.ui-style-0 .main-nav {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.ui-style-0 .video-card {
  background: #1a1a1a;
  border: 1px solid #333;
}

.ui-style-0 .video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.ui-style-0 .main-footer {
  background: #1a1a1a;
  color: #999;
}

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

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
  text-decoration: none;
  white-space: nowrap;
}

.ui-style-0 .logo {
  color: #00e676;
}

.nav-links {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  overflow: visible;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  padding: 8px 12px;
  transition: color 0.3s;
}

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

.nav-links a:hover {
  color: #ff6b6b;
}

.ui-style-0 .nav-links a:hover {
  color: #00e676;
}

.home-main,
.list-main,
.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.ui-style-0 .site-intro {
  background: #1a1a1a;
  border: 1px solid #333;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.ui-style-0 .site-intro p {
  color: #ccc;
}

.video-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #333;
  border-left: 4px solid #ff6b6b;
  padding-left: 16px;
}

.ui-style-0 .section-title {
  color: #fff;
  border-left-color: #00e676;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px 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: #e0e0e0;
}

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.ui-style-0 .video-one-line {
  color: #999;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
  color: #333;
}

.ui-style-0 .page-header h1 {
  color: #fff;
}

.page-header p {
  font-size: 16px;
  color: #666;
}

.ui-style-0 .page-header p {
  color: #999;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.layout__side--filters {
  background: white;
  padding: 24px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.ui-style-0 .layout__side--filters {
  background: #1a1a1a;
  border: 1px solid #333;
}

.layout__side--filters h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

.ui-style-0 .layout__side--filters h2 {
  color: #fff;
}

.layout__side--filters p {
  font-size: 14px;
  color: #666;
}

.ui-style-0 .layout__side--filters p {
  color: #999;
}

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

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

.ui-style-0 .top-item {
  background: #1a1a1a;
  border: 1px solid #333;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b6b;
  min-width: 50px;
  text-align: center;
}

.ui-style-0 .top-rank {
  color: #00e676;
}

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

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

.top-item .video-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

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

.ui-style-0 .top-item .video-info h3 a {
  color: #fff;
}

.top-item .video-info p {
  font-size: 14px;
  color: #666;
}

.ui-style-0 .top-item .video-info p {
  color: #999;
}

.page--grouped .group {
  margin-bottom: 60px;
}

.group__title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #333;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 12px;
}

.ui-style-0 .group__title {
  color: #fff;
  border-bottom-color: #00e676;
}

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

.video-player-section {
  margin-bottom: 40px;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 107, 107, 0.9);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: all 0.3s;
}

.ui-style-0 .player-play-btn {
  background: rgba(0, 230, 118, 0.9);
}

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

.ui-style-0 .player-play-btn:hover {
  background: rgba(0, 230, 118, 1);
}

.player-play-icon {
  font-size: 32px;
  color: white;
  line-height: 1;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-header h1 {
  font-size: 36px;
  color: #333;
  line-height: 1.4;
}

.ui-style-0 .detail-header h1 {
  color: #fff;
}

.detail-info {
  background: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ui-style-0 .detail-info {
  background: #1a1a1a;
  border: 1px solid #333;
}

.detail-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.ui-style-0 .detail-info h2 {
  color: #fff;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 16px;
}

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

.ui-style-0 .info-list dt {
  color: #999;
}

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

.ui-style-0 .info-list dd {
  color: #ccc;
}

.detail-module {
  background: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ui-style-0 .detail-module {
  background: #1a1a1a;
  border: 1px solid #333;
}

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #ff6b6b;
  padding-left: 16px;
}

.ui-style-0 .detail-module h2 {
  color: #fff;
  border-left-color: #00e676;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.ui-style-0 .detail-module p {
  color: #ccc;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.ui-style-0 .tag {
  background: #2a2a2a;
  color: #999;
}

.related-section .video-card--related {
  background: white;
}

.ui-style-0 .related-section .video-card--related {
  background: #1a1a1a;
  border: 1px solid #333;
}

.main-footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 32px 20px;
  margin-top: 60px;
}

.main-footer p {
  font-size: 14px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 16px;
  }

  .video-one-line {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

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

  .layout__side--filters {
    position: static;
  }

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

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

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

  .detail-info,
  .detail-module {
    padding: 20px;
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    font-size: 14px;
  }
}
