:root {
  --bg: #f3f6fb;
  --panel: rgba(255,255,255,0.92);
  --panel-strong: #ffffff;
  --text: #0f172a;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.08);
  --brand1: #ef4444;
  --brand2: #f59e0b;
  --brand3: #8b5cf6;
  --brand4: #06b6d4;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius: 22px;
  --radius-lg: 30px;
  --container: min(1200px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.10), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 48%, #f6f8fc 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(239, 68, 68, 0.16); }

.container { width: var(--container); margin: 0 auto; }
.site-shell { padding-bottom: 48px; }

.top-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2), #22c55e, var(--brand4), var(--brand3));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.04);
}
.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2) 42%, var(--brand3));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 11px;
  border: 2px solid rgba(255,255,255,0.62);
}
.brand-text {
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--brand1), var(--brand2), #22c55e, var(--brand4), var(--brand3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.2s ease;
}
.nav a:hover,
.nav a.active {
  background: rgba(239, 68, 68, 0.09);
  color: var(--brand1);
}
.search-pill {
  margin-left: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 240px;
}
.search-pill input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text);
}
.search-pill button,
.btn,
.btn-soft,
.chip,
.tag,
.pager a,
.mobile-toggle {
  border: 0;
  cursor: pointer;
}
.search-pill button {
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15,23,42,0.05);
}

.hero {
  margin: 22px auto 26px;
  width: var(--container);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.92)),
    radial-gradient(circle at top left, rgba(239,68,68,0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(139,92,246,0.24), transparent 28%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  padding: 26px;
}
.hero-main {
  position: relative;
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-copy {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-desc {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  max-width: 52ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-meta span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.85rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}
.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 14px 26px rgba(239,68,68,0.24);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-soft {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-soft:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,23,42,0.92), rgba(15,23,42,0.14) 48%, rgba(15,23,42,0.82)),
    linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.55));
}
.hero-side {
  display: grid;
  gap: 16px;
}
.side-panel {
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.65);
}
.side-panel h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}
.panel-head {
  padding: 18px 18px 0;
}
.feature-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}
.feature-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15,23,42,0.03);
  transition: 0.2s ease;
}
.feature-item:hover { transform: translateY(-2px); background: rgba(239,68,68,0.06); }
.feature-item img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}
.feature-item h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}
.feature-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}
.stat {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,0.03), rgba(15,23,42,0.02));
  padding: 14px 12px;
  text-align: center;
}
.stat strong { display:block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }

.section { margin: 0 auto 24px; width: var(--container); }
.section-card {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
}
.section-head {
  display:flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 22px 22px 14px;
}
.section-head h2, .section-head h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.1;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}
.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.05);
  color: #334155;
  font-weight: 800;
  border: 1px solid rgba(15,23,42,0.05);
}
.chip.active,
.chip:hover {
  background: rgba(239,68,68,0.10);
  color: var(--brand1);
}

.grid {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 10px 28px rgba(15,23,42,0.05);
  transition: 0.22s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.10);
}
.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}
.movie-card:hover .movie-poster img { transform: scale(1.04); }
.movie-poster::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.88));
}
.movie-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.movie-badges .badge {
  background: rgba(15,23,42,0.55);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.movie-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.movie-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}
.movie-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}
.movie-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}
.movie-actions a {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  transition: 0.2s ease;
}
.movie-actions .primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
}
.movie-actions .secondary {
  background: rgba(15,23,42,0.05);
  color: #334155;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}
.list-row {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15,23,42,0.03);
  transition: 0.2s ease;
}
.list-row:hover {
  background: rgba(239,68,68,0.06);
  transform: translateY(-2px);
}
.list-row img {
  width: 86px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}
.list-row h3,
.list-row h4 {
  margin: 0;
}
.list-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9rem;
}
.rank-no {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 10px 20px rgba(239,68,68,0.18);
}

