:root {
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: rgba(31, 41, 55, 0.58);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --line: rgba(75, 85, 99, 0.5);
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --red: #dc2626;
  --yellow: #eab308;
  --radius: 1rem;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 28rem), linear-gradient(180deg, #030712 0%, #111827 48%, #030712 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  background: #111827;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-weight: 800;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.32);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.7rem;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31, 41, 55, 0.86);
  border: 1px solid rgba(75, 85, 99, 0.48);
  border-radius: 0.8rem;
  padding: 0.25rem;
}

.header-search input,
.mobile-search input,
.search-box input,
.sort-box select {
  color: #fff;
  background: transparent;
  outline: none;
}

.header-search input {
  width: 14rem;
  padding: 0.55rem 0.75rem;
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.filter-buttons button,
.hero-dot,
.player-cover button {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.primary-btn {
  border-radius: 0.7rem;
  padding: 0.65rem 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.26);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  background: rgba(31, 41, 55, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(55, 65, 81, 0.92);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(31, 41, 55, 0.82);
  padding: 0.55rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 0 1rem;
  border-top: 1px solid rgba(75, 85, 99, 0.28);
}

.mobile-nav.open {
  display: grid;
  gap: 0.4rem;
}

.mobile-search {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(31, 41, 55, 0.76);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #000;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 36%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, #030712 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 2rem));
  min-height: 78vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
}

.hero-copy {
  width: min(44rem, 100%);
}

.eyebrow,
.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.5);
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 1rem 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 40rem;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted-strong);
}

.hero-meta {
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-search-panel {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-search-panel a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(31, 41, 55, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-search-panel a:hover {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.55);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-arrow,
.hero-dot {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  opacity: 0.55;
}

.hero-dot.active {
  width: 2rem;
  opacity: 1;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.46), rgba(3, 7, 18, 0));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h1,
.section-head h2,
.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.8;
}

.more-link {
  color: #fb923c;
  font-weight: 800;
  white-space: nowrap;
}

.card-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0 1rem;
  scrollbar-width: none;
}

.card-row::-webkit-scrollbar {
  display: none;
}

.card-row .movie-card {
  width: 16rem;
  flex: 0 0 auto;
}

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

.movie-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(31, 41, 55, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover img {
  transform: scale(1.06);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 54%);
}

.score-badge,
.type-badge,
.rank-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  backdrop-filter: blur(10px);
}

.score-badge {
  top: 0.65rem;
  right: 0.65rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
}

.type-badge {
  left: 0.65rem;
  top: 0.65rem;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.rank-pill {
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(234, 179, 8, 0.9);
  color: #111827;
}

.play-float {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 0.85rem;
}

.movie-card-body h2,
.movie-card-body h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0.4rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.35rem;
  color: #4b5563;
}

.tag-row {
  margin-top: 0.55rem;
}

.tag-row span,
.detail-tags span {
  color: #fed7aa;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.13);
  border: 1px solid rgba(249, 115, 22, 0.24);
  padding: 0.22rem 0.48rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  min-height: 21rem;
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #111827;
}

.feature-card:first-child {
  grid-row: span 2;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 58%);
}

.feature-card div {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.feature-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
}

.feature-card:first-child h2 {
  font-size: 2rem;
}

.feature-card p {
  color: var(--muted-strong);
  margin-top: 0.45rem;
  line-height: 1.65;
}

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

.category-card {
  position: relative;
  min-height: 14rem;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

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

.category-card:hover img {
  opacity: 0.72;
  transform: scale(1.05);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 70%);
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 1.2rem;
}

.category-card span {
  color: #fb923c;
  font-size: 0.8rem;
  font-weight: 800;
}

.category-card h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0.35rem 0;
}

.category-card p {
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ranking-list {
  display: grid;
  gap: 1rem;
}

.wide-card {
  border-radius: 1rem;
}

.wide-link {
  display: grid;
  grid-template-columns: auto 7.6rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.wide-link img {
  width: 7.6rem;
  height: 10.6rem;
  object-fit: cover;
  border-radius: 0.85rem;
}

.wide-card h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 0.45rem 0;
}

.wide-card p {
  color: var(--muted-strong);
  line-height: 1.75;
  margin-bottom: 0.65rem;
}

.wide-card span {
  color: var(--muted);
}

.list-rank {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.24);
}

.page-title {
  padding: 4rem 0 2rem;
}

.toolbar {
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(31, 41, 55, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-box,
.sort-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted-strong);
  font-weight: 800;
}

.search-box {
  flex: 1;
  min-width: 16rem;
}

.search-box input,
.sort-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(17, 24, 39, 0.86);
  padding: 0.85rem 1rem;
}

.sort-box select {
  min-width: 10rem;
}

.filter-buttons {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.2rem;
}

.filter-buttons button {
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  padding: 0.55rem 0.9rem;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.detail-hero {
  background: #000;
  padding: 2rem 0;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 3;
}

.player-cover[hidden] {
  display: none;
}

.player-cover button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 1rem 1.4rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.detail-main,
.detail-side,
.content-panel {
  border-radius: 1.25rem;
  background: rgba(31, 41, 55, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-main,
.detail-side {
  padding: 1.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.detail-main h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.detail-meta {
  margin-bottom: 1.4rem;
}

.detail-main h2,
.detail-side h2,
.related-section h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 1.6rem 0 0.8rem;
}

.detail-main p {
  color: var(--muted-strong);
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.detail-side {
  position: sticky;
  top: 5.3rem;
}

.detail-side img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  gap: 0.8rem;
  color: var(--muted-strong);
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(75, 85, 99, 0.32);
  padding-bottom: 0.8rem;
}

.info-list span:first-child {
  color: var(--muted);
}

.related-section {
  padding-bottom: 4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.3fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand p,
.footer-links a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-brand p {
  margin-top: 1rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-links h2 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

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

.footer-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-categories a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.65);
}

.footer-bottom {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  color: #6b7280;
  border-top: 1px solid rgba(75, 85, 99, 0.36);
  padding: 1rem 0 1.5rem;
}

.empty-state {
  display: none;
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
}

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

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

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

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 72vh;
  }

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

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

  .wide-link {
    grid-template-columns: auto 5.8rem 1fr;
  }

  .wide-link img {
    width: 5.8rem;
    height: 8.2rem;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .container,
  .hero-content {
    width: min(100% - 1rem, 1280px);
  }

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

  .hero-actions {
    display: grid;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

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

  .feature-card:first-child {
    grid-row: auto;
  }

  .wide-link {
    grid-template-columns: 1fr;
  }

  .list-rank {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 3;
  }

  .wide-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .toolbar-main {
    display: grid;
  }
}
