* {
  box-sizing: border-box;
}

:root {
  --orange: #fb923c;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f5d0c5;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(234, 88, 12, 0.18);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(251, 146, 60, 0.22), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(236, 72, 153, 0.16), transparent 32%),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 38%, #ffffff 100%);
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 241, 242, 0.94), rgba(254, 249, 195, 0.94));
  border-bottom: 1px solid rgba(251, 146, 60, 0.24);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(251, 146, 60, 0.14);
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--orange-dark), var(--pink), #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.16);
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.quick-search input,
.page-filter {
  width: 260px;
  border: 2px solid rgba(251, 146, 60, 0.26);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: 0.22s ease;
}

.quick-search input:focus,
.page-filter:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.quick-search button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.quick-search button,
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.24);
}

.btn.ghost {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.28);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 20px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 54px 0 70px;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.88), rgba(236, 72, 153, 0.78) 58%, rgba(250, 204, 21, 0.72)),
    linear-gradient(180deg, #fb923c, #f472b6);
}

.hero-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #fff7ed, transparent);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.28;
  background: #fff;
}

.hero-glow.one {
  top: 10%;
  left: 5%;
}

.hero-glow.two {
  right: 8%;
  bottom: 14%;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  align-items: center;
  gap: 56px;
  min-height: 510px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy {
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -2px;
  text-shadow: 0 16px 40px rgba(127, 29, 29, 0.25);
}

.hero-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(25px, 3vw, 44px);
  color: #fff7d6;
}

.hero-copy p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.88;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-poster {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(127, 29, 29, 0.28);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: -20px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: #fff;
}

.content-section {
  padding: 54px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.18);
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.year-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h2,
.rank-card h2,
.ranking-row h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

.movie-card p,
.rank-card p,
.ranking-row p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #9a3412;
  background: #ffedd5;
}

.soft-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.72), rgba(255, 237, 213, 0.74), rgba(254, 249, 195, 0.76));
}

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

.rank-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.08);
}

.rank-poster {
  border-radius: 18px;
  overflow: hidden;
  background: #fed7aa;
}

.rank-poster img {
  width: 120px;
  height: 170px;
  object-fit: cover;
}

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

.category-tile,
.category-card-large {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.08);
}

.category-tile strong {
  display: block;
  font-size: 21px;
  color: var(--orange-dark);
}

.category-tile span,
.category-card-large span {
  display: inline-flex;
  margin: 9px 0;
  color: var(--pink);
  font-weight: 800;
}

.category-tile p,
.category-card-large p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.page-main {
  padding: 28px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin: 14px 0 22px;
}

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "/";
  margin-right: 10px;
  color: #f97316;
}

.page-hero.small {
  padding: 42px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink) 65%, var(--yellow));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 820px;
  line-height: 1.9;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.page-hero strong {
  display: inline-flex;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.72);
}

.filter-box {
  display: flex;
  margin-bottom: 24px;
}

.filter-box.large .page-filter {
  width: min(680px, 100%);
  font-size: 16px;
  padding: 16px 22px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 34px;
  border-radius: 38px;
  color: #fff;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.96), rgba(236, 72, 153, 0.88), rgba(250, 204, 21, 0.78));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.25);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 12px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.one-line {
  font-size: 19px;
  line-height: 1.85;
  max-width: 760px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.detail-list li {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.detail-list strong {
  display: block;
  font-size: 12px;
  color: #fff7d6;
  margin-bottom: 4px;
}

.detail-tags span {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.72);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.48));
}

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

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 6px;
  font-size: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.35);
}

.article-section {
  border-radius: 30px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.08);
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.article-section p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.ranking-number {
  font-size: 24px;
  color: var(--pink);
  font-weight: 900;
  text-align: center;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 16px;
}

.ranking-thumb img {
  width: 92px;
  height: 128px;
  object-fit: cover;
}

.score {
  color: var(--orange-dark);
  font-size: 22px;
  text-align: right;
}

.site-footer {
  padding: 44px 0;
  background: linear-gradient(90deg, #ffedd5, #fce7f3, #fef9c3);
  border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: var(--orange-dark);
  font-size: 24px;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  font-size: 18px;
}

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

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

.hidden-by-filter {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .quick-search {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(420px, 100%);
    margin: 0 auto;
  }

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

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

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-shell {
    min-height: auto;
    padding: 34px 0 58px;
  }

  .hero-slide.active {
    gap: 28px;
  }

  .hero-poster img {
    height: auto;
    aspect-ratio: 2 / 3;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .category-list-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card-large,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 340px;
    margin: 0 auto;
  }

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

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

  .ranking-thumb img {
    width: 78px;
    height: 110px;
  }

  .score {
    grid-column: 3;
    text-align: left;
  }
}

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

  .brand-text strong {
    font-size: 19px;
  }

  .hero-copy h1 {
    letter-spacing: -1px;
  }

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

  .btn,
  .quick-search button {
    text-align: center;
  }

  .page-hero.small,
  .detail-hero,
  .article-section {
    padding: 24px;
    border-radius: 26px;
  }

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

  .rank-poster img {
    width: 92px;
    height: 130px;
  }
}
