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

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

body.ui-style-0 {
  background: #1a1a1a;
  color: #ffffff;
}

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

body.ui-style-0 header {
  background: #000;
  border-bottom: 1px solid #333;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #d32f2f;
  text-decoration: none;
}

body.ui-style-0 .logo {
  color: #e50914;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

nav a:hover {
  color: #d32f2f;
}

body.ui-style-0 nav a {
  color: #bbb;
}

body.ui-style-0 nav a:hover {
  color: #e50914;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

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

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

.hero-section h1 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-section p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.filter-bar {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

body.ui-style-0 .filter-bar {
  background: #1a1a1a;
  border: 1px solid #333;
}

.filter-bar span {
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

body.ui-style-0 .filter-bar span {
  background: #333;
  color: #fff;
}

.filter-bar span:hover {
  background: #d32f2f;
  color: white;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

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

.video-cover {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: #e0e0e0;
}

body.ui-style-0 .video-cover {
  background: #333;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

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

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

.video-player {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.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;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 32px;
  color: #d32f2f;
}

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

.detail-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

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

.detail-section h1 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #333;
}

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

.detail-section h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: #333;
  border-left: 4px solid #d32f2f;
  padding-left: 16px;
}

body.ui-style-0 .detail-section h2 {
  color: #fff;
  border-left-color: #e50914;
}

.detail-section p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #555;
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-item {
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
}

body.ui-style-0 .info-item {
  background: #222;
}

.info-label {
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
  font-size: 14px;
}

body.ui-style-0 .info-label {
  color: #999;
}

.info-value {
  color: #333;
  font-size: 15px;
}

body.ui-style-0 .info-value {
  color: #fff;
}

.related-section {
  margin-top: 48px;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
}

body.ui-style-0 .related-section h2 {
  color: #fff;
}

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

.top-list__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
  align-items: center;
  transition: all 0.3s;
}

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

.top-list__item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 24px;
  font-weight: 700;
  color: #d32f2f;
  min-width: 40px;
  text-align: center;
}

.top-cover {
  width: 80px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

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

.top-desc {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.ui-style-0 .top-desc {
  color: #999;
}

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

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

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

.page-header p {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

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

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 24px;
  margin-top: 48px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a {
  padding: 8px 16px;
  background: white;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

body.ui-style-0 .pagination a {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

.pagination a:hover {
  background: #d32f2f;
  color: white;
}

.section-module {
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #333;
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    padding: 0 8px;
  }

  nav a {
    font-size: 14px;
  }

  .hero-section {
    padding: 32px 20px;
  }

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

  .hero-section p {
    font-size: 15px;
  }

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

  .video-cover {
    aspect-ratio: 3/4;
  }

  .detail-section {
    padding: 20px;
  }

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

  .detail-section h2 {
    font-size: 20px;
  }

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

  .top-rank {
    font-size: 20px;
    min-width: 30px;
  }

  .top-cover {
    width: 60px;
    height: 82px;
  }
}
