/* Global Styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* Header */
header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  text-align: center;
  padding: 20px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero h1 {
  color: white;
  font-size: 32px;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
}

/* Sections */
section {
  margin-bottom: 50px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #2c3e50;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

.intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.intro a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid #667eea;
}

.intro a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

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

.video-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: #667eea;
}

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

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

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

.video-card .meta {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 10px;
}

.video-card .oneline {
  font-size: 14px;
  color: #495057;
  line-height: 1.6;
}

/* Link Cards */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.link-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: scale(1.05);
}

.link-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 20px;
}

.link-card p {
  margin-top: 10px;
  color: #555;
  font-size: 14px;
}

/* Video List */
.video-list {
  list-style: none;
}

.video-list li {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background 0.2s ease;
}

.video-list li:hover {
  background: #f8f9fa;
}

.video-list li a {
  flex: 1;
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
}

.video-list li a:hover {
  color: #667eea;
}

.video-list .year {
  color: #6c757d;
  font-size: 14px;
}

.video-list .tags {
  color: #6c757d;
  font-size: 13px;
}

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

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

/* List Page */
.list-page h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
}

.page-intro {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-intro p {
  line-height: 1.8;
  color: #555;
}

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

.video-item {
  display: flex;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.video-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.video-item .rank {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

.video-item .item-content {
  flex: 1;
}

.video-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.video-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

.video-item .meta {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 8px;
}

.video-item .tags {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 8px;
}

.video-item .date {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 8px;
}

.video-item .summary {
  color: #495057;
  line-height: 1.6;
  font-size: 14px;
}

/* Detail Page */
.detail-page {
  max-width: 900px;
}

.detail-page h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
}

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

.detail-page section h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

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

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
  line-height: 1.6;
}

.info-list li strong {
  color: #2c3e50;
  min-width: 80px;
  display: inline-block;
}

.oneline p, .summary p, .review p {
  line-height: 1.8;
  color: #495057;
  font-size: 15px;
}

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

.related-item {
  background: #f8f9fa;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.related-item:hover {
  transform: translateY(-3px);
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.related-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

.related-item .meta {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 8px;
}

.related-item .brief {
  font-size: 13px;
  color: #495057;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    font-size: 22px;
    padding: 15px;
  }

  .hero {
    padding: 40px 20px;
  }

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

  main {
    padding: 15px;
  }

  section {
    padding: 20px;
  }

  section h2 {
    font-size: 22px;
  }

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

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