:root {
  color-scheme: light;
  --color-primary: #d4884b;
  --color-primary-dark: #c6703f;
  --color-accent: #ed7516;
  --color-secondary: #1c1917;
  --color-muted: #76685d;
  --color-soft: #faf9f7;
  --color-border: #e8e4dc;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 12px 35px rgba(28, 25, 23, 0.10);
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(232, 228, 220, 0.95);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 12px 25px rgba(212, 136, 75, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  font-weight: 650;
  color: #4d4038;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-secondary);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 18px 20px;
}

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

.mobile-link {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: #f5efe8;
  color: var(--color-primary-dark);
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.mobile-categories a {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f6f1ea;
  color: #6d5e51;
  font-size: 13px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1c1917;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(670px, 100%);
  padding-top: 54px;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: #fff3e8;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-wrap: balance;
}

.hero-copy p {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #6b4a32;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.detail-tags .tag,
.movie-card-tags .tag {
  background: #fff4e9;
  color: #8a552e;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 14px 30px rgba(212, 136, 75, 0.35);
}

.btn-light {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.4);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(212, 136, 75, 0.86);
  transform: translateY(-50%) scale(1.04);
}

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

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

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

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

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 28px;
  align-items: center;
  margin-top: -54px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(232, 228, 220, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.search-panel h2,
.section-heading h2,
.inner-hero h1,
.detail-copy h1 {
  margin: 10px 0;
  letter-spacing: -0.04em;
}

.search-panel p,
.inner-hero p {
  color: #6f6258;
  line-height: 1.7;
}

.site-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.site-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  color: var(--color-secondary);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(212, 136, 75, 0.14);
}

.site-search button {
  border: 0;
  border-radius: 14px;
  background: var(--color-secondary);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.site-search button:last-child {
  background: #efe7df;
  color: #5a4d43;
}

.inline-search {
  width: min(620px, 100%);
  min-height: 46px;
  margin-top: 26px;
}

.section-block {
  padding-top: 70px;
}

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

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

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}

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

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

.category-card {
  min-height: 150px;
  border: 1px solid rgba(232, 228, 220, 0.95);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff7ef);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 136, 75, 0.42);
  box-shadow: var(--shadow-card);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--color-secondary);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #75675b;
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(232, 228, 220, 0.95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-box {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #f4b36d, transparent 30%), linear-gradient(135deg, #2e2824, #b26837);
}

.poster-box img,
.rank-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #4a3324;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
}

.poster-score {
  right: 12px;
  bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.movie-card-body {
  padding: 18px;
}

.movie-card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-secondary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.movie-card-meta {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0;
  color: #89796a;
  font-size: 13px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-card-desc {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  margin: 0 0 14px;
  color: #5e534a;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card {
  min-width: 230px;
  width: 230px;
}

.compact-card .movie-card-title {
  font-size: 16px;
}

.compact-card .movie-card-desc {
  min-height: 0;
  -webkit-line-clamp: 1;
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

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

.inner-hero {
  padding: 86px 0 70px;
  background: radial-gradient(circle at 20% 20%, rgba(237, 117, 22, 0.18), transparent 30%), linear-gradient(135deg, #fff, #fff7ed);
}

.inner-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
}

.inner-hero p {
  width: min(820px, 100%);
  font-size: 18px;
}

.category-hero {
  background: radial-gradient(circle at 88% 16%, rgba(212, 136, 75, 0.18), transparent 34%), linear-gradient(135deg, #fff, #faf3ec);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(232, 228, 220, 0.95);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.07);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff2e6;
  color: var(--color-primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.rank-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f2924, #d4884b);
}

.rank-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0;
  color: #675b50;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #927f70;
  font-size: 12px;
  font-weight: 700;
}

.detail-hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 78px 0;
}

.detail-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #2c2520, #d4884b);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.detail-copy .btn {
  margin-top: 28px;
}

.detail-main {
  padding-top: 66px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(237, 117, 22, 0.35);
}

.movie-player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-title {
  padding: 24px 28px 28px;
}

.player-title h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.player-title p {
  margin: 0;
  color: #6f6258;
  line-height: 1.7;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.content-card,
.about-card {
  border: 1px solid rgba(232, 228, 220, 0.95);
  border-radius: 24px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.07);
}

.content-card h2,
.about-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p,
.about-card p {
  margin: 0;
  color: #5f554c;
  font-size: 16px;
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 70px;
}

.site-footer {
  margin-top: 82px;
  background: #1c1917;
  color: #f2eee9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
  padding: 54px 0 34px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 420px;
  color: #d8d0c7;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7ded5;
  padding: 8px 12px;
  font-size: 13px;
}

.footer-links a:hover {
  background: rgba(212, 136, 75, 0.35);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8aea5;
  padding: 18px 0 22px;
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .rank-list,
  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-shell {
    height: 66px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel {
    margin-top: -34px;
    padding: 20px;
  }

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

  .site-search input,
  .site-search button {
    min-height: 46px;
  }

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

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .rank-list,
  .about-layout,
  .detail-hero-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-grid {
    gap: 26px;
  }

  .detail-poster {
    width: min(230px, 80vw);
  }

  .rank-item {
    grid-template-columns: 46px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .player-start span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }

  .footer-grid {
    padding-top: 40px;
  }
}
