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

:root {
  --bg-primary: #000;
  --bg-secondary: #1a1a1a;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --accent: #ff0050;
  --border: #333;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body.ui-style-0 {
  --bg-primary: #000;
  --bg-secondary: #1a1a1a;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --accent: #00f5ff;
}

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

header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

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

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

.site-nav {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent);
}

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

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  max-width: 900px;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-primary);
  overflow: hidden;
}

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.play-icon {
  font-size: 48px;
  color: var(--accent);
}

.video-info {
  padding: 20px;
}

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

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.video-player {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px var(--accent);
}

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

.detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 30px;
}

.detail-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

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

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

.info-label {
  color: var(--text-secondary);
  min-width: 70px;
}

.info-value {
  color: var(--text-primary);
}

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

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

.site-intro {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 50px;
  border-left: 4px solid var(--accent);
}

.site-intro p {
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.module-title {
  font-size: 28px;
  color: var(--accent);
}

.module-more {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.module-more:hover {
  color: var(--accent);
}

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

.top-list__item {
  counter-increment: top-counter;
  display: flex;
  gap: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  align-items: center;
  transition: transform 0.3s;
}

.top-list__item:hover {
  transform: translateX(10px);
}

.top-list__rank {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
}

.top-list__rank::before {
  content: counter(top-counter);
}

.top-list__cover {
  width: 120px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-list__info {
  flex: 1;
}

.top-list__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-list__desc {
  font-size: 14px;
  color: var(--text-secondary);
}

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--accent);
}

@media (max-width: 768px) {
  .site-nav {
    gap: 15px;
    font-size: 14px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .detail-section {
    padding: 20px;
  }
}
