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

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a202c;
  text-align: center;
}

.page-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #2c5282;
  border-left: 4px solid #2c5282;
  padding-left: 1rem;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-section .page-title,
.hero-section .page-intro {
  color: white;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

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

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

.video-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-title a {
  color: #2c5282;
  font-weight: bold;
}

.video-title a:hover {
  color: #1a365d;
}

.video-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.85rem;
  color: #666;
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.video-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

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

.link-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  text-align: center;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

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

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

.video-list {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.item-title {
  font-weight: 500;
  flex: 1;
}

.item-meta {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

.video-list-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-list-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.video-list-card.with-rank .rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
}

.video-list-card.with-genre .genre-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.video-list-card.with-year .year-badge {
  display: inline-block;
  background: #2c5282;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: #2c5282;
  font-weight: bold;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.card-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.card-review {
  color: #777;
  font-style: italic;
  line-height: 1.6;
  font-size: 0.9rem;
}

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

.detail-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a202c;
  border-bottom: 2px solid #2c5282;
  padding-bottom: 1rem;
}

.detail-info,
.detail-oneline,
.detail-summary,
.detail-review,
.detail-related {
  margin: 2rem 0;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 1rem;
}

.info-list dt {
  font-weight: bold;
  color: #555;
}

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

.oneline-text {
  font-size: 1.2rem;
  color: #2c5282;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: #f7fafc;
  border-left: 4px solid #2c5282;
}

.summary-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  padding: 1rem;
  background: #fffbf0;
  border-radius: 8px;
}

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

.related-card {
  background: #f7fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.related-card:hover {
  background: #edf2f7;
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-title a {
  color: #2c5282;
  font-weight: 600;
}

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

.site-footer {
  background: #2d3748;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .page-intro {
    font-size: 1rem;
  }

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

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

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

  .info-list dt {
    margin-top: 0.5rem;
  }
}

.ui-style-0 { --theme-hue: 210; }
.ui-style-1 { --theme-hue: 180; }
.ui-style-2 { --theme-hue: 150; }
.ui-style-3 { --theme-hue: 120; }
.ui-style-4 { --theme-hue: 90; }
.ui-style-5 { --theme-hue: 60; }
.ui-style-6 { --theme-hue: 30; }
.ui-style-7 { --theme-hue: 0; }
.ui-style-8 { --theme-hue: 330; }
.ui-style-9 { --theme-hue: 300; }
.ui-style-10 { --theme-hue: 270; }
.ui-style-11 { --theme-hue: 240; }
.ui-style-12 { --theme-hue: 195; }
.ui-style-13 { --theme-hue: 165; }
.ui-style-14 { --theme-hue: 135; }
.ui-style-15 { --theme-hue: 105; }
