* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

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

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
  text-align: center;
  padding: 10px 0;
}

.logo {
  font-size: 2.5em;
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
}

nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

nav .container {
  padding: 0 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav a {
  display: block;
  padding: 16px 8px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

nav a:hover {
  background: #f0f0f0;
  color: #667eea;
}

.hero-section {
  background: white;
  padding: 40px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.hero-section h1 {
  font-size: 2em;
  margin: 0 0 15px 0;
  color: #667eea;
}

.subtitle {
  font-size: 1.1em;
  color: #666;
  margin: 10px 0 0 0;
}

section {
  background: white;
  padding: 30px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section h2 {
  margin-top: 0;
  color: #667eea;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

section h3 {
  color: #764ba2;
  margin-top: 1.5em;
}

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

.video-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  transition: all 0.3s;
  border: 1px solid #e0e0e0;
}

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

.video-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

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

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

.video-card .meta {
  color: #999;
  font-size: 0.9em;
  margin: 5px 0;
}

.video-card .desc {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

.list-container {
  margin-top: 20px;
}

.list-item {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  display: flex;
  gap: 15px;
  transition: all 0.3s;
}

.list-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item .rank {
  font-size: 1.5em;
  font-weight: 700;
  color: #667eea;
  min-width: 40px;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

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

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

.item-content .meta {
  color: #999;
  font-size: 0.9em;
  margin: 5px 0;
}

.item-content .desc {
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

.item-content .extra {
  color: #888;
  font-size: 0.9em;
  margin-top: 8px;
}

.info-section {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 6px;
  margin: 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.info-item {
  padding: 10px;
  background: white;
  border-radius: 4px;
}

.tags-container {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85em;
}

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

.highlight-section h3 {
  color: white;
  margin-top: 0;
}

.highlight {
  font-size: 1.15em;
  line-height: 1.7;
  margin: 0;
}

.summary-section,
.review-section {
  line-height: 1.8;
}

.related-section {
  background: #f0f0f0;
  padding: 25px;
  border-radius: 6px;
}

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

.related-item {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.related-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-item h4 {
  margin: 0 0 8px 0;
  font-size: 1em;
}

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

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

.related-item p {
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

.page-intro {
  font-size: 1.05em;
  line-height: 1.7;
  color: #555;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  margin: 20px 0;
}

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

footer p {
  margin: 0;
}

footer a {
  color: #667eea;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

a {
  color: #667eea;
  transition: color 0.3s;
}

a:hover {
  color: #764ba2;
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.8em;
  }

  nav a {
    padding: 12px 4px;
    font-size: 13px;
  }

  .hero-section h1 {
    font-size: 1.5em;
  }

  .subtitle {
    font-size: 0.95em;
  }

  section {
    padding: 20px;
  }

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

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

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

.ui-style-7 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
}