:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7f7;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #dc2626;
  --pink: #db2777;
  --orange: #f97316;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7f7 0%, #f8fafc 42%, #eef2ff 100%);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--red);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-panel a:hover {
  background: #f9fafb;
  color: var(--red);
}

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

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(244, 63, 94, 0.32), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  min-height: 70vh;
  margin: 0 auto;
  padding: 96px 0 132px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.55fr);
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-heading span,
.page-hero > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.88);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: clamp(16px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #7f1d1d;
  background: #fee2e2;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  width: min(100% - 32px, 760px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input,
.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  background: #f9fafb;
}

.hero-search input:focus,
.search-panel input:focus {
  border-color: #fecaca;
  background: #ffffff;
}

.hero-search button,
.search-panel button,
.filter-row button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.quick-categories,
.content-section,
.split-section,
.page-main {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.quick-categories {
  padding: 34px 0 10px;
}

.content-section {
  padding: 54px 0;
}

.section-heading {
  margin-bottom: 24px;
}

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

.section-heading.with-link > a {
  color: var(--red);
  font-weight: 800;
}

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-row a,
.filter-row button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #7f1d1d;
  font-weight: 800;
  background: #fee2e2;
}

.pill-row a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.play-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 10px;
  left: 10px;
  min-height: 26px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
}

.movie-card-body {
  padding: 15px;
}

.movie-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.28;
}

.movie-card-title a:hover,
.rank-item h2 a:hover,
.breadcrumb a:hover {
  color: var(--red);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.movie-meta a {
  color: var(--red);
}

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

.compact-card .movie-card-body {
  padding: 13px;
}

.compact-card .movie-card-title {
  font-size: 15px;
}

.compact-card p,
.compact-card .tag-row {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 54px 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.rank-thumb img {
  width: 86px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spotlight-panel,
.page-hero,
.detail-info,
.detail-article,
.related-box {
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.spotlight-panel {
  padding: 34px;
  align-self: start;
  background:
    radial-gradient(circle at 92% 10%, rgba(219, 39, 119, 0.18), transparent 36%),
    #ffffff;
}

.spotlight-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.spotlight-panel p {
  color: var(--muted);
  margin-bottom: 24px;
}

.page-main {
  padding: 36px 0 70px;
}

.page-hero {
  padding: 40px;
  margin-bottom: 32px;
  overflow: hidden;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.soft-hero,
.category-hero,
.search-hero,
.ranking-hero {
  background:
    radial-gradient(circle at 92% 16%, rgba(220, 38, 38, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #fff7f7);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  background: #111827;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.12));
}

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

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: #f3f4f6;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #030712;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  font-size: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.36);
}

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

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

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

.info-list dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.wide-tags span {
  background: #fff1f2;
}

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

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

.detail-article h2,
.related-box h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
}

.related-list {
  display: grid;
  gap: 16px;
}

.related-list .movie-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.related-list .poster-link img {
  height: 100%;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 740px;
  margin-top: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-row button {
  color: #7f1d1d;
  background: #fee2e2;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

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

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 1.1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 520px;
  color: #d1d5db;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.copyright {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

  .movie-grid,
  .dense-grid,
  .category-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .brand-text small {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 86px 0 154px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .section-heading.with-link,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb img {
    width: 70px;
  }

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

  .related-list .movie-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .page-hero,
  .detail-info,
  .detail-article,
  .related-box {
    padding: 22px;
  }
}
