:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(17, 24, 39, 0.16);
  --shadow-card: 0 12px 32px rgba(127, 29, 29, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 38%, #eef2ff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 46%, #92400e 100%);
  box-shadow: 0 14px 40px rgba(127, 29, 29, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #facc15);
  box-shadow: 0 14px 28px rgba(251, 191, 36, 0.26);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(-4deg);
}

.logo-text {
  display: grid;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 24px;
  letter-spacing: 0.05em;
}

.logo-text small {
  margin-top: 5px;
  color: #fde68a;
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
  color: var(--amber-300);
}

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

.header-search {
  display: flex;
  align-items: center;
  width: 270px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.header-search input,
.mobile-panel input {
  min-width: 0;
  flex: 1;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 12px;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: #fde68a;
}

.header-search button,
.mobile-panel button {
  border: 0;
  color: #7c2d12;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.hero {
  position: relative;
  min-height: 640px;
  isolation: isolate;
  overflow: hidden;
  background: #111827;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(245, 158, 11, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.98) 0%, rgba(127, 29, 29, 0.82) 46%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(710px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding-top: 112px;
  color: var(--white);
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #7c2d12;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.24);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.hero-line {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
  margin: 0;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 11px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-ghost,
.page-hero-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  padding: 0 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
  color: #7c2d12;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

.btn-ghost,
.page-hero-actions a {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-ghost:hover,
.page-hero-actions a:hover {
  transform: translateY(-2px);
}

.hero-side-panel {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: min(390px, calc(100% - 48px));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-side-panel strong {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.hero-side-panel p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
  margin: 0 0 16px;
}

.hero-mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-mini-links a {
  display: grid;
  gap: 2px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-mini-links span {
  color: var(--amber-300);
  font-size: 12px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  transition: background 0.24s ease, width 0.24s ease;
}

.hero-dots button.is-active {
  width: 72px;
  background: var(--amber-500);
}

.section-block,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto;
}

.section-raised {
  margin-top: -38px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius-xl);
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--red-800);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fed7aa;
  outline: 0;
  border-radius: 999px;
  padding: 14px 16px;
  color: var(--gray-800);
  background: #fff7ed;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(127, 29, 29, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #fbbf24, transparent 34%), linear-gradient(135deg, #7f1d1d, #111827);
}

.poster-frame img,
.detail-cover img,
.rank-lead-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.16);
  font-size: 74px;
  font-weight: 900;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.78);
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.movie-card-body {
  padding: 14px;
}

.movie-card-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-title:hover {
  color: var(--red-800);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.tag-row span {
  color: var(--red-800);
  background: #fff7ed;
  border-color: #fed7aa;
}

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 148px;
}

.movie-card-compact .poster-frame {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-compact .movie-card-title {
  min-height: auto;
}

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

.category-tile,
.category-card-large {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 55%, #ffedd5 100%);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(127, 29, 29, 0.18);
}

.category-tile span,
.category-card-large span {
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 8px 0;
  font-size: 24px;
}

.category-tile em,
.category-card-large p {
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.7;
}

.category-card-large div {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-card-large div a {
  color: var(--red-800);
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.32), transparent 30%),
    linear-gradient(135deg, #7f1d1d, #111827 65%, #92400e);
  padding: 76px 0;
}

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

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  width: min(760px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

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

.rank-lead-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, #7f1d1d, #111827);
  box-shadow: var(--shadow-soft);
}

.rank-lead-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 55%);
}

.rank-lead-card img {
  position: absolute;
  inset: 0;
}

.rank-lead-card span,
.rank-lead-card strong,
.rank-lead-card em {
  position: relative;
  z-index: 2;
  display: block;
  margin-left: 22px;
  margin-right: 22px;
}

.rank-lead-card span {
  width: max-content;
  margin-top: 22px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  font-weight: 900;
  background: var(--amber-300);
}

.rank-lead-card strong {
  margin-top: 170px;
  font-size: 28px;
}

.rank-lead-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-weight: 800;
  margin: 24px 0;
}

.breadcrumb a {
  color: var(--red-800);
}

.player-section {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.48));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  box-shadow: 0 18px 46px rgba(220, 38, 38, 0.36);
}

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

.detail-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 30px;
}

.detail-cover {
  position: sticky;
  top: 106px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 30% 20%, #fbbf24, transparent 34%), linear-gradient(135deg, #7f1d1d, #111827);
  box-shadow: var(--shadow-soft);
}

.detail-info {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-info h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-info p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.95;
}

.one-line {
  color: #7c2d12 !important;
  font-size: 19px !important;
  font-weight: 800;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 900;
  background: #ffedd5;
}

.detail-tags {
  margin: 18px 0;
}

.detail-tags span {
  color: var(--red-800);
  background: #fff7ed;
  border-color: #fed7aa;
}

.related-block {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
}

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

.site-footer h2,
.site-footer h3 {
  color: var(--amber-500);
  margin-top: 0;
}

.site-footer p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  color: #d1d5db;
  margin: 9px 0;
}

.site-footer a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 26px;
  color: #9ca3af;
  text-align: center;
}

.movie-card.is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

  .desktop-nav {
    gap: 16px;
  }

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

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

  .hero-side-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(720px, calc(100% - 48px));
    margin: 420px auto 38px;
  }

  .hero-dots {
    bottom: 24px;
  }
}

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

  .desktop-nav {
    display: none;
  }

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

  body.menu-open .mobile-panel {
    display: block;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 78px;
  }

  .section-raised {
    padding: 18px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .ranking-grid,
  .category-grid,
  .category-overview-grid,
  .rank-leads {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 92px 1fr;
  }

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

  .detail-cover {
    position: relative;
    top: auto;
    width: min(320px, 100%);
  }

  .detail-info {
    padding: 22px;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .mobile-panel,
  .section-block,
  .detail-wrap,
  .page-hero > div,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    gap: 9px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text small {
    display: none;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-side-panel {
    width: calc(100% - 28px);
    margin-top: 430px;
    padding: 18px;
  }

  .hero-mini-links {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card-title {
    font-size: 14px;
  }

  .movie-card-body p {
    font-size: 12px;
  }

  .player-start span {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
