:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f6;
  --text: #171717;
  --muted: #6b7280;
  --line: #f3d4df;
  --brand: #f43f5e;
  --brand-dark: #be123c;
  --brand-soft: #ffe4ec;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 20px 60px rgba(190, 18, 60, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.narrow {
  max-width: 900px;
}

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

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, #f43f5e, #fb7185 48%, #f59e0b);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

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

.desktop-nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--brand);
}

.header-search {
  display: flex;
  align-items: center;
  width: 290px;
  background: #fff;
  border: 1px solid #f5c2d0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.header-search input,
.mobile-search input,
.large-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  color: #111827;
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  padding: 12px 18px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 24px;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  background: #fff;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #f5c2d0;
  border-radius: 999px;
  background: #fff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, #ffe4ec, transparent 34%), linear-gradient(135deg, #fff7fb 0%, #fff 48%, #fff1f6 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.7;
}

.hero-bg::before {
  width: 360px;
  height: 360px;
  right: 6%;
  top: 5%;
  background: rgba(244, 63, 94, 0.16);
}

.hero-bg::after {
  width: 240px;
  height: 240px;
  left: 8%;
  bottom: 4%;
  background: rgba(251, 113, 133, 0.18);
}

.hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 70px 0 74px;
}

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.08em;
  color: #111827;
}

.hero-copy p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
  color: #9f1239;
  background: #ffe4ec;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.secondary-button {
  color: #be123c;
  background: #fff;
  border: 1px solid #fecdd3;
}

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

.hero-poster,
.detail-poster,
.poster-frame,
.rank-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fecdd3, #fff1f2 45%, #ffe4e6);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(190, 18, 60, 0.22);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.rank-cover img,
.rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #fecdd3;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--brand);
}

.quick-search-section,
.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid #fde2e9;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.quick-search-card h2,
.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.quick-search-card p,
.page-hero p,
.detail-one-line,
.detail-main-card p,
.rank-card p {
  color: #4b5563;
}

.large-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #f5c2d0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
}

.large-search input {
  padding: 17px 20px;
}

.large-search button {
  padding: 17px 28px;
}

.quick-links,
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.quick-links a,
.pill-tabs a {
  border-radius: 999px;
  color: #be123c;
  background: #fff1f6;
  border: 1px solid #fecdd3;
  padding: 10px 16px;
  font-weight: 800;
}

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

.section-heading a,
.rank-title-row a {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  display: block;
  aspect-ratio: 3 / 4;
}

.poster-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 8px 10px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 10px 13px;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.24);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover {
  color: var(--brand);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.muted-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7fb, #fff);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.movie-card-small {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
}

.movie-card-small .poster-frame {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.rank-panel {
  align-self: start;
  position: sticky;
  top: 94px;
  border-radius: 26px;
  padding: 24px;
  background: #111827;
  color: #fff;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.2);
}

.rank-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(244, 63, 94, 0.88);
  font-weight: 900;
}

.rank-list a {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  color: #fecdd3;
  font-style: normal;
  font-size: 13px;
}

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

.category-entry-grid a {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #be123c, #f43f5e 55%, #fb7185);
  box-shadow: var(--shadow);
}

.category-entry-grid strong {
  font-size: 24px;
}

.category-entry-grid span {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  padding: 74px 0;
  color: #111827;
  background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(135deg, #fff7fb, #fff);
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
}

.standalone-search {
  max-width: 720px;
  margin-top: 30px;
}

.search-status {
  margin-bottom: 22px;
  color: #6b7280;
  font-weight: 800;
}

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}

.pagination a {
  color: #be123c;
  background: #fff1f6;
  border: 1px solid #fecdd3;
}

.pagination strong {
  color: #fff;
  background: var(--brand);
}

.rank-layout {
  display: grid;
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 66px 120px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.rank-index {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #f43f5e, #db2777);
}

.rank-cover {
  height: 150px;
  border-radius: 18px;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(2px);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(190, 18, 60, 0.54));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  border: 8px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
  max-width: 860px;
  font-size: clamp(42px, 5vw, 70px);
}

.detail-one-line {
  max-width: 780px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.player-section {
  background: #0f172a;
  padding: 50px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.36);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.2), rgba(15, 23, 42, 0.54));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.32);
}

.player-cover strong {
  font-size: 18px;
}

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

.player-message {
  min-height: 28px;
  margin-top: 14px;
  color: #fecdd3;
  font-weight: 700;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  padding: 58px 0;
}

.detail-main-card,
.detail-side-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.detail-main-card {
  padding: 34px;
}

.detail-main-card h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-main-card p {
  margin: 0 0 28px;
  font-size: 17px;
}

.detail-main-card p:last-child {
  margin-bottom: 0;
}

.detail-side-card {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 26px;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #fee2e9;
  padding-bottom: 12px;
}

.detail-side-card dt {
  color: #6b7280;
  font-weight: 800;
}

.detail-side-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.related-section {
  padding-top: 0;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 30px;
  border-radius: 24px;
  text-align: center;
  background: #fff7fb;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

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

.site-footer p {
  max-width: 360px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  color: #fff;
}

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

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

  .hero-slide,
  .quick-search-card,
  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(420px, 100%);
    justify-self: center;
  }

  .rank-panel,
  .detail-side-card {
    position: static;
  }

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

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

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

  .nav-shell {
    gap: 12px;
  }

  .hero-inner {
    min-height: auto;
    padding: 44px 0 76px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

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

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

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

  .detail-poster {
    width: min(260px, 100%);
  }

  .rank-card {
    grid-template-columns: 52px 92px minmax(0, 1fr);
    gap: 14px;
  }

  .rank-cover {
    height: 120px;
  }
}

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

  .quick-search-section,
  .content-section {
    padding: 40px 0;
  }

  .quick-search-card,
  .detail-main-card,
  .detail-side-card {
    padding: 22px;
    border-radius: 22px;
  }

  .large-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .large-search button {
    border-radius: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .movie-grid,
  .compact-grid,
  .category-entry-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-small {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .rank-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .rank-index {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }
}

.index-link-grid a {
  min-height: auto;
  display: block;
  color: #fff;
  font-weight: 900;
}
