:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-200: #ffc8dd;
  --pink-400: #fb6fae;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --rose-700: #be123c;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.18);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(190, 18, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fff7fb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pink-600), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  transition: right 0.2s ease;
}

.main-nav a:hover {
  color: var(--pink-600);
}

.main-nav a:hover::after {
  right: 0;
}

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

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

.header-search button,
.primary-btn,
.filter-bar button,
.search-controls button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 9px 16px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-btn:hover,
.header-search button:hover,
.filter-bar button:hover,
.search-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.3);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--pink-600);
  background: var(--pink-50);
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.56) 42%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 52%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 7vw, 86px);
  bottom: clamp(42px, 9vw, 98px);
  width: min(680px, calc(100% - 56px));
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--pink-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-title-block .eyebrow,
.page-hero .eyebrow {
  color: #fecdd3;
}

.hero-content h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-title-block p {
  max-width: 740px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.hero-thumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #4b5563;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-100), #fff);
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--pink-400);
  background: #fff;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 54px auto;
}

.soft-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.9), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  flex: 0 0 auto;
  color: var(--pink-600);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.42);
  box-shadow: 0 22px 42px rgba(190, 18, 60, 0.15);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(236, 72, 153, 0.24), transparent 50%),
    linear-gradient(135deg, #fdf2f8, #ffe4e6);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), transparent);
}

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

.type-badge {
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: rgba(236, 72, 153, 0.88);
}

.rank-badge {
  right: 10px;
  top: 10px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.82);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.34);
}

.card-content {
  padding: 14px 14px 16px;
}

.card-content h3 {
  min-height: 46px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.card-content h3 a:hover {
  color: var(--pink-600);
}

.card-desc {
  min-height: 48px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.meta-line span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f9fafb;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 5px 8px;
  color: var(--pink-600);
  background: var(--pink-50);
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(190, 18, 60, 0.08);
}

.category-cover {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 150px;
  overflow: hidden;
  background: var(--pink-100);
}

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

.category-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
}

.category-info {
  padding: 18px;
}

.category-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.ranking-panel,
.info-card,
.article-card,
.side-card,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(190, 18, 60, 0.08);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ranking-head span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.ranking-head h2 {
  flex: 1;
  margin: 0;
}

.ranking-head a {
  color: var(--pink-600);
  font-weight: 900;
}

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

.ranking-list li + li,
.side-rank li + li {
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.ranking-list a,
.side-rank a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 12px 0;
  align-items: center;
}

.rank-num,
.side-rank span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--pink-600);
  font-weight: 900;
  background: var(--pink-50);
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #831843, #be123c 45%, #f43f5e);
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: clamp(42px, 8vw, 86px);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.small-hero,
.category-hero,
.search-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.filter-bar,
.search-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-controls input,
.search-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 13px;
  background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-controls input:focus,
.search-controls select:focus {
  border-color: var(--pink-400);
}

.filter-bar button,
.search-controls button {
  min-height: 44px;
  padding: 0 18px;
}

.filter-count {
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: end;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.35)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent 62%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

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

.detail-title-block {
  width: min(820px, 100%);
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.36);
}

.big-play.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.62);
}

.info-card,
.article-card,
.side-card,
.search-panel {
  padding: 24px;
}

.info-card h2,
.article-card h2,
.side-card h2 {
  margin: 0 0 16px;
}

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

.movie-info-list div {
  padding: 14px;
  border-radius: 18px;
  background: #fff7fb;
}

.movie-info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.movie-info-list dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.wide-link {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--pink-600);
  font-weight: 900;
  background: var(--pink-50);
}

.wide-link + .wide-link {
  margin-top: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  text-align: left;
}

.ranking-table th {
  color: var(--pink-700);
  background: var(--pink-50);
}

.search-panel {
  padding: 18px;
}

.search-controls {
  grid-template-columns: 2fr 1fr 1fr auto;
  margin-bottom: 14px;
}

.search-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #fff1f7, #ffe4ef);
}

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

.footer-logo {
  margin-bottom: 12px;
  color: var(--pink-700);
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--pink-600);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(236, 72, 153, 0.16);
  color: var(--muted);
  text-align: center;
}

.is-filtered-out {
  display: none;
}

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

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

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 5;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
  }

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

  .main-nav a {
    padding: 10px 8px;
  }

  .header-search {
    display: none;
  }

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

  .hero-stage {
    min-height: 560px;
  }

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

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

  .filter-bar,
  .search-controls {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content-section,
  .hero,
  .page-hero,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .logo-text strong {
    font-size: 18px;
  }

  .hero-stage {
    min-height: 520px;
    border-radius: 26px;
  }

  .hero-content {
    left: 20px;
    bottom: 28px;
    width: calc(100% - 40px);
  }

  .hero-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }

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

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

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .detail-hero {
    min-height: 620px;
  }
}
