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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f9fafb;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(to bottom right, #f43f5e, #ec4899);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #e11d48, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-item:hover {
  background: #f3f4f6;
}

.nav-item.active {
  background: #f43f5e;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-btn:hover {
  background: #f3f4f6;
}

.nav-mobile {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.nav-mobile.show {
  display: block;
}

.nav-mobile .nav-item {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  border-radius: 0;
}

.nav-mobile .nav-item.active {
  background: #fef2f2;
  color: #e11d48;
  border-left: 4px solid #e11d48;
}

/* Main Content */
main {
  padding-top: 80px;
}

section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom right, #f43f5e, #ec4899, #c026d3);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 3.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #fce7f3;
  margin-bottom: 2rem;
}

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

.btn {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #fce7f3;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.category-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.category-header {
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon {
  width: 4rem;
  height: 4rem;
  color: white;
}

.category-body {
  padding: 1rem;
  text-align: center;
}

.category-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.category-count {
  color: #6b7280;
}

/* Video Cards */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.video-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.video-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.video-thumbnail {
  position: relative;
  height: 12rem;
  background: linear-gradient(to bottom right, #d1d5db, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.video-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f43f5e;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
}

.video-body {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-play {
  background: #f43f5e;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s;
}

.btn-play:hover {
  background: #e11d48;
}

/* Update Cards */
.update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.update-card {
  background: linear-gradient(to right, #f9fafb, white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  border-left: 4px solid #f43f5e;
}

.update-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.update-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.update-info h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.update-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.update-type {
  background: #dbeafe;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

.hot-badge {
  background: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  margin-left: 1rem;
}

/* Featured Cards */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.featured-card {
  border-radius: 1rem;
  padding: 2rem;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.featured-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.featured-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.featured-desc {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-count {
  font-size: 1.875rem;
  font-weight: bold;
}

.btn-featured {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-featured:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Ranking */
.ranking-container {
  background: linear-gradient(to bottom right, #fffbeb, #ffedd5);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.rank-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rank-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.rank-number.top {
  background: linear-gradient(to bottom right, #fbbf24, #f59e0b);
}

.rank-number.normal {
  background: linear-gradient(to bottom right, #9ca3af, #6b7280);
}

.rank-info h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rank-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #eab308;
  font-weight: bold;
}

.rank-category {
  color: #6b7280;
  font-size: 0.875rem;
}

.rank-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trend-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.trend-icon.up {
  color: #22c55e;
}

.trend-icon.down {
  color: #ef4444;
  transform: rotate(180deg);
}

/* Footer */
footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-text {
  color: #9ca3af;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links button {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-links button:hover {
  color: white;
}

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

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h2 {
    font-size: 4rem;
  }
}

/* App Download Section */
.app-section {
  background: linear-gradient(to bottom right, #e11d48, #ec4899);
  color: white;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.app-features {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
}

.app-features h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.feature-title {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature-desc {
  color: #fce7f3;
}

.app-download-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  display: inline-block;
  margin: 0 auto;
}

.qr-placeholder {
  width: 12rem;
  height: 12rem;
  background: linear-gradient(to bottom right, #fecdd3, #fbcfe8);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.qr-icon {
  width: 6rem;
  height: 6rem;
  color: #e11d48;
}

.download-text {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-download {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: bold;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-android {
  background: linear-gradient(to right, #e11d48, #ec4899);
  color: white;
}

.btn-ios {
  background: linear-gradient(to right, #1f2937, #000000);
  color: white;
}

.btn-download:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Membership Section */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.membership-card {
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.membership-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.membership-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.membership-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.membership-price {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.membership-period {
  opacity: 0.8;
}

.membership-features {
  list-style: none;
  margin-bottom: 2rem;
}

.membership-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.feature-check {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-membership {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.membership-card.free {
  background: #f9fafb;
}

.membership-card.free .membership-title,
.membership-card.free .membership-price {
  color: #1f2937;
}

.membership-card.free .feature-check {
  color: #9ca3af;
}

.membership-card.free .btn-membership {
  background: #d1d5db;
  color: #374151;
}

.membership-card.vip {
  background: linear-gradient(to bottom right, #f43f5e, #ec4899);
  color: white;
  transform: scale(1.05);
  position: relative;
}

.recommended-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fbbf24;
  color: #1f2937;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
}

.membership-card.vip .membership-period {
  color: #fce7f3;
}

.membership-card.vip .btn-membership {
  background: white;
  color: #e11d48;
}

.membership-card.premium {
  background: linear-gradient(to bottom right, #fbbf24, #f59e0b);
  color: white;
}

.membership-card.premium .membership-period {
  color: #fef3c7;
}

.membership-card.premium .btn-membership {
  background: white;
  color: #f59e0b;
}

.btn-membership:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
