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

.main-content {
  min-height: calc(100vh - 140px);
}

/* Typography */
.page-title {
  font-size: 28px;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.4;
}

.section-title {
  font-size: 24px;
  color: #2c5aa0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2c5aa0;
}

.section-heading {
  font-size: 20px;
  color: #333;
  margin: 20px 0 15px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 20px;
  margin-bottom: 30px;
}

.hero-section .page-title {
  color: #fff;
  font-size: 32px;
}

.site-intro {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
}

/* Video Sections */
.video-section {
  background: #fff;
  padding: 30px 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-intro, .list-intro {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  line-height: 1.8;
}

.page-intro a, .list-intro a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
}

.page-intro a:hover, .list-intro a:hover {
  text-decoration: underline;
}

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

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

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

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

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

.video-title a:hover {
  color: #2c5aa0;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.meta-item, .meta-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  color: #666;
}

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

.read-more {
  display: inline-block;
  color: #2c5aa0;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

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

.video-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #2c5aa0;
}

.item-title {
  font-size: 18px;
  margin-bottom: 10px;
}

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

.item-title a:hover {
  color: #2c5aa0;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.item-meta span {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 3px;
}

.item-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Full List */
.video-list-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item-full {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.item-meta-full {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  background: #e8f0fe;
  color: #2c5aa0;
  border-radius: 12px;
}

/* Rank List */
.video-rank-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-rank-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  display: flex;
  gap: 20px;
}

.rank-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #2c5aa0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 8px;
}

.rank-content {
  flex: 1;
}

.item-review {
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.6;
}

/* Topic Groups */
.topic-group {
  margin-bottom: 40px;
}

.topic-title {
  font-size: 22px;
  color: #2c5aa0;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #2c5aa0;
}

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

.topic-card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s;
}

.topic-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

.card-title a:hover {
  color: #2c5aa0;
}

.card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}

.card-meta span {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 3px;
}

.card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

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

.video-latest-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  display: flex;
  gap: 20px;
}

.latest-date {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
}

.latest-content {
  flex: 1;
}

/* Video Detail */
.video-detail {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-title {
  font-size: 32px;
  color: #222;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2c5aa0;
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.info-item {
  font-size: 15px;
  line-height: 1.8;
}

.info-item strong {
  color: #2c5aa0;
}

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

.info-tags .tag {
  margin-right: 8px;
  margin-top: 5px;
  display: inline-block;
}

.detail-oneline {
  margin-bottom: 30px;
  padding: 20px;
  background: #e8f0fe;
  border-radius: 8px;
  border-left: 4px solid #2c5aa0;
}

.oneline-text {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
}

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

.summary-text, .review-text {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.detail-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e5e5e5;
}

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

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

.related-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-title {
  font-size: 16px;
  margin-bottom: 10px;
}

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

.related-title a:hover {
  color: #2c5aa0;
}

.related-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.related-meta span {
  padding: 2px 8px;
  background: #fff;
  border-radius: 3px;
  color: #666;
}

.related-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Section More */
.section-more {
  text-align: center;
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-more {
  display: inline-block;
  padding: 12px 30px;
  background: #2c5aa0;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-more:hover {
  background: #1e3a6e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

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

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 24px;
  }

  .hero-section .page-title {
    font-size: 26px;
  }

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

  .video-rank-item, .video-latest-item {
    flex-direction: column;
  }

  .rank-number, .latest-date {
    width: 100%;
    height: 50px;
  }

  .video-detail {
    padding: 20px;
  }

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

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

  .section-more {
    flex-direction: column;
  }

  .btn-more {
    width: 100%;
  }
}
