:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --orange-500: #f97316;
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --yellow-500: #eab308;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.08);
  --shadow-md: 0 8px 20px rgb(15 23 42 / 0.12);
  --shadow-xl: 0 24px 60px rgb(15 23 42 / 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50), #ffffff 52%, var(--gray-100));
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.24);
}

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

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

.brand span:last-child,
.footer-brand span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, var(--red-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--red-600), var(--orange-500));
  box-shadow: 0 12px 25px rgb(220 38 38 / 0.3);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  color: rgb(255 255 255 / 0.86);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #f87171;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgb(220 38 38 / 0.35), transparent 28%), linear-gradient(100deg, var(--slate-950), #501216 48%, var(--slate-900));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  align-items: center;
  gap: 40px;
  min-height: 560px;
  padding: 72px 0;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -80px;
  background: rgb(239 68 68 / 0.4);
}

.hero-glow-two {
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -160px;
  background: rgb(249 115 22 / 0.3);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgb(220 38 38 / 0.18);
}

.hero-copy h1,
.inner-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #f87171, #fb923c, #fca5a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.inner-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-btn,
.ghost-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--red-500), var(--red-600));
  box-shadow: 0 12px 26px rgb(220 38 38 / 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn.small {
  min-height: 38px;
  margin-top: 14px;
  font-size: 14px;
}

.ghost-btn {
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.1);
  box-shadow: none;
}

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

.hero-search,
.search-panel {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero-search input,
.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
}

.hero-search input {
  color: #fff;
  background: rgb(255 255 255 / 0.09);
}

.hero-search input::placeholder {
  color: rgb(255 255 255 / 0.58);
}

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

.hero-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.36);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.hero-card:hover img {
  transform: scale(1.08);
}

.hero-card-mask,
.poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.22) 35%, rgb(0 0 0 / 0.86));
}

.hero-card-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
}

.hero-card-body span,
.hero-card strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--red-600);
}

.hero-card strong {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.hero-card-body h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.hero-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section {
  padding: 58px 0;
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--red-600);
  font-weight: 800;
}

.section-kicker {
  color: var(--red-700);
  background: var(--red-100);
}

.section-kicker.blue {
  color: #2563eb;
  background: var(--blue-50);
}

.section-kicker.orange {
  color: #c2410c;
  background: #ffedd5;
}

.section-kicker.yellow {
  color: #a16207;
  background: #fef9c3;
}

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

.wide-card,
.rank-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.wide-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.card-badge,
.year-badge,
.region-badge {
  position: absolute;
  top: 10px;
  border-radius: 10px;
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--red-600);
}

.card-badge,
.region-badge {
  left: 10px;
}

.year-badge {
  right: 10px;
  background: rgb(0 0 0 / 0.68);
}

.wide-body,
.movie-info {
  padding: 0 16px 16px;
}

.wide-body h3,
.movie-info h3,
.rank-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-body p,
.movie-info p,
.rank-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta span,
.card-meta a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--red-600);
  font-size: 12px;
  font-weight: 750;
  background: var(--red-50);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-900);
}

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

.poster-text {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 13px;
  color: #fff;
}

.poster-text span {
  display: inline-flex;
  margin-bottom: 7px;
  border-radius: 7px;
  padding: 3px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: var(--red-600);
}

.poster-text h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-text p {
  overflow: hidden;
  margin: 5px 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info {
  padding-top: 13px;
}

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

.category-tile,
.category-overview-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-title-link {
  display: block;
  margin-bottom: 12px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 950;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--red-600);
  font-size: 14px;
  font-weight: 750;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.rank-row,
.ranking-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.rank-row em,
.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-style: normal;
  font-weight: 950;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  box-shadow: 0 10px 24px rgb(220 38 38 / 0.25);
}

.rank-card {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: stretch;
  min-height: 116px;
}

.rank-card img {
  aspect-ratio: 16 / 10;
}

.rank-card div {
  padding: 14px 16px 14px 0;
}

.inner-hero,
.detail-hero {
  color: #fff;
  background: linear-gradient(100deg, var(--slate-950), #5f1418 55%, var(--slate-900));
}

.inner-hero .container,
.detail-hero .container {
  padding: 58px 0;
}

.inner-hero p,
.detail-hero p {
  color: rgb(255 255 255 / 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fecaca;
}

.search-panel {
  flex-direction: column;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.search-panel input {
  border-color: var(--gray-200);
  color: var(--gray-800);
  background: var(--gray-50);
}

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

.filter-btn {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--gray-700);
  font-weight: 800;
  background: var(--gray-100);
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--red-500), var(--red-600));
}

[data-card].is-hidden {
  display: none;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  padding-left: 4px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  box-shadow: 0 18px 42px rgb(220 38 38 / 0.38);
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.detail-card,
.side-card {
  margin-top: 24px;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.detail-title-row h2,
.detail-card h2,
.side-card h2 {
  margin: 0;
  color: var(--gray-800);
  font-weight: 950;
  line-height: 1.2;
}

.detail-title-row h2 {
  font-size: 32px;
}

.detail-title-row > span {
  flex: none;
  border-radius: 999px;
  padding: 7px 13px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  background: linear-gradient(90deg, var(--red-500), var(--orange-500));
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta span,
.detail-meta a {
  color: var(--gray-700);
  font-weight: 750;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card section h2,
.related-box h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.detail-card section p {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.9;
}

.review-box {
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, var(--red-50), #fff7ed);
}

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

.side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

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

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

.related-list .wide-card {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
}

.related-list .wide-thumb {
  aspect-ratio: auto;
  min-height: 92px;
}

.related-list .wide-body {
  padding: 12px 12px 12px 0;
}

.related-list .wide-body p,
.related-list .tag-row,
.related-list .card-meta span:nth-child(3) {
  display: none;
}

.site-footer {
  margin-top: 42px;
  color: rgb(255 255 255 / 0.78);
  background: linear-gradient(180deg, var(--slate-900), #000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 420px;
  color: rgb(255 255 255 / 0.62);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 18px 16px;
  color: rgb(255 255 255 / 0.52);
  text-align: center;
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .detail-side {
    position: static;
  }

  .side-card img {
    max-width: 240px;
  }
}

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

  .site-nav {
    min-height: 64px;
  }

  .brand span:last-child,
  .footer-brand span:last-child {
    font-size: 20px;
  }

  .hero-content {
    min-height: auto;
    padding: 44px 0;
  }

  .hero-copy p,
  .inner-hero p,
  .detail-hero p {
    font-size: 16px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .poster-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card,
  .hero-card img {
    min-height: 230px;
  }

  .section {
    padding: 42px 0;
  }

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

  .rank-card,
  .related-list .wide-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .detail-title-row {
    flex-direction: column;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

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

@media (max-width: 460px) {
  .hero-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .poster-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav.open {
    grid-template-columns: 1fr;
  }

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

  .rank-row em,
  .rank-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}
