:root {
  --bg: #0b1020;
  --bg-soft: #121a31;
  --card: #141f3a;
  --line: rgba(146, 167, 255, 0.2);
  --text: #ecf3ff;
  --muted: #9fb0d2;
  --accent: #57f2bf;
  --accent-2: #76a7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, #22335f 0%, var(--bg) 46%), #090d18;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

a {
  text-decoration: none;
}

.topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #090f1d;
  color: #b7c6e6;
  font-size: 0.78rem;
  padding: 0.45rem 0;
}

.top-tags span {
  background: rgba(87, 242, 191, 0.12);
  color: #9effdd;
  border: 1px solid rgba(87, 242, 191, 0.35);
  border-radius: 999px;
  padding: 0.08rem 0.55rem;
}

.site-navbar {
  background: rgba(10, 14, 28, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-navbar.scrolled {
  box-shadow: 0 10px 28px rgba(3, 7, 16, 0.5);
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #5ec2ff);
  color: #02120f;
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-text {
  color: #f7faff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.site-navbar .nav-link {
  color: #bcc9e6;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  margin: 0 0.15rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff;
  background: rgba(118, 167, 255, 0.2);
}

.dropdown-menu {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1831;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #7be8ff);
  color: #06231c;
  border: 0;
  font-weight: 700;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #6af6cc, #9ceeff);
  color: #041812;
}

.content-section {
  padding: 1.5rem 0;
}

.hero-main {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 44, 87, 0.95), rgba(15, 24, 47, 0.98));
  box-shadow: 0 20px 42px rgba(4, 8, 18, 0.45);
}

.kicker {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  color: #9effdd;
  background: rgba(87, 242, 191, 0.16);
  border: 1px solid rgba(87, 242, 191, 0.35);
  font-size: 0.82rem;
}

.hero-lead {
  color: var(--muted);
  line-height: 1.8;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(8, 14, 29, 0.5);
}

.stat-item strong {
  display: block;
  color: #d9e8ff;
  font-size: 1.05rem;
}

.stat-item span {
  font-size: 0.77rem;
  color: #9db0d8;
}

.card-glass {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 28, 53, 0.96), rgba(11, 18, 36, 0.98));
  box-shadow: 0 10px 26px rgba(2, 7, 17, 0.35);
}

.heat-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.heat-list li:last-child {
  border-bottom: 0;
}

.heat-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 167, 255, 0.2);
  color: #d7e6ff;
  font-size: 0.75rem;
  font-weight: 700;
}

.heat-list em {
  color: #8fb7ff;
  font-style: normal;
  font-size: 0.82rem;
}

.mini-feature {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(9, 14, 28, 0.45);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.95rem;
}

.section-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.more-link {
  color: #9ec8ff;
  font-size: 0.86rem;
}

.more-link.static-text {
  opacity: 0.75;
}

.movie-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #142142 0%, #101a35 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(87, 242, 191, 0.45);
  box-shadow: 0 14px 30px rgba(4, 8, 20, 0.5);
}

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

.movie-body {
  padding: 0.68rem;
}

.movie-title {
  font-size: 0.95rem;
  margin: 0.35rem 0;
}

.movie-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.badge-soft {
  background: rgba(118, 167, 255, 0.22);
  color: #d8e7ff;
  border: 1px solid rgba(118, 167, 255, 0.42);
}

.score {
  color: #8affcf;
  font-weight: 700;
  font-size: 0.88rem;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.genre-chip {
  border: 1px solid rgba(118, 167, 255, 0.32);
  background: rgba(118, 167, 255, 0.1);
  color: #d1e2ff;
  text-align: center;
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  font-size: 0.86rem;
}

.genre-chip:hover {
  color: #08111f;
  border-color: transparent;
  background: linear-gradient(135deg, #63efc4, #8ec7ff);
}

.rank-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.56rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(87, 242, 191, 0.15);
  color: #9affdd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rank-list h4 {
  margin: 0;
  font-size: 0.95rem;
}

.rank-list p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.rank-list a {
  color: #8fc5ff;
  font-size: 0.82rem;
}

.comment-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.comment-item h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.comment-item p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.comment-item span {
  font-size: 0.74rem;
  color: #88a3cf;
}

.avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.promo-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 23, 0.88) 0%, rgba(7, 11, 23, 0.45) 55%, rgba(7, 11, 23, 0.22) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.promo-overlay h2 {
  margin: 0 0 0.55rem;
  font-size: 1.6rem;
}

.promo-overlay p {
  margin: 0 0 1rem;
  color: #c8d9fb;
}

.custom-accordion .accordion-item {
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1831;
}

.custom-accordion .accordion-button {
  background: #132145;
  color: #e6efff;
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: #1a2b55;
  color: #fff;
}

.custom-accordion .accordion-body {
  color: #b6c8ea;
}

.friend-links-section {
  padding-bottom: 0.7rem;
}

.friend-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.friend-links a {
  display: block;
  text-align: center;
  padding: 0.7rem 0.6rem;
  border-radius: 10px;
  background: rgba(118, 167, 255, 0.12);
  border: 1px solid rgba(118, 167, 255, 0.3);
  color: #d8e7ff;
}

.friend-links a:hover {
  color: #04131e;
  background: linear-gradient(135deg, #74f3cd, #8ec7ff);
  border-color: transparent;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080d19;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: #f2f7ff;
  font-size: 1.12rem;
  font-weight: 700;
}

.footer-nav a,
.site-footer small a {
  color: #98c1ff;
}

.preview-modal {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0d1630;
  color: #eef4ff;
}

.preview-modal .modal-header {
  background: #111f42;
}

@media (max-width: 991.98px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .promo-overlay h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .section-head h2 {
    font-size: 1.15rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .promo-banner img {
    height: 220px;
  }

  .promo-overlay {
    max-width: none;
    padding: 1rem;
  }

  .promo-overlay p {
    font-size: 0.88rem;
  }
}