:root {
  --primary-color: #e50914;
  --bg-dark: #141414;
  --bg-light: #ffffff;
  --text-dark: #333;
  --text-light: #fff;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  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: var(--text-dark);
  background: var(--bg-light);
}

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

.main-nav {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.site-logo {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links li a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

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

.hero-desc {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

.intro-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.content-section {
  padding: 60px 20px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

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

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px 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: #f0f0f0;
}

.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: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

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

.video-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #888;
}

.meta-item {
  background: #f0f0f0;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.list-page {
  padding: 40px 20px;
  min-height: 80vh;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.page-desc {
  font-size: 1.1rem;
  color: #666;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.layout__side {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.top-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.top-list__item {
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 1.5rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  align-items: center;
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
}

.top-cover {
  position: relative;
  width: 200px;
  height: 112px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

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

.top-desc {
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.top-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #888;
}

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

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.detail-page {
  padding-bottom: 60px;
}

.video-player-section {
  background: #000;
  padding: 40px 0;
}

.video-player {
  max-width: 1000px;
  margin: 0 auto;
}

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(229, 9, 20, 0.9);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.player-play-icon {
  margin-left: 5px;
}

.detail-header {
  padding: 40px 0 20px;
}

.detail-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.detail-info {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

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

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 1rem;
}

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

.info-list dd {
  color: var(--text-dark);
}

.detail-module {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.module-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.module-content p {
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.related-section {
  margin-top: 3rem;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: #c00813;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
  }

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

  .nav-links {
    gap: 0.2rem;
  }

  .nav-links li a {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

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

  .hero-desc {
    font-size: 1rem;
  }

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

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

  .video-info {
    padding: 0.8rem;
  }

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

  .video-one-line {
    font-size: 0.85rem;
  }

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

  .layout__side {
    position: static;
  }

  .top-list__item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }

  .top-cover {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

  .top-rank {
    font-size: 1.5rem;
  }

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

  .player-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

.ui-style-0 {
  --primary-color: #fe2c55;
  --bg-dark: #000000;
}

.ui-style-1 {
  --primary-color: #ff6700;
  --bg-dark: #1a1a1a;
}

.ui-style-2 {
  --primary-color: #fc4d50;
}

.ui-style-3 {
  --primary-color: #e60012;
}

.ui-style-4 {
  --primary-color: #e50914;
}

.ui-style-5 {
  --primary-color: #e50914;
  --bg-dark: #0f0f0f;
}

.ui-style-6 {
  --primary-color: #0063e5;
  --bg-dark: #1a1d29;
}

.ui-style-7 {
  --primary-color: #f6c700;
  --bg-dark: #0f1419;
}

.ui-style-8 {
  --primary-color: #1ed760;
  --bg-dark: #191414;
}

.ui-style-9 {
  --primary-color: #e5e5e5;
  --bg-dark: #000000;
}

.ui-style-10 {
  --primary-color: #00c75a;
}

.ui-style-11 {
  --primary-color: #0099ff;
}

.ui-style-12 {
  --primary-color: #ff6700;
}

.ui-style-13 {
  --primary-color: #00a1d6;
}

.ui-style-14 {
  --primary-color: #003399;
}

.ui-style-0 .hero-section,
.ui-style-1 .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
}

.ui-style-2 .hero-section,
.ui-style-3 .hero-section,
.ui-style-4 .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c41e3a 100%);
}

.ui-style-5 .hero-section,
.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #141414 0%, var(--primary-color) 100%);
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #0063e5 0%, #1a1d29 100%);
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #0f1419 0%, #f6c700 100%);
}

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

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00c75a 0%, #00ffa3 100%);
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099ff 0%, #66d9ff 100%);
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #ff6700 0%, #ff8533 100%);
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #00a1d6 0%, #fb7299 100%);
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #003399 0%, #0055cc 100%);
}
