:root {
  --bg-dark: #0f0f11;
  --bg-darker: #08080a;
  --primary-red: #e63946;
  --primary-red-hover: #d62839;
  --accent-yellow: #ffd166;
  --accent-yellow-hover: #ffc233;
  --text-main: #f1f1f1;
  --text-muted: #9e9e9e;
  --border-color: #2a2a2a;
  --card-bg: #1a1a1c;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, #2a0e12 0%, var(--bg-dark) 40%);
  background-repeat: no-repeat;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-red);
}
.logo-group img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.menu-toggle {
  background: transparent;
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--card-bg);
  flex-direction: column;
  display: none;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 15px;
}
.nav-links.active {
  display: flex;
}
.nav-links a {
  font-size: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
}
.nav-links a:hover {
  color: var(--primary-red);
}

/* Hero Section */
.hero {
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #fff;
}
.hero-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 25px;
}
.btn-download {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: #000;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 35px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
  text-align: center;
}
.btn-download:hover {
  background-color: var(--accent-yellow-hover);
  transform: translateY(-2px);
}
.update-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
}
.hero-carousel {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  aspect-ratio: 3/4;
  max-height: 500px;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Apple falling animation */
.falling-apple {
  position: absolute;
  top: -50px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.6;
  animation: fall linear infinite;
  pointer-events: none;
}
.falling-apple::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 10px;
  width: 2px;
  height: 10px;
  background: #4a2c2c;
  transform: rotate(45deg);
}
@keyframes fall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Marquee */
.marquee-bar {
  background: var(--primary-red);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
}
.marquee-content {
  display: inline-block;
  animation: marquee 15s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections General */
section {
  padding: 50px 0;
}
.section-title {
  font-size: 24px;
  margin-bottom: 25px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--primary-red);
  border-radius: 2px;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.grid-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-8 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

/* Card Styles */
.poster-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 0.3s;
}
.poster-card:hover {
  transform: scale(1.02);
}
.poster-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.poster-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.poster-card .play-btn::after {
  content: '';
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}
.poster-card:hover .play-btn {
  background: rgba(230, 57, 70, 0.8);
  border-color: var(--primary-red);
}
.card-info {
  padding: 10px;
}
.card-info h3 {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.card-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Specific Sections */
.section-theater .card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-advantages {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 20px;
  margin: 20px 0;
  border: 1px solid var(--border-color);
}
.section-advantages p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.8;
  text-indent: 2em;
}

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  border-bottom-right-radius: 8px;
  z-index: 2;
}
.rank-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--accent-yellow);
  margin-top: 5px;
}

/* Interaction Section */
.interaction-player {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  max-width: 600px;
  margin: 0 auto;
}
.interaction-player img {
  width: 100%;
  display: block;
  opacity: 0.8;
}
.danmu-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.danmu {
  position: absolute;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  text-shadow: 1px 1px 2px #000;
  animation: danmuMove linear forwards;
}
@keyframes danmuMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-150%); }
}

/* History Section */
.history-content {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.history-content p {
  color: #ccc;
  margin-bottom: 15px;
  font-size: 15px;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-question {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--primary-red);
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 14px;
}
.faq-item.active .faq-answer {
  padding: 0 20px 15px;
  max-height: 200px;
}

/* Comments Section */
.comments-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-color);
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}
.comment-form textarea {
  width: 100%;
  height: 80px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  resize: none;
  font-family: inherit;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}
.btn-submit {
  align-self: flex-end;
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}
.btn-submit:hover {
  background: var(--primary-red-hover);
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.comment-item {
  display: flex;
  gap: 12px;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  object-fit: cover;
}
.comment-content {
  flex: 1;
}
.comment-name {
  font-size: 14px;
  color: var(--accent-yellow);
  margin-bottom: 3px;
}
.comment-text {
  font-size: 14px;
  color: #ccc;
}

/* Footer */
footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}
footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
footer a {
  color: var(--text-muted);
  text-decoration: underline;
}
footer a:hover {
  color: var(--text-main);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.modal-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}
.modal-box p {
  color: var(--text-muted);
  margin-bottom: 25px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-modal {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 14px;
}
.btn-modal.primary {
  background: var(--accent-yellow);
  color: #000;
}
.btn-modal.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

/* Media Queries */
@media (min-width: 768px) {
  .hero-layout { flex-direction: row; align-items: center; }
  .hero-text { padding-right: 30px; }
  .hero-text h1 { font-size: 40px; }
  .hero-carousel { max-width: none; height: 500px; }
  .nav-links { position: static; flex-direction: row; display: flex; background: transparent; padding: 0; border: none; }
  .menu-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-8 { grid-template-columns: repeat(4, 1fr); }
  .comments-section { display: flex; gap: 30px; }
  .comment-form { flex: 1; margin-bottom: 0; }
  .comment-list { flex: 1; border-left: 1px solid var(--border-color); padding-left: 30px; }
}
@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .hero-text h1 { font-size: 48px; }
  .hero-carousel { height: 600px; }
}