* {
  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;
}

body.ui-style-3 {
  --primary-color: #e50914;
  --bg-color: #fff;
  --text-color: #333;
  --card-bg: #fff;
  --hover-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color, #e50914);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__link {
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 14px;
}

.nav__link:hover {
  background: #f0f0f0;
  color: var(--primary-color, #e50914);
}

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

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

.hero__title {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero__desc {
  font-size: 18px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.section {
  margin-bottom: 48px;
}

.section__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

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

.video-card {
  background: var(--card-bg, #fff);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

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

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

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

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

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

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

.video-player {
  max-width: 1000px;
  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%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 32px;
  color: #fff;
  margin-left: 4px;
}

.detail-header {
  max-width: 1000px;
  margin: 0 auto 32px;
}

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

.info-block {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.info-block__title {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
  font-weight: 600;
}

.info-block__content {
  color: #666;
  line-height: 1.8;
}

.info-row {
  display: flex;
  margin-bottom: 12px;
}

.info-label {
  min-width: 80px;
  color: #999;
  font-weight: 500;
}

.info-value {
  color: #333;
}

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

.related-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

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

.page-title {
  font-size: 32px;
  margin-bottom: 16px;
  color: #333;
}

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

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

.layout__side {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  height: fit-content;
}

.layout__main {
  min-width: 0;
}

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

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

.top-list__item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 28px;
  font-weight: 700;
  color: #e50914;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-cover {
  width: 100px;
  height: 140px;
  border-radius: 4px;
  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;
}

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

.top-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #999;
}

.footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 24px 0;
  margin-top: 48px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-color, #e50914);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s;
}

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

.back-top:hover {
  transform: translateY(-4px);
}

.intro-section {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 32px;
  line-height: 1.8;
  color: #666;
}

.intro-section__title {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
  font-weight: 600;
}

.group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color, #e50914);
}

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

@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav__link {
    font-size: 13px;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__desc {
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .video-title {
    font-size: 14px;
    -webkit-line-clamp: 1;
  }

  .video-one-line {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

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

  .top-list__item {
    flex-direction: row;
    gap: 12px;
  }

  .top-cover {
    width: 80px;
    height: 112px;
  }

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

  .detail-title {
    font-size: 24px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}
