:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --ink: #11253d;
  --muted: #5f7187;
  --primary: #0ea5a4;
  --primary-dark: #0a7f7e;
  --accent: #f97316;
  --nav-bg: #081a31;
  --footer-bg: #071425;
  --ring: rgba(14, 165, 164, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding-top: 74px;
}

a {
  text-decoration: none;
}

.site-navbar {
  background: linear-gradient(90deg, rgba(7, 21, 42, 0.96), rgba(7, 39, 66, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s ease;
}

.site-navbar.is-scrolled {
  background: rgba(5, 18, 36, 0.98);
  box-shadow: 0 10px 32px rgba(6, 21, 41, 0.4);
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 164, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-link:hover {
  color: #fff;
}

.brand-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7ff5e5, #18a7a6 45%, #0f5d7a 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.brand-text {
  font-size: 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.8rem !important;
  border-radius: 0.65rem;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(14, 165, 164, 0.22);
}

.search-box {
  width: 240px;
}

.search-box .form-control {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
}

.search-box .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box .form-control:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(14, 165, 164, 0.6);
  box-shadow: 0 0 0 0.2rem var(--ring);
}

.mobile-drawer {
  background: #0b1f3b;
  color: #fff;
}

.mobile-drawer .nav-link {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-drawer .nav-link.active,
.mobile-drawer .nav-link:hover {
  background: rgba(14, 165, 164, 0.32);
}

.hero-wrap {
  position: relative;
}

.hero-wrap .carousel-item {
  height: 66vh;
  min-height: 430px;
  max-height: 700px;
}

.hero-image {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(7, 20, 39, 0.78) 15%, rgba(7, 20, 39, 0.35) 56%, rgba(7, 20, 39, 0.68) 100%);
}

.hero-caption {
  bottom: 15%;
  z-index: 2;
}

.hero-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 165, 164, 0.25);
  border: 1px solid rgba(127, 245, 229, 0.5);
  color: #d6fffb;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 0.65rem;
}

.hero-desc {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.6rem;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  margin-bottom: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-theme {
  background: linear-gradient(90deg, var(--primary), #0c7f9b);
  border: 0;
  color: #fff;
  font-weight: 600;
  padding-inline: 1rem;
}

.btn-theme:hover {
  color: #fff;
  background: linear-gradient(90deg, #0fb9b6, #0d95b7);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.carousel-indicators [data-bs-target] {
  width: 22px;
  height: 4px;
  border-radius: 999px;
}

.section-heading h2,
.section-top h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.section-heading p,
.section-top p {
  margin-bottom: 0;
  color: var(--muted);
}

.quick-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 42, 66, 0.08);
  border: 1px solid #e6edf4;
}

.quick-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.quick-content {
  padding: 1rem 1rem 1.1rem;
}

.quick-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.quick-content p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.mini-date {
  font-size: 0.82rem;
  color: #0f8f8d;
}

.content-section {
  background: transparent;
}

.bg-soft {
  background: #edf6f9;
}

.more-link {
  color: var(--primary-dark);
  font-weight: 600;
}

.more-link:hover {
  color: #0a6f8c;
}

.movie-card {
  border: 1px solid #e4ebf2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 42, 66, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(15, 42, 66, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 21, 42, 0.85);
  color: #ffd98d;
  border: 1px solid rgba(255, 217, 141, 0.7);
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  font-weight: 700;
}

.movie-title {
  font-size: 1.03rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.movie-meta {
  color: #0f7f94;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.movie-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-date {
  color: #6f7e8f;
  font-size: 0.82rem;
}

.btn-outline-theme {
  border-color: #8ed6db;
  color: #0b8180;
}

.btn-outline-theme:hover {
  background: #0ea5a4;
  border-color: #0ea5a4;
  color: #fff;
}

.promo-box {
  border-radius: 20px;
  padding: clamp(1.4rem, 3.2vw, 2.2rem);
  color: #fff;
  background: linear-gradient(120deg, #0b677f 5%, #0e3f67 45%, #0f2f56 100%);
  box-shadow: 0 16px 35px rgba(9, 34, 59, 0.28);
}

.promo-box h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.promo-box p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.promo-image {
  width: min(290px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.friend-section {
  background: #f6fbfc;
  border-top: 1px solid #e7f0f5;
  border-bottom: 1px solid #e7f0f5;
}

.friend-links {
  margin-top: 0.6rem;
}

.friend-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d3e6ee;
  color: #16516d;
  background: #fff;
  transition: all 0.2s ease;
}

.friend-pill:hover {
  color: #fff;
  background: linear-gradient(90deg, #0ea5a4, #0a7f9f);
  border-color: transparent;
}

.site-footer {
  background: linear-gradient(180deg, #0a1730 0%, var(--footer-bg) 100%);
  color: rgba(255, 255, 255, 0.88);
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-brand:hover {
  color: #9beee4;
}

.footer-text {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.8rem;
}

.footer-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: #98f4e7;
}

.social-row {
  display: flex;
  gap: 0.45rem;
}

.social-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.social-dot:hover {
  background: rgba(14, 165, 164, 0.32);
  color: #fff;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 1.4rem 0 1rem;
}

.footer-bottom,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a:hover {
  color: #9ef2e7;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #0ea5a4, #0d7f9a);
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 43, 68, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1040;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.app-modal {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 70px;
  }

  .hero-wrap .carousel-item {
    min-height: 410px;
    height: 60vh;
  }

  .hero-caption {
    bottom: 12%;
  }

  .hero-desc {
    max-width: 92%;
  }
}

@media (max-width: 575.98px) {
  .hero-wrap .carousel-item {
    min-height: 390px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-image {
    height: 160px;
  }
}