@charset "UTF-8";

:root {
  --toffee-primary: #C87941;
  --toffee-secondary: #E5A76B;
  --toffee-light: #F5E6D3;
  --toffee-cream: #FFF8F0;
  --toffee-caramel: #B8784F;
  --toffee-brown: #8B5A3C;
  --toffee-dark: #6B4423;
  --cloud-white: #FFFFFF;
  --cloud-soft: #F9F9F9;
  --shadow-cloud: 0 8px 32px rgba(200, 121, 65, 0.12);
  --shadow-glow: 0 0 40px rgba(229, 167, 107, 0.30);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--toffee-dark);
  background: linear-gradient(135deg, var(--toffee-cream) 0%, #ffffff 58%, rgba(245, 230, 211, 0.35) 100%);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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;
  border-bottom: 1px solid rgba(245, 230, 211, 0.78);
  background: rgba(255, 248, 240, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: var(--shadow-glow);
}

.brand-text {
  font-size: 1.16rem;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(90deg, var(--toffee-primary), var(--toffee-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--toffee-dark);
  transition: 0.25s ease;
}

.nav-link {
  padding: 9px 15px;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.8);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(200, 121, 65, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.hero-search-card input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--toffee-dark);
  background: transparent;
}

.header-search input {
  width: 100%;
  padding: 10px 12px 10px 16px;
}

.header-search button,
.mobile-search button,
.hero-search-card button,
.filter-bar button {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--toffee-primary), var(--toffee-secondary));
  cursor: pointer;
}

.header-search button {
  align-self: stretch;
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 230, 211, 0.8);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--toffee-dark);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-cloud);
}

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

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(200, 121, 65, 0.18);
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
}

.mobile-search button {
  padding: 0 16px;
}

.mobile-link {
  padding: 12px 14px;
  justify-content: flex-start;
}

.toffee-card {
  border: 1px solid rgba(245, 230, 211, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-cloud);
  backdrop-filter: blur(8px);
}

.hover-lift {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(200, 121, 65, 0.18);
}

.toffee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.28s ease;
}

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

.toffee-btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: var(--shadow-glow);
}

.toffee-btn-ghost {
  color: var(--toffee-dark);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-shade {
  background:
    radial-gradient(circle at 80% 25%, rgba(229, 167, 107, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(107, 68, 35, 0.86) 0%, rgba(107, 68, 35, 0.62) 42%, rgba(107, 68, 35, 0.08) 100%),
    linear-gradient(0deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 248, 240, 0.2) 40%, rgba(255, 248, 240, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 88px 0 155px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #fff;
  max-width: 720px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.detail-meta,
.card-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.card-meta a,
.meta-line span {
  border-radius: 999px;
  background: rgba(245, 230, 211, 0.78);
  color: var(--toffee-brown);
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
}

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

.hero-poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(48, 24, 8, 0.38);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 108px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  transition: 0.25s ease;
}

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

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-cloud);
  backdrop-filter: blur(14px);
}

.hero-search-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search-card input {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(245, 230, 211, 0.58);
}

.hero-search-card button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-category-pills a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--toffee-brown);
  background: rgba(245, 230, 211, 0.72);
  transition: 0.25s ease;
}

.hero-category-pills a:hover {
  color: #fff;
  background: var(--toffee-primary);
}

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

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

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

.section-heading p,
.page-hero p,
.card-desc,
.overview-main p,
.detail-section p,
.footer-brand p,
.rank-info p {
  color: rgba(107, 68, 35, 0.72);
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--toffee-secondary), transparent);
}

.section-more,
.overview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.72);
  font-weight: 700;
}

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

.page-grid {
  padding: 28px 0 42px;
}

.movie-card {
  overflow: hidden;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--toffee-light);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.duration-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--toffee-dark);
  transition: 0.25s ease;
}

.card-title:hover {
  color: var(--toffee-primary);
}

.card-desc {
  min-height: 46px;
  margin: 8px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
}

.card-meta,
.meta-line {
  font-size: 0.78rem;
}

.card-meta span,
.card-meta a,
.meta-line span,
.detail-meta span {
  padding: 5px 9px;
}

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

.category-tile {
  min-height: 142px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: var(--shadow-glow);
  transition: 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 800;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--toffee-dark);
}

.rank-title:hover {
  color: var(--toffee-primary);
}

.rank-info p {
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-numbered {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: var(--shadow-glow);
}

.page-hero {
  margin: 34px 0 26px;
  padding: 48px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--toffee-dark), var(--toffee-primary) 58%, var(--toffee-secondary));
  box-shadow: var(--shadow-glow);
}

.page-hero span {
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.breadcrumb {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(107, 68, 35, 0.72);
}

.breadcrumb a:hover {
  color: var(--toffee-primary);
}

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

.overview-card {
  padding: 22px;
}

.overview-main h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.overview-main p {
  margin: 0 0 18px;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.filter-bar {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(245, 230, 211, 0.62);
}

.category-hero {
  margin-top: 24px;
}

.detail-main {
  padding-bottom: 36px;
}

.detail-hero {
  margin: 24px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
}

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

.detail-kicker {
  margin-bottom: 14px;
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.72);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.detail-copy p {
  margin: 0 0 22px;
  color: rgba(107, 68, 35, 0.78);
  font-size: 1.1rem;
}

.tag-cloud {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--toffee-brown);
  background: rgba(245, 230, 211, 0.74);
}

.player-panel {
  padding: 18px;
  margin-bottom: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #1b120b;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(32, 16, 8, 0.18);
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.play-overlay span::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 27px;
  border-left: 27px solid var(--toffee-primary);
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.detail-article,
.detail-side {
  padding: 26px;
}

.detail-section + .detail-section {
  margin-top: 28px;
}

.detail-section h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--toffee-dark);
  font-size: 1.45rem;
}

.detail-section p {
  margin: 0;
  font-size: 1.04rem;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 230, 211, 0.88);
}

.detail-side dt {
  color: rgba(107, 68, 35, 0.62);
}

.detail-side dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

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

.related-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-cloud);
}

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

.related-card span {
  display: -webkit-box;
  padding: 12px;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 800;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(245, 230, 211, 0.8);
  background: linear-gradient(135deg, var(--toffee-light), var(--toffee-cream), #fff);
}

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

.footer-brand p {
  max-width: 420px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

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

.footer-links a:hover {
  color: var(--toffee-primary);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(107, 68, 35, 0.68);
  border-top: 1px solid rgba(245, 230, 211, 0.82);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .header-search {
    display: none;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .header-inner {
    min-height: 64px;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-content {
    min-height: 660px;
    padding: 68px 0 220px;
    align-items: start;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    bottom: 158px;
  }

  .hero-search-card form,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 32px 24px;
  }

  .rank-row {
    grid-template-columns: 74px 1fr;
  }

  .rank-numbered {
    grid-template-columns: 42px 1fr;
  }

  .rank-num {
    width: 38px;
    height: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-search-card {
    bottom: 14px;
  }

  .hero-controls {
    bottom: 178px;
  }

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

  .detail-hero,
  .detail-article,
  .detail-side,
  .overview-card {
    padding: 18px;
  }
}
