:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --bg-soft: #111827;
  --panel: #1e293b;
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --blue: #3b82f6;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #111827 45%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 24px 0 21px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(115deg, #7f1d1d, #991b1b 45%, #9a3412);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(248, 113, 113, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.48fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(254, 202, 202, 0.28);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.42);
  color: #fecaca;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span,
.hero h2 span {
  display: block;
  margin-top: 14px;
  color: #fecaca;
  font-size: clamp(1.35rem, 4.2vw, 2.5rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(10px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #fff;
}

.section {
  padding: 74px 0;
}

.section-muted {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--subtle);
  line-height: 1.75;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.44);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
  opacity: 0.82;
}

.poster-wrap::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: #fff;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.36;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: #f87171;
}

.card-meta {
  color: var(--subtle);
  font-size: 0.86rem;
}

.card-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.82);
  color: #cbd5e1;
  font-size: 0.78rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.88), rgba(154, 52, 18, 0.7));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.48);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--category-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-card:hover::before {
  transform: scale(1.08);
  opacity: 0.34;
}

.category-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.62;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, background 0.22s ease;
}

.list-card:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.9);
}

.list-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
}

.list-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.list-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-image);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fecaca;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.78;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 14px;
  margin-bottom: 26px;
}

.search-field,
.select-field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  padding: 0 14px;
}

.search-field:focus,
.select-field:focus {
  border-color: rgba(239, 68, 68, 0.68);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.empty-state {
  padding: 46px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--subtle);
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: linear-gradient(115deg, rgba(2, 6, 23, 0.96), rgba(127, 29, 29, 0.86));
  border-bottom: 1px solid var(--line);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: blur(1px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.8));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: center;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
  font-size: 0.88rem;
}

.detail-lead {
  max-width: 800px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.82;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.82));
  color: #fff;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.94);
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.32);
  font-size: 2rem;
  transform: translateX(2px);
}

.player-overlay strong {
  max-width: min(640px, 88vw);
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.copy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.article-copy,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
}

.article-copy {
  padding: 28px;
}

.article-copy h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.article-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.92;
}

.article-copy p:last-child {
  margin-bottom: 0;
}

.side-panel {
  padding: 22px;
}

.side-panel .tag-list {
  margin-top: 0;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.56);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-link:hover {
  background: rgba(51, 65, 85, 0.8);
  transform: translateX(3px);
}

.mini-link img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-link strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link span {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 0.84rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
}

.pagination .active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #111827, #020617);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 46px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: var(--subtle);
  line-height: 1.72;
}

.footer-grid a:hover {
  color: #f87171;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .nav-shell {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 4px;
  }

  .nav-links a::after {
    bottom: 8px;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner,
  .detail-hero-inner,
  .copy-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 300px;
  }

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

  .list-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.6rem;
  }

  .list-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .list-card img {
    border-radius: 14px;
  }

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

  .article-copy,
  .side-panel {
    padding: 20px;
  }
}
