:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --orange: #f97316;
  --yellow: #fde047;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #172033;
  --muted: #64748b;
  --panel: rgba(255, 255, 255, 0.88);
  --border: rgba(244, 63, 94, 0.12);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.15), transparent 26rem),
    linear-gradient(135deg, #fff1f2 0%, #fdf2f8 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.18));
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.96), rgba(249, 115, 22, 0.96));
  box-shadow: 0 14px 36px rgba(190, 18, 60, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon,
.footer-brand span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  background: #fff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.brand-text {
  font-size: 1.45rem;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.top-search input,
.mobile-search input,
.hero-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 12px 16px;
}

.hero-search input {
  width: min(440px, 58vw);
  color: #172033;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search input::placeholder {
  color: #94a3b8;
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  min-height: 42px;
  padding: 0 18px;
  color: var(--rose-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.hero-search {
  width: fit-content;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

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

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

.mobile-search {
  margin-bottom: 14px;
}

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

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

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: stretch;
  padding: 46px 0 28px;
}

.hero-copy,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(253, 224, 71, 0.26), transparent 16rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(190, 18, 60, 0.92) 48%, rgba(249, 115, 22, 0.9));
  box-shadow: var(--shadow-strong);
}

.hero-copy::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -130px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-copy h1,
.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.hero-copy p,
.page-hero p {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.06rem;
}

.small-hero {
  margin-top: 36px;
  min-height: 260px;
}

.hero-carousel {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.02);
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 36px;
  max-width: 680px;
  color: #fff;
}

.hero-content h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag-row span,
.detail-tags a {
  color: var(--rose-dark);
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--rose-dark);
  background: transparent;
}

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

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

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

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

.content-section {
  margin: 34px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2,
.detail-text h2 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title a {
  color: var(--rose-dark);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.rank-row,
.detail-panel,
.detail-text,
.filter-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.76));
  z-index: -1;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.4s ease;
}

.category-tile:hover img,
.movie-card:hover img,
.rank-row:hover img,
.category-overview-card:hover img {
  transform: scale(1.07);
}

.category-tile span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-soft);
}

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

.poster-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 999px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.movie-meta-line a {
  color: var(--rose-dark);
}

.movie-card h2,
.rank-info h2 {
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card p,
.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
  background: var(--slate-soft);
}

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

.rank-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.35fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.detail-layout {
  padding-top: 34px;
}

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

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

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 24px;
  padding: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-shell video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-shell video {
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(2, 6, 23, 0.62));
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--rose);
  background: #fff;
  font-size: 2.1rem;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.36);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px;
}

.detail-info h1 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: var(--text);
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-play-button {
  width: fit-content;
}

.detail-text {
  padding: 24px;
}

.detail-text p {
  margin: 12px 0 24px;
  color: #334155;
  font-size: 1.03rem;
  line-height: 1.9;
}

.site-footer {
  margin-top: 56px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-brand {
  color: #fff;
  font-size: 1.3rem;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fb7185;
  font-size: 1rem;
}

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .hero-carousel {
    min-height: 520px;
  }

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

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

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

@media (max-width: 780px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

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

  .brand-text {
    font-size: 1.2rem;
  }

  .hero-copy,
  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .hero-carousel {
    min-height: 470px;
    border-radius: 24px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

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

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

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

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

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

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

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main,
  .header-inner,
  .mobile-panel,
  .footer-grid {
    width: min(100% - 20px, 1200px);
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .hero-search {
    width: 100%;
  }

  .hero-search input {
    width: 100%;
  }

  .hero-search button {
    padding: 0 14px;
  }

  .hero-carousel {
    min-height: 420px;
  }

  .hero-dots {
    left: 22px;
    right: auto;
  }
}
