* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #f8f9fa;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 16px;
}

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

nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  display: none;
}

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

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

nav a {
  display: block;
  padding: 1rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 3px solid transparent;
}

nav a:hover {
  background: rgba(255,255,255,0.15);
  border-bottom-color: #fff;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 16px rgba(102,126,234,0.3);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #667eea;
}

.site-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

section {
  margin-bottom: 3rem;
}

h1, h2, h3 {
  color: #2c3e50;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #667eea;
  font-weight: 600;
}

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 3px solid #667eea;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.2);
}

.video-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
}

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-card .meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.video-card .one-line {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.75rem 0 0 0;
}

.list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.list-link {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #764ba2;
}

.list-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(118,75,162,0.2);
}

.list-link h3 {
  margin: 0 0 0.75rem 0;
  color: #667eea;
  font-size: 1.25rem;
}

.list-link p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.video-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.video-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}

.video-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

.video-item .summary {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.75rem 0 0 0;
}

.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #667eea;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-link a:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.page-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 1.05rem;
  color: #555;
  border-left: 4px solid #667eea;
}

.video-list-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item-full {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-item-full h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.35rem;
  border: none;
  padding: 0;
}

.video-item-full h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-item-full h2 a:hover {
  color: #667eea;
}

.video-item-full .tags {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.video-list-ranked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item-ranked {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.rank-number {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  min-width: 50px;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-info {
  flex: 1;
}

.video-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  border: none;
  padding: 0;
}

.video-info h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-info h2 a:hover {
  color: #667eea;
}

.topic-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.topic-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-section h2 {
  color: #667eea;
  margin-bottom: 1.5rem;
}

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

.topic-card {
  padding: 1.25rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.topic-card:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

.topic-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.topic-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

.video-list-latest {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item-latest {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.date-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  min-width: 80px;
  text-align: center;
}

.video-detail {
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.video-detail h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
}

.basic-info ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.basic-info li {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.basic-info strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.highlight {
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.highlight p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
  color: #2c3e50;
  font-weight: 500;
}

.summary p, .review p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
  text-align: justify;
}

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

.related-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102,126,234,0.15);
  transform: translateY(-2px);
}

.related-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.related-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: nowrap;
    overflow-x: hidden;
  }

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

  nav a {
    padding: 0.85rem 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .video-detail {
    padding: 1.5rem;
  }

  .video-detail h1 {
    font-size: 1.5rem;
  }

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

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

  .video-item-ranked, .video-item-latest {
    flex-direction: column;
    gap: 1rem;
  }

  .rank-number, .date-badge {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 0.75rem 0.25rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

.ui-style-0 body { background: #f8f9fa; }
.ui-style-1 body { background: #fafafa; }
.ui-style-2 body { background: #f5f7fa; }
.ui-style-3 body { background: #f9fafb; }
.ui-style-4 body { background: #fafbfc; }
.ui-style-5 body { background: #f7f8fa; }
.ui-style-6 body { background: #f6f8fa; }
.ui-style-7 body { background: #f8f9fb; }
.ui-style-8 body { background: #f9f9fb; }
.ui-style-9 body { background: #fafafa; }
.ui-style-10 body { background: #f5f6f8; }
.ui-style-11 body { background: #f7f9fb; }
.ui-style-12 body { background: #f6f7f9; }
.ui-style-13 body { background: #f8fafb; }
.ui-style-14 body { background: #f9fafb; }
.ui-style-15 body { background: #fafbfc; }
