:root {
  color-scheme: light;
  --bg: #fff8ed;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: rgba(251, 146, 60, 0.22);
  --orange: #f97316;
  --amber: #f59e0b;
  --deep: #9a3412;
  --shadow: 0 24px 65px rgba(154, 52, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgba(251, 146, 60, 0.24), transparent 34rem),
    radial-gradient(circle at 96% 4%, rgba(245, 158, 11, 0.20), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf2 100%);
}

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

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

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

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

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

.logo {
  font-size: 22px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #9a3412;
  background: #ffedd5;
}

.header-search {
  width: 280px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(251, 146, 60, 0.12);
}

.header-search input,
.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  font-size: 14px;
  background: transparent;
}

.header-search button,
.search-panel button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: 0.22s ease;
}

.header-search button {
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.menu-button {
  display: none;
  border: 0;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 12px;
  font-size: 24px;
  width: 44px;
  height: 44px;
}

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

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

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 42px;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  color: #ffffff;
  box-shadow: 0 34px 90px rgba(154, 52, 18, 0.28);
  background: #111827;
}

.hero-track {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(120, 53, 15, 0.40), rgba(255, 237, 213, 0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  padding: 78px 66px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 24px;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span,
.page-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 750;
}

.hero .hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.44);
}

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

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  left: 66px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.2s ease;
}

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

.section {
  margin: 46px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: #c2410c;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-solid);
  box-shadow: 0 18px 38px rgba(154, 52, 18, 0.08);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(154, 52, 18, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
}

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

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #ea580c;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  margin: 0 0 14px;
  min-height: 48px;
  color: #4b5563;
  line-height: 1.65;
  font-size: 14px;
}

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

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.18), transparent 44%),
    #ffffff;
  box-shadow: 0 16px 38px rgba(154, 52, 18, 0.08);
  transition: 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.45);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(251, 146, 60, 0.20);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.06);
}

.rank-item:hover {
  border-color: rgba(249, 115, 22, 0.46);
  transform: translateX(4px);
}

.rank-no {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-title {
  font-weight: 850;
}

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

.page-hero,
.detail-hero,
.search-panel {
  margin: 30px 0 34px;
  padding: 38px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.20), transparent 36rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.page-hero h1,
.detail-hero h1,
.search-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.search-panel p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.page-kicker {
  color: #c2410c;
  background: #ffedd5;
  border-color: #fed7aa;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 36px 0 10px;
}

.pager a,
.pager span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  color: #9a3412;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.25);
  font-weight: 800;
}

.pager a.current,
.pager a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(154, 52, 18, 0.20);
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

.detail-one {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.player-section,
.content-panel {
  margin: 34px 0;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.09);
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.56));
  cursor: pointer;
  transition: 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.46);
  font-size: 34px;
  padding-left: 6px;
}

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

.player-copy h2,
.content-panel h2 {
  margin: 22px 0 12px;
  font-size: 28px;
}

.player-copy p,
.content-panel p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

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

.search-panel form {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 24px;
  background: #ffffff;
}

.search-panel button {
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.empty-state {
  padding: 28px;
  border-radius: 22px;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(251, 146, 60, 0.20);
  background: rgba(255, 247, 237, 0.76);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin: 10px 0 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 750;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-content {
    padding: 58px 36px 88px;
  }

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

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

  .rank-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner,
  .container,
  .page-main,
  .hero,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content {
    padding: 44px 22px 96px;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .hero-controls {
    right: 20px;
    bottom: 18px;
  }

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

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

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

  .page-hero,
  .detail-hero,
  .search-panel,
  .player-section,
  .content-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .search-panel form {
    flex-direction: column;
  }

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

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

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

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 18px;
  }

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