:root {
  --honey-50: #fff8e7;
  --honey-100: #fff0d1;
  --honey-500: #d4a574;
  --honey-600: #c4954f;
  --honey-700: #a67c3e;
  --honey-900: #6a4c20;
  --flame-50: #fff3e0;
  --flame-100: #ffe0b2;
  --flame-400: #ffa726;
  --flame-500: #ff6b35;
  --flame-600: #f4511e;
  --flame-900: #bf360c;
  --phoenix-500: #c1440e;
  --phoenix-600: #a13810;
  --ink: #16110d;
  --muted: #6b5a4b;
  --line: rgba(130, 86, 35, .16);
  --card: #ffffff;
  --soft: rgba(255, 255, 255, .78);
  --shadow: 0 18px 45px rgba(98, 56, 12, .16);
  --shadow-strong: 0 28px 70px rgba(75, 36, 7, .28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 42%, var(--flame-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--flame-400));
  box-shadow: 0 10px 28px rgba(114, 61, 7, .22);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: .03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #fff7dc;
  background: radial-gradient(circle at 35% 20%, #fff6b9 0, #ffbf69 30%, #ff6b35 64%, #a13810 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 18px rgba(130, 57, 8, .34);
  animation: flicker 3s ease-in-out infinite;
}

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

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

.nav-link,
.mobile-nav-link {
  position: relative;
  font-weight: 700;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .25);
  overflow: hidden;
}

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

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

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #fff;
  background: rgba(22, 17, 13, .22);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  height: min(68vh, 620px);
  min-height: 500px;
  overflow: hidden;
  background: #0b0603;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 191, 105, .26), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .56) 44%, rgba(0, 0, 0, .12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  color: #ffffff;
  animation: float 6s ease-in-out infinite;
}

.hero-content h1 {
  width: min(680px, 100%);
  margin: 18px 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-badges,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badges a,
.hero-badges span,
.detail-badges a,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--honey-500), var(--flame-500));
  box-shadow: 0 8px 20px rgba(255, 107, 53, .25);
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
}

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

.primary-btn,
.secondary-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

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

.primary-btn:hover,
.secondary-btn:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  background: rgba(0, 0, 0, .42);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, .66);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

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

main,
.page-main,
.detail-main {
  width: 100%;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.warm-panel {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--honey-100), #fff8ea, var(--flame-100));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.watch-section h2,
.story-card h2 {
  margin: 0;
  color: #1d130d;
  line-height: 1.18;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p,
.page-hero p,
.story-card p,
.category-overview-main p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--phoenix-600);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(112, 70, 18, .12);
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

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

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

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

.card-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
  transform: translate(-50%, -50%) scale(.88);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-meta {
  gap: 8px;
  color: #9a6f48;
  font-size: 13px;
  font-weight: 700;
}

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

.card-body h2 a:hover,
.rank-info h2 a:hover,
.category-samples a:hover {
  color: var(--flame-600);
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.card-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9c541d;
  background: #fff1d8;
  font-size: 12px;
  font-weight: 800;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rank-cover {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--honey-100), var(--flame-100));
}

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

.rank-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
}

.rank-info h2 {
  margin: 6px 0 10px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-meta {
  color: #9a6f48;
  font-weight: 800;
}

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

.category-card,
.category-overview-card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, var(--honey-50));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card {
  min-height: 155px;
  padding: 22px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-card span {
  display: block;
  color: var(--phoenix-600);
  font-size: 20px;
  font-weight: 900;
}

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

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 191, 105, .38), transparent 28%),
    radial-gradient(circle at 78% 32%, rgba(255, 107, 53, .34), transparent 28%),
    linear-gradient(135deg, var(--honey-900), var(--phoenix-600), var(--flame-500));
}

.page-hero > div {
  width: min(820px, calc(100% - 32px));
}

.page-hero span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  font-weight: 900;
}

.page-hero h1 {
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(36px, 7vw, 62px);
}

.page-hero p {
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  display: block;
  min-height: 190px;
  padding: 24px;
}

.category-overview-main h2 {
  margin: 0;
  color: var(--phoenix-600);
  font-size: 24px;
}

.category-overview-main span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--flame-600);
  font-weight: 900;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  color: var(--muted);
  line-height: 1.5;
}

.toolbar,
.search-panel {
  margin-bottom: 28px;
}

.page-filter,
.search-query {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
  box-shadow: 0 12px 28px rgba(112, 70, 18, .09);
}

.page-filter:focus,
.search-query:focus {
  border-color: rgba(255, 107, 53, .45);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--phoenix-600);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
}

.is-filtered-out {
  display: none !important;
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 191, 105, .2), transparent 32%),
    linear-gradient(135deg, #21120a, #78350f 55%, #c1440e);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .36);
}

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

.detail-copy h1 {
  color: #ffffff;
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-copy p {
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 18px 0;
}

.detail-tags span {
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}

.watch-section,
.detail-content {
  margin-top: 34px;
}

.watch-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.player-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 6px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 20px 48px rgba(193, 68, 14, .38);
  transition: transform .2s ease;
}

.player-cover:hover .player-button {
  transform: scale(1.08);
}

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

.story-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-card h2 {
  font-size: 26px;
}

.story-card p {
  font-size: 16px;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.movie-card.compact .card-body h2 {
  font-size: 17px;
}

.movie-card.compact .card-body p {
  min-height: 48px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--honey-900), #32150a, var(--flame-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: rgba(255, 248, 231, .78);
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffca40;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .detail-main {
    width: calc(100% - 24px);
  }

  .section-head {
    display: grid;
  }

  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 18px;
  }

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

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

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

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}

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

  .card-body {
    padding: 14px;
  }

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

  .card-body p,
  .card-tags {
    display: none;
  }

  .rank-item {
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .rank-cover {
    min-height: 120px;
  }

  .rank-info h2 {
    font-size: 17px;
  }

  .rank-info p {
    font-size: 13px;
  }
}
