:root {
  --coral-600: #ed3010;
  --coral-500: #ff5533;
  --coral-400: #ff7c64;
  --peach-50: #fff5f2;
  --peach-100: #ffe8e1;
  --peach-200: #ffd4c7;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-400: #9ca3af;
  --line: #f0d8d1;
  --card: #ffffff;
  --sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
  --soft: 0 18px 45px rgba(255, 85, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--peach-50) 0%, #ffffff 42%, #fff8f6 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, var(--peach-200), var(--coral-400));
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sunrise);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(237, 48, 16, 0.18);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.nav-link {
  font-weight: 650;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #ffffff;
}

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

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

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

.mobile-cats a,
.mobile-nav .nav-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-carousel {
  position: relative;
  height: min(74vh, 760px);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.06));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(650px, calc(100% - 64px));
  transform: translateY(-45%);
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(620px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--coral-600);
  background: var(--peach-100);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.quick-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: var(--sunrise);
  font-weight: 800;
  box-shadow: var(--soft);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search-form button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(237, 48, 16, 0.24);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.quick-search,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(255, 85, 51, 0.08);
}

.quick-search h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.quick-search p {
  margin: 0;
  color: var(--ink-600);
}

.quick-search-form,
.filter-panel {
  flex: 1;
}

.quick-search-form {
  display: flex;
  max-width: 560px;
  gap: 12px;
}

.quick-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink-900);
  background: #ffffff;
  outline: none;
}

.filter-panel select {
  max-width: 240px;
}

.compact-filter {
  margin-top: 18px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.category-strip a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--coral-600);
  background: var(--peach-100);
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-strip a:hover {
  transform: translateY(-2px);
  background: var(--peach-200);
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--peach-100);
}

.section-more {
  color: var(--coral-600);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 212, 199, 0.8);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(255, 85, 51, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--peach-100), var(--coral-400));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.48), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sunrise);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(237, 48, 16, 0.28);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--coral-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 14px;
  color: var(--ink-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.hot-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--peach-100), #ffffff);
  box-shadow: 0 18px 50px rgba(255, 85, 51, 0.12);
}

.hot-panel h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.hot-panel p {
  margin: 0 0 18px;
  color: var(--ink-600);
  line-height: 1.7;
}

.hot-list {
  display: grid;
  gap: 12px;
}

.hot-row {
  display: grid;
  grid-template-columns: 34px 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.hot-row:hover {
  transform: translateX(3px);
}

.hot-row img {
  width: 74px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.hot-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sunrise);
  font-weight: 900;
}

.hot-row strong,
.hot-row em {
  display: block;
}

.hot-row strong {
  line-height: 1.35;
}

.hot-row em {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 0.78rem;
  font-style: normal;
}

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

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  border-radius: 28px;
  color: #ffffff;
  background: var(--sunrise);
  box-shadow: var(--soft);
  transition: transform 0.25s ease;
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, #ff9374, #ff5533, #ed3010);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card strong {
  font-size: 1.3rem;
}

.category-card span {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

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

.page-hero {
  padding: 56px 32px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(237, 48, 16, 0.72)), var(--sunrise);
  box-shadow: var(--soft);
}

.page-hero span {
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ink-600);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--coral-600);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, var(--peach-50));
  box-shadow: 0 22px 58px rgba(255, 85, 51, 0.12);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 28px 58px rgba(17, 24, 39, 0.18);
}

.detail-kicker {
  color: var(--coral-600);
  background: var(--peach-100);
  box-shadow: none;
}

.detail-info h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  margin: 0 0 18px;
  color: var(--coral-600);
  font-weight: 800;
}

.detail-intro {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--ink-700);
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.player-section {
  padding-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000000;
  box-shadow: 0 28px 68px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(255, 85, 51, 0.22), rgba(0, 0, 0, 0.38));
  cursor: pointer;
  z-index: 2;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sunrise);
  font-size: 2.2rem;
  box-shadow: 0 20px 42px rgba(237, 48, 16, 0.32);
}

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

.detail-content {
  padding-top: 34px;
}

.text-panel {
  padding: 30px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

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

.text-panel p {
  margin: 0;
  color: var(--ink-700);
  line-height: 2;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 30px;
}

.footer-logo {
  color: var(--coral-600);
  font-size: 1.25rem;
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--ink-600);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--coral-600);
  background: var(--peach-100);
  font-size: 0.9rem;
  font-weight: 800;
}

.movie-card.is-hidden {
  display: none;
}

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

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .hot-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

  .quick-search,
  .filter-panel,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search-form {
    flex-direction: column;
    max-width: none;
  }

  .filter-panel select {
    max-width: none;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .all-grid,
  .ranking-list,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 38px 22px;
  }

  .detail-hero {
    padding: 22px;
  }

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