:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --yellow-400: #facc15;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 22px 50px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9fafb;
  color: var(--gray-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--red-600), var(--red-700));
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.28);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--gray-900);
  font-size: 15px;
  box-shadow: 0 12px 25px rgba(250, 204, 21, 0.28);
}

.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
}

.desktop-menu a {
  opacity: 0.95;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-menu a:hover {
  color: var(--yellow-400);
  transform: translateY(-1px);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  display: block;
  border-radius: 999px;
  background: var(--white);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-menu a {
  display: block;
  padding: 10px 4px;
  color: var(--white);
  font-weight: 650;
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #ef4444, var(--red-900) 58%, #111827 100%);
  color: var(--white);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.90), rgba(127, 29, 29, 0.62), rgba(2, 6, 23, 0.20)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding: 86px 0 126px;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 26px);
}

.hero-static-title {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 3;
  width: min(440px, calc(100% - 32px));
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.hero-static-title h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}

.hero-static-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.primary-button {
  background: var(--yellow-400);
  color: var(--gray-900);
  box-shadow: 0 18px 34px rgba(250, 204, 21, 0.25);
}

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

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 30px;
  background: var(--yellow-400);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.ranking-section .eyebrow {
  color: var(--yellow-400);
}

.stats-section {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 34px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red-600);
  font-size: 30px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--gray-600);
}

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

.white-section {
  width: 100%;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.category-section {
  width: 100%;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #f9fafb, #fef2f2);
}

.ranking-section {
  width: 100%;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

.ranking-section .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.text-link {
  color: var(--red-600);
  background: #fee2e2;
}

.text-link.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.search-box span {
  color: var(--red-600);
  font-weight: 800;
}

.search-box input,
.filter-selects select {
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--gray-800);
  background: #fff;
  outline: none;
}

.search-box input:focus,
.filter-selects select:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-section .movie-card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #e5e7eb);
}

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

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

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.0);
  color: var(--white);
  font-size: 38px;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.movie-card:hover .poster-play {
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--gray-900);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

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

.movie-card-body h2 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.ranking-section .movie-meta {
  color: rgba(255, 255, 255, 0.62);
}

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

.ranking-section .movie-line {
  color: rgba(255, 255, 255, 0.72);
}

.tag-row,
.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.tag-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.category-main-link,
.category-overview-card {
  display: block;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
  min-height: 190px;
  padding: 26px;
  text-align: center;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #fee2e2;
  color: var(--red-600);
  font-weight: 900;
}

.category-card strong,
.category-main-link strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-card em,
.category-main-link em {
  display: block;
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
}

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

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

.rank-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-number {
  color: var(--yellow-400);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
}

.rank-text em {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 76px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: var(--white);
}

.page-hero div {
  max-width: 850px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-main-link {
  min-height: 180px;
  padding: 26px;
  box-shadow: none;
}

.category-samples {
  display: grid;
  gap: 1px;
  background: var(--gray-100);
}

.category-samples a {
  padding: 12px 18px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--red-600);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-section,
.detail-card,
.side-poster {
  margin-bottom: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-section {
  overflow: hidden;
}

.detail-title-block {
  padding: 26px 28px;
}

.detail-title-block h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.detail-title-block p:last-child {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

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

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

.movie-video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover-shade {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--gray-900);
  font-size: 38px;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 55px rgba(250, 204, 21, 0.32);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: var(--white);
  font-size: 14px;
  pointer-events: none;
}

.detail-card {
  padding: 28px;
}

.detail-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 26px;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.lead-text {
  color: var(--red-700) !important;
  font-weight: 800;
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-100);
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 90px;
}

.side-poster {
  overflow: hidden;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--gray-200);
}

.full-button {
  width: 100%;
}

.related-section {
  margin-top: 30px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--yellow-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .desktop-menu {
    gap: 12px;
    font-size: 14px;
  }

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

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

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

  .detail-side {
    position: static;
    max-width: 320px;
  }
}

@media (max-width: 820px) {
  .desktop-menu {
    display: none;
  }

  .menu-button {
    display: flex;
  }

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

  .hero-content {
    margin-left: 16px;
    padding-right: 16px;
  }

  .hero-static-title {
    left: 16px;
    right: 16px;
    bottom: 96px;
    width: auto;
  }

  .hero-controls {
    bottom: 30px;
  }

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

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

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

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

  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .long-rank-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    display: block;
  }

  .split-heading .text-link {
    margin-top: 14px;
  }

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

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-nav {
    height: 62px;
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-content h2 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .section-block,
  .white-section,
  .category-section,
  .ranking-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .detail-title-block,
  .detail-card {
    padding: 22px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
