:root {
  --bg: #0f172a;
  --bg-soft: #111c31;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --yellow: #facc15;
  --blue: #3b82f6;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #111827 52%, #1e293b 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #fff;
  background: rgba(249, 115, 22, 0.95);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.2) 46%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 94px;
}

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

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.2);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  color: #fff;
  background: rgba(51, 65, 85, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.88rem;
}

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

.btn-primary,
.btn-secondary,
.filter-bar button,
.player-overlay strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 13px 21px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary,
.filter-bar button,
.player-overlay strong {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.27);
}

.btn-primary:hover,
.filter-bar button:hover,
.player-overlay:hover strong {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.7rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--orange);
}

.hero-search {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}

.hero-search .search-shell {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: #fff;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.9);
  padding: 0 16px;
}

.hero-search button {
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 72px 0 0;
}

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

.section-title h1,
.section-title h2,
.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-title h1,
.page-title h1,
.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-head h2,
.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-title p,
.section-head p,
.page-title p {
  margin: 12px 0 0;
  color: var(--subtle);
  line-height: 1.8;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.55);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.018);
  border-color: rgba(249, 115, 22, 0.78);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.38);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover img,
.category-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.year-badge,
.type-badge {
  position: absolute;
  top: 10px;
  color: #fff;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.year-badge {
  left: 10px;
  background: rgba(59, 130, 246, 0.86);
}

.type-badge {
  right: 10px;
  background: rgba(249, 115, 22, 0.88);
}

.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
}

.card-info strong {
  color: #fff;
  line-height: 1.34;
  transition: color 0.22s ease;
}

.movie-card:hover strong,
.rank-item:hover strong {
  color: #fb923c;
}

.card-desc,
.card-meta {
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-desc {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-top: auto;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: #1e293b;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.72);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28));
}

.category-card span {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card strong {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

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

.rank-item {
  position: relative;
  display: flex;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  padding: 14px;
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(249, 115, 22, 0.62);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.rank-cover {
  width: 108px;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #334155;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.rank-copy strong {
  font-size: 1.08rem;
  color: #fff;
}

.rank-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-copy em {
  color: var(--subtle);
  font-size: 0.88rem;
  font-style: normal;
}

.page-hero {
  padding: 76px 0 40px;
}

.page-title {
  max-width: 780px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr auto;
  gap: 14px;
  margin: 28px 0 34px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: var(--shadow);
}

.filter-bar label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  outline: 0;
  background: rgba(30, 41, 59, 0.86);
  padding: 0 13px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(249, 115, 22, 0.9);
}

.empty-state {
  display: none;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  background: rgba(15, 23, 42, 0.45);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.78)), linear-gradient(0deg, #0f172a, transparent 60%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: #1e293b;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--subtle);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #fb923c;
}

.detail-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 44px;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.52);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
}

.panel + .panel {
  margin-top: 24px;
}

.panel h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.45rem;
}

.panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.9;
}

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: #000;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 60px rgba(249, 115, 22, 0.36);
  font-size: 2rem;
}

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

.side-list .rank-item {
  padding: 10px;
}

.side-list .rank-cover {
  width: 82px;
}

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

.site-footer {
  margin-top: 82px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--subtle);
  line-height: 1.75;
  font-size: 0.92rem;
}

.footer-grid a {
  display: block;
  transition: color 0.2s ease;
}

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

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 18px 0 26px;
}

@media (max-width: 1100px) {
  .grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .detail-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

  .hero-search .search-shell,
  .filter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-search .search-shell {
    display: grid;
  }

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

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

  .category-grid,
  .rank-list,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 340px;
  }
}

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

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 88px 0 72px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

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

  .category-grid,
  .rank-list,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    gap: 12px;
  }

  .rank-cover {
    width: 92px;
  }

  .detail-layout {
    padding: 34px 0;
  }

  .panel {
    padding: 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
