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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  min-width: 300px;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.search-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.main {
  margin-top: 80px;
}

.hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
}

.featured, .categories, .latest {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.95);
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured h2, .categories h2, .latest h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.video-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-thumb {
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #667eea;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.play-btn:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  margin-bottom: 0.5rem;
}

.video-info h3 a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.video-info p {
  color: #666;
  font-size: 0.9rem;
}

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

.category-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: scale(1.02);
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.category-overlay h3 a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-overlay p {
  opacity: 0.9;
}

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

.latest-item {
  display: flex;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.latest-item:hover {
  transform: translateX(5px);
}

.latest-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
}

.latest-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-info h3 a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.latest-info h3 a:hover {
  color: #667eea;
}

.latest-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.update-time {
  color: #999;
  font-size: 0.8rem;
}

.footer {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
}

@media (max-width: 768px) {
  .nav {
      display: none;
  }
  
  .mobile-menu-btn {
      display: flex;
  }
  
  .search-box {
      min-width: 200px;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .video-grid {
      grid-template-columns: 1fr;
  }
  
  .category-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .latest-item {
      flex-direction: column;
  }
  
  .latest-item img {
      width: 100%;
      height: 150px;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }
  
  .nav-wrapper {
      flex-wrap: wrap;
      gap: 1rem;
  }
  
  .search-box {
      order: 3;
      width: 100%;
      min-width: auto;
  }
  
  .category-grid {
      grid-template-columns: 1fr;
  }
  
  .hero {
      padding: 3rem 0;
  }
  
  .featured, .categories, .latest {
      padding: 2rem 0;
      margin: 1rem 0;
  }
}