:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --orange-400: #fb923c;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --green-500: #22c55e;
  --blue-500: #3b82f6;
  --shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-icon,
.footer-brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-500);
  box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.16);
}

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

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb7185, var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: #fb7185;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: var(--slate-700);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
}

.header-search input:focus {
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
}

.header-search button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-500);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--slate-800);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 14px 16px 8px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--slate-700);
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--rose-500);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  padding: 10px 16px 18px;
}

.mobile-panel nav a {
  padding: 8px 0;
  color: #e2e8f0;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-700));
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(650px, 100%);
  color: #ffffff;
}

.hero-kicker,
.detail-badge,
.movie-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-500);
  font-weight: 800;
}

.hero-kicker {
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 22px);
  max-width: 620px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #e11d48;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: var(--rose-500);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.btn-primary:hover {
  background: var(--rose-600);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-rank {
  color: #fbbf24;
  font-weight: 800;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--rose-500);
}

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

.soft-section {
  padding: 50px 0;
  background: linear-gradient(90deg, var(--rose-50), #fff7ed);
}

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

.section-head h2,
.side-panel h2,
.detail-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}

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

.section-head a,
.side-more {
  color: var(--rose-600);
  font-weight: 800;
}

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

.movie-card {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  opacity: 0.78;
}

.movie-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  font-size: 12px;
}

.movie-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--rose-600);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  background: var(--gray-100);
  padding: 3px 8px;
}

.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.movie-card--wide {
  flex: 0 0 320px;
  box-shadow: none;
  background: transparent;
}

.movie-card--wide .movie-card-body {
  padding: 12px 2px 0;
}

.movie-card--wide .movie-thumb {
  border-radius: 16px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 34px;
}

.list-stack {
  display: grid;
  gap: 18px;
}

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

.movie-card--list .movie-thumb {
  height: 100%;
  min-height: 150px;
}

.side-panel {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.rank-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: var(--gray-50);
  transform: translateX(4px);
}

.compact-card img {
  width: 82px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-800);
}

.compact-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.35;
}

.compact-card small {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
}

.rank-num {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
}

.side-more {
  display: inline-flex;
  margin-top: 20px;
}

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

.category-box {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 18px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
}

.category-box:nth-child(2n) {
  background: linear-gradient(135deg, var(--blue-500), #2563eb);
}

.category-box:nth-child(3n) {
  background: linear-gradient(135deg, var(--green-500), #16a34a);
}

.category-box::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-box span,
.category-box strong {
  position: relative;
  z-index: 2;
}

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

.category-box strong {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-700));
  padding: 68px 0;
}

.page-hero span {
  display: inline-flex;
  color: #fb7185;
  font-weight: 900;
  margin-bottom: 10px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  border-radius: 22px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-overview-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-copy p {
  margin: 0 0 22px;
  color: var(--gray-600);
}

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

.filter-bar,
.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  background: #ffffff;
}

.filter-bar input,
.search-panel input {
  flex: 1;
  min-width: 0;
}

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

.filter-bar button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--slate-800);
  cursor: pointer;
}

.empty-state {
  display: none;
  margin-top: 26px;
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.empty-state.is-visible {
  display: grid;
  gap: 6px;
}

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

.top-rank-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  overflow: hidden;
  padding: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16));
}

.top-rank-card span,
.top-rank-card h2,
.top-rank-card p {
  position: relative;
  z-index: 2;
}

.top-rank-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--rose-500);
  font-weight: 900;
}

.top-rank-card h2 {
  margin: 14px 0 8px;
  font-size: 26px;
}

.top-rank-card p {
  margin: 0;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  border-radius: 22px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-summary {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-weight: 800;
}

.detail-shell {
  padding: 28px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--rose-600);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 30px;
}

.player-card,
.detail-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.player-card {
  margin-bottom: 20px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--amber-500);
  font-size: 34px;
  padding-left: 5px;
  box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.22);
}

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

.detail-card {
  padding: 26px;
  margin-bottom: 20px;
}

.detail-badge {
  padding: 5px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.sticky-panel {
  position: sticky;
  top: 90px;
}

.site-footer {
  margin-top: 36px;
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr);
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.footer-about p {
  max-width: 560px;
  margin: 0 0 12px;
  color: #94a3b8;
}

.footer-note {
  color: #fb7185 !important;
  font-weight: 800;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-500);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

  .menu-toggle {
    display: block;
  }

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

  .split-layout,
  .detail-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

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

  .brand {
    min-width: 0;
  }

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

  .hero {
    height: 540px;
  }

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

  .movie-grid,
  .category-grid,
  .top-rank-grid,
  .rank-list,
  .category-overview-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--list .movie-card-link {
    grid-template-columns: 1fr;
  }

  .movie-card--list .movie-thumb {
    min-height: 0;
  }

  .top-rank-card {
    min-height: 300px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .detail-card {
    padding: 20px;
  }
}
