/* Global Styles */
body.ui-style-5 {
  background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 20px;
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  padding: 20px 20px 0 20px;
  line-height: 1.3;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e1e4e8;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

p {
  margin: 0 0 15px 0;
  line-height: 1.8;
}

/* Section Styles */
section {
  padding: 20px;
  margin-bottom: 20px;
}

.site-intro {
  background: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding: 20px;
  margin: 20px;
  border-radius: 4px;
}

.page-desc {
  color: #666;
  font-size: 15px;
  padding: 0 20px;
}

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

.video-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  transition: all 0.3s ease;
}

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

.video-card h3 {
  margin: 0 0 10px 0;
}

.video-card h3 a {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
}

.video-card h3 a:hover {
  color: #0066cc;
  text-decoration: none;
}

.video-card .meta {
  color: #666;
  font-size: 13px;
  margin: 0 0 10px 0;
}

.video-card .one-line {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.video-card .review-short {
  color: #666;
  font-size: 13px;
  margin-top: 10px;
  font-style: italic;
}

/* Video List */
.video-list {
  padding: 20px;
}

.video-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #e1e4e8;
  transition: background 0.2s ease;
}

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

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

.video-item .rank,
.video-item .rank-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #0066cc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
}

.video-item.grouped .group-label {
  flex-shrink: 0;
  padding: 4px 12px;
  background: #e9ecef;
  color: #495057;
  border-radius: 4px;
  font-size: 13px;
  height: fit-content;
}

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

.video-item .info h3 {
  margin: 0 0 8px 0;
}

.video-item .info h3 a {
  color: #1a1a1a;
  font-size: 16px;
}

.video-item .info h3 a:hover {
  color: #0066cc;
}

.video-item .info p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
}

.video-item .info .review {
  font-style: italic;
  color: #777;
  font-size: 13px;
  margin-top: 8px;
}

/* Detail Page */
.video-detail {
  padding: 20px;
}

.video-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e1e4e8;
  font-size: 15px;
}

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

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

.video-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.video-highlight h2 {
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  margin-top: 0;
}

.highlight-text {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.video-summary,
.video-review {
  margin-bottom: 20px;
}

.video-summary p,
.video-review p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

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

/* More Link */
.more-link {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
}

.more-link a {
  color: #0066cc;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border: 2px solid #0066cc;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.more-link a:hover {
  background: #0066cc;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin-top: 10px;
    border-radius: 0;
  }

  h1 {
    font-size: 22px;
    padding: 15px 15px 0 15px;
  }

  h2 {
    font-size: 18px;
  }

  section {
    padding: 15px;
  }

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

  .video-item {
    flex-direction: column;
    gap: 10px;
  }

  .video-item .rank,
  .video-item .rank-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .more-link a {
    display: block;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  .video-card h3 a {
    font-size: 15px;
  }

  .video-item .info h3 a {
    font-size: 15px;
  }
}
