:root {
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-amber: #f59e0b;
  --color-red: #ef4444;
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --shadow-soft: 0 18px 45px rgba(124, 45, 18, 0.16);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
  --radius-large: 28px;
  --radius-card: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf2 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 48%, #f97316 100%);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--color-orange);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.18);
}

.brand-name {
  font-size: 24px;
  text-shadow: 0 2px 12px rgba(124, 45, 18, 0.35);
}

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

.nav-link {
  position: relative;
  color: #ffffff;
  font-weight: 700;
  opacity: 0.94;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transition: right 0.25s ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.15);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-ink);
  font-weight: 700;
  background: #fff7ed;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.35), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(255, 237, 213, 0.34), transparent 30%),
    linear-gradient(135deg, #f59e0b 0%, #f97316 45%, #ef4444 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.28;
  background: #ffffff;
}

.hero-glow-one {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 88px;
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: 16px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 76px 0 100px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-chip,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.hero-copy h1 {
  margin: 22px 0 12px;
  max-width: 850px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 12px 34px rgba(124, 45, 18, 0.32);
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 850;
}

.hero-copy p {
  max-width: 710px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span {
  padding: 6px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.secondary-button,
.secondary-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
  color: var(--color-orange-dark);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(124, 45, 18, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.secondary-dark-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.secondary-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.secondary-dark-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
}

.small-button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 100%);
  margin-left: auto;
  border-radius: 30px;
  transform: rotate(2deg);
  box-shadow: 0 34px 70px rgba(124, 45, 18, 0.36);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: -1;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.20);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  border: 8px solid rgba(255, 255, 255, 0.55);
}

.hero-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.24s ease, background 0.24s ease;
}

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

.hero-search {
  display: flex;
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(124, 45, 18, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  color: #ffffff;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.hero-search button {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--color-orange-dark);
  background: #ffffff;
  font-weight: 850;
}

.hero-category-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-category-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 750;
}

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

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

.section-heading .section-kicker {
  color: var(--color-orange-dark);
  background: #ffedd5;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading p {
  color: var(--color-muted);
  font-size: 17px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.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);
}

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.type-badge {
  top: 10px;
  right: 10px;
  background: rgba(249, 115, 22, 0.94);
}

.year-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 30px;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

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

.movie-card-body h2 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card-body h2 a:hover {
  color: var(--color-orange-dark);
}

.card-meta {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.45;
}

.card-desc {
  display: -webkit-box;
  min-height: 40px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  padding: 4px 8px;
  color: #c2410c;
  background: #ffedd5;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.rank-section,
.category-strip:nth-of-type(odd) {
  background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 50%, #fff7ed 100%);
}

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

.strip-head span {
  color: var(--color-orange-dark);
  font-weight: 900;
}

.strip-head h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  font-weight: 900;
}

.text-link {
  flex: none;
  color: var(--color-orange-dark);
  font-weight: 850;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ef4444 100%);
}

.page-hero .site-container {
  padding: 64px 0;
  text-align: center;
}

.page-hero p {
  margin: 0 0 12px;
  color: #ffedd5;
  font-weight: 850;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero span {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
}

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

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 750;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 190px 160px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fffaf2;
}

.search-box span {
  color: var(--color-orange-dark);
  font-size: 20px;
  font-weight: 900;
}

.search-box input {
  flex: 1;
  min-width: 0;
  outline: none;
  color: var(--color-ink);
}

.filter-select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #fffaf2;
  color: var(--color-ink);
  font-weight: 700;
}

.empty-result {
  padding: 22px;
  border-radius: 18px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 800;
  text-align: center;
}

.detail-hero .site-container {
  padding: 34px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
}

.breadcrumb a:hover {
  color: #fffbeb;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.35);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  background: #111827;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.18) 0%, rgba(17, 24, 39, 0.52) 72%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.38);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-side {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 6px solid rgba(255, 255, 255, 0.38);
}

.detail-quick {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
}

.detail-article,
.detail-sidebar {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article {
  padding: 34px;
}

.detail-kicker {
  color: var(--color-orange-dark);
  background: #ffedd5;
}

.detail-article h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 750;
}

.detail-tags span {
  padding: 6px 10px;
  color: #c2410c;
  background: #ffedd5;
}

.detail-article h2 {
  margin: 30px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-article p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-nav-links a,
.detail-sidebar a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 800;
}

.detail-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.detail-sidebar h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
  padding: 48px 0 32px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  color: #d1d5db;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fdba74;
  font-size: 18px;
  font-weight: 900;
}

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

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

.footer-links a {
  color: #d1d5db;
}

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

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

[hidden] {
  display: none !important;
}

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

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner {
    padding: 42px 0 82px;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-copy p,
  .hero-copy h1 {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-poster {
    width: min(300px, 82vw);
    margin: 0 auto;
  }

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

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

  .detail-side {
    max-width: 300px;
    margin: 0 auto;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
    text-align: center;
  }

  .hero-search button {
    width: 100%;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
  }

  .category-card h2 {
    font-size: 20px;
  }

  .detail-article {
    padding: 22px;
  }

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

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