:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-400: #f59e0b;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --blue-500: #3b82f6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(217, 119, 6, 0.18);
  --card: #ffffff;
  --shadow: 0 20px 40px rgba(146, 64, 14, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff1f2 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.03);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 20px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link-active {
  color: var(--amber-600);
}

.nav-search,
.mobile-search,
.hero-search,
.filter-row {
  display: flex;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-row input {
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-row input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.filter-row button,
.chip-row button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
}

.mobile-menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-600);
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  background: #fff7ed;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.05));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1240px) / 2));
  transform: translateY(-50%);
  width: min(650px, calc(100% - 48px));
  color: #fff;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-list,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
}

.hero .hero-tags span {
  color: #fff;
  background: rgba(245, 158, 11, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section,
.breadcrumb,
.detail-hero,
.detail-layout,
.player-section,
.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  padding: 64px 0 0;
}

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

.section-head h2 {
  display: inline;
  margin: 0 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0 52px;
  color: var(--muted);
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

.section-icon.hot {
  background: linear-gradient(135deg, #ef4444, var(--pink-500));
}

.more-link,
.rank-panel-head a {
  color: var(--amber-600);
  font-weight: 800;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px rgba(146, 64, 14, 0.18);
}

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

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

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

.cover-badge,
.play-dot {
  position: absolute;
  z-index: 2;
}

.cover-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 99px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.52);
}

.play-dot {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.movie-info {
  padding: 16px;
}

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

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

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

.movie-meta span {
  padding: 5px 9px;
  font-size: 12px;
  max-width: 100%;
}

.panel-section,
.rank-panel,
.filter-panel,
.detail-article,
.detail-side,
.player-section {
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.16);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.76));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card strong,
.category-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 90px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 32px rgba(146, 64, 14, 0.14);
}

.rank-row img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffedd5;
}

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

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rank-panel-head h2 {
  margin: 0;
}

.page-hero,
.detail-hero {
  margin-top: 36px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.94), rgba(245, 158, 11, 0.82), rgba(249, 115, 22, 0.9));
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 240px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.small-hero,
.search-hero,
.ranking-hero {
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #78350f, #d97706 58%, #f97316);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.overview-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  overflow: hidden;
}

.overview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 8px;
}

.overview-body p {
  color: var(--muted);
}

.overview-body span {
  color: var(--amber-600);
  font-weight: 900;
}

.filter-row {
  margin-bottom: 16px;
}

.filter-row input {
  flex: 1;
}

.chip-row {
  margin-bottom: 14px;
}

.chip-row button {
  color: #92400e;
  background: #ffedd5;
  box-shadow: none;
}

.chip-row button:hover,
.chip-row button.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.25);
}

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

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-main p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.detail-meta span,
.detail-hero .tag-list span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-hero .tag-list {
  margin: 16px 0 24px;
}

.player-section {
  margin-top: 32px;
  padding: 0;
  overflow: hidden;
  background: #111827;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  font-size: 34px;
}

.player-start strong {
  font-size: 20px;
}

.player-stage.is-playing .player-start {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
  gap: 28px;
  margin-top: 32px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

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

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.sibling-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.sibling-links a {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--amber-600);
  font-weight: 800;
}

.movie-card-compact .movie-line {
  min-height: auto;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #fff7ed, #fffbeb, #fff7ed);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  color: var(--muted);
  max-width: 520px;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--amber-600);
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

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

@media (max-width: 820px) {
  .nav-wrap {
    width: min(100% - 24px, 1240px);
  }

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

  .nav-search {
    display: none;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 24px;
  }

  .hero-control {
    display: none;
  }

  .content-section {
    padding-top: 42px;
  }

  .movie-grid.four,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

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

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

@media (max-width: 560px) {
  .movie-grid.four,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 36px 72px minmax(0, 1fr);
  }

  .rank-row img {
    width: 72px;
    height: 52px;
  }

  .rank-score {
    display: none;
  }

  .panel-section,
  .rank-panel,
  .filter-panel,
  .detail-article,
  .detail-side {
    padding: 22px;
  }

  .detail-layout,
  .detail-hero,
  .player-section,
  .page-hero,
  .content-section,
  .breadcrumb {
    width: min(100% - 24px, 1240px);
  }

  .filter-row,
  .hero-search {
    flex-direction: column;
  }
}
