:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--slate-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.logo {
  font-size: 22px;
}

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #fb7185);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--slate-700);
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--slate-200);
  color: var(--slate-900);
  background: var(--white);
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 20px;
  color: var(--slate-700);
  font-weight: 700;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.14)),
    linear-gradient(to right, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.24), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 12px;
  backdrop-filter: blur(10px);
}

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

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

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #fb7185);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.secondary-btn,
.outline-btn {
  color: var(--slate-900);
  background: var(--white);
}

.hero .secondary-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 36px;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--orange);
}

.quick-search {
  margin-top: -56px;
  position: relative;
  z-index: 8;
}

.search-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.search-hero-card h2 {
  margin: 8px 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.search-hero-card p {
  margin: 0;
  color: var(--slate-600);
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 14px;
  color: var(--slate-900);
  outline: none;
}

.home-search input {
  min-height: 52px;
  padding: 0 18px;
}

.home-search button {
  border: 0;
  color: var(--white);
  background: var(--orange);
  border-radius: 14px;
  padding: 0 24px;
  font-weight: 800;
}

.section-block {
  padding: 76px 0;
}

.soft-section {
  background: linear-gradient(180deg, var(--white), var(--slate-100));
}

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

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

.section-heading a {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-200);
}

.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);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2,
.rank-copy h2 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h2 a,
.rank-copy h2 a {
  transition: color 0.2s ease;
}

.movie-card h2 a:hover,
.rank-copy h2 a:hover {
  color: var(--orange);
}

.movie-card p,
.rank-copy p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--orange-dark);
  background: #ffedd5;
  padding: 5px 9px;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.9), transparent 35%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

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

.category-card p {
  color: rgba(255, 255, 255, 0.76);
}

.category-card strong {
  color: #fed7aa;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.42), transparent 35%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.slim-hero {
  padding: 68px 0;
}

.page-hero h1,
.detail-copy h1 {
  max-width: 920px;
  margin: 12px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
}

.filter-empty {
  padding: 30px;
  color: var(--slate-600);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.stacked-sections {
  display: grid;
  gap: 34px;
}

.category-preview {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.category-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-preview h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.category-preview p {
  margin: 0;
  color: var(--slate-600);
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 110px 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-200);
  border-radius: 14px;
}

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

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 14px;
  font-weight: 900;
}

.top-rank .rank-number {
  color: var(--white);
  background: var(--orange);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 48px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.player-section {
  padding: 72px 0;
  background: var(--slate-950);
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
  border: 0;
  text-align: center;
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.36);
  font-size: 36px;
}

.play-layer strong {
  display: block;
  font-size: 22px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.article-card,
.info-card {
  background: var(--slate-50);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.article-card {
  padding: 32px;
}

.article-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-card p {
  margin: 0 0 28px;
  color: var(--slate-700);
  font-size: 17px;
}

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

.info-card {
  padding: 26px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.info-card dd {
  margin: -6px 0 4px;
  color: var(--slate-900);
  font-weight: 700;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 360px;
}

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

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

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

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

  .compact-ranking {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 420px;
  }
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    height: 78vh;
    min-height: 620px;
  }

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

  .hero-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

  .hero-dots {
    bottom: 38px;
  }

  .search-hero-card,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 96px 42px 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

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

  .hero-actions,
  .home-search {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .outline-btn,
  .home-search button {
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 90px 1fr;
  }

  .rank-number {
    position: absolute;
    margin: 8px;
  }

  .article-card,
  .info-card {
    padding: 22px;
  }
}
