* { box-sizing: border-box; }
:root {
  --bg: #f4f6ff;
  --text: #11162b;
  --muted: #68708f;
  --primary: #6f4cff;
  --secondary: #ff7b57;
  --teal: #2cc8b9;
  --line: #e9ecfb;
  --card: #ffffff;
  --footer: #0f1730;
}
body {
  margin: 0;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { text-decoration: none; }
.site-header {
  background: rgba(12, 18, 38, 0.82);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
  z-index: 1030;
}
.site-header.scrolled {
  background: rgba(12, 18, 38, 0.94);
  box-shadow: 0 10px 30px rgba(8, 10, 24, .25);
}
.navbar-brand, .nav-link, .login-btn { color: #fff !important; }
.nav-link {
  font-weight: 500;
  opacity: .86;
  padding: .5rem .85rem !important;
  border-radius: 10px;
}
.nav-link:hover, .nav-link:focus {
  opacity: 1;
  background: rgba(255, 255, 255, .1);
}
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--secondary), var(--primary));
  display: inline-block;
  position: relative;
  box-shadow: 0 6px 16px rgba(111, 76, 255, .4);
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 9px;
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.search-box {
  gap: .5rem;
  background: rgba(255, 255, 255, .1);
  padding: .35rem;
  border-radius: 12px;
}
.search-box .form-control {
  border: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, .9);
}
.search-box .form-control:focus { box-shadow: none; }
.btn-main {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
}
.btn-main:hover { color: #fff; filter: brightness(1.03); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.hero-section { padding: 1.2rem 0 3.4rem; }
.hero-shell {
  border-radius: 28px;
  padding: 2.2rem;
  background: linear-gradient(130deg, #282a78 0%, #5637d8 45%, #ff7b57 100%);
  color: #fff;
  box-shadow: 0 25px 60px rgba(48, 46, 110, .35);
}
.hero-tag {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .88rem;
}
.hero-title {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin: .95rem 0 .85rem;
  font-weight: 800;
  letter-spacing: .4px;
}
.hero-text {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, .88);
  max-width: 90%;
}
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.pill {
  font-size: .82rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.stat-card {
  padding: .8rem .9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .11);
}
.stat-num { font-size: 1.25rem; font-weight: 800; }
.stat-label { font-size: .85rem; opacity: .9; }
.hero-carousel img {
  border-radius: 20px;
  object-fit: cover;
  height: 440px;
}
.hero-carousel .carousel-item { position: relative; }
.slide-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 14px;
  padding: .8rem .95rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .62));
}
.slide-caption h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.slide-caption p {
  margin: .2rem 0 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .84);
}
.carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 20px;
}
.section-pad { padding: 1.4rem 0 3.2rem; }
.section-head { margin-bottom: 1rem; }
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  color: var(--primary);
  font-weight: 700;
}
.section-title {
  margin: .2rem 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
}
.section-desc {
  margin: 0;
  color: var(--muted);
}
.section-more {
  color: var(--primary);
  font-weight: 600;
}
.category-card {
  border-radius: 16px;
  padding: 1rem;
  color: #fff;
  min-height: 132px;
  box-shadow: 0 12px 30px rgba(29, 26, 87, .14);
}
.category-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.category-card p { margin: 0; font-size: .86rem; opacity: .92; }
.cat-1 { background: linear-gradient(135deg, #5568ff, #7d45ff); }
.cat-2 { background: linear-gradient(135deg, #2449d8, #1f9aff); }
.cat-3 { background: linear-gradient(135deg, #8138ff, #3a66ff); }
.cat-4 { background: linear-gradient(135deg, #00a6b5, #2ecc71); }
.cat-5 { background: linear-gradient(135deg, #1d8cff, #18c7cc); }
.cat-6 { background: linear-gradient(135deg, #ff7a59, #ff4ea4); }
.cat-7 { background: linear-gradient(135deg, #7f60ff, #2bc8c8); }
.cat-8 { background: linear-gradient(135deg, #2f4dff, #5f8cff); }
.cat-9 { background: linear-gradient(135deg, #00b7a8, #4dc86f); }
.cat-10 { background: linear-gradient(135deg, #2584ff, #5f57ff); }
.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(30, 37, 68, .07);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(30, 37, 68, .14);
}
.media-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.media-body { padding: .8rem .85rem .9rem; }
.media-title {
  margin: 0 0 .4rem;
  font-size: .98rem;
  font-weight: 700;
}
.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
}
.meta-rate {
  color: var(--primary);
  font-weight: 700;
}
.tag-row { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.tag-pill {
  font-size: .74rem;
  padding: .2rem .48rem;
  border-radius: 999px;
  background: #f0f3ff;
  color: #3d4b75;
}
.compact-card .media-cover img { height: 205px; }
.ranking-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .6rem;
  box-shadow: 0 12px 28px rgba(19, 29, 60, .08);
}
.rank-item {
  display: grid;
  grid-template-columns: 34px 50px 1fr auto;
  gap: .6rem;
  align-items: center;
  padding: .52rem .45rem;
  border-radius: 12px;
}
.rank-item + .rank-item { margin-top: .25rem; }
.rank-item:hover { background: #f6f8ff; }
.rank-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(140deg, var(--secondary), var(--primary));
}
.rank-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}
.rank-title { margin: 0; font-size: .93rem; font-weight: 700; }
.rank-sub { margin: 0; font-size: .75rem; color: var(--muted); }
.rank-score { color: var(--primary); font-weight: 700; font-size: .82rem; }
.spot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 24px rgba(27, 36, 70, .08);
}
.spot-cover img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.spot-body { padding: .85rem; }
.spot-title { margin: 0 0 .3rem; font-size: 1rem; font-weight: 700; }
.spot-body p { margin: 0; color: var(--muted); font-size: .86rem; }
.promo-band {
  border-radius: 20px;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(135deg, #1c2356, #3728a8 55%, #ff7b57);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.promo-band h3 { margin: 0 0 .3rem; font-weight: 800; }
.promo-band p { margin: 0; opacity: .9; }
.friends-wrap { padding-bottom: 2.4rem; }
.friend-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .86rem;
  border-radius: 999px;
  border: 1px solid #dde3ff;
  background: #fff;
  color: #2f3960;
  font-size: .88rem;
}
.friend-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.site-footer {
  background: var(--footer);
  color: #c7d0ee;
  padding: 3rem 0 1.5rem;
}
.site-footer p { color: #9eacd8; }
.footer-title {
  font-size: .92rem;
  color: #ffffff;
  margin-bottom: .8rem;
  font-weight: 700;
}
.footer-link {
  display: block;
  color: #aab7df;
  margin-bottom: .45rem;
  font-size: .9rem;
}
.footer-link:hover { color: #fff; }
.bottom-note {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8d9dcb;
  font-size: .88rem;
}
.bottom-note a { color: #fff; }
.offcanvas { background: #f9faff; }
.offcanvas .nav-link { color: #273055 !important; border-radius: 10px; }
.offcanvas .nav-link:hover { background: #edf1ff; }
@media (max-width: 1199.98px) {
  .search-box { display: none !important; }
}
@media (max-width: 991.98px) {
  .hero-shell { padding: 1.35rem; border-radius: 22px; }
  .hero-carousel img { height: 320px; }
  .hero-text { max-width: 100%; }
}
@media (max-width: 575.98px) {
  .hero-actions .btn { width: 100%; }
  .media-cover img, .compact-card .media-cover img { height: 190px; }
  .spot-cover img { height: 180px; }
  .promo-band { flex-direction: column; align-items: flex-start; }
}