:root {
  --bg: #070b15;
  --bg-soft: #0e1424;
  --card: #111a2d;
  --card-2: #0c1220;
  --line: #253454;
  --text: #e8efff;
  --muted: #8fa1c7;
  --accent: #7fffd4;
  --accent-2: #b685ff;
  --warning: #ffb84d;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 560px at 90% -20%, rgba(182, 133, 255, 0.2), transparent 65%),
    radial-gradient(800px 500px at -10% 0%, rgba(127, 255, 212, 0.16), transparent 60%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: rgba(8, 12, 22, 0.72);
  border-bottom: 1px solid rgba(127, 255, 212, 0.08);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 12, 22, 0.92);
  border-color: rgba(182, 133, 255, 0.24);
}

.navbar {
  min-height: 74px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent-2), var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(127, 255, 212, 0.08), 0 8px 18px rgba(182, 133, 255, 0.35);
}

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

.main-nav .nav-link {
  color: #bcc8e7;
  font-size: 0.95rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #07101f;
  background: linear-gradient(90deg, var(--accent), #8ae7ff);
}

.dropdown-menu {
  border: 1px solid rgba(182, 133, 255, 0.3);
  background: #111a2a;
}

.dropdown-item {
  color: #d2dbf4;
}

.dropdown-item:hover {
  background: rgba(127, 255, 212, 0.14);
  color: #effcff;
}

.btn-ghost {
  color: #d6e5ff;
  border: 1px solid rgba(127, 255, 212, 0.32);
  border-radius: 999px;
  padding: 0.44rem 0.95rem;
  background: transparent;
}

.btn-ghost:hover {
  color: #09162a;
  background: var(--accent);
}

.btn-accent {
  border: 0;
  color: #081120;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.52rem 1.12rem;
  background: linear-gradient(120deg, var(--accent), #8fb8ff);
}

.btn-accent:hover {
  color: #050a12;
  filter: brightness(1.06);
}

.btn-outline-soft {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #eff4ff;
  padding: 0.52rem 1.12rem;
}

.btn-outline-soft:hover {
  border-color: rgba(127, 255, 212, 0.6);
  color: var(--accent);
}

.offcanvas {
  background: #090f1d;
}

.offcanvas .nav-link {
  color: #d2defb;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
}

.offcanvas .nav-link:hover {
  background: rgba(127, 255, 212, 0.12);
}

.page-main {
  padding-top: 96px;
}

.hero-section {
  padding: 14px 0 24px;
}

.hero-shell {
  border-radius: 24px;
  min-height: 450px;
  border: 1px solid rgba(182, 133, 255, 0.25);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(92deg, rgba(5, 10, 20, 0.88) 0%, rgba(5, 10, 20, 0.65) 44%, rgba(5, 10, 20, 0.3) 100%),
    url('../images/7656251.jpg');
  background-size: cover;
  background-position: center;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -15% -40% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 255, 212, 0.2), transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: clamp(28px, 5vw, 56px);
}

.hero-chip {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 255, 212, 0.45);
  font-size: 0.78rem;
  color: #d3fff1;
  margin-bottom: 14px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.15;
}

.hero-content p {
  margin: 16px 0 0;
  color: #c7d4f4;
  line-height: 1.72;
}

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

.hero-meta {
  margin-top: 20px;
  color: #a9bbdf;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.9rem;
}

.metric-section {
  padding-bottom: 8px;
}

