:root {
  color-scheme: light;
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --yellow: #fde68a;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #f43f5e 0%, #ec4899 52%, #fb923c 100%);
  box-shadow: 0 16px 40px rgba(244, 63, 94, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand-icon,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #f43f5e;
  background: #fff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

.brand-text {
  font-size: 1.45rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.main-nav a {
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #fef3c7;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.nav-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 9px 12px;
}

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

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

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 9px 12px;
  cursor: pointer;
}

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

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

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.mobile-search {
  display: flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px;
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(251, 146, 60, 0.58), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(136, 19, 55, 0.76) 48%, rgba(15, 23, 42, 0.3) 100%);
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 100%);
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.92), rgba(251, 146, 60, 0.92));
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
}

.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: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.36);
}

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

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-copy .hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-controls button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.62;
}

.hero-dots button.active {
  width: 32px;
  opacity: 1;
  background: #fff;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-top: -48px;
  position: relative;
  z-index: 6;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

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

.quick-search-panel form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.quick-search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07);
}

.quick-search-panel button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.section-block {
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: #be123c;
  font-weight: 900;
}

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

.category-tile,
.category-card,
.movie-card,
.article-card,
.rank-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.category-tile {
  position: relative;
  min-height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.category-tile span,
.category-tile em,
.category-cover span {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  font-size: 0.9rem;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.16);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

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

.compact-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.movie-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #fb923c, transparent 32%), linear-gradient(135deg, #be123c, #111827);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.72));
}

.type-badge,
.rank-badge,
.meta-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.type-badge {
  left: 12px;
  top: 12px;
  color: #fff;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  padding: 5px 10px;
  font-size: 0.75rem;
}

.rank-badge {
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: #be123c;
  background: #fff;
}

.meta-pill {
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.card-body {
  padding: 16px;
}

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

.card-body h2 a:hover {
  color: var(--rose);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.card-foot a {
  color: #be123c;
}

.rank-panel {
  padding: 20px;
}

.sticky-rank {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.rank-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rank-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.rank-panel-head a {
  color: #be123c;
  font-weight: 900;
}

.rank-line,
.ranking-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rank-line {
  grid-template-columns: 42px 1fr 46px;
}

.ranking-row {
  grid-template-columns: 44px minmax(0, 1fr) auto 48px;
}

.rank-line b,
.ranking-row b {
  color: #f43f5e;
}

.rank-line span,
.ranking-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-line em,
.ranking-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.ranking-row strong {
  color: #be123c;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(251, 146, 60, 0.45), transparent 30%),
    linear-gradient(120deg, #111827 0%, #9f1239 48%, #fb923c 100%);
}

.small-hero {
  padding: 78px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.category-list-grid {
  grid-template-columns: repeat(2, 1fr);
}

.category-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.category-cover {
  position: relative;
  min-height: 230px;
  color: #fff;
  background: linear-gradient(135deg, #be123c, #111827);
  overflow: hidden;
}

.category-cover span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  font-size: 1.4rem;
  font-weight: 900;
}

.category-body {
  padding: 22px;
}

.category-body h2 {
  margin: 0 0 10px;
}

.category-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 800;
  font-size: 0.88rem;
}

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

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.35;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(136, 19, 55, 0.78));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 58px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.detail-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, #be123c, #111827);
}

.detail-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), rgba(0, 0, 0, 0.34));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 2.5rem;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.42);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 34px;
}

.article-card {
  padding: 26px;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.article-card p {
  margin: 0;
  color: #374151;
}

.site-footer {
  margin-top: 80px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
}

.site-footer p {
  color: #cbd5e1;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fb7185;
  font-size: 1.1rem;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden-card {
  display: none !important;
}

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

  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

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

  .sticky-rank {
    position: static;
    max-height: none;
  }
}

@media (max-width: 780px) {
  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .quick-search-panel,
  .filter-bar,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-panel form {
    border-radius: 24px;
    flex-direction: column;
  }

  .quick-search-panel button {
    min-height: 46px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-poster {
    max-width: 280px;
  }

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

  .ranking-row {
    grid-template-columns: 38px 1fr 42px;
  }

  .ranking-row em {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.35rem;
    letter-spacing: -0.04em;
  }

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

  .small-hero {
    padding: 52px 0;
  }

  .section-block {
    padding-top: 46px;
  }

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }
}
