:root {
  --cream-50: #fffef9;
  --cream-100: #fbf7ef;
  --cream-200: #f5f1e8;
  --cream-300: #ebe2d1;
  --warm-100: #ffe4e1;
  --warm-300: #f7bf8d;
  --warm-400: #f4a460;
  --warm-500: #e89452;
  --soft-400: #d8d1c8;
  --soft-500: #b8aea8;
  --soft-600: #9b918c;
  --soft-700: #7d736f;
  --soft-800: #625956;
  --soft-900: #4c4542;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-soft-lg: 0 10px 40px -5px rgba(0, 0, 0, 0.10), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
  --radius-xl: 18px;
  --radius-2xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: var(--soft-900);
  background: linear-gradient(180deg, var(--cream-50), var(--white) 42%, var(--cream-50));
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.96), rgba(255, 254, 249, 0.78));
  backdrop-filter: blur(18px);
}

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

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--soft-900);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cream-300), var(--warm-400));
  box-shadow: 0 10px 24px rgba(244, 164, 96, 0.28);
}

.logo-text {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft-700);
  font-weight: 600;
}

.nav-links a {
  padding: 10px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--warm-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search {
  position: relative;
  width: 260px;
}

.search-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--cream-300);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(125, 115, 111, 0.06);
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--soft-900);
  padding: 10px 14px;
}

.search-control button {
  border: 0;
  color: var(--white);
  background: var(--warm-400);
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.search-control button:hover {
  background: var(--warm-500);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 390px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: 18px;
  box-shadow: var(--shadow-soft-lg);
  padding: 8px;
}

.search-panel.is-open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 9px;
  border-radius: 14px;
  transition: background-color 0.25s ease;
}

.search-item:hover {
  background: var(--cream-100);
}

.search-item img {
  width: 76px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream-200);
}

.search-item strong {
  display: block;
  color: var(--soft-900);
  line-height: 1.35;
}

.search-item span {
  display: block;
  color: var(--soft-500);
  font-size: 13px;
  margin-top: 4px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--soft-700);
  background: var(--cream-100);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--cream-200);
  padding: 12px 0 18px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--soft-700);
  font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: var(--cream-100);
  color: var(--warm-400);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--soft-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

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

.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.76), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--warm-400);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(244, 164, 96, 0.28);
}

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

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.hero-tags span,
.meta-pill,
.card-pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-tags span {
  padding: 8px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  color: var(--warm-400);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--cream-100);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.main {
  padding-top: 72px;
}

.home-main {
  padding-top: 0;
}

.section {
  padding: 60px 0;
}

.section-tight {
  padding: 42px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--warm-400);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  color: var(--soft-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-desc {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--soft-600);
  line-height: 1.8;
}

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

.movie-card {
  min-width: 0;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(245, 241, 232, 0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-200);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 60%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.poster-kind {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--soft-800);
  background: rgba(245, 241, 232, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--warm-400);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 15px;
}

.card-pill {
  padding: 4px 9px;
  color: var(--warm-500);
  background: var(--cream-100);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--soft-900);
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-text {
  margin: 0;
  color: var(--soft-600);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--soft-500);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

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

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

.category-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 22px;
  color: var(--white);
}

.category-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row strong {
  margin-right: 8px;
  color: var(--soft-700);
}

.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--soft-700);
  background: var(--cream-100);
  transition: background-color 0.25s ease, color 0.25s ease;
}

button.filter-chip {
  border: 0;
  cursor: pointer;
}

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

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--warm-400);
}

.page-hero {
  padding: 132px 0 52px;
  background: radial-gradient(circle at 12% 16%, rgba(244, 164, 96, 0.22), transparent 30%), linear-gradient(135deg, var(--cream-50), var(--cream-200));
}

.page-hero h1 {
  margin: 0;
  color: var(--soft-900);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--soft-600);
  font-size: 18px;
  line-height: 1.8;
}

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

.breadcrumb a:hover {
  color: var(--warm-400);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 68px 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-lg);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: var(--warm-400);
  font-weight: 800;
}

.rank-card img {
  width: 160px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--cream-200);
}

.rank-card h3 {
  margin: 0 0 8px;
  color: var(--soft-900);
  font-size: 20px;
}

.rank-card p {
  margin: 0;
  color: var(--soft-600);
  line-height: 1.7;
}

.rank-meta {
  color: var(--warm-500);
  font-weight: 800;
  white-space: nowrap;
}

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

.player-panel,
.detail-card,
.side-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--warm-400);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: var(--soft-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.22;
}

.detail-lead {
  margin: 0 0 20px;
  color: var(--soft-600);
  font-size: 18px;
  line-height: 1.85;
}

.meta-row,
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.meta-pill {
  padding: 8px 12px;
  color: var(--soft-700);
  background: var(--cream-100);
  font-size: 14px;
  font-weight: 700;
}

.tag {
  padding: 7px 11px;
  color: var(--warm-500);
  background: rgba(255, 228, 225, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: var(--soft-900);
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: var(--soft-700);
  line-height: 1.9;
}

.side-card {
  padding: 18px;
}

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

.side-list {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background-color 0.25s ease;
}

.side-item:hover {
  background: var(--cream-100);
}

.side-item img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream-200);
}

.side-item strong {
  display: block;
  color: var(--soft-900);
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 5px;
  color: var(--soft-500);
  font-size: 13px;
}

.search-page-box {
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.search-page-form input {
  min-height: 52px;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
}

.search-page-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  color: var(--white);
  background: var(--warm-400);
  font-weight: 800;
  cursor: pointer;
}

.search-results-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--soft-500);
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(180deg, var(--cream-100), var(--cream-200));
  border-top: 1px solid var(--cream-300);
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--soft-900);
}

.site-footer p,
.site-footer a {
  color: var(--soft-600);
  line-height: 1.8;
}

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

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--cream-300);
  color: var(--soft-600);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .navbar {
    min-height: 66px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-arrow {
    display: none;
  }

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

  .section-head {
    display: block;
  }

  .card-grid,
  .category-grid,
  .search-results-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-card img {
    width: 110px;
    height: 74px;
  }

  .rank-meta {
    grid-column: 2 / -1;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    min-height: 560px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .card-grid,
  .category-grid,
  .search-results-page {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 40px 1fr;
  }

  .rank-card img {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-meta {
    grid-column: 1 / -1;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }
}