.metric-card {
  background: linear-gradient(160deg, rgba(17, 26, 45, 0.95), rgba(12, 18, 31, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-card h3 {
  margin: 8px 0 2px;
  font-size: 1.42rem;
}

.metric-card small {
  color: #93efd3;
}

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

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

.section-kicker {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: #93efd3;
  margin-bottom: 5px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.58rem;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.more-link {
  color: #a9bcff;
  font-size: 0.9rem;
}

.more-link:hover {
  color: var(--accent);
}

.film-card,
.mini-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.film-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 255, 212, 0.56);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.poster-wrap {
  position: relative;
}

.poster-wrap img,
.mini-card img,
.rank-thumb,
.news-thumb {
  width: 100%;
  display: block;
  object-fit: cover;
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
}

.tag-pill,
.score-pill {
  position: absolute;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-weight: 700;
}

.tag-pill {
  top: 10px;
  left: 10px;
  background: rgba(9, 12, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.score-pill {
  top: 10px;
  right: 10px;
  color: #07101e;
  background: linear-gradient(120deg, #ffd466, #ff9f6b);
}

.film-body {
  padding: 12px 12px 14px;
}

.film-body h3 {
  margin: 0;
  font-size: 1rem;
}

.film-body p {
  color: var(--muted);
  margin: 6px 0 8px;
  font-size: 0.86rem;
  min-height: 40px;
}

.film-meta {
  display: flex;
  justify-content: space-between;
  color: #9eb2dd;
  font-size: 0.78rem;
  gap: 8px;
}

.film-card.compact .film-body {
  padding: 10px 10px 12px;
}

.film-card.compact .film-body h3 {
  font-size: 0.95rem;
}

.mini-card img {
  aspect-ratio: 16 / 10;
}

.mini-card h3 {
  margin: 10px 10px 2px;
  font-size: 0.95rem;
}

.mini-card p {
  margin: 0 10px 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.feature-section {
  padding: 18px 0 10px;
}

.feature-panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(127, 255, 212, 0.25);
  padding: clamp(22px, 4.2vw, 36px);
  min-height: 280px;
  background-image:
    linear-gradient(95deg, rgba(5, 10, 20, 0.9) 0%, rgba(5, 10, 20, 0.52) 55%, rgba(5, 10, 20, 0.2) 100%),
    url('../images/38024762.jpg');
  background-size: cover;
  background-position: center;
}

.feature-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  border: 1px solid rgba(182, 133, 255, 0.55);
  color: #ecdfff;
  font-size: 0.78rem;
}

.feature-panel h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.feature-panel p {
  margin: 0;
  max-width: 680px;
  color: #c8d6f5;
  line-height: 1.72;
}

.feature-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags span {
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  background: rgba(7, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.23);
  font-size: 0.78rem;
}

.feature-footer {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #d8e4ff;
}

.classic-bg {
  position: relative;
}

.classic-bg::before {
  content: "";
  position: absolute;
  inset: 12px 0;
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.018) 0 8px, transparent 8px 22px);
  pointer-events: none;
}

.classic-bg .container-xxl {
  position: relative;
}

.news-accordion .accordion-item {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f182a, #0b1322);
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.news-accordion .accordion-button {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}

.news-accordion .accordion-button::after {
  margin-left: 10px;
}

.news-accordion .accordion-button:not(.collapsed) {
  background: rgba(127, 255, 212, 0.05);
  color: var(--text);
}

.news-thumb {
  width: 84px;
  height: 52px;
  border-radius: 8px;
}

.news-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.news-text strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.news-text small {
  color: var(--muted);
  font-size: 0.79rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.news-date {
  color: #9fc8ff;
  font-size: 0.8rem;
  white-space: nowrap;
}

.news-accordion .accordion-body {
  color: #b6c8ea;
  line-height: 1.72;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-board {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #0f182b, #0b111d);
  overflow: hidden;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a263f;
  color: #c8d8ff;
  font-weight: 700;
  flex-shrink: 0;
}

.top3 .rank-num {
  background: linear-gradient(120deg, #ffcf64, #ff8a65);
  color: #121212;
}

.rank-thumb {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rank-left h3 {
  margin: 0;
  font-size: 0.96rem;
}

.rank-left p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.rank-date {
  color: #95add8;
  font-size: 0.78rem;
  white-space: nowrap;
}

.friend-section {
  padding-top: 20px;
}

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

.friend-grid a {
  border: 1px solid rgba(127, 255, 212, 0.26);
  background: rgba(12, 20, 34, 0.9);
  color: #c9e7dc;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  text-align: center;
  transition: all 0.25s ease;
}

.friend-grid a:hover {
  color: #07101f;
  background: linear-gradient(110deg, #7fffd4, #93baff);
  border-color: transparent;
}

.site-footer {
  margin-top: 20px;
  padding: 34px 0 20px;
  border-top: 1px solid rgba(182, 133, 255, 0.2);
  background: #070d19;
}

.footer-brand {
  font-size: 1.18rem;
  font-weight: 700;
}

.footer-text {
  color: #9ab0d9;
  margin-top: 10px;
  max-width: 430px;
  line-height: 1.7;
}

.site-footer h3 {
  font-size: 0.95rem;
  color: #dce7ff;
  margin: 0 0 10px;
}

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

.site-footer li {
  margin-bottom: 7px;
}

.site-footer a {
  color: #9ab0d9;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #8095bc;
  font-size: 0.86rem;
}

.search-modal {
  background: linear-gradient(180deg, #101a2e, #0a1120);
  border: 1px solid rgba(127, 255, 212, 0.25);
  color: var(--text);
}

.search-modal .form-control {
  background: #0b1425;
  border: 1px solid #2a3a59;
  color: #eaf2ff;
}

.search-modal .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(127, 255, 212, 0.16);
  border-color: rgba(127, 255, 212, 0.5);
}

.hot-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #99afd8;
  font-size: 0.85rem;
}

.hot-tags a {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.58rem;
}

.hot-tags a:hover {
  border-color: rgba(127, 255, 212, 0.6);
  color: var(--accent);
}

@media (max-width: 1199.98px) {
  .hero-shell {
    min-height: 420px;
  }

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

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

  .hero-shell {
    min-height: 400px;
    background-position: 62% center;
  }

  .section-head {
    align-items: center;
  }

  .news-accordion .accordion-button {
    grid-template-columns: 72px 1fr;
  }

  .news-date {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

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

@media (max-width: 767.98px) {
  .hero-shell {
    min-height: 360px;
    border-radius: 18px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-content p {
    font-size: 0.92rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .friend-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-date {
    margin-left: 40px;
  }
}