* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #dc2626, #be123c, #e11d48);
  box-shadow: 0 18px 50px rgba(190, 18, 60, 0.28);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #dc2626;
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.brand-text {
  font-size: 21px;
  white-space: nowrap;
}

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

.nav-link {
  color: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.toolbar input,
.toolbar select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 10px 14px;
  min-width: 180px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #dc2626;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 750;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 14px 24px 22px;
  background: rgba(127, 29, 29, 0.92);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel a {
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #dc2626, #be123c 48%, #f43f5e);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.38), transparent 26%), linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.14) 75%, transparent 75%);
  background-size: auto, 42px 42px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  gap: 44px;
  align-items: center;
  padding: 68px 24px 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(190, 18, 60, 0.82), rgba(244, 63, 94, 0.5)), var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.58;
  filter: saturate(1.06);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: #fff;
  max-width: 700px;
  animation: fadeIn 0.9s ease both;
}

.hero-kicker,
.meta-line,
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.section-kicker,
.meta-line span,
.type-badge,
.year-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-kicker span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: #fff1f2;
  font-size: clamp(18px, 2.5vw, 25px);
}

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

.primary-btn,
.ghost-btn,
.more-link,
.category-panel-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: #dc2626;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  padding: 14px 22px;
  color: #fff;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover,
.category-panel-head a:hover {
  transform: translateY(-2px);
}

.hero-poster {
  justify-self: end;
  width: min(390px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 36px 80px rgba(17, 24, 39, 0.36);
  transform: rotate(2deg);
}

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

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

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

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
}

.hero-dots button.active {
  width: 28px;
  background: #fff;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.soft-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(135deg, #fff, #fff1f2);
}

.ranking-section {
  background: #fff;
}

.section-head,
.category-panel-head,
.detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-kicker {
  color: #dc2626;
  background: #fee2e2;
  padding: 6px 11px;
  margin-bottom: 10px;
}

.section-head h2,
.category-panel h2,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.more-link,
.category-panel-head a {
  padding: 10px 16px;
  color: #dc2626;
  background: #fee2e2;
}

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

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.h-scroll .movie-card {
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(190, 18, 60, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #7f1d1d, #e11d48);
}

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

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

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  padding: 6px 9px;
  background: rgba(220, 38, 38, 0.92);
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 10px;
  left: 10px;
}

.year-badge {
  top: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
}

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

.card-body {
  padding: 18px;
}

.meta-line {
  color: #dc2626;
  font-size: 13px;
  font-weight: 750;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: #fca5a5;
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #dc2626;
}

.movie-card p {
  margin: 0;
  color: #6b7280;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  color: #7f1d1d;
  background: #fff1f2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.card-foot {
  justify-content: space-between;
  margin-top: 16px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.list-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 232px;
}

.list-card .poster-link {
  aspect-ratio: auto;
  min-height: 100%;
}

.list-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.92), rgba(225, 29, 72, 0.72)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 24px;
  font-weight: 850;
}

.category-tile strong {
  margin-top: 8px;
  color: #ffe4e6;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #dc2626, #be123c, #f43f5e);
  color: #fff;
}

.page-hero {
  padding: 76px 24px;
}

.page-hero > div,
.detail-wrap,
.category-overview,
.footer-grid,
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 20px;
}

.category-overview {
  padding: 62px 24px;
  display: grid;
  gap: 28px;
}

.category-panel {
  background: #fff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.category-panel-head {
  align-items: center;
}

.category-panel p {
  margin: 8px 0 0;
  color: #6b7280;
}

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

.mini-card a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7f7;
  transition: background 0.2s ease;
}

.mini-card a:hover {
  background: #fee2e2;
}

.mini-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d1d, #e11d48);
}

.mini-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  margin-top: 6px;
  color: #9ca3af;
  font-style: normal;
  font-size: 13px;
}

.listing-section {
  padding-top: 34px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.toolbar input,
.toolbar select {
  min-width: 210px;
  color: #111827;
  background: #f3f4f6;
}

.search-box {
  flex: 1;
}

.search-box input {
  width: 100%;
}

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

.layout-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #6b7280;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 750;
}

.layout-button.active {
  color: #fff;
  background: #dc2626;
}

.listing-grid.is-list {
  display: grid;
  grid-template-columns: 1fr;
}

.listing-grid.is-list .movie-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.listing-grid.is-list .poster-link {
  aspect-ratio: auto;
}

.empty-state {
  padding: 46px;
  text-align: center;
  color: #6b7280;
  background: #fff;
  border-radius: 22px;
}

.detail-hero {
  min-height: 500px;
  padding: 54px 24px 64px;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(190, 18, 60, 0.84), rgba(244, 63, 94, 0.48)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-wrap {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.crumbs a:hover {
  color: #fff;
}

.detail-title-row {
  align-items: center;
  margin-bottom: 0;
}

.detail-title-row h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
}

.detail-title-row p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 20px;
}

.detail-cover {
  width: min(330px, 32vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
  flex: 0 0 auto;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 34px 24px 72px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-card,
.article-card,
.side-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #dc2626;
  background: #fff;
  font-size: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 32px);
  text-align: center;
}

.article-card,
.side-card {
  padding: 26px;
}

.article-card p,
.side-card p {
  color: #4b5563;
  font-size: 17px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.info-table div {
  padding: 16px;
  border-radius: 16px;
  background: #fff7f7;
}

.info-table span {
  display: block;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.info-table strong {
  display: block;
  margin-top: 5px;
}

.no-pad {
  padding: 0;
}

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

.detail-side {
  position: sticky;
  top: 92px;
}

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

.accent-card {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #be123c);
}

.accent-card h2,
.accent-card p {
  color: #fff;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 48px 24px;
}

.footer-grid p {
  max-width: 420px;
  color: #9ca3af;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 18px;
  }

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

  .hero-slide {
    padding: 48px 18px 84px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .content-section,
  .soft-section,
  .page-hero,
  .category-overview,
  .detail-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .category-panel-head,
  .detail-title-row,
  .toolbar {
    display: grid;
    align-items: start;
  }

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

  .list-card,
  .listing-grid.is-list .movie-card {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 174px;
  }

  .list-card .card-body,
  .listing-grid.is-list .card-body {
    padding: 14px;
  }

  .movie-card h2 {
    font-size: 17px;
  }

  .detail-cover {
    width: 180px;
  }

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

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

@media (max-width: 480px) {
  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .toolbar input,
  .toolbar select,
  .filter-group {
    width: 100%;
  }

  .filter-group select,
  .layout-button {
    flex: 1 1 100%;
  }
}
