
:root {
  --primary-color: #d32f2f;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
  --card-bg: #fff;
}

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

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

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

.intro-section {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
}

section {
  margin-bottom: 40px;
}

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

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

.video-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

.video-card h3 a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
}

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

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

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

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

.video-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rank-list .video-item {
  position: relative;
  padding-left: 70px;
}

.rank-num {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
}

.date-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.topic-divider {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

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

.entry-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s;
}

.entry-card:hover {
  transform: translateY(-4px);
}

.entry-card h3 a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 20px;
}

.entry-card p {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 14px;
}

.section-links {
  text-align: center;
  margin-top: 25px;
}

.link-more {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.link-more:hover {
  background: #b71c1c;
}

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

.detail-page {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-title {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

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

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

.info-item {
  padding: 10px;
  background: var(--bg-light);
  border-radius: 4px;
}

.info-item .label {
  font-weight: bold;
  color: var(--text-color);
}

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

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

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

.detail-oneline h2,
.detail-summary h2,
.detail-review h2,
.detail-related h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.detail-oneline p,
.detail-summary p,
.detail-review p {
  line-height: 1.8;
  color: var(--text-color);
  background: var(--bg-light);
  padding: 15px;
  border-radius: 4px;
}

.site-footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

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

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

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

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