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

:root {
  --primary-color: #ff0050;
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: #1a1a1a;
  --hover-color: #2a2a2a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

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

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

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

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.hero-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.site-intro {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 60px;
  line-height: 1.8;
}

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

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

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

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

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

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

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

.video-one-line {
  font-size: 14px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

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

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

.page-desc {
  color: #aaa;
  font-size: 16px;
  line-height: 1.8;
}

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

.video-player {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.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: 80px;
  height: 80px;
  border: none;
  background: var(--primary-color);
  border-radius: 50%;
  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 rgba(255, 0, 80, 0.5);
}

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

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

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

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

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

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

.info-label {
  color: #888;
  min-width: 60px;
}

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

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

.content-block p {
  line-height: 1.8;
  color: #ccc;
}

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

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

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

.related-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.video-card--related {
  background: var(--card-bg);
}

.page--grid .video-grid {
  margin-top: 30px;
}

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

.top-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(10px);
  background: var(--hover-color);
}

.top-rank {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 50px;
}

.top-cover {
  width: 120px;
  height: 68px;
  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-desc {
  font-size: 14px;
  color: #aaa;
}

footer {
  background: var(--card-bg);
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid #333;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

  .hero-section h1 {
    font-size: 24px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }
}
