:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --red-600: #dc2626;
  --pink-600: #db2777;
  --slate-950: #020617;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--red-600), var(--rose-600), var(--pink-600));
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: #ffe4e6;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  position: relative;
  color: var(--white);
  font-weight: 600;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: #ffe4e6;
  opacity: 1;
}

.nav-menu a.is-active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 99px;
  background: #ffe4e6;
  content: "";
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #dc2626, #e11d48 45%, #db2777);
}

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

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.76), rgba(190, 18, 60, 0.38), rgba(2, 6, 23, 0.28));
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  min-height: 660px;
  padding: 72px 0 96px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-title span {
  color: #ffe4e6;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: #fff1f2;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.hero-meta span,
.movie-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff1f2;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
}

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

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--red-600));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

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

.button-light {
  color: var(--rose-700);
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(12px);
}

.hero-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-card-info {
  padding: 18px;
}

.hero-card-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-card-info p {
  color: #ffe4e6;
  font-size: 14px;
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  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: 30px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(90deg, #fff1f2, #f9fafb);
}

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

.section-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 10px;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.7;
}

.search-panel,
.filter-panel {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.search-box,
.filter-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.search-row,
.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.search-input,
.filter-select {
  width: 100%;
  height: 54px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 18px;
  outline: none;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.search-results {
  display: none;
  margin-top: 14px;
  max-height: 430px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
}

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

.search-result {
  display: flex;
  gap: 14px;
  padding: 12px;
  color: var(--gray-900);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}

.search-result:hover {
  background: var(--gray-50);
}

.search-result img {
  width: 58px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--rose-50);
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
}

.search-result p {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.category-card,
.rank-card,
.info-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.22);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.movie-card a,
.category-card a,
.rank-card a {
  display: block;
  height: 100%;
  color: inherit;
}

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

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

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

.badge,
.year-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--white);
  background: var(--rose-500);
}

.badge {
  color: var(--rose-700);
  background: var(--rose-100);
}

.rank-badge {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--red-600));
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.rank-card:hover .movie-title {
  color: var(--rose-600);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-foot strong {
  color: var(--rose-600);
}

.category-card {
  min-height: 220px;
  background: linear-gradient(135deg, var(--white), #fff1f2);
}

.category-card a {
  padding: 28px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--red-600));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24);
  font-size: 28px;
  font-weight: 900;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

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

.latest-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.latest-item img {
  width: 118px;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
}

.latest-item h3 {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-item p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--red-600));
  font-size: 18px;
  font-weight: 900;
}

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

.rank-row h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-row p {
  color: var(--gray-600);
  font-size: 13px;
}

.cta-panel {
  padding: 44px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--red-600));
  text-align: center;
  box-shadow: 0 22px 56px rgba(190, 18, 60, 0.28);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
}

.cta-panel p {
  margin: 0 auto 26px;
  max-width: 680px;
  color: #ffe4e6;
  font-size: 18px;
  line-height: 1.7;
}

.page-hero {
  padding: 64px 0 88px;
  color: var(--white);
  background: linear-gradient(135deg, #dc2626, #e11d48 52%, #db2777);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffe4e6;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--white);
  font-weight: 700;
}

.page-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 900;
}

.page-desc {
  max-width: 760px;
  margin-top: 16px;
  color: #fff1f2;
  font-size: 18px;
  line-height: 1.8;
}

.filter-empty {
  display: none;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

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

.player-card,
.detail-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-center-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-600);
  box-shadow: 0 18px 48px rgba(225, 29, 72, 0.44);
  font-size: 34px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-center-button:hover {
  transform: scale(1.08);
  background: var(--rose-700);
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--slate-950);
  color: var(--white);
}

.player-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.player-toolbar button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.player-status {
  color: #cbd5e1;
  font-size: 13px;
}

.detail-card {
  padding: 28px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

.summary-box {
  margin: 22px 0;
  padding: 18px;
  border-left: 4px solid var(--rose-500);
  border-radius: 0 16px 16px 0;
  color: var(--gray-700);
  background: var(--rose-50);
  line-height: 1.8;
}

.article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.article-block p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.95;
}

.review-card {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--red-600));
  font-weight: 900;
}

.related-grid {
  margin-top: 28px;
}

.site-footer {
  padding: 44px 0;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer a:hover {
  color: #fb7185;
}

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

.footer-bottom {
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 1080px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
  }

  .grid-4,
  .grid-3,
  .latest-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: #be123c;
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-menu a.is-active::after {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    gap: 28px;
    padding: 44px 0 86px;
  }

  .hero-card img {
    height: 300px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row,
  .filter-row,
  .grid-4,
  .grid-3,
  .grid-2,
  .latest-list,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .latest-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .latest-item img {
    width: 96px;
    height: 132px;
  }

  .section {
    padding: 48px 0;
  }

  .detail-card {
    padding: 20px;
  }

  .player-center-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

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