/* UI Style 7 - Layout D */
body.ui-style-7 {
  font-size: 16px;
}

main {
  padding: 40px 0;
}

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

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

.site-intro {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
  border-left: 4px solid #667eea;
  padding-left: 16px;
}

.section-desc {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

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

.video-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
}

.video-card h3 a {
  color: #222;
}

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

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

.video-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

.video-tags, .video-year {
  color: #888;
  font-size: 13px;
  margin: 8px 0;
}

.rank-badge {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin: 8px 0;
}

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

.page-header h1 {
  font-size: 36px;
  color: #222;
  margin-bottom: 16px;
}

.page-intro {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

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

.video-detail {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header h1 {
  font-size: 36px;
  color: #222;
  margin-bottom: 24px;
  line-height: 1.4;
}

.detail-info h2, .detail-oneline h2, .detail-summary h2, .detail-review h2, .detail-related h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: #222;
  border-left: 4px solid #667eea;
  padding-left: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 24px;
  font-size: 16px;
}

.info-list dt {
  color: #666;
  font-weight: 600;
}

.info-list dd {
  color: #333;
}

.detail-oneline p, .detail-summary p, .detail-review p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.detail-related {
  margin-top: 48px;
}

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

footer {
  background: #333;
  color: #ccc;
  padding: 32px 0;
  text-align: center;
  margin-top: 60px;
}

footer p {
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
  }

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

  .site-intro {
    font-size: 16px;
  }

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

  .video-detail {
    padding: 24px 16px;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 8px 16px;
    font-size: 14px;
  }
}