:root {
  --bg: #fffbeb;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --text: #451a03;
  --muted: #92400e;
  --line: #fcd34d;
  --line-soft: #fde68a;
  --brand: #d97706;
  --brand-deep: #92400e;
  --dark: #451a03;
  --dark-2: #78350f;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 10px 25px rgba(120, 53, 15, 0.10);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 44%, #fffbeb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 2px solid #fde68a;
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ed;
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.26);
}
.logo-text {
  font-size: 23px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-link,
.mobile-link {
  color: #92400e;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #451a03;
  background: #fef3c7;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  position: relative;
  width: 280px;
}
.search-input,
.toolbar input,
.toolbar select,
.quick-search-form input {
  width: 100%;
  border: 2px solid #fcd34d;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus,
.toolbar input:focus,
.toolbar select:focus,
.quick-search-form input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #fde68a;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.search-results.is-open {
  display: block;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #78350f;
}
.search-results a:hover {
  background: #fffbeb;
}
.search-results span {
  display: block;
  font-size: 12px;
  color: #b45309;
  margin-top: 3px;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fef3c7;
  color: #78350f;
  font-size: 22px;
}
.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}
.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #451a03, #9a3412, #451a03);
}
.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at 20% 20%, #fff 0 2px, transparent 2px), radial-gradient(circle at 80% 70%, #fff 0 1px, transparent 1px);
  background-size: 58px 58px, 36px 36px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 56px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 76px 0 86px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.20;
  filter: blur(2px);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.98), rgba(120, 53, 15, 0.76), rgba(69, 26, 3, 0.92));
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.14);
  border: 1px solid rgba(253, 230, 138, 0.34);
  color: #fde68a;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}
