:root {
  --bg: #eef2ff;
  --surface: #ffffff;
  --text: #1f2640;
  --muted: #6f7896;
  --line: #e4e9f8;
  --primary: #6c5cff;
  --primary-dark: #5342f0;
  --accent: #1fc6b0;
  --deep: #0a1335;
  --deep-soft: #162455;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1035;
}

.site-header .navbar {
  background: rgba(8, 14, 38, 0.72);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 0.85rem 0;
}

.site-header.scrolled .navbar {
  background: rgba(8, 14, 38, 0.95);
  box-shadow: 0 10px 30px rgba(6, 10, 25, 0.35);
}

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

.brand-mark::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--accent) 45%, var(--primary) 100%);
  box-shadow: 0 0 14px rgba(108, 92, 255, 0.75);
}

.navbar-nav .nav-link {
  color: rgba(237, 242, 255, 0.86);
  font-size: 0.96rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 320px;
}

.search-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.search-form .form-control:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.nav-cta {
  border: 0;
  background: linear-gradient(120deg, var(--primary), var(--accent));
}

.main-wrap {
  padding-top: 78px;
}

.hero-section {
  padding: 1.5rem 0 1rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 3rem;
  color: #f8fbff;
  background: linear-gradient(130deg, rgba(10, 19, 52, 0.88), rgba(22, 36, 85, 0.72)), url('../images/k4qris.jpg') center/cover no-repeat;
  box-shadow: 0 24px 55px rgba(8, 16, 45, 0.35);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-panel h1 {
  font-size: clamp(1.7rem, 2.7vw, 2.9rem);
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-panel p {
  max-width: 640px;
  color: rgba(239, 245, 255, 0.9);
  margin-bottom: 1.6rem;
}

.hero-actions .btn {
  padding: 0.72rem 1.35rem;
  font-weight: 600;
}

.hero-actions .btn-primary {
  border: 0;
  background: linear-gradient(120deg, var(--primary), var(--accent));
}

.hero-schedule {
  background: rgba(9, 17, 45, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.2rem;
  backdrop-filter: blur(4px);
}

.hero-schedule h2 {
  font-size: 1.08rem;
  margin-bottom: 0.95rem;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(238, 245, 255, 0.9);
  font-size: 0.92rem;
  padding: 0.52rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

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

.hero-metrics {
  margin-top: 1.6rem;
}

.metric-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.metric-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.metric-item span {
  font-size: 0.88rem;
  color: rgba(234, 241, 255, 0.85);
}

.updates-section {
  margin-top: 0.25rem;
}

.update-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 8px 24px rgba(18, 27, 62, 0.06);
}

.update-thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.update-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #222c4d;
  line-height: 1.45;
}

.update-body small {
  color: var(--muted);
}

.catalog-section {
  padding: 3.8rem 0;
}

.alt-bg {
  background: #f8f9ff;
}

.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1b2444;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.view-more {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.93rem;
}

.film-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17, 26, 62, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.film-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(17, 26, 62, 0.14);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #dfe5f7;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.film-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.film-body {
  padding: 0.9rem 0.9rem 1rem;
}

.film-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.film-top small {
  color: var(--muted);
  font-size: 0.75rem;
}

.quality-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: 999px;
  min-width: 42px;
  padding: 0.2rem 0.5rem;
}

.film-body h3 {
  font-size: 1rem;
  margin: 0 0 0.32rem;
  color: #182446;
}

.film-body p {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.film-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.film-bottom span {
  font-size: 0.83rem;
  font-weight: 600;
  color: #223057;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.66rem;
  border-radius: 9px;
  background: #eff2ff;
  color: var(--primary-dark);
  font-size: 0.79rem;
  font-weight: 600;
}

.watch-link:hover {
  background: #e2e8ff;
  color: #4637d7;
}

.vip-section {
  background: linear-gradient(135deg, var(--deep), var(--deep-soft));
  color: #f2f7ff;
  padding: 4.3rem 0;
}

.vip-label {
  display: inline-block;
  border-radius: 999px;
  padding: 0.33rem 0.75rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 0.8rem;
}

.vip-section h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.vip-section p {
  color: rgba(236, 242, 255, 0.88);
  margin-bottom: 1.4rem;
}

.vip-stat {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
}

.vip-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.vip-stat span {
  font-size: 0.88rem;
  color: rgba(237, 243, 255, 0.86);
}

.faq-section {
  padding: 4rem 0;
  background: #ffffff;
}

.faq-accordion {
  max-width: 900px;
}

.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: #1d2748;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #2a2f67;
}

.friends-section {
  background: #f6f2ff;
  padding: 4rem 0;
}

.friend-link {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid #e7e0ff;
  border-radius: 12px;
  padding: 0.7rem 0.55rem;
  font-size: 0.92rem;
  color: #3a2f74;
  transition: all 0.25s ease;
}

.friend-link:hover {
  background: #efe9ff;
  color: #2f2567;
  transform: translateY(-2px);
}

.cta-section {
  padding: 0 0 4.5rem;
}

.cta-panel {
  background: linear-gradient(120deg, #f7faff, #eef3ff);
  border: 1px solid #dce4ff;
  border-radius: 20px;
  padding: 2.8rem 1.2rem;
  box-shadow: 0 14px 36px rgba(16, 25, 60, 0.08);
}

.cta-panel h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 0.65rem;
  color: #1d2850;
}

.cta-panel p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 1.3rem;
}

.cta-panel .btn-primary {
  border: 0;
  background: linear-gradient(120deg, var(--primary), var(--accent));
}

.site-footer {
  background: #060e2a;
  color: #b7c4e9;
  padding: 4.1rem 0 1.2rem;
}

.footer-brand {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.site-footer h3 {
  color: #f0f5ff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer p {
  color: #b7c4e9;
}

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

.site-footer a {
  color: #b7c4e9;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: 0.88rem;
}

@media (max-width: 991.98px) {
  .hero-panel {
    padding: 2rem 1.2rem;
    border-radius: 20px;
  }

  .catalog-section,
  .friends-section,
  .faq-section {
    padding: 3.2rem 0;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 575.98px) {
  .main-wrap {
    padding-top: 72px;
  }

  .hero-chip {
    font-size: 0.76rem;
  }

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

  .update-card {
    align-items: flex-start;
  }

  .update-thumb {
    width: 74px;
    height: 74px;
  }

  .film-body {
    padding: 0.78rem;
  }

  .cta-panel {
    border-radius: 16px;
    padding: 2.2rem 1rem;
  }
}