:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #fed7aa;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(254, 215, 170, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  color: #431407;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.logo-text {
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-current {
  color: #ffffff;
  background: var(--brand);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.header-search input,
.filter-box input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(251, 146, 60, 0.5);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 18px;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(154, 52, 18, 0.06);
}

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

.global-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
}

.global-results.is-open {
  display: block;
}

.global-result {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.global-result:hover {
  background: var(--brand-soft);
}

.global-result img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #ffedd5;
}

.global-result strong {
  display: block;
  margin-bottom: 2px;
  color: #431407;
  font-size: 14px;
}

.global-result span {
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: #7c2d12;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.2), transparent 26rem),
    radial-gradient(circle at 80% 30%, rgba(220, 38, 38, 0.12), transparent 24rem);
  pointer-events: none;
}

.hero-inner,
.section,
.page-main {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(124, 45, 18, 0.2);
  background: #431407;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 38px;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 54px;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(67, 20, 7, 0.62) 48%, rgba(67, 20, 7, 0.18)),
    linear-gradient(180deg, transparent, rgba(67, 20, 7, 0.86));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) saturate(1.1);
  transform: scale(1.06);
  opacity: 0.65;
}

.hero-content,
.hero-poster-wrap {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 237, 213, 0.36);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 16px;
  color: #ffedd5;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 247, 237, 0.92);
  font-size: 17px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.36);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.12);
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.32);
}

.btn-light {
  background: #ffffff;
  color: #9a3412;
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(124, 45, 18, 0.2);
}

.hero-poster-wrap {
  justify-self: center;
  width: min(320px, 100%);
}

.hero-poster {
  aspect-ratio: 2 / 3;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
}

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

.hero-tags {
  margin-bottom: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #9a3412;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 237, 213, 0.18);
  color: #fed7aa;
}

.hero-controls {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-side-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero-mini img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #ffedd5;
}

.hero-mini strong {
  display: block;
  margin-bottom: 4px;
  color: #431407;
  font-size: 14px;
}

.hero-mini span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 34px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #9a3412;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
}

.section h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #431407;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-header p,
.page-title p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.68);
  box-shadow: 0 24px 50px rgba(124, 45, 18, 0.16);
}

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

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-year,
.card-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(67, 20, 7, 0.72);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-year {
  top: 10px;
  left: 10px;
}

.card-play {
  right: 10px;
  bottom: 10px;
  background: var(--brand);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: #431407;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-meta {
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(254, 215, 170, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 213, 0.82)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 16rem);
  padding: 24px;
  box-shadow: 0 16px 42px rgba(124, 45, 18, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 58px rgba(124, 45, 18, 0.16);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #431407;
  font-size: 22px;
  font-weight: 950;
}

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

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--brand);
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-weight: 950;
}

.rank-title {
  min-width: 0;
  color: #431407;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-main {
  padding: 38px 0 48px;
}

.page-title {
  margin-bottom: 24px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 213, 0.82)),
    radial-gradient(circle at 92% 20%, rgba(249, 115, 22, 0.18), transparent 22rem);
  box-shadow: var(--shadow);
  padding: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

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

.filter-box {
  max-width: 520px;
  margin: 0 0 22px;
}

.no-match {
  display: none;
  border-radius: 20px;
  background: #ffffff;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.no-match.is-visible {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #ffedd5;
  box-shadow: var(--shadow);
}

.detail-poster img {
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.detail-info {
  border: 1px solid rgba(254, 215, 170, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 34px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

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

.detail-meta span {
  border-radius: 999px;
  background: var(--brand-soft);
  color: #9a3412;
  padding: 7px 12px;
  font-weight: 900;
}

.detail-info p,
.article-block p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.85;
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.82));
  cursor: pointer;
  z-index: 2;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-button {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.42);
}

.player-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  color: #fff7ed;
}

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

.article-block,
.side-panel {
  border: 1px solid rgba(254, 215, 170, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 26px;
}

.article-block h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #431407;
  font-size: 26px;
  font-weight: 950;
}

.side-panel {
  align-self: start;
}

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

.side-list .movie-card {
  display: grid;
  grid-template-columns: 86px 1fr;
}

.side-list .poster-link img {
  height: 132px;
}

.side-list .movie-card-body {
  padding: 12px;
}

.side-list .movie-card p,
.side-list .tag-row {
  display: none;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(254, 215, 170, 0.9);
  background: rgba(255, 247, 237, 0.82);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  color: #7c2d12;
}

.footer-inner p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--brand-dark);
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-header-inner {
    gap: 12px;
  }

  .header-search {
    margin-left: auto;
  }

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

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

@media (max-width: 900px) {
  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-poster-wrap {
    width: min(240px, 70vw);
  }

  .hero-controls {
    left: 34px;
  }

  .hero-side-card,
  .rank-layout,
  .detail-hero,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    min-height: auto;
  }

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

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

@media (max-width: 640px) {
  .site-header-inner {
    width: min(100% - 20px, 1240px);
    min-height: 66px;
  }

  .logo-text {
    font-size: 17px;
  }

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

  .header-search {
    display: none;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-inner,
  .section,
  .page-main {
    width: min(100% - 20px, 1240px);
  }

  .hero-shell {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 24px;
  }

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

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-side-card,
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-mini {
    grid-template-columns: 56px 1fr;
  }

  .section-header,
  .footer-inner,
  .player-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title,
  .detail-info,
  .article-block,
  .side-panel {
    border-radius: 22px;
    padding: 22px;
  }

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

  .rank-meta {
    grid-column: 2;
  }
}
