
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body.ui-style-7 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

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

header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: 5px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #555;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

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

main {
  padding: 30px 0;
  min-height: 70vh;
}

.page-title {
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  color: #333;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

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

.video-card .desc {
  font-size: 14px;
  color: #777;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.info-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
}

.info-box h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.info-box p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 10px;
}

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

.tag {
  background: #e8eaf6;
  color: #667eea;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 13px;
}

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

.related-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.related-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.related-item p {
  font-size: 13px;
  color: #666;
}

footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 0;
  text-align: center;
  color: #666;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    gap: 2px;
  }
  
  nav a {
    padding: 6px 8px;
    font-size: 12px;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
}
