:root {
  --primary-red: #e63946;
  --primary-orange: #f4a261;
  --bg-dark: #1a1a1a;
  --bg-light: #f9f9f9;
  --text-main: #333;
  --text-light: #fff;
  --card-bg: #fff;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
header {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--primary-red);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; border-radius: 6px; }
.logo-area span { font-size: 20px; font-weight: bold; color: var(--primary-orange); }
.download-btns { display: flex; gap: 10px; }
.btn {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-android { background-color: var(--primary-red); color: var(--text-light); }
.btn-ios { background-color: var(--primary-orange); color: var(--text-light); }
.nav-scroll {
  display: flex;
  overflow-x: auto;
  padding: 10px 20px;
  gap: 20px;
  scrollbar-width: none;
  background-color: #222;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  white-space: nowrap;
  font-size: 14px;
  color: #ccc;
  transition: color 0.3s;
}
.nav-scroll a:hover { color: var(--primary-orange); }

/* Sections Global */
section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
h2 { font-size: 24px; margin-bottom: 20px; color: var(--bg-dark); border-left: 4px solid var(--primary-red); padding-left: 10px; }
h3 { font-size: 18px; margin-bottom: 10px; }

/* Hero Section */
.hero { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
.hero-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-banner img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: var(--text-light);
}
.hero-overlay h1 { font-size: 28px; margin-bottom: 10px; line-height: 1.3; }
.hero-overlay p { font-size: 16px; color: #eee; }

/* Grid Layouts */
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-img { position: relative; aspect-ratio: 3/4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(230,57,70,0.9);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.card-info { padding: 10px; }
.card-info h3 { font-size: 16px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p { font-size: 12px; color: #666; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--primary-red); }

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary-red); }
.faq-item p { font-size: 14px; color: #555; }

/* Comments */
.comments-section { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.comment-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.comment-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #ddd; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; flex-shrink: 0; }
.comment-content { flex: 1; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.nickname { font-weight: bold; font-size: 14px; }
.stars { color: var(--primary-orange); font-size: 12px; }
.comment-text { font-size: 14px; color: #333; margin-bottom: 5px; }
.comment-likes { font-size: 12px; color: #999; }

/* Footer */
footer {
  background: var(--bg-dark);
  color: #888;
  text-align: center;
  padding: 30px 20px;
  font-size: 12px;
  margin-top: 40px;
}
footer a { color: #888; text-decoration: underline; }
footer p { margin-bottom: 8px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.modal-content p { font-size: 14px; margin-bottom: 15px; color: #333; }
.modal-content input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}
.modal-close {
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.5fr 1fr; }
  .hero-overlay h1 { font-size: 36px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 40px; }
  h2 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .grid-1 { grid-template-columns: repeat(4, 1fr); }
  .hero { grid-template-columns: 2fr 1fr; }
  .header-top { padding: 15px 40px; }
  .nav-scroll { padding: 15px 40px; justify-content: center; }
}