:root {
  --bg: #120c0e;
  --bg-card: #1e1518;
  --primary: #c62828;
  --primary-light: #e53935;
  --accent: #ffca28;
  --text: #f5f0f0;
  --text-muted: #a89b9e;
  --border: #3a282d;
  --radius: 12px;
  --transition: 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background-color: rgba(18, 12, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
  color: var(--text);
}
.logo-box img {
  height: 32px;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1a0f12 0%, #120c0e 100%);
  border-bottom: 1px solid var(--border);
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.3;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.btn-download {
  display: inline-block;
  background-color: var(--accent);
  color: #111;
  font-weight: bold;
  font-size: 20px;
  padding: 15px 40px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 202, 40, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 202, 40, 0.5);
}
.update-time {
  margin-top: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Marquee Banner */
.marquee-section {
  background-color: #1e1518;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
}
.marquee-content span {
  margin: 0 30px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Shared */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  cursor: pointer;
}
@media (max-width: 768px) {
  .carousel-slide img { height: 300px; }
}

/* Play Button Overlay */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background var(--transition);
}
.play-overlay::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
  margin-left: 5px;
}
.play-overlay:hover {
  background: rgba(198, 40, 40, 0.8);
}

/* Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-5px);
}
.card-img-wrap {
  position: relative;
  cursor: pointer;
}
.card-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.card-content {
  padding: 15px;
}
.card-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
}

/* About Section */
.about-text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* FAQ */
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--primary-light);
}
.faq-item.active .faq-question::after {
  content: '-';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
}
.faq-item.active .faq-answer {
  padding: 0 20px 18px;
}

/* Reviews */
.review-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}
.review-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.review-header::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  color: var(--text-muted);
}
.review-item.active .review-header::after {
  content: '-';
}
.review-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
}
.review-item.active .review-body {
  padding: 0 20px 15px;
}
.review-form {
  margin-top: 30px;
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.review-form textarea {
  width: 100%;
  height: 100px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  resize: none;
  margin-bottom: 15px;
}
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.review-form button {
  background-color: var(--primary);
  color: var(--text);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background var(--transition);
}
.review-form button:hover {
  background-color: var(--primary-light);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 40px;
}
footer p {
  margin-bottom: 10px;
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--text);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 1px solid var(--border);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--accent);
}
.modal-body {
  margin-bottom: 25px;
  color: var(--text-muted);
}
.modal-btn {
  display: inline-block;
  background-color: var(--accent);
  color: #111;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: rgba(18, 12, 14, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 24px; }
}