:root {
  --bg: #080d17;
  --surface: #11182a;
  --surface-soft: #17213a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecff;
  --muted: #93a0c3;
  --accent: #7a6bff;
  --accent-2: #24d6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 0%, #1b2450 0%, var(--bg) 38%) fixed;
  color: var(--text);
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

a {
  text-decoration: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(36, 214, 255, 0.8);
}

.mobile-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  padding: 0 16px;
  z-index: 1045;
  background: rgba(10, 15, 28, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.menu-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 92px;
  padding: 18px 12px;
  background: #0a1020;
  border-right: 1px solid var(--line);
  z-index: 1030;
}

.sidebar .brand-link {
  justify-content: center;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
  flex-direction: column;
}

.sidebar-nav {
  width: 100%;
}

.nav-link-custom {
  display: block;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(122, 107, 255, 0.25), rgba(36, 214, 255, 0.18));
  border-color: rgba(122, 107, 255, 0.45);
}

.sidebar-meta {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
}

.sidebar-meta strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.main-area {
  min-height: 100vh;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 1025;
  backdrop-filter: blur(8px);
  background: rgba(8, 13, 23, 0.78);
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  max-width: 760px;
}

.search-input {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.search-input:focus {
  box-shadow: none;
  border-color: rgba(122, 107, 255, 0.65);
  background: var(--surface-soft);
  color: var(--text);
}

.btn-filter,
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
}

.btn-filter:hover,
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(122, 107, 255, 0.45);
  background: #1d2a4a;
}

.btn-accent {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(36, 214, 255, 0.2);
}

.btn-accent:hover {
  color: #fff;
  opacity: 0.94;
}

.section-card {
  background: rgba(17, 24, 42, 0.93);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.hero-section {
  overflow: hidden;
}

.hero-section .carousel-item {
  position: relative;
  height: 500px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 18, 0.86) 8%, rgba(6, 9, 18, 0.35) 55%, rgba(6, 9, 18, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  margin: 14px 0 10px;
  font-weight: 800;
}

.hero-content p {
  max-width: 620px;
  color: #c5cee8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.score-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(36, 214, 255, 0.18);
  border: 1px solid rgba(36, 214, 255, 0.42);
}

.featured-poster {
  background: rgba(11, 17, 31, 0.86);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.featured-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.featured-caption {
  padding: 12px;
}

.featured-caption h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.featured-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  padding: 20px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.chip.active {
  color: #fff;
  border-color: rgba(122, 107, 255, 0.45);
  background: rgba(122, 107, 255, 0.25);
}

.media-card,
.wide-card,
.rank-box,
.quote-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.media-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 214, 255, 0.45);
}

.thumb-wrap {
  display: block;
  aspect-ratio: 4 / 5;
}

.thumb-wrap img,
.wide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-body {
  padding: 10px;
}

.media-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #f4f6ff;
}

.media-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.wide-thumb {
  display: block;
  aspect-ratio: 16 / 9;
}

.wide-body {
  padding: 12px;
}

.wide-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.wide-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sub-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sub-title {
  font-size: 1rem;
  margin: 0 0 12px;
}

.rank-box {
  padding: 14px;
}

.rank-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.rank-box ol {
  margin: 0;
  padding-left: 18px;
  color: #d8dff8;
}

.rank-box li {
  margin-bottom: 8px;
  font-size: 13px;
}

.quote-card {
  padding: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.quote-card p {
  margin: 0 0 8px;
  color: #d3daf3;
  line-height: 1.6;
  font-size: 14px;
}

.quote-card span {
  color: var(--muted);
  font-size: 12px;
}

.faq-accordion .accordion-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #fff;
  box-shadow: none;
  background: #1b2b4c;
}

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

.faq-accordion .accordion-body {
  color: var(--muted);
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.friend-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: #dbe3ff;
  background: #1a2541;
  transition: all 0.2s ease;
}

.friend-grid a:hover {
  border-color: rgba(36, 214, 255, 0.5);
  color: #fff;
}

.cta-strip {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-strip h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 13, 23, 0.85);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

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

.copyright {
  font-size: 12px;
  color: var(--muted);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1060;
}

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

.offcanvas-dark {
  background: #0d1426;
  color: var(--text);
}

.offcanvas-note {
  color: var(--muted);
  font-size: 13px;
}

.trial-modal {
  background: #121b30;
  border: 1px solid var(--line);
  color: var(--text);
}

.trial-modal .form-control {
  background: #1a2541;
  border-color: var(--line);
  color: var(--text);
}

.trial-modal .form-control:focus {
  box-shadow: none;
  border-color: rgba(122, 107, 255, 0.6);
}

@media (min-width: 992px) {
  .main-area {
    margin-left: 92px;
  }

  .friend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .main-area {
    padding-top: 76px;
  }

  .hero-section .carousel-item {
    height: 440px;
  }

  .content-section {
    padding: 16px;
  }
}

@media (max-width: 767.98px) {
  .hero-section .carousel-item {
    height: 400px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}