* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fff1f2 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  color: #111827;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.28);
}

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

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

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

.global-search {
  position: relative;
  margin-left: auto;
  min-width: 260px;
}

.global-search input,
.page-filter-input {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 18px;
  outline: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.global-search input:focus,
.page-filter-input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.search-result-item:hover {
  background: #fff1f2;
}

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #fee2e2;
}

.search-result-item strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.search-result-item span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #e11d48;
  border-radius: 2px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.55;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(251, 146, 60, 0.38), transparent 32%),
    linear-gradient(135deg, rgba(159, 18, 57, 0.95), rgba(249, 115, 22, 0.78) 52%, rgba(15, 23, 42, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 690px;
  margin: 0 auto;
  padding: 96px 20px 92px;
  display: grid;
  grid-template-columns: 1.04fr 0.56fr;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

.eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e11d48;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffe4e6;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #ffe4e6;
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tag-list span {
  color: #e11d48;
  background: #fff1f2;
}

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

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

.primary-btn {
  color: #e11d48;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff1f2;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.46);
  transform: rotate(2deg);
  transition: 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: #ffffff;
}

.quick-panel {
  max-width: 1180px;
  margin: -34px auto 34px;
  padding: 18px;
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 30px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.quick-panel a {
  padding: 10px 17px;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.quick-panel a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  border-color: transparent;
  transform: translateY(-2px);
}

.content-section,
.category-overview,
.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.soft-section {
  max-width: 100%;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.55), rgba(255, 255, 255, 0));
}

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

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

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-heading > a {
  color: #e11d48;
  font-weight: 900;
  white-space: nowrap;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 28px;
}

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

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(225, 29, 72, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

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

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

.score {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 42px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.3);
}

.movie-card-body {
  padding: 17px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.movie-meta {
  color: #f43f5e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
}

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

.movie-card .tag-list {
  margin-top: auto;
}

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

.movie-card-compact h3 {
  font-size: 16px;
}

.movie-card-compact p {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.13);
  background: #111827;
  transition: 0.22s ease;
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(159, 18, 57, 0.88));
}

.category-tile div {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
  color: #ffffff;
}

.category-tile span {
  font-size: 13px;
  font-weight: 900;
  color: #fecdd3;
}

.category-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.category-tile p {
  margin: 8px 0 0;
  color: #ffe4e6;
  line-height: 1.6;
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.ranking-card,
.side-box,
.detail-article,
.filter-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.ranking-card {
  position: sticky;
  top: 90px;
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 50px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: #fff1f2;
}

.rank-row img {
  width: 50px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  background: #fee2e2;
}

.rank-no,
.rank-score,
.rank-big {
  font-weight: 950;
  color: #e11d48;
}

.rank-title {
  font-weight: 900;
  color: #111827;
}

.rank-meta {
  display: none;
  color: #6b7280;
  font-size: 13px;
}

.page-hero {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 70px 20px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 76% 20%, rgba(251, 146, 60, 0.32), transparent 30%),
    linear-gradient(135deg, #fff1f2, #ffedd5);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.09);
}

.small-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  padding: 20px;
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #fee2e2;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px 88px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.14);
}

.ranking-item img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 18px;
  background: #fee2e2;
}

.rank-big {
  display: block;
  font-size: 34px;
  text-align: center;
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-item p {
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.6;
}

.ranking-item strong {
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: #6b7280;
  font-weight: 800;
}

.breadcrumb a {
  color: #e11d48;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

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

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.56));
  cursor: pointer;
  transition: 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  transition: 0.22s ease;
}

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

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

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-title-row p {
  margin: 12px 0 0;
  color: #6b7280;
  font-weight: 700;
}

.detail-title-row strong {
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 22px;
}

.large-tags {
  margin: 22px 0 26px;
}

.detail-article h2,
.side-box h2 {
  margin: 24px 0 12px;
  font-size: 22px;
}

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

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: #fee2e2;
}

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

.side-box {
  margin-top: 22px;
  padding: 22px;
}

.side-box h2 {
  margin-top: 0;
}

.side-box dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.side-box dt {
  color: #9ca3af;
  font-weight: 800;
}

.side-box dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.side-box a {
  color: #e11d48;
}

.site-footer {
  margin-top: 34px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: #fecdd3;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

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

  .ranking-card {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .side-box {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    flex-wrap: wrap;
  }

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

  .main-nav {
    order: 4;
    display: none;
    width: 100%;
    padding-top: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .global-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .hero-section,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 74px;
    gap: 28px;
  }

  .hero-poster {
    justify-self: start;
    width: min(240px, 68vw);
  }

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

  .ranking-item {
    grid-template-columns: 46px 72px 1fr;
  }

  .ranking-item strong {
    grid-column: 2 / 4;
    justify-self: start;
  }

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

  .side-poster {
    max-width: 260px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 18px;
  }

  .hero-copy p {
    font-size: 17px;
  }

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

  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .category-overview,
  .detail-shell {
    padding: 42px 16px;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 48px 18px;
  }

  .quick-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .detail-title-row {
    flex-direction: column;
  }

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

  .detail-article {
    padding: 20px;
  }
}
