:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --red-500: #ef4444;
  --slate-900: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(124, 45, 18, 0.14);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--orange-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600), var(--amber-400));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(154, 52, 18, 0.24);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--orange-600);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.2);
  font-size: 24px;
}

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

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

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--orange-600);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
}

.top-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--white);
  background: transparent;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--orange-600);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--amber-400), var(--orange-500), #facc15);
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
}

.hero-decor span {
  position: absolute;
  font-size: clamp(44px, 8vw, 96px);
}

.hero-decor span:nth-child(1) {
  left: 7%;
  top: 9%;
}

.hero-decor span:nth-child(2) {
  right: 11%;
  top: 20%;
}

.hero-decor span:nth-child(3) {
  left: 22%;
  bottom: 16%;
}

.hero-decor span:nth-child(4) {
  right: 7%;
  bottom: 10%;
}

.hero-carousel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 120px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 64px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: var(--amber-100);
  backdrop-filter: blur(8px);
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--orange-700);
  background: var(--orange-100);
}

.hero-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  margin: 0;
  color: var(--amber-50);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
}

.hero-desc {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 251, 235, 0.94);
  font-size: 18px;
}

.hero-tags,
.card-tags,
.detail-meta,
.nav-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.card-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.secondary-button,
.text-link,
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  padding: 13px 26px;
  color: var(--orange-600);
  background: var(--white);
  box-shadow: 0 16px 30px rgba(120, 53, 15, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.nav-pill:hover {
  transform: translateY(-2px);
}

.secondary-button {
  padding: 13px 24px;
  color: var(--white);
  background: rgba(120, 53, 15, 0.36);
}

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.35);
  transform: rotate(1deg);
  transition: transform 0.32s ease;
}

.hero-poster-card:hover {
  transform: rotate(0deg) scale(1.025);
}

.hero-poster-card img {
  width: 100%;
  height: min(58vw, 460px);
  min-height: 360px;
  object-fit: cover;
}

.hero-poster-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
}

.hero-poster-overlay strong {
  font-size: 26px;
}

.hero-poster-overlay em {
  color: var(--amber-100);
  font-style: normal;
}

.daily-pick {
  position: absolute;
  top: 18px;
  right: -8px;
  padding: 10px 22px;
  color: var(--white);
  background: var(--red-500);
  border-radius: 999px;
  font-weight: 900;
  transform: rotate(9deg);
  box-shadow: 0 12px 24px rgba(127, 29, 29, 0.25);
}

.hero-controls {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  color: var(--orange-700);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 36px;
  opacity: 1;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
}

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

.white-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: var(--white);
}

.soft-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.split-heading h2,
.content-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.section-heading p,
.split-heading p,
.content-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

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

.text-link {
  padding: 10px 18px;
  color: var(--orange-700);
  background: var(--orange-100);
}

.inline-search {
  margin: 0 auto 28px;
  max-width: 560px;
}

.inline-search.compact {
  margin: 0;
  width: min(420px, 100%);
}

.inline-search input {
  width: 100%;
  border: 2px solid var(--orange-100);
  border-radius: 999px;
  outline: 0;
  padding: 15px 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.08);
  transition: border 0.22s ease, box-shadow 0.22s ease;
}

.inline-search input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.16);
}

.movie-grid,
.category-grid,
.category-panel-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 54px rgba(124, 45, 18, 0.2);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: var(--orange-700);
  background: rgba(255, 255, 255, 0.9);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  color: var(--white);
  background: linear-gradient(90deg, var(--red-500), var(--orange-600));
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 17px;
}

.card-body strong {
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card:hover .card-body strong {
  color: var(--orange-600);
}

.card-meta,
.card-desc {
  color: var(--gray-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  color: var(--orange-700);
  background: var(--orange-100);
}

.category-tile,
.category-panel {
  position: relative;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 26px;
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile img,
.category-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.58;
  transition: transform 0.3s ease;
}

.category-tile::after,
.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.08));
}

.category-tile:hover img,
.category-panel:hover img {
  transform: scale(1.08);
}

.category-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  backdrop-filter: blur(8px);
}

.category-icon.large {
  width: 58px;
  height: 58px;
  font-size: 32px;
}

.category-tile strong,
.category-panel strong {
  font-size: 25px;
  line-height: 1.2;
}

.category-tile span:last-of-type,
.category-panel span:last-of-type {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
}

.inner-hero {
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(254, 243, 199, 0.28), transparent 34%), linear-gradient(120deg, var(--amber-500), var(--orange-600));
}

.inner-hero-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 82px;
}

.inner-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.inner-hero p {
  max-width: 790px;
  margin: 0 0 24px;
  color: var(--amber-50);
  font-size: 18px;
}

.nav-pill-row {
  gap: 12px;
}

.nav-pill {
  min-height: 40px;
  padding: 8px 15px;
  color: var(--orange-700);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.12);
}

.detail-hero {
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-size: 14px;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-info p {
  margin: 0 0 18px;
  color: var(--amber-50);
  font-size: 18px;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  background: var(--slate-900);
}

.player-wrap {
  padding-top: 50px;
  padding-bottom: 50px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--white);
  font-size: 31px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.player-overlay strong {
  max-width: min(720px, 88%);
  font-size: clamp(20px, 3vw, 34px);
  text-align: center;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.content-card {
  border-radius: var(--radius-xl);
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.content-card p {
  font-size: 17px;
}

.amber-card {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-100));
}

.search-page-box {
  max-width: 760px;
}

.search-filter-row {
  justify-content: center;
  margin-bottom: 34px;
}

.empty-state {
  display: none;
  margin: 28px auto 0;
  padding: 18px;
  border-radius: 18px;
  color: var(--gray-600);
  background: var(--gray-100);
  text-align: center;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(120deg, #78350f, var(--orange-700));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-shell p {
  max-width: 640px;
  margin: 0;
  color: var(--amber-100);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  color: var(--amber-100);
  text-align: center;
}

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

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

@media (max-width: 900px) {
  .nav-shell {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }

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

  .nav-link {
    background: rgba(255, 255, 255, 0.12);
  }

  .top-search {
    order: 4;
    width: 100%;
  }

  .top-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel {
    padding: 54px 0 92px;
  }

  .hero-slide,
  .detail-shell,
  .detail-content-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .detail-info h1,
  .inner-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-poster-card img {
    height: 390px;
  }

  .detail-poster {
    max-width: 330px;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-search.compact {
    width: 100%;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .movie-grid,
  .catalog-grid,
  .ranking-grid,
  .ranking-strip,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .white-section,
  .soft-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-slide {
    gap: 32px;
  }

  .hero-poster-card img {
    min-height: 280px;
    height: 320px;
  }

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

  .poster-wrap img {
    height: 300px;
  }

  .detail-shell,
  .inner-hero-shell {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .content-card {
    padding: 24px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }
}
