* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #fff7ed 100%);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: #e11d48;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
  color: #4b5563;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #e11d48;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 22px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #4b5563;
  font-weight: 650;
}

.mobile-nav a:hover {
  color: #e11d48;
}

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

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  background: linear-gradient(90deg, #881337, #92400e);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
}

.hero-content > * {
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-kicker {
  background: #fff1f2;
  color: #e11d48;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 20px 38px rgba(225, 29, 72, 0.3);
}

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

.primary-btn:hover {
  background: #be123c;
  box-shadow: 0 24px 46px rgba(225, 29, 72, 0.4);
}

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

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 42px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: #ffffff;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-band {
  margin-top: -54px;
  position: relative;
  z-index: 8;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(20px);
}

.search-panel h2 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.search-panel p {
  margin: 0;
  color: #6b7280;
}

.search-box {
  min-width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.compact-search {
  min-width: min(360px, 100%);
}

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.section-title h2,
.inner-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title a {
  color: #e11d48;
  font-weight: 800;
}

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

.centered p {
  margin: 10px 0 0;
  color: #6b7280;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #e5e7eb;
}

.compact .poster-wrap {
  height: 210px;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  color: #1f2937;
  font-size: 19px;
  line-height: 1.35;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover strong {
  color: #e11d48;
}

.card-desc {
  min-height: 44px;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 13px;
}

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

.category-tile,
.category-overview-card,
.content-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.13);
}

.category-tile span,
.category-overview-card h2 {
  color: #1f2937;
  font-size: 24px;
  font-weight: 850;
}

.category-tile em,
.category-overview-card p {
  margin-top: 10px;
  color: #6b7280;
  font-style: normal;
}

.category-tile small,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-tile small a,
.inline-links a {
  color: #e11d48;
  font-size: 13px;
  font-weight: 750;
}

.rank-band {
  background: linear-gradient(135deg, #881337, #92400e);
}

.light-title h2,
.light-title a,
.light-title .section-kicker {
  color: #ffffff;
}

.light-title .section-kicker {
  background: rgba(255, 255, 255, 0.16);
}

.rank-grid,
.large-rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.large-rank-list {
  grid-template-columns: 1fr;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.rank-num {
  width: 36px;
  color: #e11d48;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  color: #1f2937;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

.discover-band {
  background: linear-gradient(135deg, #ffe4e6, #fffbeb, #fdf2f8);
}

.inner-hero {
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
  padding: 72px 0 54px;
  border-bottom: 1px solid #f3f4f6;
}

.inner-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #e11d48;
}

.breadcrumb.inverse {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb.inverse a:hover {
  color: #ffffff;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  background: #e11d48;
  color: #ffffff;
}

.category-overview-card {
  overflow: hidden;
}

.category-overview-card > div {
  padding: 20px;
}

.category-overview-card h2 {
  margin: 0;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 170px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-mask {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding-top: 54px;
  padding-bottom: 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  width: 280px;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  color: #ffffff;
  margin: 18px 0 16px;
}

.detail-copy p {
  max-width: 820px;
  margin: 0;
  color: #e5e7eb;
  font-size: 19px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.large-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.player-section {
  padding-top: 48px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(225, 29, 72, 0.45);
  font-size: 32px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 36px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #1f2937;
}

.footer-grid p,
.footer-links a {
  color: #6b7280;
  font-size: 14px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    height: 640px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-control {
    display: none;
  }

  .search-panel,
  .toolbar,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-row {
    justify-content: flex-start;
  }

  .movie-grid,
  .four-col,
  .three-col,
  .category-grid,
  .overview-grid,
  .rank-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-poster {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .hero-content,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    min-height: 560px;
    height: 68vh;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .ghost-btn {
    flex: 1;
    min-width: 0;
    padding: 0 18px;
  }

  .search-band {
    margin-top: -34px;
  }

  .section-block {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .movie-grid,
  .four-col,
  .three-col,
  .category-grid,
  .overview-grid,
  .rank-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 300px;
  }

  .rank-row {
    grid-template-columns: auto 58px 1fr;
  }

  .rank-score {
    display: none;
  }

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

  .detail-poster {
    width: min(72vw, 240px);
  }

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

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