:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-light: #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);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-main,
.list-main,
.detail-main {
  flex: 1;
  padding: 30px 20px;
}

.home-container,
.list-container,
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.home-header h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0;
  padding: 0 20px;
}

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

.site-intro a {
  color: var(--primary-color);
  text-decoration: underline;
}

.site-intro a:hover {
  color: var(--accent-color);
}

.home-section {
  margin-bottom: 50px;
}

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

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

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

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.video-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.video-genre {
  font-size: 13px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.video-desc {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.video-item:hover {
  box-shadow: var(--shadow-hover);
}

.video-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

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

.section-more {
  text-align: center;
  margin-top: 30px;
}

.more-link {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  transition: all 0.3s;
}

.more-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.list-header {
  text-align: center;
  margin-bottom: 40px;
}

.list-header h1 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.list-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

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

.video-item-ranked {
  display: flex;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.video-item-ranked:hover {
  box-shadow: var(--shadow-hover);
}

.rank-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-info-ranked {
  flex: 1;
}

.video-info-ranked h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

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

.topic-section {
  margin-bottom: 50px;
}

.topic-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

.video-item-latest {
  display: flex;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.video-item-latest:hover {
  box-shadow: var(--shadow-hover);
}

.update-date {
  font-size: 14px;
  color: var(--text-light);
  min-width: 100px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.video-info-latest {
  flex: 1;
}

.video-info-latest h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

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

.detail-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 32px;
  line-height: 1.4;
}

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

.video-info {
  margin-bottom: 30px;
}

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

.info-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

.info-tags {
  grid-column: 1 / -1;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-color);
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--primary-color);
}

.video-oneline,
.video-summary,
.video-review {
  margin-bottom: 30px;
}

.video-oneline h2,
.video-summary h2,
.video-review h2 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.video-oneline p,
.video-summary p,
.video-review p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
}

.related-videos {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.related-videos h2 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

.related-card {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.3s;
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

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

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

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

.related-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.related-desc {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  background: var(--secondary-color);
  color: white;
  padding: 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .home-header h1 {
    font-size: 22px;
  }

  .site-intro {
    padding: 20px;
  }

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

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

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

  .rank-number {
    min-width: 40px;
    font-size: 20px;
  }

  .update-date {
    min-width: 80px;
    font-size: 12px;
  }

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

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

@media (max-width: 480px) {
  .video-item-ranked,
  .video-item-latest {
    flex-direction: column;
  }

  .rank-number,
  .update-date {
    margin-bottom: 10px;
  }
}
