/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.hero h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero .intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.more-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.more-link:hover {
  color: #764ba2;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
  border-left: 4px solid #667eea;
}

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.video-card h3 a {
  color: #333;
  text-decoration: none;
}

.video-card h3 a:hover {
  color: #667eea;
}

.video-card .meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.video-card .desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Video List */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s;
}

.video-item:hover {
  background: #e9ecef;
}

.video-item h4 {
  font-size: 1rem;
  margin: 0;
}

.video-item h4 a {
  color: #333;
  text-decoration: none;
}

.video-item h4 a:hover {
  color: #667eea;
}

.video-item .year {
  color: #888;
  font-size: 0.9rem;
}

/* Quick Links */
.quick-links h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

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

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s;
}

.link-card:hover {
  transform: translateY(-5px);
}

.link-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.link-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* List Pages */
.page-header {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #666;
  font-size: 1rem;
}

.list-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.list-card:hover {
  background: #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-card .card-num {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
}

.list-card.ranked .rank-badge {
  font-size: 1.8rem;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.list-card.ranked .rank-badge.rank-top {
  color: #dc3545;
}

.list-card.ranked .rank-badge.rank-normal {
  color: #667eea;
}

.list-card.topic .topic-tag {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  align-self: flex-start;
}

.list-card.latest .date-label {
  background: #28a745;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  align-self: flex-start;
}

.list-card .card-content {
  flex: 1;
}

.list-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.list-card h3 a {
  color: #333;
  text-decoration: none;
}

.list-card h3 a:hover {
  color: #667eea;
}

.list-card .meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.list-card .tags {
  font-size: 0.85rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.list-card .desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.list-card .review {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid #667eea;
}

/* Detail Pages */
.detail-page {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.detail-header .meta-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-header .meta-info span {
  background: #667eea;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

.detail-section.highlight {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 1.5rem;
  border-radius: 8px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.info-list li {
  font-size: 1rem;
  line-height: 1.6;
}

.info-list strong {
  color: #667eea;
  min-width: 80px;
  display: inline-block;
}

.one-line {
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
  line-height: 1.8;
}

.summary {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.review {
  font-size: 1rem;
  color: #555;
  font-style: italic;
  line-height: 1.8;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

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

.related-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.related-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-item h4 a {
  color: #333;
  text-decoration: none;
}

.related-item h4 a:hover {
  color: #667eea;
}

.related-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .hero .intro {
    font-size: 0.9rem;
  }

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

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

  .list-card {
    flex-direction: column;
    gap: 1rem;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }

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