
:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.88);
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #0f172a;
  --dark-soft: rgba(15, 23, 42, 0.82);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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 rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.header-search {
  position: relative;
  flex: 1 1 420px;
  max-width: 460px;
  margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.86);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  padding: 11px 46px 11px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: #9ca3af;
  background: white;
  box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.16);
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #4b5563;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--ink);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mobile-search input {
  padding: 11px 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--ink);
  color: white;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 10px 2px;
  color: #4b5563;
}

main {
  min-height: 60vh;
}

.hero-section {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
}

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

.hero-backdrop img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(31, 41, 55, 0.78) 48%, rgba(15, 23, 42, 0.52) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 520px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.page-kicker {
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
}

.hero-copy h1 {
  margin: 22px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-lead,
.hero-summary {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-copy h2 {
  margin: 26px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.hero-tags,
.detail-tags,
.card-tags,
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.side-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.card-tags span,
.side-tags span {
  background: #f3f4f6;
  color: #374151;
}

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

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

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

.button-light {
  background: white;
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(10px);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-categories a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel-title {
  margin-bottom: 14px;
  color: white;
  font-weight: 800;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  color: white;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.hero-mini-poster {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #4b5563);
}

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

.hero-mini-card strong,
.hero-mini-card small {
  display: block;
}

.hero-mini-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section,
.split-section,
.browse-banner,
.detail-content,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

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

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

.section-heading h2,
.ranking-head h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.ranking-head a,
.detail-article p,
.detail-side dd,
.detail-side dt,
.browse-banner p,
.page-hero p {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #f0f1f3;
  border-radius: 24px;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(156, 163, 175, 0.4);
  box-shadow: var(--shadow);
}

.poster-link,
.poster-wrap {
  display: block;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: #4b5563;
}

.card-body p {
  height: 44px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #9ca3af;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
}

.split-main,
.ranking-box,
.browse-banner,
.filter-panel,
.detail-article,
.detail-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}

.split-main,
.ranking-box {
  padding: 24px;
}

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

.category-chip,
.category-overview-card {
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: #f9fafb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chip:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  background: #f3f4f6;
}

.category-chip span,
.category-overview-card strong {
  display: block;
  font-weight: 800;
}

.category-chip small,
.category-overview-card p,
.category-overview-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

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

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.browse-banner {
  margin-top: 56px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
}

.browse-banner h2,
.browse-banner p {
  margin: 0;
}

.browse-banner p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: #4b5563;
}

.footer-bottom {
  border-top: 1px solid #f3f4f6;
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.page-hero {
  max-width: 1280px;
  margin: 32px auto 0;
  min-height: 340px;
  border-radius: 32px;
  padding: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 32px;
  color: white;
}

.page-hero.compact-hero {
  display: block;
  min-height: 260px;
}

.page-hero.category-hero,
.page-hero.ranking-hero {
  background: linear-gradient(135deg, #111827, #4b5563);
}

.page-hero .page-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.filter-search input {
  padding: 13px 18px;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-selects select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 36px 0 14px;
  background: #f9fafb;
  color: #374151;
  outline: none;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 20px;
  background: #f9fafb;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-page-row {
  display: grid;
  grid-template-columns: 48px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-page-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-poster {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #6b7280);
}

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

.ranking-info strong,
.ranking-info small {
  display: block;
}

.ranking-info small {
  margin-top: 5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-score {
  color: #4b5563;
  font-weight: 800;
}

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

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 520px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: linear-gradient(135deg, #111827, #6b7280);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-copy {
  color: white;
}

.detail-copy .page-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.76);
}

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

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #05070d;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.66));
  color: white;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-symbol {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 30px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

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

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p {
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.detail-side dt {
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
}

.related-section {
  padding-top: 48px;
}

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

.compact-grid .card-body p,
.compact-grid .card-tags,
.compact-grid .card-meta {
  display: none;
}

.compact-grid .card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

  .hero-inner,
  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

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

  .header-inner {
    padding: 0 18px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-section,
  .hero-inner {
    min-height: 560px;
  }

  .hero-inner {
    padding: 54px 18px;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .browse-banner,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

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

  .content-section,
  .split-section,
  .browse-banner,
  .detail-content,
  .player-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-hero {
    margin: 18px 18px 0;
    padding: 32px;
    grid-template-columns: 1fr;
  }

  .page-hero img {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-selects select {
    flex: 1 1 150px;
  }

  .ranking-page-row {
    grid-template-columns: 40px 68px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
    font-size: 13px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 44px 18px;
  }

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

  .detail-copy h1 {
    font-size: 42px;
  }
}

@media (max-width: 520px) {
  .brand-subtitle {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

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

  .card-body p {
    height: auto;
  }

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

  .rank-meta {
    grid-column: 2;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
