:root {
  --color-red: #ef4444;
  --color-red-dark: #dc2626;
  --color-orange: #f97316;
  --color-pink: #ec4899;
  --color-amber: #f59e0b;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-line: #fee2e2;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(239, 68, 68, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #fff8f2;
  min-height: 100vh;
}

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

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

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: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(254, 226, 226, 0.9);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-pink));
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  box-shadow: var(--shadow-soft);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  background: var(--color-red);
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.72), rgba(249, 115, 22, 0.22)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(0deg, rgba(17, 24, 39, 0.74), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 380px);
  align-items: center;
  gap: 56px;
  padding: 90px 0 110px;
}

.hero-copy {
  color: #fff;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #b91c1c;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  font-size: 14px;
  font-weight: 900;
}

.hero-copy .hero-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-one-line {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero-summary {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.detail-tags span,
.tag-row span {
  color: #b91c1c;
  background: #fee2e2;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-pink));
  box-shadow: var(--shadow-soft);
}

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

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-button.dark {
  color: var(--color-red);
  background: #fff;
  border-color: #fecaca;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 68, 68, 0.9);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.section-block {
  padding: 72px 0;
}

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.55fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  border: 1px solid #fee2e2;
}

.search-panel label {
  display: grid;
  gap: 7px;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 900;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  color: var(--color-text);
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.search-panel button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  font-weight: 900;
}

.search-panel .reset-filter {
  color: var(--color-red);
  background: #fee2e2;
}

.empty-state {
  margin: 24px 0 0;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  color: #991b1b;
  background: #fff1f2;
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.left-heading {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 18px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.library-grid,
.ranking-grid {
  margin-top: 28px;
}

.movie-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(254, 202, 202, 0.65);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent 46%);
  opacity: 0.5;
}

.play-chip,
.year-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.play-chip {
  left: 14px;
  bottom: 14px;
  padding: 8px 13px;
  background: rgba(239, 68, 68, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.24s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.year-chip {
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
}

.rank-badge {
  top: 14px;
  right: 14px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.32);
}

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

.movie-card-body strong {
  font-size: 18px;
  line-height: 1.35;
  transition: 0.2s ease;
}

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

.movie-line {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta em {
  padding: 5px 9px;
  border-radius: 999px;
  font-style: normal;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.compact-card {
  border-radius: 18px;
}

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

.compact-card .movie-line,
.compact-card .tag-row {
  display: none;
}

.compact-card .movie-card-body strong {
  font-size: 15px;
}

.gradient-section {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 48%, #fff1f2);
  border-top: 1px solid #fee2e2;
  border-bottom: 1px solid #fee2e2;
}

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

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow-card);
}

.category-card img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.74;
  transition: 0.4s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
  opacity: 0.58;
}

.category-card span,
.category-overview-body {
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #fff;
}

.category-card strong,
.category-overview-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.category-card em,
.category-overview-body em {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.category-overview-body b {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 68, 68, 0.92);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid #fee2e2;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.rank-panel-head a {
  color: var(--color-red);
  font-weight: 900;
}

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

.rank-mini-list .movie-card {
  grid-template-columns: 92px 1fr;
  grid-template-rows: none;
  border-radius: 18px;
}

.rank-mini-list .poster-wrap img {
  height: 124px;
  aspect-ratio: auto;
}

.rank-mini-list .movie-meta,
.rank-mini-list .year-chip {
  display: none;
}

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

.feature-notes div,
.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid #fee2e2;
}

.feature-notes strong,
.content-card h2 {
  display: block;
  margin: 0 0 12px;
  font-size: 24px;
}

.feature-notes p,
.content-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.85;
}

.page-hero {
  padding: 86px 0;
  color: #fff;
  background: radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-pink));
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.page-hero .kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.breadcrumb b,
.breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: linear-gradient(135deg, #111827, #7f1d1d 56%, #f97316);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.2), transparent 30%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

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

.detail-info {
  color: #fff;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: 21px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-card);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.12));
  transition: 0.2s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  font-size: 36px;
  box-shadow: 0 24px 60px rgba(239, 68, 68, 0.38);
  padding-left: 6px;
}

.play-overlay:hover span {
  transform: scale(1.06);
}

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

.article-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.meta-card div {
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
}

.meta-card dt {
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 800;
}

.site-footer {
  padding: 44px 0;
  color: #fff;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

.footer-brand {
  font-size: 22px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

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

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

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

  .rank-panel {
    position: static;
  }

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

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

  .search-wide {
    grid-column: 1 / -1;
  }

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

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

  .mobile-menu-button {
    display: flex;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 0 92px;
  }

  .hero-poster {
    width: min(280px, 82vw);
    transform: none;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .feature-notes,
  .article-section {
    grid-template-columns: 1fr;
  }

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

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

  .section-block {
    padding: 50px 0;
  }

  .detail-layout {
    gap: 26px;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .meta-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 17px;
  }

  .library-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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