:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.25);
}

.brand-text {
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose), var(--pink), #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--rose);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.filter-bar button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

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

.mobile-menu-button {
  display: none;
  border: 0;
  margin-left: auto;
  background: transparent;
  font-size: 28px;
  color: #374151;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.48), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.28)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 110px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.90), rgba(236, 72, 153, 0.82));
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1,
.detail-hero h1 {
  max-width: 780px;
  margin: 20px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p,
.detail-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  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);
}

.tag-row span {
  color: var(--rose-dark);
  background: #fff1f2;
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100% - 1120px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.stat-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -48px;
}

.stat-strip a {
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.stat-strip strong {
  display: block;
  font-size: 30px;
  color: var(--rose);
}

.stat-strip span {
  color: var(--muted);
  font-weight: 700;
}

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

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

.section-heading h2,
.ranking-head h2,
.page-title h1,
.detail-content-card h2,
.detail-side-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p,
.ranking-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--rose);
  font-weight: 900;
}

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

.category-tile,
.category-overview-hero {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-overview-hero img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img,
.category-overview-hero:hover img {
  transform: scale(1.08);
}

.category-mask,
.category-overview-hero span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.20));
}

.category-tile strong,
.category-tile small,
.category-overview-hero div {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-tile strong {
  bottom: 64px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile small {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(17, 24, 39, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #3f1d2b);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 46%);
  opacity: 0.7;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.88);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.75);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  color: #111827;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--rose);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  border: 1px solid #fee2e2;
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, #fff7f7, #ffffff);
  box-shadow: var(--shadow);
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ffe4e6;
}

.rank-number {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
}

.page-title {
  margin-bottom: 28px;
}

.page-title span {
  display: inline-block;
  color: var(--rose);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.filter-bar input {
  min-width: 260px;
  flex: 1 1 260px;
}

.filter-bar button {
  color: var(--rose-dark);
  background: #fff1f2;
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-scroll button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.result-count {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.category-overview-block {
  margin-bottom: 44px;
}

.category-overview-hero {
  display: block;
  min-height: 250px;
}

.category-overview-hero div {
  bottom: 22px;
}

.category-overview-hero strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

.category-overview-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.ranking-row-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.ranking-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-row-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  border-radius: 50%;
  background: var(--rose);
  font-weight: 950;
}

.ranking-row-main > a {
  font-size: 20px;
  font-weight: 950;
}

.ranking-row-main > a:hover {
  color: var(--rose);
}

.ranking-row-main p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.ranking-row-score {
  text-align: right;
}

.ranking-row-score strong {
  display: block;
  color: var(--rose);
  font-size: 22px;
}

.ranking-row-score span {
  color: var(--muted);
  font-size: 12px;
}

.detail-main {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero > img,
.detail-hero-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-hero > img {
  object-fit: cover;
  filter: saturate(1.05);
}

.detail-hero-mask {
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.38)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent 68%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 42px 0 92px;
}

.detail-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 360px;
}

.player-section {
  margin-top: -74px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.20), rgba(0, 0, 0, 0.34));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.35);
  font-size: 36px;
}

.player-overlay strong {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 46px 0 0;
}

.detail-content-card,
.detail-side-card {
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.detail-content-card h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-content-card p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 1.88;
}

.detail-side-card dl {
  margin: 0;
}

.detail-side-card dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-side-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-side-card a {
  color: var(--rose);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
}

.footer-grid h3 {
  color: var(--rose);
  font-size: 22px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--rose);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1200px);
  }

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

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

  .hero-controls {
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
  }

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

  .section-block,
  .page-main {
    padding: 42px 0;
  }

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

  .ranking-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .ranking-row-score {
    grid-column: 2;
    text-align: left;
  }

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

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 20px;
  }

  .stat-strip,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar input {
    min-width: 100%;
  }

  .filter-bar select,
  .filter-bar button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
