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

.ui-style-12 {
  --primary-color: #e50914;
  --secondary-color: #564d4d;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
}

.site-header {
  background: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  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;
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.main-content {
  min-height: calc(100vh - 200px);
}

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

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.site-intro {
  background: var(--card-bg);
  padding: 2rem 1rem;
}

.site-intro p {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.8;
  color: #666;
}

.video-section {
  margin: 2rem 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--card-bg);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.page-desc {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.top-item {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  align-items: center;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.top-cover {
  width: 80px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 0.5rem;
}

.top-info a {
  color: var(--text-color);
  text-decoration: none;
}

.top-info a:hover {
  color: var(--primary-color);
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

.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;
  background: rgba(229, 9, 20, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

.detail-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.detail-info, .detail-module, .related-section {
  background: var(--card-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.detail-info h2, .detail-module h2, .related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.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: var(--text-color);
}

.detail-module p {
  line-height: 1.8;
  color: #666;
}

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

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--bg-color);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}

.site-footer {
  background: var(--card-bg);
  padding: 2rem 1rem;
  text-align: center;
  color: #666;
  margin-top: 3rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

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

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

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

  .video-info {
    padding: 0.8rem;
  }

  .video-title {
    font-size: 0.9rem;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

  .top-rank {
    margin-bottom: 0.5rem;
  }

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