:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--slate-50), var(--orange-50), var(--slate-50));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.35);
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--slate-400);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 14px;
  color: var(--slate-300);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
}

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

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.open .mobile-nav {
  display: block;
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), #7c2d12, var(--slate-900));
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-shade {
  background:
    radial-gradient(circle at 72% 28%, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 40%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.16) 55%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-top: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--slate-300);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.hero-keywords,
.detail-tags,
.meta-row,
.tag-row,
.detail-all-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
}

.hero-keywords span,
.detail-all-tags span {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--orange-600);
  background: var(--orange-50);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.hero-panel,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.35);
}

.btn.primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 42px rgba(249, 115, 22, 0.45);
}

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

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  justify-content: space-between;
}

.hero-search,
.search-box {
  display: flex;
  width: min(520px, 100%);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.hero-search input,
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 12px 14px;
}

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

.hero-search button,
.search-box button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 900;
  cursor: pointer;
}

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

.hero-dot.active {
  width: 54px;
  background: var(--orange-500);
}

.section {
  padding: 76px 0;
}

.section-white {
  background: var(--white);
}

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

.section-heading h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--slate-500);
}

.movie-grid,
.category-grid,
.feature-grid,
.mini-grid,
.rank-card-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

.movie-card,
.feature-card,
.category-card,
.hero-rank-card {
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover,
.feature-card:hover,
.category-card:hover,
.hero-rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: var(--shadow-md);
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
}

.card-poster img,
.feature-card img,
.category-card img,
.hero-rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .card-poster img,
.feature-card:hover img,
.category-card:hover img,
.hero-rank-card:hover img {
  transform: scale(1.08);
}

.card-poster::after,
.feature-card::after,
.category-card::after,
.hero-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background 0.28s ease;
}

.movie-card:hover .card-poster::after,
.feature-card:hover::after,
.category-card:hover::after,
.hero-rank-card:hover::after {
  background: rgba(15, 23, 42, 0.28);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-mark {
  background: rgba(249, 115, 22, 0.94);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.meta-row {
  margin-bottom: 10px;
  color: var(--slate-400);
  font-size: 12px;
}

.meta-row span:first-child {
  color: var(--orange-600);
  background: var(--orange-100);
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--slate-100);
  font-weight: 800;
}

.meta-row.light span {
  color: var(--white);
  background: rgba(249, 115, 22, 0.9);
}

.card-body h3,
.feature-overlay h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 900;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3,
.feature-card:hover h3 {
  color: var(--orange-500);
}

.card-body p,
.feature-overlay p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--slate-500);
  background: var(--slate-50);
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
}

.feature-card {
  min-height: 360px;
  border: 0;
}

.feature-card img {
  position: absolute;
  inset: 0;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.12));
}

.feature-overlay h3 {
  color: var(--white);
  font-size: 28px;
}

.feature-overlay p {
  max-width: 560px;
  color: var(--slate-300);
}

.category-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  border: 0;
  background: var(--slate-900);
}

.category-card.large {
  min-height: 260px;
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.54;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.24));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--slate-300);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: var(--orange-400);
}

.rank-row strong {
  color: var(--orange-300);
  font-size: 30px;
  line-height: 1;
}

.rank-row img {
  width: 82px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-row b,
.rank-row em {
  display: block;
}

.rank-row b {
  color: var(--slate-900);
  font-size: 16px;
}

.rank-row em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.rank-row i {
  color: var(--orange-600);
  font-style: normal;
  font-weight: 900;
}

.section-more {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.24), transparent 34%),
    linear-gradient(90deg, var(--slate-900), #7c2d12);
}

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

.page-hero h1,
.detail-hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-300);
  font-size: 20px;
}

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

.crumb a:hover {
  color: var(--orange-400);
}

.pagination {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  color: var(--slate-700);
  background: var(--white);
  font-weight: 800;
}

.pagination a.active,
.pagination a:hover {
  color: var(--white);
  border-color: var(--orange-500);
  background: var(--orange-500);
}

.ranking-layout,
.detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: center;
}

.hero-rank-card {
  min-height: 220px;
  border: 0;
  color: var(--white);
  background: var(--slate-900);
}

.hero-rank-card img {
  position: absolute;
  inset: 0;
  opacity: 0.54;
}

.hero-rank-card span,
.hero-rank-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 20px;
}

.hero-rank-card span {
  margin-top: 132px;
  color: var(--orange-300);
  font-size: 13px;
  font-weight: 900;
}

.hero-rank-card strong {
  margin-top: 6px;
  font-size: 22px;
}

.movie-card-wide .card-poster {
  aspect-ratio: 16 / 10;
}

.detail-hero {
  padding: 56px 0;
}

.detail-cover {
  width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.detail-meta {
  margin-top: 18px;
  color: var(--slate-300);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.2));
  cursor: pointer;
}

.player-cover span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.42);
  font-size: 34px;
  transition: transform 0.25s ease;
}

.player-cover:hover span {
  transform: scale(1.08);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.86);
}

.player-message.show {
  display: block;
}

.detail-article {
  padding: 36px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-article h2 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-900);
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 2;
}

.detail-all-tags {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.search-box {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.14);
}

.search-status {
  margin-bottom: 24px;
  color: var(--slate-700);
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  padding: 56px 0 0;
  color: var(--slate-300);
  background: var(--slate-950);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 480px;
  margin: 0;
  color: var(--slate-400);
}

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

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

.footer-links a {
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  text-align: center;
  color: var(--slate-500);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid,
  .rank-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .ranking-layout,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    display: none;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    height: 720px;
  }

  .hero-content {
    padding-top: 44px;
    justify-content: center;
  }

  .hero-panel {
    display: grid;
    gap: 16px;
    justify-items: stretch;
  }

  .hero-dots {
    justify-content: center;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .hero-carousel {
    height: 680px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-actions,
  .hero-search,
  .search-box {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid,
  .movie-grid,
  .category-grid,
  .mini-grid,
  .rank-card-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 70px 1fr;
  }

  .rank-row i {
    display: none;
  }

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

  .detail-article {
    padding: 24px;
  }

  .player-cover span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