.detail-hero {
  width: var(--container);
  margin: 22px auto 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827 52%, #1f2937);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap: 0;
}
.detail-cover {
  position: relative;
  min-height: 100%;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-cover::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(15,23,42,0.12), rgba(15,23,42,0.82));
}
.detail-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.breadcrumbs {
  color: rgba(255,255,255,0.74);
  font-size: 0.86rem;
}
.detail-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.1;
}
.detail-sub {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  max-width: 70ch;
}
.detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-info span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.86rem;
}
.detail-actions {
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.45fr) 360px;
  gap: 18px;
}
.article, .aside, .player-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
}
.article {
  padding: 22px;
}
.article h2, .aside h2, .player-card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}
.article p {
  color: #334155;
  line-height: 1.85;
  margin: 0 0 14px;
}
.article .lead {
  font-size: 1.05rem;
  color: #0f172a;
}
.player-card {
  overflow: hidden;
  margin-bottom: 18px;
}
.player-stage {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}
.player-stage video {
  width: 100%;
  height: 100%;
  background: #020617;
}
.player-overlay {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.play-btn {
  pointer-events:auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color:#fff;
  font-size: 1.25rem;
  box-shadow: 0 18px 36px rgba(239,68,68,0.35);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: 0.2s ease;
}
.play-btn:hover { transform: scale(1.03); }
.player-meta {
  padding: 16px 18px 18px;
}
.player-meta p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.aside {
  padding: 18px;
}
.side-section {
  margin-bottom: 18px;
}
.side-section:last-child { margin-bottom: 0; }
.side-list {
  display:grid;
  gap: 10px;
}
.side-mini {
  display:grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15,23,42,0.03);
  transition: 0.2s ease;
}
.side-mini:hover {
  transform: translateY(-2px);
  background: rgba(239,68,68,0.06);
}
.side-mini img {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}
.side-mini h4 { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.side-mini p { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.filter-bar {
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 22px;
}
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  min-width: 160px;
  outline: none;
}

.search-results {
  padding: 0 22px 22px;
}

.pager {
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}
.pager a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15,23,42,0.05);
  color: #334155;
  font-weight: 800;
}
.pager a.active {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff;
}

.site-footer {
  margin-top: 26px;
  background: linear-gradient(135deg, #0f172a, #111827 56%, #1f2937);
  color: #cbd5e1;
  padding: 28px 0;
}
.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display:grid;
  gap: 18px;
}
.footer-grid {
  display:grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 16px;
}
.footer-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}
.footer-card h3 {
  margin: 0 0 12px;
  color: #fff;
}
.footer-card a {
  color: #cbd5e1;
  display:block;
  margin: 8px 0;
}
.footer-bottom {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
}

.mobile-menu {
  display:none;
}

@media (max-width: 1100px) {
  .hero-grid, .detail-hero-inner, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-main, .hero-poster { min-height: 460px; }
  .grid.cols-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .header-inner { min-height: 66px; }
  .nav, .search-pill { display:none; }
  .mobile-toggle { display:inline-flex; align-items:center; justify-content:center; }
  .mobile-menu {
    display:none;
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 14px;
  }
  .mobile-menu.open { display:block; }
  .mobile-menu .menu-panel {
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: var(--shadow);
    padding: 12px;
  }
  .mobile-menu a, .mobile-menu button {
    display:block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    background: transparent;
    color: #334155;
    text-align:left;
  }
  .mobile-menu a:hover, .mobile-menu button:hover { background: rgba(239,68,68,0.08); color: var(--brand1); }
  .hero { width: calc(100vw - 16px); margin-top: 14px; }
  .hero-grid { padding: 10px; }
  .hero-main, .hero-poster { min-height: auto; }
  .hero-slide { grid-template-columns: 1fr; position: relative; }
  .hero-poster { order: -1; min-height: 340px; }
  .hero-copy { padding: 22px; }
  .hero-title { font-size: 2rem; }
  .section, .detail-hero, .content-grid, .site-footer .footer-inner { width: calc(100vw - 16px); }
  .grid.cols-5, .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .list-row { grid-template-columns: 72px minmax(0,1fr); }
  .list-row .rank-no { grid-column: 1; }
  .list-row .list-copy { grid-column: 2; }
  .list-row .list-action { grid-column: 1 / -1; }
  .detail-content { padding: 22px; }
  .movie-actions { flex-direction: column; }
}
@media (max-width: 520px) {
  .hero-main { min-height: 0; }
  .hero-poster { min-height: 280px; }
  .grid.cols-5, .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .movie-actions a { width: 100%; }
  .filter-bar input, .filter-bar select { min-width: 100%; width: 100%; }
}
