:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-900: #881337;
  --pink-800: #9d174d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 16px 45px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 12px 28px rgba(17, 24, 39, 0.1);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

body.menu-open {
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.32);
}

.logo-text {
  white-space: nowrap;
  font-size: 18px;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-600);
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.movie-filter {
  width: 220px;
  border: 1px solid var(--gray-200);
  border-radius: 13px;
  background: #fff;
  color: var(--gray-900);
  padding: 10px 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search input:focus,
.mobile-search input:focus,
.movie-filter:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--rose-600);
  padding: 10px 14px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-800);
  background: #fff;
}

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

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-900), var(--pink-800) 54%, var(--rose-700));
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-shade {
  background:
    radial-gradient(circle at 72% 38%, rgba(244, 63, 94, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(136, 19, 55, 0.76) 46%, rgba(17, 24, 39, 0.36)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-copy p,
.inner-hero p,
.lead-text {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

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

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

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

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

.primary-btn,
.ghost-btn,
.ghost-dark-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  padding: 13px 20px;
  box-shadow: 0 16px 28px rgba(225, 29, 72, 0.35);
}

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

.ghost-dark-btn {
  color: var(--rose-700);
  background: #fff;
  border: 1px solid var(--rose-100);
  padding: 12px 18px;
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.2);
  aspect-ratio: 3 / 4.2;
}

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

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.28);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.quick-panel {
  margin-top: -42px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.quick-panel strong {
  color: var(--rose-600);
  font-size: 30px;
  line-height: 1;
}

.quick-panel span {
  color: var(--gray-600);
  font-weight: 800;
}

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

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

.section-head h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
}

.section-link {
  color: var(--rose-600);
  background: var(--rose-50);
  padding: 10px 16px;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 12px;
  top: 12px;
  background: rgba(17, 24, 39, 0.7);
  padding: 5px 10px;
  font-size: 12px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: rgba(225, 29, 72, 0.88);
  padding: 5px 10px;
  font-size: 11px;
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 900;
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--rose-700);
  background: var(--rose-50);
  padding: 5px 9px;
}

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

.compact-card .card-body h2 {
  font-size: 16px;
}

.compact-card .card-body p {
  min-height: 42px;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card);
}

.category-tile img,
.category-glow {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-glow {
  background:
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.15)),
    radial-gradient(circle at 20% 10%, rgba(244, 63, 94, 0.38), transparent 45%);
}

.category-tile strong,
.category-tile em,
.category-tile p {
  position: relative;
  z-index: 1;
}

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

.category-tile em {
  font-style: normal;
  color: #ffe4e6;
  font-weight: 800;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.rank-band {
  margin-top: 72px;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.34), transparent 36%),
    linear-gradient(135deg, var(--gray-900), var(--rose-900));
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: center;
}

.rank-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 950;
}

.rank-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.rank-card-list,
.rank-page-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-page-list .rank-row {
  color: var(--gray-900);
  background: #fff;
  border-color: var(--gray-200);
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.16);
}

.rank-page-list .rank-row:hover {
  background: var(--rose-50);
}

.list-rank {
  width: 38px;
  color: #fecdd3;
  font-weight: 950;
}

.rank-page-list .list-rank {
  color: var(--rose-600);
}

.rank-row img {
  width: 62px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.rank-meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  white-space: nowrap;
}

.rank-page-list .rank-meta {
  color: var(--gray-500);
}

.inner-hero {
  padding: 86px 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 63, 94, 0.4), transparent 30%),
    linear-gradient(135deg, var(--rose-900), var(--gray-900));
}

.inner-hero .eyebrow {
  color: #fff;
}

.inner-hero h1 {
  margin-bottom: 12px;
}

.filter-panel {
  width: min(720px, 100%);
  margin-top: 28px;
}

.filter-panel .movie-filter {
  height: 52px;
  border-radius: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
  font-size: 14px;
}

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

.detail-hero {
  padding: 70px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.3), transparent 28%),
    linear-gradient(135deg, var(--gray-900), var(--rose-900));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4.1;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}

.watch-section {
  padding-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.player-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.78;
}

.player-cover-shade {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.3), rgba(0, 0, 0, 0.72));
}

.player-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 18px 48px rgba(225, 29, 72, 0.42);
  font-size: 36px;
  text-indent: 4px;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-article {
  margin-top: 54px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 950;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.no-result {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  text-align: center;
  background: #fff;
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  margin-top: 80px;
  padding: 46px 0;
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  margin: 12px 0 0;
  color: #9ca3af;
}

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

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

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

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

@media (max-width: 820px) {
  .nav-shell {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  body.menu-open .mobile-panel {
    display: grid;
    gap: 12px;
  }

  .mobile-link {
    border-radius: 12px;
    background: #fff;
    padding: 11px 12px;
  }

  .hero-carousel {
    height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 44px 0 76px;
  }

  .hero-poster {
    width: min(260px, 62vw);
  }

  .hero-control {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .quick-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    width: min(330px, 80vw);
  }

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

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

@media (max-width: 620px) {
  .container,
  .nav-shell,
  .mobile-panel {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 16px;
  }

  .hero-copy h1,
  .inner-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .inner-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .ghost-dark-btn {
    width: 100%;
  }

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

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

  .inner-hero,
  .detail-hero {
    padding: 54px 0;
  }

  .detail-article {
    padding: 22px;
  }

  .player-play {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }
}
