:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --rose: #e11d48;
  --amber: #d97706;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: #e2e8f0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.site-logo::before,
.footer-logo::before {
  content: "";
  width: 12px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--accent));
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}

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

.nav-link,
.mobile-nav a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #f1f5f9;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 300px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.big-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

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

.header-search button,
.big-search button,
.filter-controls button,
.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button {
  padding: 10px 18px;
  margin-right: 2px;
  background: var(--dark);
  color: #ffffff;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--ink);
  background: #f1f5f9;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid #e2e8f0;
}

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

.mobile-nav a {
  padding: 12px 4px;
}

.hero-slider {
  position: relative;
  height: min(760px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.56) 48%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-content .eyebrow,
.detail-hero .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 820px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--accent));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.25);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.movie-card:hover,
.category-tile:hover,
.horizontal-card:hover,
.rank-hero-card:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.home-search-band,
.content-section,
.page-shell,
.detail-layout,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home-search-band {
  padding-top: 46px;
  padding-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 28px;
}

.big-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.big-search input {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
}

.big-search button,
.filter-controls button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--dark);
  white-space: nowrap;
}

.content-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.soft-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

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

.section-heading.compact,
.section-heading.stacked {
  display: grid;
  justify-content: start;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading a,
.text-link {
  color: var(--accent);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  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: var(--shadow);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #cbd5e1;
}

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

.movie-card:hover .poster-wrap img,
.rank-hero-card:hover img,
.category-tile:hover img {
  transform: scale(1.05);
}

.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-type {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

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

.movie-card-body h3,
.horizontal-card h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--ink);
}

.movie-card-body p,
.horizontal-card p,
.category-tile span,
.rank-hero-card em {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
}

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

.category-tile {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.category-tile strong {
  font-size: 20px;
  font-weight: 950;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 34px;
}

.rank-panel,
.detail-side-card,
.detail-main-card,
.filter-panel,
.search-page-panel,
.category-overview-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

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

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

.horizontal-card {
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card a {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  color: inherit;
}

.horizontal-card img {
  width: 76px;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
}

.list-rank {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--dark);
  font-size: 14px;
}

.page-shell {
  padding-top: 42px;
  padding-bottom: 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.56), transparent 35%), linear-gradient(135deg, #0f172a, #334155);
}

.small-hero h1,
.rank-hero h1 {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  margin: 28px 0;
  padding: 22px;
}

.filter-panel h2 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 950;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 160px 140px auto;
  gap: 10px;
  align-items: center;
}

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.search-results {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
}

.search-results.is-open {
  display: grid;
}

.search-result-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.search-result-card img {
  width: 76px;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
}

.search-result-card h3 {
  font-weight: 900;
  line-height: 1.35;
}

.search-result-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 22px;
}

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

.category-overview-head h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

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

.rank-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.rank-hero-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  isolation: isolate;
  transition: transform 0.2s ease;
}

.rank-hero-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.08));
}

.rank-hero-card span,
.rank-hero-card strong,
.rank-hero-card em {
  position: absolute;
  left: 22px;
  right: 22px;
}

.rank-hero-card span {
  top: 22px;
  font-weight: 950;
}

.rank-hero-card strong {
  bottom: 76px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 950;
}

.rank-hero-card em {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.full-rank-list .horizontal-card {
  border: 1px solid #e2e8f0;
}

.search-page-panel {
  padding: 24px;
}

.search-page-panel .big-search {
  box-shadow: none;
}

.page-results {
  display: grid;
  margin-top: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.64) 52%, rgba(15, 23, 42, 0.42) 100%);
}

.detail-hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px 52px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  width: 240px;
  aspect-ratio: 2 / 3;
  border: 5px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-title-row h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-title-row p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.player-section {
  padding-top: 34px;
  padding-bottom: 20px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.32), rgba(2, 6, 23, 0.46) 52%, rgba(2, 6, 23, 0.74));
  text-align: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--accent));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
  font-size: 34px;
}

.video-overlay strong {
  font-size: 24px;
  font-weight: 950;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 32px;
}

.detail-main-card,
.detail-side-card {
  padding: 26px;
}

.detail-main-card p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
  text-align: justify;
}

.expanded-tags {
  margin-top: 20px;
}

.detail-side-card {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.detail-side-card h2 {
  font-size: 22px;
  font-weight: 950;
}

.detail-side-card a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--ink);
  background: #f8fafc;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 50px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  gap: 16px;
}

.footer-logo {
  color: #ffffff;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.site-footer p {
  max-width: 760px;
  color: #94a3b8;
}

.is-filter-hidden {
  display: none !important;
}

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    height: 78vh;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band,
  .filter-panel,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

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

  .mini-list,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 190px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .site-logo {
    font-size: 21px;
  }

  .hero-content {
    bottom: 62px;
    width: calc(100% - 32px);
  }

  .home-search-band,
  .content-section,
  .page-shell,
  .detail-layout,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .big-search,
  .category-overview-head {
    display: grid;
    border-radius: 24px;
  }

  .big-search button {
    width: 100%;
  }

  .movie-grid,
  .dense-grid,
  .category-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

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

  .horizontal-card a {
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 10px;
  }

  .horizontal-card img {
    width: 64px;
    height: 90px;
  }

  .detail-title-row h1 {
    font-size: 38px;
  }

  .player-shell {
    border-radius: 20px;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .dense-grid,
  .category-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 38px;
  }
}
