:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

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

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

.brand-text {
  font-size: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  width: min(300px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.top-search input,
.mobile-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.top-search input {
  padding: 10px 10px 10px 16px;
}

.top-search button {
  border: 0;
  width: 42px;
  height: 42px;
  color: var(--orange);
  background: transparent;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #fff7ed;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: #ffffff;
}

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

.mobile-link {
  display: block;
  padding: 10px 14px;
  color: #374151;
  border-radius: 12px;
  font-weight: 650;
}

.mobile-link:hover {
  color: var(--orange);
  background: #fff7ed;
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

.mobile-search input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-search button,
.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28);
}

.primary-btn:hover,
.mobile-search button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.site-main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 580px;
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s 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(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(32px, 7vw, 70px);
  max-width: 760px;
  color: #ffffff;
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta,
.hero-meta,
.hero-actions,
.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-meta {
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.section-block {
  margin-top: 72px;
}

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

.section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-size: 14px;
  font-weight: 800;
}

.section-more {
  color: #ffffff;
  background: var(--orange);
  border-radius: 12px;
  padding: 10px 16px;
}

.grid {
  display: grid;
}

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

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.large-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card-link:hover .poster-wrap::after {
  opacity: 1;
}

.year-badge,
.rank-badge,
.play-bubble {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  min-width: 58px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.play-bubble {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card-link:hover .play-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span + span::before,
.detail-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #d1d5db;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.36;
}

.movie-card p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.movie-card .tag-row span {
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  background: #111827;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  opacity: 0.84;
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 1;
  color: #ffffff;
}

.category-tile span {
  bottom: 66px;
  font-size: 22px;
  font-weight: 850;
}

.category-tile p {
  bottom: 18px;
  margin: 0;
  color: #f3f4f6;
  font-size: 13px;
  line-height: 1.55;
}

.split-feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

.feature-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 22px 54px rgba(249, 115, 22, 0.28);
}

.feature-panel .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.feature-panel h2 {
  margin: 18px 0 12px;
  font-size: 36px;
}

.feature-panel p {
  color: #fff7ed;
  line-height: 1.8;
}

.feature-panel .primary-btn {
  width: fit-content;
  color: var(--orange-dark);
  background: #ffffff;
}

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

.compact-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

.page-hero {
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.22), transparent 32%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.compact-page-hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid #ffedd5;
}

.page-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.category-overview-list {
  display: grid;
  gap: 30px;
  margin-top: 46px;
  margin-bottom: 72px;
}

.category-overview-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

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

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-filter-bar {
  position: sticky;
  top: 82px;
  z-index: 10;
}

.filter-bar input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff7ed;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #7c2d12;
  background: #ffedd5;
  cursor: pointer;
  font-weight: 750;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--orange);
}

.empty-result {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
}

.empty-result.is-visible {
  display: block;
}

.detail-container {
  padding: 34px 0 76px;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 16px 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 750;
}

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

.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

.player-panel,
.story-panel {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.player-head {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 22px 44px rgba(239, 68, 68, 0.36);
  font-size: 34px;
}

.player-veil span:last-child {
  font-size: 18px;
  font-weight: 800;
}

.story-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.story-panel h2 + p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.detail-nav-links a {
  padding: 16px 18px;
  border-radius: 16px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.related-block {
  margin-top: 50px;
}

.site-footer {
  margin-top: 76px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin-bottom: 10px;
  color: #9ca3af;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

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

  .detail-hero-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

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

  .hero-carousel {
    height: 520px;
    margin-top: 18px;
    border-radius: 20px;
  }

  .hero-copy {
    bottom: 48px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-actions,
  .section-head,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards-grid,
  .catalog-grid,
  .preview-grid,
  .category-grid,
  .mini-list,
  .split-feature,
  .footer-grid,
  .detail-nav-links {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-cover img {
    min-height: 320px;
  }
}

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

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
  }

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

  .cards-grid,
  .catalog-grid,
  .preview-grid,
  .category-grid,
  .mini-list,
  .split-feature,
  .footer-grid,
  .detail-nav-links {
    grid-template-columns: 1fr;
  }

  .section-block {
    margin-top: 48px;
  }

  .detail-container {
    padding-top: 22px;
  }

  .detail-hero-card,
  .player-panel,
  .story-panel,
  .category-overview-card {
    padding: 18px;
    border-radius: 20px;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }
}
