:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #ffedd5;
  --soft-2: #fef3c7;
  --brand: #f97316;
  --brand-2: #f59e0b;
  --brand-3: #fb923c;
  --dark: #431407;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--dark);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.logo-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
}

.logo-text span {
  display: block;
  color: #c2410c;
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #4b5563;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-search {
  position: relative;
  width: min(320px, 32vw);
}

.header-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: white;
  color: #374151;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 46px 0 18px;
}

.header-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #4b5563;
  font-weight: 700;
}

.mobile-panel .header-search {
  width: 100%;
  margin-top: 10px;
}

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(120deg, #fb923c, #f59e0b 48%, #ea580c);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  animation: floaty 7s ease-in-out infinite;
}

.hero::before {
  width: 180px;
  height: 180px;
  top: 100px;
  left: 7%;
}

.hero::after {
  width: 280px;
  height: 280px;
  right: 8%;
  bottom: 70px;
  animation-delay: 1.2s;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.03);
  }
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.9), rgba(234, 88, 12, 0.72) 54%, rgba(251, 191, 36, 0.36));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.68fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #fff7ed;
  text-shadow: 0 10px 28px rgba(67, 20, 7, 0.25);
}

.hero p {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  color: #fff7ed;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #c2410c;
  background: white;
  box-shadow: 0 18px 34px rgba(67, 20, 7, 0.18);
}

.btn-primary:hover {
  color: #9a3412;
  box-shadow: 0 24px 44px rgba(67, 20, 7, 0.24);
}

.btn-ghost {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  color: #c2410c;
  background: white;
}

.btn-warm {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.hero-card {
  position: relative;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 35px 80px rgba(67, 20, 7, 0.28);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 46px rgba(67, 20, 7, 0.28);
}

.hero-card-info {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.hero-card-info strong {
  display: block;
  font-size: 22px;
}

.hero-card-info span {
  display: block;
  color: #fde68a;
  margin-top: 4px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.22s ease, background 0.22s ease;
}

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.92));
}

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

.section-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 950;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.category-tile,
.info-panel,
.content-card {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(124, 45, 18, 0.18);
}

.feature-icon,
.category-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-bottom: 16px;
}

.feature-card h3,
.category-tile h2,
.info-panel h2,
.content-card h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
}

.feature-card p,
.category-tile p,
.info-panel p,
.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.11);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 48px rgba(124, 45, 18, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 20px rgba(124, 45, 18, 0.24);
}

.score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 13px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.card-text {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  display: block;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-count {
  display: inline-flex;
  margin-top: 16px;
  color: #c2410c;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 84px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 26px rgba(124, 45, 18, 0.1);
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.rank-thumb {
  width: 84px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 7px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 950;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-side {
  color: #c2410c;
  font-weight: 900;
  text-align: right;
}

.page-hero {
  padding: 56px 0;
  color: white;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  line-height: 1.75;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.filter-input,
.filter-select {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(67, 20, 7, 0.24);
  aspect-ratio: 16 / 9;
}

.player-box video,
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  object-fit: contain;
  background: #000;
}

.player-poster {
  border: 0;
  padding: 0;
  cursor: pointer;
  color: white;
  background: transparent;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.play-face {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 12px;
}

.play-circle {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #c2410c;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.play-label {
  padding: 8px 16px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.player-box.is-playing .player-poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-title {
  margin: 24px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  color: #1f2937;
}

.meta-line,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-line span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 800;
  background: #ffedd5;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

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

.info-panel,
.content-card {
  padding: 26px;
}

.info-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffedd5;
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
  color: #9a3412;
  font-weight: 900;
  text-align: right;
}

.content-stack {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: #9a3412;
  font-weight: 800;
}

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

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #78350f, #431407);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: white;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  padding: 18px 0;
  color: #fdba74;
  border-top: 1px solid rgba(254, 215, 170, 0.16);
  text-align: center;
}

.empty-state {
  display: none;
  padding: 60px 20px;
  border-radius: 24px;
  text-align: center;
  background: white;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.no-results .empty-state {
  display: block;
}

.no-results .movie-grid {
  display: none;
}

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

  .movie-grid.four,
  .category-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .nav-links,
  .header-inner > .header-search {
    display: none;
  }

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

  .mobile-panel.is-open {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0 80px;
  }

  .hero-card {
    max-width: 320px;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .movie-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .rank-thumb {
    width: 64px;
  }

  .rank-side {
    grid-column: 2 / 4;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .logo-text span {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .feature-grid,
  .category-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .movie-grid,
  .movie-grid.four {
    gap: 12px;
  }

  .card-body {
    padding: 11px;
  }

  .detail-title {
    font-size: 34px;
  }
}
