:root {
  --cream-50: #fffdf8;
  --cream-100: #fdf9f3;
  --cream-200: #faf3e6;
  --cream-300: #f5e8d0;
  --coffee-100: #f5f0e8;
  --coffee-200: #e8dcc8;
  --coffee-300: #d4c0a0;
  --coffee-500: #8c6b45;
  --coffee-600: #6f5536;
  --coffee-700: #54402a;
  --coffee-800: #3d2e1f;
  --coffee-900: #21170f;
  --text-main: #2d2218;
  --text-muted: #725f4d;
  --shadow-card: 0 16px 35px rgba(61, 46, 31, 0.12);
  --shadow-soft: 0 10px 25px rgba(61, 46, 31, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cream-100);
  color: var(--text-main);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(245, 232, 208, 0.82);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-500), var(--coffee-800));
  box-shadow: 0 10px 20px rgba(84, 64, 42, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 22px;
  color: var(--coffee-800);
  line-height: 1;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--coffee-600);
  font-size: 12px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--coffee-700);
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--coffee-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.search-box input {
  border: 1px solid var(--cream-300);
  background: var(--cream-100);
  color: var(--coffee-800);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 260px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: var(--coffee-500);
  box-shadow: 0 0 0 4px rgba(111, 85, 54, 0.12);
  background: #fff;
}

.header-search button,
.mobile-search button,
.search-box button,
.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-box button,
.btn-primary {
  color: #fff;
  background: var(--coffee-600);
  box-shadow: 0 10px 24px rgba(111, 85, 54, 0.22);
}

.header-search button {
  padding: 10px 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
}

.btn-secondary {
  color: var(--coffee-800);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.header-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(84, 64, 42, 0.26);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--coffee-700);
  background: var(--cream-200);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--cream-300);
  background: #fff;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
  animation: slideDown 0.25s ease;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--coffee-700);
  background: var(--cream-100);
  font-weight: 700;
}

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

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

main {
  padding-top: 78px;
}

.hero-slider {
  position: relative;
  min-height: min(780px, 78vh);
  overflow: hidden;
  background: var(--coffee-900);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: min(780px, 78vh);
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(33, 23, 15, 0.92) 0%, rgba(61, 46, 31, 0.62) 42%, rgba(61, 46, 31, 0.10) 100%),
    linear-gradient(0deg, rgba(33, 23, 15, 0.80) 0%, rgba(33, 23, 15, 0.12) 42%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: min(780px, 78vh);
  padding: 70px 0 86px;
}

.hero-copy {
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-200);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 20px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: var(--cream-100);
  max-width: 680px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin-top: 20px;
  color: var(--cream-200);
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

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

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

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

.hero-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 42px;
  background: #fff;
}

.section {
  padding: 74px 0;
}

.section-white {
  background: #fff;
}

.section-cream {
  background: var(--cream-50);
}

.section-gradient {
  background: linear-gradient(180deg, var(--cream-50), var(--cream-200));
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--coffee-900);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.section-head p,
.page-lead {
  margin: 10px 0 0;
  max-width: 820px;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.movie-card article {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--coffee-200);
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 11;
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--coffee-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.card-region,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-region {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(111, 85, 54, 0.84);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--coffee-900);
  font-size: 18px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta span {
  background: var(--cream-200);
  color: var(--coffee-700);
  font-size: 12px;
  font-weight: 800;
}

.card-tags,
.detail-tags,
.footer-tags,
.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.detail-tags span,
.category-chip-list a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--coffee-700);
  background: var(--coffee-100);
  font-size: 12px;
  font-weight: 800;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  overflow-x: auto;
  gap: 18px;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  scroll-snap-align: start;
}

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

.category-box {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--coffee-900);
  background: linear-gradient(135deg, #fff, var(--cream-200));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-box h2,
.category-box h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-box p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.category-box .category-entry {
  display: inline-flex;
  margin-top: 20px;
  color: #fff;
  background: var(--coffee-600);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  background: var(--coffee-600);
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--coffee-200);
}

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

.rank-main h2,
.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--coffee-900);
}

.rank-main p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

.rank-meta span,
.detail-meta span {
  background: var(--cream-200);
  color: var(--coffee-700);
  font-weight: 800;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  margin: 26px 0 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: block;
  margin: 0 0 8px;
  color: var(--coffee-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: var(--radius-md);
  color: var(--coffee-700);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.no-results.is-visible {
  display: block;
}

.page-hero {
  padding: 128px 0 56px;
  background: linear-gradient(135deg, var(--coffee-900), var(--coffee-700));
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--cream-200);
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--coffee-600);
  font-weight: 800;
}

.breadcrumbs span {
  color: var(--coffee-300);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 50px rgba(33, 23, 15, 0.24);
}

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

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

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

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

.player-button-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--coffee-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.detail-panel,
.article-card {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  padding: 26px;
  position: sticky;
  top: 104px;
}

.detail-panel img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--coffee-200);
}

.detail-panel h1 {
  margin: 20px 0 12px;
  color: var(--coffee-900);
  font-size: 30px;
  line-height: 1.25;
}

.detail-tags {
  margin-top: 18px;
}

.article-card {
  padding: 30px;
  margin-top: 28px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--coffee-900);
  font-size: 28px;
}

.article-card p {
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0 0 16px;
}

.related-section {
  margin-top: 42px;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.search-box input {
  flex: 1;
  padding: 16px 20px;
}

.search-box button {
  padding: 14px 24px;
}

.search-results {
  min-height: 180px;
}

.site-footer {
  background: var(--coffee-800);
  color: var(--cream-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 56px 0 44px;
}

.footer-grid h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  color: var(--cream-300);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--cream-300);
}

.footer-brand {
  margin-bottom: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-tags a {
  display: inline-flex;
  border: 1px solid rgba(245, 232, 208, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 232, 208, 0.14);
  padding: 20px 16px;
  text-align: center;
  color: var(--cream-300);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 56px 0 76px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

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

  .card-body {
    padding: 14px;
  }

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

  .category-overview {
    grid-template-columns: 1fr;
  }

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

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

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }

  .rank-thumb {
    width: 74px;
  }

  .rank-item .btn-secondary {
    grid-column: 1 / -1;
  }

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

  .search-box {
    flex-direction: column;
  }
}
