:root {
  --page-bg: #fff7ed;
  --page-bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --card: #ffffff;
  --line: rgba(251, 146, 60, 0.22);
  --shadow: 0 20px 55px rgba(124, 45, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--page-bg-soft), var(--page-bg) 35%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.28);
}

.logo-text {
  font-size: 1.1rem;
  color: #7c2d12;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: #7c2d12;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--orange);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.08);
}

.header-search input,
.mobile-nav input,
.search-panel input {
  width: 220px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.95rem;
}

.header-search button,
.mobile-nav button,
.search-panel button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-nav button,
.search-panel button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 15px 30px rgba(234, 88, 12, 0.22);
}

.header-search button {
  padding: 9px 17px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
}

.primary-button:hover,
.header-search button:hover,
.mobile-nav button:hover,
.search-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.3);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  color: var(--orange);
  background: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  color: #7c2d12;
  background: #ffffff;
  border-radius: 14px;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.12);
}

.mobile-nav {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 800;
  color: #7c2d12;
}

.mobile-nav form {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.mobile-nav input {
  flex: 1;
  width: auto;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #fb923c 0%, #f59e0b 48%, #ea580c 100%);
}

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

.hero::before {
  width: 320px;
  height: 320px;
  top: 56px;
  left: 7%;
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -80px;
  bottom: -130px;
  animation-delay: 1.5s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -18px, 0) scale(1.05);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 54px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #fef3c7;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: #fff7ed;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills a,
.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero-slider {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(124, 45, 18, 0.28);
  background: rgba(255, 255, 255, 0.2);
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-card {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.8));
}

.hero-card-copy {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.hero-card-copy h2 {
  margin: 10px 0;
  font-size: 2rem;
}

.hero-card-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.hero-dots button.active {
  width: 30px;
  background: #ffffff;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px;
}

.section.wide {
  max-width: none;
  background: linear-gradient(90deg, #ffedd5, #fef3c7);
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.feature-card,
.category-card,
.movie-card,
.content-panel,
.search-panel,
.rank-item {
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 1.45rem;
}

.feature-card h3,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

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

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 24px;
}

.movie-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

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

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

.movie-badge,
.movie-score {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.movie-score {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #92400e;
  background: #fffbeb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #9a3412;
  background: #fed7aa;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.category-card {
  min-height: 185px;
  padding: 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -45px;
  bottom: -55px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(245, 158, 11, 0.18));
}

.category-card strong {
  color: var(--orange);
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #c2410c, #f97316 48%, #f59e0b);
}

.page-title {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px;
}

.page-title h1,
.page-title p {
  color: #ffffff;
}

.page-title p {
  color: #fff7ed;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffedd5;
  font-weight: 800;
}

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

.search-panel {
  margin-bottom: 30px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
}

.search-panel input {
  flex: 1;
  width: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf0;
}

.search-panel button {
  min-height: 46px;
  padding: 0 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: #9a3412;
  background: #ffffff;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-row button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-color: transparent;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(124, 45, 18, 0.18);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
}

.rank-score {
  color: var(--orange);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.42fr);
  gap: 32px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.24);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
}

.player-cover span {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  background: #ffffff;
  font-size: 2.6rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.player-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-panel {
  padding: 28px;
  border-radius: var(--radius);
}

.content-panel + .content-panel {
  margin-top: 22px;
}

.detail-copy h1 {
  margin-bottom: 16px;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #9a3412;
  border-radius: 999px;
  background: #ffedd5;
  font-weight: 800;
}

.detail-copy p,
.content-panel p {
  color: #4b5563;
  line-height: 1.9;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(124, 45, 18, 0.12);
}

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

.mini-card span {
  display: block;
  padding: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  color: #ffedd5;
  background: linear-gradient(135deg, #7c2d12, #9a3412);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 32px;
  }

  .hero-card {
    min-height: 420px;
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 14px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 16px;
  }

  .hero-card {
    min-height: 360px;
  }

  .hero-card-copy {
    padding: 24px;
  }

  .hero-card-copy h2 {
    font-size: 1.55rem;
  }

  .section,
  .page-title {
    padding: 48px 16px;
  }

  .section-head {
    display: block;
  }

  .feature-grid,
  .movie-grid.large {
    grid-template-columns: 1fr;
  }

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

  .movie-info {
    padding: 12px;
  }

  .rank-item {
    grid-template-columns: 42px 58px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-item img {
    width: 58px;
    height: 76px;
  }

  .rank-score {
    display: none;
  }

  .search-panel {
    display: block;
  }

  .search-panel input,
  .search-panel button {
    width: 100%;
  }

  .search-panel button {
    margin-top: 12px;
  }

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