:root {
  color-scheme: light;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --gold: #f59e0b;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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

img,
video {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c 0%, #d97706 52%, #c2410c 100%);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #92400e;
  background: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.brand-text {
  font-size: 22px;
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 9px 13px;
  border-radius: 12px;
  font-weight: 700;
  opacity: 0.94;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.header-search {
  margin-left: auto;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.header-search input,
.mobile-panel input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  font: inherit;
}

.header-search input {
  width: 230px;
  padding: 11px 15px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-panel button,
.big-search button {
  border: 0;
  padding: 0 18px;
  font-weight: 800;
  color: #9a3412;
  background: #fde68a;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
  color: #ffffff;
}

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

.mobile-panel form {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 12px;
}

main {
  max-width: 1280px;
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 560px;
  margin: 22px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #7c2d12;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.92) 0%, rgba(154, 52, 18, 0.68) 45%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.3), transparent 26rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 92%);
  padding: 86px 64px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 22px 0;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  padding: 13px 22px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.3);
}

.secondary-button {
  padding: 12px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.text-button {
  padding: 10px 16px;
  color: #c2410c;
  background: #ffedd5;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 64px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 56px;
  background: #fbbf24;
}

.section {
  margin: 34px 22px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.section-head a {
  color: #c2410c;
  font-weight: 900;
}

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

.category-tile,
.category-panel,
.rank-box,
.detail-content,
.player-shell,
.inner-hero,
.ranking-item {
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 150px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.25), transparent 9rem);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(124, 45, 18, 0.18);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #9a3412;
  font-size: 22px;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link,
.poster,
.compact-poster,
.ranking-poster,
.detail-poster {
  display: block;
  background-color: #fed7aa;
  background-size: cover;
  background-position: center;
}

.poster-link {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster {
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fde68a;
  font-weight: 900;
  font-size: 12px;
}

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

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-meta,
.detail-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 68px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rank-box {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.rank-box h2 {
  margin: 0 0 8px;
  color: #9a3412;
}

.rank-box p {
  color: var(--muted);
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.rank-line {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-line span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #7c2d12;
  background: #fde68a;
  font-weight: 900;
}

.rank-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-line em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.inner-hero {
  margin: 22px;
  padding: 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 191, 36, 0.28), transparent 20rem),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.inner-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.category-overview {
  display: grid;
  gap: 22px;
}

.category-panel {
  padding: 24px;
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-panel h2 {
  margin: 0 0 8px;
  color: #9a3412;
}

.category-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info strong {
  margin-bottom: 8px;
  line-height: 1.35;
}

.compact-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
}

.filter-bar input,
.filter-bar select,
.big-search input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--text);
  background: #fff7ed;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
}

.big-search button {
  border-radius: 14px;
}

.breadcrumb {
  margin: 22px 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #c2410c;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 34px;
  margin: 22px;
  padding: 34px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 22rem),
    linear-gradient(135deg, #7c2d12, #ea580c 58%, #f59e0b);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(67, 20, 7, 0.35);
}

.detail-copy {
  align-self: center;
}

.detail-copy .eyebrow {
  color: #7c2d12;
}

.detail-one-line {
  max-width: 760px;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.85;
}

.player-section {
  margin: 28px 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.48), rgba(124, 45, 18, 0.36));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7c2d12;
  background: #fde68a;
  font-size: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 30px;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #9a3412;
}

.detail-content p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.detail-side {
  padding: 22px;
  border-radius: 20px;
  background: #fff7ed;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.detail-side dt {
  color: #9a3412;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: #4b5563;
}

.ranking-list {
  display: grid;
  gap: 15px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 90px 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #7c2d12;
  background: #fde68a;
  font-weight: 900;
}

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-copy p {
  margin: 6px 0;
  color: #4b5563;
  line-height: 1.75;
}

.site-footer {
  margin-top: 60px;
  color: #ffedd5;
  background: linear-gradient(135deg, #7c2d12, #c2410c 62%, #92400e);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.footer-grid strong,
.footer-grid span {
  display: block;
  margin-bottom: 12px;
  color: #fde68a;
  font-size: 22px;
  font-weight: 900;
}

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

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-grid nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .home-grid,
  .split-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-box {
    position: static;
  }

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

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

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 640px;
    margin: 14px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 54px 24px;
  }

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

  .section,
  .inner-hero,
  .detail-hero,
  .breadcrumb,
  .player-section {
    margin-left: 14px;
    margin-right: 14px;
  }

  .section-head,
  .category-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .footer-grid,
  .detail-hero,
  .filter-bar,
  .big-search {
    grid-template-columns: 1fr;
  }

  .inner-hero,
  .detail-hero,
  .detail-content,
  .category-panel {
    padding: 22px;
  }

  .ranking-item {
    grid-template-columns: 74px 1fr;
  }

  .ranking-number,
  .ranking-item .text-button {
    display: none;
  }
}
