:root {
  --bg-dark-start: #201d58;
  --bg-dark-end: #0f5f8f;
  --bg-soft: #f4f7ff;
  --ink: #1d2742;
  --muted: #6f7a97;
  --accent: #ff7a61;
  --accent-2: #59d7ff;
  --card-radius: 16px;
  --shadow: 0 10px 24px rgba(20, 32, 77, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  text-decoration: none;
}

.container-wide {
  max-width: 1180px;
}

.site-header {
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 24, 64, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(5, 10, 30, 0.28);
}

.navbar {
  min-height: 76px;
}

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

.logo-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6ef0ff, #7d77ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

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

.navbar-nav .nav-link {
  color: rgba(239, 245, 255, 0.84);
  padding: 0.5rem 0.95rem;
  font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(120deg, var(--accent), #ff9668);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

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

.hero-section {
  color: #eaf2ff;
  background: radial-gradient(circle at 20% 5%, rgba(115, 150, 255, 0.22), transparent 45%), linear-gradient(130deg, var(--bg-dark-start), var(--bg-dark-end));
  padding: 126px 0 72px;
  position: relative;
}

.hero-kicker {
  font-size: 0.92rem;
  color: #9ec8ff;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 800;
}

.hero-desc {
  max-width: 640px;
  color: #d6e6ff;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-main {
  border-radius: 999px;
  background: #ffffff;
  color: #10265d;
  border: 0;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
}

.btn-main:hover {
  color: #10265d;
  background: #f1f6ff;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #e7f0ff;
  padding: 0.65rem 1.15rem;
}

.btn-ghost:hover {
  color: #fff;
  border-color: #fff;
}

.hero-stats {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 1.26rem;
  line-height: 1.2;
}

.hero-stats span {
  color: #b8cdf7;
  font-size: 0.87rem;
}

.hero-feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(6, 18, 48, 0.26);
  overflow: hidden;
}

.feature-badge {
  display: inline-block;
  margin: 12px 12px 0;
  font-size: 0.74rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(89, 215, 255, 0.22);
  color: #bcf3ff;
}

.hero-feature-card img {
  width: calc(100% - 24px);
  margin: 12px;
  border-radius: 14px;
  height: 238px;
  object-fit: cover;
}

.feature-body {
  padding: 0 16px 16px;
}

.feature-body h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature-body p {
  color: #cae2ff;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.feature-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a6c5eb;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots span.active {
  width: 24px;
  border-radius: 99px;
  background: #7de7ff;
}

.content-section {
  padding: 72px 0;
}

.section-featured {
  background: #fff7f1;
}

.section-latest {
  background: #eef8ff;
}

.section-genres {
  background: #f7f9ff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  color: #3a8ed8;
  margin-bottom: 4px;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: #1a2755;
  font-weight: 800;
}

.section-more {
  color: #2e74d8;
  font-weight: 600;
  font-size: 0.92rem;
}

.media-card {
  border: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.media-thumb {
  position: relative;
}

.media-thumb img {
  width: 100%;
  height: 226px;
  object-fit: cover;
}

.state-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2b77eb;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.media-body {
  padding: 14px 14px 16px;
}

.media-body h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 700;
  color: #1d2a4d;
}

.media-body p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4f79b4;
  font-size: 0.78rem;
  font-weight: 600;
}

.update-card {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(22, 36, 80, 0.1);
}

.update-thumb {
  width: 142px;
  min-width: 142px;
  height: 102px;
  object-fit: cover;
  border-radius: 10px;
}

.update-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #1b2b56;
}

.update-card p {
  color: #6a7592;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.genre-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(17, 33, 74, 0.08);
  height: 100%;
}

.genre-top {
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2666dc, #21a0db);
}

.genre-card:nth-child(2n) .genre-top,
.row .col:nth-child(2n) .genre-top {
  background: linear-gradient(135deg, #4b56d4, #2e83d7);
}

.row .col:nth-child(3n) .genre-top {
  background: linear-gradient(135deg, #1f7bc3, #2bc6ce);
}

.genre-top h3 {
  margin: 0 0 3px;
  font-size: 1.02rem;
}

.genre-top p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.genre-card ul {
  list-style: none;
  margin: 0;
  padding: 12px 14px 14px;
}

.genre-card li + li {
  margin-top: 7px;
}

.genre-card a {
  color: #2a3a68;
  font-size: 0.88rem;
}

.section-ranking {
  background: linear-gradient(140deg, #18205a 0%, #1c387f 48%, #0c6a93 100%);
}

.ranking-intro {
  color: #bdd4ff;
  max-width: 340px;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  background: #f8fbff;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 30px 52px 1fr auto;
  align-items: center;
  gap: 10px;
}

.rank-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff7a61;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

.rank-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #1b2d57;
}

.rank-item p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #6982a6;
}

.rank-score {
  font-weight: 800;
  color: #2279db;
  font-size: 0.95rem;
}

.section-friends {
  background: #f2f6fc;
}

.friend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  color: #1e3668;
  background: #e3ebfb;
  font-size: 0.88rem;
  border: 1px solid #d1ddf7;
}

.friend-wrap a:hover {
  background: #d3e1fb;
}

.site-footer {
  background: #0c1334;
  color: #aeb8d8;
  padding: 56px 0 24px;
}

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

.site-footer h3 {
  color: #e7eeff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer a {
  color: #b8c5ea;
}

.footer-bottom {
  border-top: 1px solid rgba(199, 215, 255, 0.16);
  margin-top: 22px;
  padding-top: 16px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fff;
}

.modal-content {
  border: 0;
  border-radius: 14px;
}

@media (min-width: 992px) {
  .offcanvas-lg {
    position: static;
    transform: none;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
  }

  .offcanvas-lg .offcanvas-body {
    display: flex;
    align-items: center;
    padding: 0;
  }

  .offcanvas-lg .offcanvas-header {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .offcanvas {
    background: #101c46;
    color: #fff;
  }

  .navbar-nav .nav-link {
    padding-left: 0;
  }

  .hero-section {
    padding-top: 108px;
  }
}

@media (max-width: 767.98px) {
  .content-section {
    padding: 54px 0;
  }

  .hero-stats {
    gap: 16px;
  }

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

  .update-thumb {
    width: 100%;
    height: 170px;
  }

  .rank-item {
    grid-template-columns: 28px 46px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-self: end;
  }
}