* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.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, 251, 235, 0.95), rgba(255, 247, 237, 0.95), rgba(255, 251, 235, 0.95));
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.logo-text {
  font-size: 24px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 650;
  border-radius: 14px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ea580c;
  background: rgba(255, 237, 213, 0.86);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 237, 213, 0.88);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #c2410c;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.22) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.1) 55%, rgba(17, 24, 39, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 48px;
  color: #ffffff;
  padding: 88px 0 82px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #ffedd5;
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  background: rgba(255, 237, 213, 0.15);
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.2);
}

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

.button-primary,
.button-secondary,
.button-light,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
}

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

.button-light {
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.16);
}

.button-secondary {
  color: #374151;
  background: #ffffff;
  border: 2px solid #fed7aa;
}

.button-outline {
  color: #fff7ed;
  border: 1px solid rgba(255, 237, 213, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.hero-poster-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.hero-poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-panel h2 {
  margin: 18px 0 8px;
  font-size: 25px;
}

.hero-panel p {
  font-size: 14px;
  line-height: 1.7;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: #f97316;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  padding: 64px 0 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 700;
}

.search-block {
  margin: 0 0 34px;
}

.search-input {
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid #fed7aa;
  border-radius: 18px;
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  outline: 0;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.08);
}

.search-input:focus {
  border-color: #f97316;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.16);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.movie-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.68);
}

.movie-type {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: #ea580c;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #fdba74;
}

.movie-card-body p {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.72;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 4px;
  padding: 10px;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.category-thumbs img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.category-thumbs img:first-child {
  height: 308px;
  grid-row: span 2;
}

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.category-card span {
  color: #ea580c;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  width: 96px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.rank-copy a {
  color: #1f2937;
  font-size: 19px;
  font-weight: 850;
}

.rank-copy p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.65;
}

.cta-band {
  margin-top: 56px;
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 22px 54px rgba(249, 115, 22, 0.26);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.cta-band p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44)), linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.2));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  min-height: 430px;
  padding: 72px 0 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

.detail-title h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-title p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-tags span {
  background: rgba(255, 237, 213, 0.14);
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.22);
}

.detail-shell {
  padding: 64px 0 78px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.player-card,
.story-card,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.player-card {
  overflow: hidden;
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-core {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.play-core svg {
  width: 42px;
  height: 42px;
  margin-left: 5px;
  fill: currentColor;
}

.player-copy {
  padding: 24px 26px 28px;
}

.player-copy h2,
.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.player-copy p,
.story-card p,
.side-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.85;
}

.story-card {
  padding: 30px;
  margin-top: 28px;
}

.story-card + .story-card {
  margin-top: 22px;
}

.side-card {
  padding: 24px;
}

.side-card + .side-card {
  margin-top: 22px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffedd5;
}

.info-list span:first-child {
  color: #6b7280;
}

.info-list span:last-child {
  color: #1f2937;
  font-weight: 800;
  text-align: right;
}

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

.related-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 76px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item span {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  padding: 54px 0;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-top: 1px solid #fed7aa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  max-width: 540px;
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 18px;
}

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

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

.footer-links a {
  color: #6b7280;
  font-weight: 650;
}

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

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

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

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

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

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

  .menu-button {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 78px 0 86px;
  }

  .hero-panel {
    max-width: 440px;
  }

  .section-head {
    display: block;
  }

  .section-head .button-secondary,
  .section-head .button-primary {
    margin-top: 18px;
  }

  .detail-hero-inner {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
  }

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

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

  .logo-text {
    font-size: 21px;
  }

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

  .hero-panel {
    padding: 16px;
  }

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

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

  .movie-title {
    font-size: 16px;
  }

  .category-thumbs img,
  .category-thumbs img:first-child {
    height: 120px;
    grid-row: auto;
  }

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

  .rank-item {
    grid-template-columns: 76px 42px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    width: 76px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 54px 0 42px;
  }

  .detail-poster {
    width: 160px;
  }

  .story-card,
  .side-card,
  .player-copy {
    padding: 22px;
  }
}

@media (max-width: 440px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    display: grid;
  }
}
