* {
  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: #fff;
  background: #0a0a0a;
}

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

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

.site-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-logo a {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: visible;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
}

.site-main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
  border-radius: 16px;
  margin-bottom: 60px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  text-align: center;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

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

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify;
}

.featured-section,
.ranking-section,
.latest-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.video-card {
  background: rgba(26, 26, 26, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #1a1a1a;
}

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

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

.video-info {
  padding: 20px;
}

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

.video-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  min-width: 60px;
  text-align: center;
}

.top-item:nth-child(1) .top-rank {
  color: #ffd700;
}

.top-item:nth-child(2) .top-rank {
  color: #c0c0c0;
}

.top-item:nth-child(3) .top-rank {
  color: #cd7f32;
}

.top-item__link {
  flex: 1;
  display: flex;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

.top-cover {
  width: 160px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.top-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.top-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

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

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

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

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

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

.video-main-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}

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

.module-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  background: rgba(26, 26, 26, 0.6);
  padding: 24px;
  border-radius: 12px;
}

.info-item {
  display: flex;
  gap: 8px;
}

.info-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.info-value {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
}

.detail-module {
  margin-bottom: 40px;
}

.module-content {
  background: rgba(26, 26, 26, 0.6);
  padding: 24px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.module-content p {
  margin-bottom: 12px;
}

.module-content p:last-child {
  margin-bottom: 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.video-card--related {
  background: rgba(26, 26, 26, 0.5);
}

.site-footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
  margin-top: 80px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

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

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

  .site-nav {
    width: 100%;
    overflow-x: visible;
    gap: 16px;
    font-size: 14px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .page-title {
    font-size: 28px;
  }

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

  .top-item__link {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
    height: 180px;
  }

  .video-main-title {
    font-size: 28px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .site-logo a {
    font-size: 24px;
  }

  .hero-section {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 20px;
  }

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

  .video-info {
    padding: 16px;
  }

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