.hero-content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 44px);
  color: #fde68a;
}
.hero-content p {
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.75;
}
.hero-tags,
.tag-list,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span,
.tag-list span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fef3c7;
  color: #78350f;
  font-size: 12px;
  font-weight: 700;
}
.hero-tags span {
  background: rgba(254, 243, 199, 0.16);
  color: #fde68a;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.primary-button,
.ghost-button,
.quick-search-form a,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}
.primary-button {
  background: #fff;
  color: #78350f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.primary-button:hover,
.quick-search-form a:hover {
  transform: translateY(-2px);
  background: #fef3c7;
}
.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(253, 230, 138, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
}
.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  aspect-ratio: 3 / 4;
  background: #78350f;
  transform: rotate(2deg);
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hero-poster:hover img {
  transform: scale(1.05);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}
.hero-dot.is-active {
  width: 34px;
  background: #fde68a;
}
.quick-search-block,
.content-section,
.breadcrumb,
.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.quick-search-block {
  margin-top: -52px;
  position: relative;
  z-index: 6;
}
.quick-search-inner {
  border: 1px solid #fde68a;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 30px;
  backdrop-filter: blur(14px);
}
.quick-search-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}
.quick-search-inner p {
  margin: 0 0 20px;
  color: var(--muted);
}
.quick-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.quick-search-form a {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #92400e);
}
.content-section {
  margin-top: 70px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2,
.rank-panel h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  color: #451a03;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
.section-more {
  color: #92400e;
  background: #fef3c7;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.movie-card {
  overflow: hidden;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.movie-card:hover {
  transform: translateY(-5px);
  border-color: #fbbf24;
  box-shadow: var(--shadow);
}
.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fef3c7;
}
.movie-card-wide .movie-cover {
  aspect-ratio: 16 / 10;
}
.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.movie-card:hover .movie-cover img {
  transform: scale(1.06);
}
.cover-badge,
.rank-badge,
.play-chip {
  position: absolute;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: rgba(120, 53, 15, 0.88);
}
.cover-badge,
.rank-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
}
.rank-badge {
  background: linear-gradient(135deg, #f59e0b, #92400e);
}
.play-chip {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}
.movie-info {
  padding: 18px;
}
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.movie-info h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}
.movie-info h2 a:hover {
  color: #b45309;
}
.movie-info p {
  margin: 0 0 14px;
  color: #78350f;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}
.wide-list {
  display: grid;
  gap: 18px;
}
.movie-card-wide {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}
.rank-panel,
.side-card,
.detail-card,
.quick-search-inner,
.toolbar,
.side-poster {
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.rank-panel {
  position: sticky;
  top: 102px;
  padding: 22px;
}
.mini-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.mini-row {
  display: grid;
  grid-template-columns: 38px 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fffbeb;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mini-row:hover {
  background: #fef3c7;
  transform: translateX(3px);
}
.mini-row strong {
  color: #b45309;
  font-size: 18px;
}
.mini-row img {
  width: 80px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #fef3c7;
}
.mini-row b,
.mini-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-row b {
  font-size: 14px;
}
.mini-row em {
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
  font-style: normal;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.large-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: #fbbf24;
  box-shadow: var(--shadow);
}
.category-card span {
  font-size: 24px;
  font-weight: 900;
}
.category-card p {
  color: #92400e;
  line-height: 1.7;
}
.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-card div a,
.category-card div b {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
}
.all-card {
  color: #fff;
  background: linear-gradient(135deg, #92400e, #d97706);
}
.all-card p,
.all-card div b {
  color: #fff7ed;
}
.page-hero {
  background: linear-gradient(120deg, #78350f, #c2410c);
  color: #fff;
  padding: 66px 0;
}
.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}
.page-hero p {
  margin: 0;
  max-width: 820px;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.75;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
}
.card-hidden {
  display: none !important;
}
.cta-section {
  margin-bottom: 70px;
}
.cta-section > div {
  text-align: center;
  color: #fff;
  border-radius: 28px;
  padding: 54px 24px;
  background: linear-gradient(135deg, #92400e, #c2410c);
  box-shadow: var(--shadow);
}
.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}
.cta-section p {
  margin: 0 auto 24px;
  max-width: 760px;
  color: #ffedd5;
  line-height: 1.75;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  color: #92400e;
  font-weight: 700;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
  margin-bottom: 70px;
}
.detail-main {
  min-width: 0;
}
.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.play-overlay span {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.94);
  font-size: 38px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}
.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.detail-card {
  margin-top: 22px;
  padding: 28px;
}
.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}
.detail-title-row p {
  margin: 0;
  color: #92400e;
  line-height: 1.75;
}
.small-button {
  min-height: 38px;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #92400e);
  white-space: nowrap;
}
.detail-meta {
  margin: 22px 0 14px;
  font-size: 14px;
}
.detail-tags {
  margin-bottom: 24px;
}
.detail-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}
.detail-text,
.detail-review {
  margin: 0;
  color: #78350f;
  line-height: 1.9;
  white-space: pre-line;
}
.detail-review {
  padding: 18px;
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  background: #fffbeb;
}
.detail-side {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 18px;
}
.side-poster {
  overflow: hidden;
}
.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.side-card {
  padding: 20px;
}
.site-footer {
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
  margin-top: 80px;
}
.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}
.footer-brand p,
.footer-links a {
  color: #fde68a;
}
.footer-brand p {
  line-height: 1.75;
}
.footer-links h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.footer-link-grid {
  display: grid;
  gap: 10px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.22);
  padding: 18px;
  text-align: center;
  color: #fde68a;
}
@media (max-width: 1100px) {
  .library-grid,
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .rank-panel,
  .detail-side {
    position: static;
  }
}
@media (max-width: 820px) {
  .main-nav,
  .search-box {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-inner {
    min-height: 68px;
  }
  .logo-text {
    font-size: 20px;
  }
  .hero-slider {
    min-height: 760px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 48px;
  }
  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }
  .quick-search-form,
  .toolbar,
  .footer-inner,
  .detail-title-row {
    grid-template-columns: 1fr;
  }
  .detail-title-row {
    display: grid;
  }
  .movie-grid,
  .library-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .movie-card-wide {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .movie-grid,
  .library-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }
  .movie-card-wide {
    grid-template-columns: 1fr;
  }
  .movie-card-wide .movie-cover {
    aspect-ratio: 3 / 4;
  }
  .section-head {
    display: grid;
  }
  .hero-actions {
    display: grid;
  }
  .primary-button,
  .ghost-button {
    width: 100%;
  }
  .mini-row {
    grid-template-columns: 32px 72px minmax(0, 1fr);
  }
  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
