:root {
  color-scheme: light;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --rose-soft: #fff1f2;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --page: #f8fafc;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #fff;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-name {
  white-space: nowrap;
  font-size: 1.22rem;
  background: linear-gradient(135deg, #e11d48, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--rose-dark);
  background: var(--rose-soft);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-soft);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-dark);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

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

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

.mobile-search {
  display: flex;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.mobile-search input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  outline: 0;
}

.quick-cats {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-carousel {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: radial-gradient(circle at top left, #fb7185, #111827 45%, #020617);
}

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

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

.hero-image {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 7vw, 84px);
  bottom: clamp(36px, 8vw, 86px);
  width: min(640px, calc(100% - 56px));
  color: #fff;
}

.hero-kicker,
.section-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  margin: 0;
  max-width: 560px;
  color: #e5e7eb;
  font-size: 1.12rem;
}

.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;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 0.84rem;
}

.tag-row span {
  background: #fff1f2;
  color: #be123c;
}

.detail-tags span {
  background: #ffe4e6;
  color: #9f1239;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.ghost-action,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #fff;
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.32);
}

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

.primary-action:hover,
.ghost-action:hover,
.section-more:hover,
.movie-card:hover,
.category-tile:hover,
.ranking-item:hover,
.related-card:hover {
  transform: translateY(-3px);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

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

.hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.hero-panel span {
  color: var(--rose);
  font-weight: 900;
}

.hero-panel h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

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

.hero-category-row a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-weight: 900;
}

.page-main,
.detail-main {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
}

.content-section,
.search-page-panel,
.ranking-list,
.sitemap-section,
.detail-content,
.related-section,
.player-section {
  margin-top: 42px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--rose-dark);
  background: #fff;
  border: 1px solid #fecdd3;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
}

.card-link {
  display: grid;
  height: 100%;
}

.poster-frame,
.related-poster,
.detail-poster,
.category-tile,
.ranking-item img {
  background: linear-gradient(135deg, #111827, #f43f5e);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.poster-image.image-hidden {
  opacity: 0;
}

.movie-card:hover .poster-image,
.category-tile:hover .poster-image,
.related-card:hover .poster-image {
  transform: scale(1.045);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-dark);
  font-weight: 900;
  font-size: 0.78rem;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.card-body h2 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(34px, 7vw, 72px);
  background: radial-gradient(circle at top left, #ffe4e6, #ffffff 45%, #fff7ed);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.category-hero {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.84)), var(--hero-poster);
  background-size: cover;
  background-position: center;
}

.category-actions .ghost-action {
  border-color: rgba(244, 63, 94, 0.28);
  color: var(--rose-dark);
  background: #fff;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.15));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.category-tile strong {
  display: block;
  font-size: 1.35rem;
}

.category-tile em {
  display: block;
  margin-top: 8px;
  color: #e5e7eb;
  font-style: normal;
  font-size: 0.92rem;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.filter-toolbar input,
.filter-toolbar select,
.big-search input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  background: #fff;
}

.filter-toolbar input {
  flex: 1;
}

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

.ranking-item {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 64px 90px 1fr 70px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-no {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--rose);
  text-align: center;
}

.ranking-item img {
  width: 90px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-copy strong {
  display: block;
  font-size: 1.1rem;
}

.rank-copy em {
  display: block;
  color: var(--muted);
  font-style: normal;
  margin: 4px 0;
}

.rank-copy p {
  margin: 0;
  color: #4b5563;
}

.rank-score {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-weight: 900;
}

.search-page-panel {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.big-search {
  display: flex;
  gap: 12px;
}

.big-search input {
  flex: 1;
}

.big-search button {
  border-radius: 999px;
  min-width: 110px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
}

.search-result-card img {
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #fb7185);
}

.search-result-card strong {
  display: block;
}

.search-result-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.search-result-card p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sitemap-section {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sitemap-section h2 {
  margin: 12px 0 16px;
}

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

.sitemap-columns a,
.sitemap-movies a {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(230px, 340px) 1fr;
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  background: radial-gradient(circle at top left, #ffe4e6, #fff 45%, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
}

.detail-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-copy p {
  max-width: 780px;
  color: #374151;
  font-size: 1.12rem;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--rose-dark);
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.14);
}

.player-section {
  border-radius: 34px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.36), rgba(2, 6, 23, 0.72));
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.36);
  font-size: 2rem;
}

.player-start strong {
  font-size: 1.1rem;
}

.detail-content {
  display: grid;
  gap: 20px;
}

.detail-content article {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
  margin: 0 0 12px;
}

.detail-content p {
  margin: 0;
  color: #374151;
}

.movie-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.movie-info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.movie-info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.movie-info-list dd {
  margin: 0;
  font-weight: 800;
}

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

.related-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.related-card a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.related-poster {
  height: 128px;
  overflow: hidden;
  border-radius: 16px;
}

.related-card strong {
  display: block;
  font-size: 1rem;
}

.related-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  margin-top: 64px;
  padding: 48px 0;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
  font-size: 1.25rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.05rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

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

  .desktop-nav,
  .header-search {
    display: none;
  }

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

@media (max-width: 820px) {
  .hero-stage {
    min-height: 520px;
  }

  .hero-image {
    min-height: 520px;
  }

  .hero-panel,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-category-row {
    justify-content: flex-start;
  }

  .movie-grid,
  .archive-grid,
  .category-grid,
  .search-results-grid,
  .related-grid,
  .sitemap-columns,
  .sitemap-movies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-item a {
    grid-template-columns: 48px 74px 1fr;
  }

  .rank-score {
    display: none;
  }

  .ranking-item img {
    width: 74px;
    height: 98px;
  }

  .filter-toolbar,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-cats,
  .hero-carousel,
  .page-main,
  .detail-main,
  .footer-grid {
    width: min(100% - 22px, 1240px);
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .hero-stage {
    border-radius: 24px;
    min-height: 500px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 64px;
    width: auto;
  }

  .hero-control {
    display: none;
  }

  .hero-dots {
    left: 22px;
    right: auto;
  }

  .movie-grid,
  .archive-grid,
  .category-grid,
  .search-results-grid,
  .related-grid,
  .sitemap-columns,
  .sitemap-movies {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .detail-hero,
  .detail-content article,
  .search-page-panel,
  .sitemap-section {
    border-radius: 24px;
    padding: 22px;
  }

  .movie-info-list {
    grid-template-columns: 1fr;
  }

  .player-shell {
    min-height: 220px;
  }
}
