:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

footer {
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 32px;
  margin: 0;
  line-height: 1.4;
}

.site-intro {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.site-intro h2 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 24px;
}

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

.hot-section,
.nav-section,
.latest-section,
.list-page {
  margin-bottom: 50px;
}

.hot-section h2,
.nav-section h2,
.latest-section h2,
.list-page h1 {
  color: var(--secondary-color);
  font-size: 28px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
}

.list-intro {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

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

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.video-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.video-card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 18px;
}

.video-card h3 a {
  color: var(--secondary-color);
  transition: color 0.3s;
}

.video-card h3 a:hover {
  color: var(--primary-color);
}

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

.video-desc {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 15px;
}

.video-tags {
  color: var(--primary-color);
  font-size: 13px;
  margin-top: 10px;
}

.rank-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.nav-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.nav-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.nav-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 20px;
}

.nav-card h3 a {
  color: var(--primary-color);
}

.nav-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.video-list-compact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-item-compact {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.video-item-compact:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(5px);
}

.video-item-compact h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
}

.video-item-compact h3 a {
  color: var(--secondary-color);
}

.video-item-compact h3 a:hover {
  color: var(--primary-color);
}

.video-year {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
  min-width: 45px;
}

.video-item-compact p {
  flex: 2;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.more-link {
  text-align: center;
  margin-top: 25px;
}

.more-link a {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
}

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

.detail-page {
  margin-top: 30px;
}

.video-detail {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-title {
  color: var(--secondary-color);
  font-size: 32px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.video-detail section {
  margin-bottom: 35px;
}

.video-detail h2 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.6;
}

.info-list li:last-child {
  border-bottom: none;
}

.one-line {
  font-size: 18px;
  color: var(--accent-color);
  line-height: 1.8;
  font-style: italic;
  padding: 15px 20px;
  background: #fff5f5;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

.summary-text,
.review-text {
  line-height: 1.8;
  color: var(--text-color);
  font-size: 16px;
  text-indent: 2em;
}

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

.related-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.related-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.related-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.related-item h3 a {
  color: var(--secondary-color);
}

.related-item h3 a:hover {
  color: var(--primary-color);
}

.related-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .hero {
    padding: 40px 20px;
  }

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

  .site-intro {
    padding: 20px;
  }

  .video-detail {
    padding: 25px 20px;
  }

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

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

  .nav-cards {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .video-item-compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-item-compact h3,
  .video-item-compact p {
    flex: none;
    width: 100%;
  }
}

body.ui-style-1 {
  --primary-color: #3498db;
  --accent-color: #e74c3c;
}

body.ui-style-2 {
  --primary-color: #2ecc71;
  --accent-color: #e67e22;
}

body.ui-style-3 {
  --primary-color: #9b59b6;
  --accent-color: #f39c12;
}

body.ui-style-4 {
  --primary-color: #1abc9c;
  --accent-color: #e74c3c;
}

body.ui-style-5 {
  --primary-color: #34495e;
  --accent-color: #e74c3c;
}

body.ui-style-6 {
  --primary-color: #16a085;
  --accent-color: #c0392b;
}

body.ui-style-7 {
  --primary-color: #27ae60;
  --accent-color: #d35400;
}

body.ui-style-8 {
  --primary-color: #2980b9;
  --accent-color: #c0392b;
}

body.ui-style-9 {
  --primary-color: #8e44ad;
  --accent-color: #e67e22;
}

body.ui-style-10 {
  --primary-color: #2c3e50;
  --accent-color: #e74c3c;
}

body.ui-style-11 {
  --primary-color: #16a085;
  --accent-color: #f39c12;
}

body.ui-style-12 {
  --primary-color: #27ae60;
  --accent-color: #c0392b;
}

body.ui-style-13 {
  --primary-color: #2980b9;
  --accent-color: #e67e22;
}

body.ui-style-14 {
  --primary-color: #8e44ad;
  --accent-color: #d35400;
}

body.ui-style-15 {
  --primary-color: #c0392b;
  --accent-color: #f39c12;
}
