:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #fff7ed;
  --orange: #f97316;
  --red: #dc2626;
  --slate: #0f172a;
  --slate-2: #1e293b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-link {
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fb923c;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

main {
  min-height: 60vh;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.34), transparent 32%), linear-gradient(135deg, #0f172a 0%, #431407 52%, #7f1d1d 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 96px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  width: fit-content;
  padding: 9px 16px;
  border: 1px solid rgba(251, 146, 60, 0.46);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.06;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.82;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.32);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-category-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a,
.page-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-category-links a:hover,
.page-links a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.72);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  opacity: 0.24;
  filter: blur(26px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.hero-strip {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: -30px auto 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading h2,
.rank-panel h2,
.detail-article h2,
.player-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.four-col,
.listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 28px 66px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.1);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease;
}

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

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.82);
}

.duration-badge {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.play-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.movie-card-body strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--orange);
}

.movie-card-body em {
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  font-style: normal;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.compact-card .movie-card-body em {
  min-height: 0;
}

.media-row {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.media-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.row-poster {
  display: block;
  min-height: 112px;
  background: #111827;
}

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

.row-content {
  position: relative;
  min-width: 0;
  padding: 15px 14px 15px 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.row-content strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.row-content em,
.row-content span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.list-rank {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-size: 12px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

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

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.compact-list .media-row {
  grid-template-columns: 86px 1fr;
  gap: 12px;
  box-shadow: none;
}

.compact-list .row-poster {
  min-height: 78px;
}

.compact-list .row-content em {
  display: none;
}

.page-hero {
  position: relative;
  color: #fff;
  padding: 86px max(16px, calc((100% - 1180px) / 2));
  background: radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #7f1d1d);
}

.page-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.page-links {
  margin-top: 24px;
}

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

.category-card {
  overflow: hidden;
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(15, 23, 42, 0.15);
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.category-card strong {
  font-size: 22px;
  font-weight: 900;
}

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

.category-card > span:last-child {
  color: var(--orange);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 28px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
  cursor: pointer;
}

.filter-pill.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.search-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(8px);
  transform: scale(1.04);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(67, 20, 7, 0.85));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.breadcrumbs {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-copy {
  display: grid;
  gap: 22px;
}

.detail-copy p {
  max-width: 800px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-info li {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-info span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.detail-info strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 15px;
}

.player-section {
  padding-bottom: 36px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.player-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 24px 56px rgba(220, 38, 38, 0.42);
  font-size: 30px;
}

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

.player-title {
  padding: 24px;
  color: #fff;
}

.player-title h2 {
  color: #fff;
  font-size: 26px;
}

.player-title p {
  margin: 10px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.detail-text-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

.detail-article,
.detail-side-links {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.detail-article p {
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.detail-side-links {
  display: grid;
  gap: 12px;
}

.detail-side-links a {
  padding: 13px 14px;
  border-radius: 15px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-links strong {
  color: #fff;
  font-size: 18px;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
  }

  .hero-inner,
  .detail-grid,
  .split-section,
  .detail-text-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-strip,
  .four-col,
  .listing-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-panel {
    position: static;
  }

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

@media (max-width: 680px) {
  .header-inner {
    height: 68px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 60px 0 42px;
  }

  .hero-strip,
  .four-col,
  .listing-grid,
  .category-grid,
  .double-list,
  .detail-info {
    grid-template-columns: 1fr;
  }

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

  .soft-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

  .media-row {
    grid-template-columns: 104px 1fr;
  }

  .row-poster {
    min-height: 104px;
  }

  .page-hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .detail-hero-inner {
    padding-top: 26px;
  }

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

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}
