:root {
  --honey-50: #fff8e7;
  --honey-100: #fff0d1;
  --honey-300: #ffd97a;
  --honey-500: #d4a574;
  --honey-600: #c4954f;
  --honey-800: #8a642e;
  --honey-900: #6a4c20;
  --flame-50: #fff3ed;
  --flame-100: #ffe1d5;
  --flame-400: #ff8a5b;
  --flame-500: #ff6b35;
  --flame-600: #e55520;
  --phoenix-50: #fbe9e7;
  --phoenix-500: #c1440e;
  --phoenix-700: #8f2e08;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
  --soft-shadow: 0 14px 36px rgba(120, 53, 15, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 48%, var(--flame-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--amber-500));
  box-shadow: 0 10px 28px rgba(143, 46, 8, 0.22);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand:hover .brand-mark,
.footer-brand span {
  animation: flicker 3s ease-in-out infinite;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--flame-600);
  background: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.top-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  padding: 14px 20px 22px;
  background: linear-gradient(180deg, var(--honey-800), var(--flame-600));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.mobile-search {
  margin-top: 8px;
}

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

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  color: #ffffff;
  animation: float 6s ease-in-out infinite;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--honey-500), var(--amber-500));
  font-size: 14px;
  font-weight: 900;
  padding: 7px 16px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  color: var(--amber-400);
  font-weight: 900;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.hero-actions,
.category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 18px 38px rgba(193, 68, 14, 0.3);
}

.secondary-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 44px rgba(193, 68, 14, 0.34);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

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

.section-wrap {
  padding: 68px 0;
}

.section-alt {
  background: linear-gradient(90deg, var(--honey-100), #fffaf0, var(--flame-100));
}

.section-soft {
  background: linear-gradient(135deg, var(--phoenix-50), var(--flame-50), var(--honey-50));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.section-heading span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--flame-500), var(--amber-500));
  box-shadow: var(--soft-shadow);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--honey-100), var(--flame-100));
}

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

.movie-card:hover .poster-link img,
.rank-item:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.rating-badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.rating-badge {
  top: 12px;
  right: 12px;
  min-width: 48px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-400), var(--flame-500));
}

.play-badge {
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--flame-600);
  font-size: 13px;
  font-weight: 900;
}

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

.card-body h2 a:hover {
  color: var(--flame-600);
}

.card-body p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span,
.filter-chip {
  border-radius: 999px;
  color: var(--honey-800);
  background: var(--honey-100);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

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

.rank-item {
  display: flex;
  gap: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-cover {
  position: relative;
  width: 118px;
  flex: 0 0 118px;
  overflow: hidden;
  background: var(--honey-100);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--flame-500));
}

.rank-info {
  min-width: 0;
  padding: 18px 16px 16px 0;
  flex: 1;
}

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

.rank-info p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.rank-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-info strong {
  color: var(--amber-500);
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--soft-shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.35s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.78));
}

.category-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.page-hero {
  padding: 54px 0 24px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 6vw, 56px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--honey-800), var(--flame-600), var(--phoenix-700));
  box-shadow: var(--shadow);
}

.page-hero-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -70px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero-card h1 {
  position: relative;
  max-width: 780px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero-card p {
  position: relative;
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
  padding: 12px 16px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--flame-500);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 36px 0 68px;
}

.player-box {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 24px 56px rgba(193, 68, 14, 0.42);
  font-size: 32px;
  transform: translateX(2px);
}

.content-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 30px);
}

.content-card h1,
.content-card h2 {
  margin: 0 0 18px;
}

.content-card h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.content-card h2 {
  font-size: 24px;
}

.content-card p {
  color: #374151;
  line-height: 1.9;
}

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

.stat {
  border-radius: 18px;
  background: var(--honey-50);
  padding: 14px;
}

.stat small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat strong {
  color: var(--text);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--flame-600);
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

.related-item {
  display: flex;
  gap: 12px;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--honey-50);
}

.related-item img {
  width: 78px;
  height: 104px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.related-item h3 {
  margin: 3px 0 7px;
  font-size: 15px;
  line-height: 1.35;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-tags span {
  border-radius: 999px;
  color: var(--honey-800);
  background: var(--honey-100);
  font-weight: 800;
  padding: 7px 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-tile {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.info-tile h2 {
  margin: 0 0 12px;
}

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

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .rank-grid,
  .category-grid,
  .detail-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

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

  .hero {
    height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46));
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero-arrow {
    display: none;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    min-height: auto;
    font-size: 16px;
  }

  .card-body p {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .rank-item {
    min-height: 150px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .section-wrap {
    padding: 48px 0;
  }
}
