:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --accent-color: #FFD700;
  --text-primary: #fff;
  --text-secondary: #aaa;
  --bg-primary: #000;
  --bg-secondary: #1a1a1a;
  --border-color: #333;
}

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

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

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

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

header {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: 2px;
  white-space: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

nav a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--accent-color);
}

.site-intro {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  line-height: 1.8;
  font-size: 16px;
}

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

.video-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

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

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

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

.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.1);
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 60px 0 30px;
  padding-left: 20px;
  border-left: 5px solid var(--accent-color);
  color: var(--accent-color);
}

.video-player-section {
  padding: 40px 20px;
  background: #000;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent-color);
}

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

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

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

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.detail-info {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.detail-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

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

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

.info-label {
  font-weight: 600;
  color: var(--accent-color);
  min-width: 70px;
}

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

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

.detail-section p {
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.related-videos {
  padding: 40px 20px;
}

.related-videos h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--accent-color);
  padding-left: 20px;
  border-left: 5px solid var(--accent-color);
}

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

.page-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

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

.top-list__items {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.top-list__item:hover {
  transform: translateX(10px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

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

.top-cover {
  width: 120px;
  height: 168px;
  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: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.top-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group {
  margin-bottom: 60px;
}

.group h3 {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--accent-color);
  padding-left: 20px;
  border-left: 5px solid var(--accent-color);
}

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 60px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.back-to-top.show {
  display: flex;
}

@media (max-width: 768px) {
  nav ul {
    gap: 4px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .logo {
    font-size: 22px;
  }

  h1 {
    font-size: 28px;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .top-rank {
    font-size: 28px;
  }

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

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

  .detail-header h1 {
    font-size: 26px;
  }

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

.layout__side {
  width: 250px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.layout__main {
  flex: 1;
}

.page--with-sidebar {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 968px) {
  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
  }
}
