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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #000;
}

.ui-style-0 {
  --primary-color: #ff0050;
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: #1a1a1a;
  --border-radius: 12px;
}

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

.site-header {
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 2px;
}

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

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  padding: 5px 0;
}

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

.site-main {
  min-height: calc(100vh - 200px);
  color: var(--text-color);
}

.hero-section {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
}

.hero-title {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.4;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.site-intro {
  padding: 40px 0;
  background: var(--card-bg);
}

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

.video-section {
  padding: 50px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

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

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

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

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

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

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

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

.video-info {
  padding: 15px;
}

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

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

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

.site-footer {
  background: var(--card-bg);
  padding: 30px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
}

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

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

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

.video-player {
  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, 0, 80, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

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

.detail-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

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

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

.info-label {
  color: rgba(255, 255, 255, 0.6);
  min-width: 60px;
}

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

.detail-text {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  white-space: pre-wrap;
}

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

.video-card--related {
  background: rgba(255, 255, 255, 0.05);
}

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
}

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

.page-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin: 0 auto;
}

.page-content {
  padding: 50px 0;
}

.filter-bar {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.top-list__items .video-card {
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
}

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

.page--grouped .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 28px;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

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

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

.layout__side--filters {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius);
  position: sticky;
  top: 80px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 8px 15px;
  background: var(--card-bg);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.pagination a:hover {
  background: var(--primary-color);
}

.pagination .current {
  background: var(--primary-color);
}

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

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

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

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

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-list__items .video-card {
    grid-template-columns: 40px 1fr;
    padding: 15px;
  }

  .top-list__items .video-cover {
    display: none;
  }

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