/* Base */
:root {
  --bg: #060b1f;
  --bg-soft: #0d1635;
  --card: #121d42;
  --card-2: #152352;
  --text: #ecf2ff;
  --muted: #9da9cf;
  --line: rgba(135, 156, 222, 0.2);
  --neon: #42e5ff;
  --neon-2: #7f7bff;
  --accent: #ff5d9e;
  --shadow: 0 12px 34px rgba(9, 14, 38, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1000px 600px at 90% -20%, rgba(127, 123, 255, 0.15), transparent 55%),
              radial-gradient(900px 500px at -20% 10%, rgba(66, 229, 255, 0.12), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 1160px;
}

a {
  text-decoration: none;
}

.section-space {
  padding: 84px 0 10px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-heading p,
.section-lead,
p {
  color: var(--muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1030;
  background: rgba(5, 10, 28, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 13, 33, 0.92);
  border-bottom-color: var(--line);
}

.navbar {
  padding: 14px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #051026;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 0 4px rgba(66, 229, 255, 0.15);
  font-size: 0.8rem;
}

.brand-name {
  letter-spacing: 0.4px;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ccd8ff;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(66, 229, 255, 0.12);
}

.dropdown-menu {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.btn-neon {
  color: #051026;
  font-weight: 700;
  border: 0;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  box-shadow: 0 10px 24px rgba(66, 229, 255, 0.28);
}

.btn-neon:hover {
  color: #030912;
  transform: translateY(-1px);
}

.btn-outline-neon {
  color: #b9efff;
  border: 1px solid rgba(66, 229, 255, 0.55);
  background: transparent;
}

.btn-outline-neon:hover {
  color: #03101f;
  background: var(--neon);
}

.offcanvas {
  background: #070f2a;
}

.offcanvas .nav-link {
  color: #d5defa;
  border-radius: 10px;
  padding: 10px 12px;
}

.offcanvas .nav-link:hover {
  background: rgba(66, 229, 255, 0.14);
  color: #fff;
}

/* Hero */
main {
  padding-top: 82px;
}

.hero-section {
  padding: 56px 0 22px;
}

.hero-chip {
  display: inline-block;
  color: #04101f;
  font-size: 0.86rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(66, 229, 255, 0.95), rgba(127, 123, 255, 0.95));
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 800;
}

.hero-text {
  max-width: 90%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
  color: #b8c6f5;
}

.hero-panel {
  background: linear-gradient(165deg, rgba(24, 37, 83, 0.95), rgba(12, 20, 49, 0.95));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-cover {
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.hero-panel-body {
  padding: 18px;
}

.hero-panel-body p {
  margin-bottom: 12px;
}

.panel-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-tags .badge {
  background: rgba(66, 229, 255, 0.14);
  color: #c3f6ff;
  padding: 6px 10px;
  border: 1px solid rgba(66, 229, 255, 0.25);
  font-weight: 500;
}

/* About and stats */
.about-section {
  border-top: 1px solid var(--line);
}

.stats-grid .stat-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  height: 100%;
}

.stat-card h3 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 1.45rem;
  font-weight: 800;
}

.stat-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Movie cards */
.movie-card {
  background: linear-gradient(180deg, #101a3d, #0d1636);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(11, 18, 46, 0.55);
}

.poster-wrap {
  position: relative;
}

.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  color: #081022;
  background: linear-gradient(135deg, var(--neon), #8de7ff);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
}

.movie-title {
  font-size: 1rem;
  margin-bottom: 2px;
  color: #f4f7ff;
}

.movie-meta,
.movie-date {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.movie-date {
  color: #8fb7d4;
}

/* Feature cards */
.feature-card {
  background: linear-gradient(180deg, #111c44, #0d1738);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
}

.feature-icon {
  font-size: 1.45rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: rgba(127, 123, 255, 0.2);
  border: 1px solid rgba(127, 123, 255, 0.35);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* News */
.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #111c44, #0f183c);
  border: 1px solid var(--line);
}

.news-item h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.news-item p {
  margin: 0;
  font-size: 0.84rem;
}

.news-item .badge {
  flex-shrink: 0;
}

/* FAQ */
.accordion-item {
  background: linear-gradient(180deg, #111c44, #0e1839);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: #f1f5ff;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: rgba(66, 229, 255, 0.08);
  color: #e7feff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  color: #bcc8eb;
}

/* Reviews */
.review-card {
  background: linear-gradient(180deg, #111d46, #0e1737);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #071224;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
}

.review-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.review-head p {
  margin: 0;
  font-size: 0.8rem;
}

.review-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Friend links */
.friend-section {
  padding-bottom: 30px;
}

.friend-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d8e5ff;
  border: 1px solid rgba(66, 229, 255, 0.28);
  background: rgba(66, 229, 255, 0.08);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.friend-link:hover {
  background: rgba(66, 229, 255, 0.22);
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: rgba(6, 11, 28, 0.75);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: #b8c6ef;
  font-size: 0.92rem;
}

.footer-menu a:hover {
  color: #fff;
}

.copyright {
  color: #8ea0d4;
  font-size: 0.86rem;
}

/* Modal */
.custom-modal {
  background: linear-gradient(180deg, #0f1a40, #0a1330);
  border: 1px solid var(--line);
  color: #eef3ff;
  border-radius: 14px;
}

.custom-modal p {
  color: #b8c4e8;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 36px;
  }

  .hero-text {
    max-width: 100%;
  }

  .movie-card img {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding-top: 68px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .news-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-item .badge {
    align-self: flex-start;
  }

  .movie-card img {
    height: 210px;
  }
}