:root {
  --frosting-50: #fef8f3;
  --frosting-100: #fdf0e6;
  --frosting-300: #f9c29a;
  --frosting-500: #f06c25;
  --frosting-600: #d95a1b;
  --dawn-50: #fff7ed;
  --dawn-100: #ffedd5;
  --dawn-500: #f97316;
  --cream-50: #fefefe;
  --cream-100: #fdfcfb;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #eee3da;
  --shadow: 0 24px 70px rgba(217, 90, 27, 0.16);
  --soft-shadow: 0 12px 40px rgba(31, 41, 55, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(240, 108, 37, 0.12), transparent 32rem),
    linear-gradient(135deg, var(--frosting-50), #ffffff 42%, var(--dawn-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 240, 230, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
  box-shadow: 0 14px 28px rgba(240, 108, 37, 0.26);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.22s ease;
}

.nav-menu a:hover {
  color: var(--frosting-600);
  background: var(--frosting-50);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--frosting-50);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--frosting-600);
}

.hero-section {
  width: min(1200px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 22px auto 36px;
  position: relative;
}

.hero-carousel {
  height: min(720px, calc(100vh - 120px));
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--frosting-100), var(--dawn-100));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45) 48%, rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 46%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  bottom: clamp(34px, 8vw, 92px);
  width: min(640px, calc(100% - 56px));
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  color: var(--frosting-600);
  background: rgba(254, 248, 243, 0.92);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 54rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--frosting-600);
  background: var(--frosting-50);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.centered-actions {
  justify-content: center;
}

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
  box-shadow: 0 18px 36px rgba(240, 108, 37, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(240, 108, 37, 0.34);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.ghost-btn.light {
  color: var(--frosting-600);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(240, 108, 37, 0.18);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.55;
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: #ffffff;
}

.block-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.soft-band {
  background: linear-gradient(90deg, var(--frosting-50), var(--dawn-50));
  border-top: 1px solid rgba(253, 240, 230, 0.8);
  border-bottom: 1px solid rgba(253, 240, 230, 0.8);
}

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

.section-heading h2,
.search-panel h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.footer-links h2 {
  margin: 10px 0 8px;
  color: var(--ink-900);
  line-height: 1.15;
}

.section-heading h2,
.search-panel h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p,
.search-panel p,
.page-hero p,
.category-overview-card p,
.footer-brand p {
  margin: 0;
  color: var(--ink-600);
}

.section-more,
.text-link {
  color: var(--frosting-600);
  background: #ffffff;
  border: 1px solid rgba(240, 108, 37, 0.22);
  box-shadow: var(--soft-shadow);
}

.section-more:hover,
.text-link:hover {
  color: #ffffff;
  background: var(--frosting-500);
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(240, 108, 37, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.inline-panel {
  padding: 18px;
}

.search-box {
  flex: 1 1 360px;
  display: flex;
  min-width: min(100%, 320px);
}

.search-box input,
.list-toolbar select {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(240, 108, 37, 0.18);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink-800);
  background: #ffffff;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.search-box input:focus,
.list-toolbar select:focus {
  border-color: var(--frosting-500);
  box-shadow: 0 0 0 4px rgba(240, 108, 37, 0.12);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}

.filter-tabs button {
  border: 1px solid rgba(240, 108, 37, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink-700);
  background: #ffffff;
  font-weight: 700;
  transition: all 0.22s ease;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
  box-shadow: 0 14px 28px rgba(240, 108, 37, 0.18);
}

.movie-grid,
.category-grid,
.category-overview-grid,
.detail-grid {
  display: grid;
  gap: 22px;
}

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

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

.compact-grid {
  margin-top: 22px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(240, 108, 37, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(31, 41, 55, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, var(--frosting-100), var(--dawn-100));
}

.featured-card .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img,
.category-card img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(240, 108, 37, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  color: var(--frosting-600);
  background: rgba(255, 255, 255, 0.9);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--frosting-50);
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--frosting-600);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--ink-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  box-shadow: var(--soft-shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.08));
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-card span {
  bottom: 68px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.subpage-main {
  padding-top: 28px;
}

.page-hero,
.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 10px;
  padding: clamp(48px, 8vw, 88px) clamp(22px, 5vw, 72px);
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 26rem),
    linear-gradient(135deg, var(--frosting-50), #ffffff 52%, var(--dawn-100));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: 17px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(240, 108, 37, 0.13);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-cover {
  overflow: hidden;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--frosting-100);
}

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

.category-overview-card .text-link {
  margin-top: 18px;
}

.list-toolbar {
  padding-bottom: 22px;
}

.list-toolbar select {
  flex: 0 0 180px;
}

.detail-hero {
  text-align: left;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--ink-600);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  border-radius: var(--radius-xl);
  background: var(--frosting-100);
  box-shadow: var(--soft-shadow);
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--ink-700);
  font-size: 19px;
}

.detail-tags {
  margin: 18px 0 24px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  overflow: hidden;
  background: #000000;
}

.player-cover.hidden {
  display: none;
}

.player-cover-bg,
.player-cover-mask {
  position: absolute;
  inset: 0;
}

.player-cover-bg {
  background-size: cover;
  background-position: center;
  filter: blur(1px);
  transform: scale(1.02);
}

.player-cover-mask {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle, rgba(240, 108, 37, 0.28), transparent 28rem);
}

.play-large {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  text-indent: 5px;
}

.player-cover strong {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 24px;
  right: 28px;
  text-align: left;
  font-size: clamp(24px, 4vw, 42px);
}

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

.content-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(240, 108, 37, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, #ffffff, var(--frosting-50));
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(240, 108, 37, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

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

.footer-brand p {
  margin-top: 14px;
  max-width: 420px;
}

.footer-links h2 {
  font-size: 16px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-600);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--frosting-600);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
  border-top: 1px solid rgba(240, 108, 37, 0.12);
}

[data-search-item].is-hidden {
  display: none;
}

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

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

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

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 16px;
  }

  .hero-section {
    min-height: auto;
    margin-top: 16px;
  }

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

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 90px;
    width: auto;
  }

  .hero-controls {
    left: 22px;
    right: auto;
    bottom: 22px;
  }

  .section-heading,
  .search-panel,
  .inline-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-overview-card,
  .detail-grid,
  .detail-content,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .category-cover {
    height: 230px;
  }

  .detail-hero {
    text-align: center;
  }

  .breadcrumb {
    justify-content: center;
  }

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

  .detail-meta,
  .detail-tags,
  .detail-info .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .block-shell,
  .hero-section,
  .page-hero,
  .detail-hero,
  .footer-shell {
    width: min(100% - 22px, 1200px);
  }

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

  .brand-text small {
    display: none;
  }

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

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

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-actions a {
    width: 100%;
  }

  .player-cover strong {
    font-size: 24px;
  }

  .play-large {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
