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

body.ui-style-0 {
  --primary-color: #ff0050;
  --bg-main: #000;
  --bg-card: #1a1a1a;
  --text-primary: #fff;
  --text-secondary: #999;
  --border-radius: 16px;
}

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

header {
  background: rgba(0, 0, 0, 0.95);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

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

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

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

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

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

.hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.8;
}

section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
}

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

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

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 0, 80, 0.3);
}

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

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

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

.video-info {
  padding: 20px;
}

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

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

.video-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

.info-block {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.info-block h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

.info-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--text-secondary);
}

.content-module {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.content-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 0, 80, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

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

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

.page-header {
  padding: 40px 0;
  border-bottom: 1px solid #333;
}

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

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

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

.top-list__item {
  counter-increment: top-counter;
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  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(--primary-color);
  min-width: 60px;
  text-align: center;
}

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

.top-list__cover {
  width: 100px;
  height: 140px;
  border-radius: 8px;
  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: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

footer {
  background: #0a0a0a;
  padding: 40px 0;
  margin-top: 80px;
  border-top: 1px solid #222;
  text-align: center;
  color: var(--text-secondary);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

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

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

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

  .hero h1 {
    font-size: 28px;
  }

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

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

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

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

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

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .top-list__rank {
    font-size: 24px;
  }

  .top-list__cover {
    width: 80px;
    height: 110px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

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

  .video-info {
    padding: 12px;
  }

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

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