:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(41, 37, 36, 0.08);
  --shadow-md: 0 20px 45px rgba(41, 37, 36, 0.14);
  --shadow-lg: 0 30px 80px rgba(28, 25, 23, 0.28);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--stone-800), var(--stone-700), var(--stone-800));
  box-shadow: 0 12px 35px rgba(28, 25, 23, 0.22);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-logo span:last-child {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text em {
  color: var(--stone-300);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

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

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: var(--stone-200);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--white);
  background: var(--amber-600);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-nav-link {
  padding: 12px 16px;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-backdrop,
.hero-backdrop img,
.hero-shade,
.detail-backdrop,
.detail-backdrop img,
.detail-backdrop div {
  position: absolute;
  inset: 0;
}

.hero-backdrop img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero-shade {
  background: linear-gradient(0deg, var(--stone-900) 0%, rgba(28, 25, 23, 0.68) 43%, rgba(28, 25, 23, 0.1) 100%);
}

.hero-content {
  position: relative;
  padding: 90px 0 72px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-badge {
  padding: 7px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta-pills span,
.duration-pill {
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--amber-500);
}

.ghost-button {
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.text-button {
  color: var(--amber-100);
}

.section-block,
.focus-strip {
  padding: 56px 0;
}

.focus-strip {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

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

.slim-heading {
  align-items: center;
}

.section-kicker {
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.article-content h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-800);
  line-height: 1.16;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-link {
  color: var(--amber-700);
  padding: 0 14px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.compact-grid,
.listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-300), var(--stone-700));
}

.large-card .movie-poster {
  aspect-ratio: 16 / 9;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

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

.movie-score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.68);
  backdrop-filter: blur(12px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
  margin-bottom: 9px;
}

.movie-card h3 {
  min-height: 1.35em;
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  min-height: 3.25em;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
}

.tag-row span {
  padding: 4px 9px;
}

.category-grid,
.category-wide-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card-wide,
.ranking-card,
.search-promo,
.content-card,
.side-card {
  border: 1px solid rgba(214, 211, 209, 0.7);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile,
.category-main-link {
  display: block;
  padding: 24px;
}

.category-tile span,
.category-main-link span {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.category-tile h3,
.category-main-link h2 {
  margin: 8px 0;
  font-size: 22px;
}

.category-tile p,
.category-main-link p {
  margin: 0;
  color: var(--stone-600);
}

.category-tile:hover,
.category-card-wide:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card-wide {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a,
.related-links a {
  color: var(--stone-700);
  font-weight: 700;
}

.category-samples a:hover,
.related-links a:hover {
  color: var(--amber-700);
}

.section-split {
  padding: 58px 0;
  background: var(--white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 24px;
}

.ranking-card,
.search-promo {
  padding: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--stone-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--amber-50);
  transform: translateX(3px);
}

.rank-number {
  color: var(--amber-700);
  font-size: 18px;
  font-weight: 900;
}

.ranking-item img {
  width: 70px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--stone-200);
}

.ranking-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ranking-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info em {
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
}

.ranking-score {
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  padding: 5px 10px;
  font-weight: 900;
}

.search-promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-50), var(--white));
}

.search-promo h2 {
  margin: 4px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.search-promo p {
  color: var(--stone-600);
}

.home-search {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-300);
  border-radius: 14px;
  background: var(--white);
  color: var(--stone-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input {
  min-height: 48px;
  padding: 0 16px;
}

.home-search button {
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--amber-600);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.page-hero {
  position: relative;
  padding: 74px 0;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 32%), linear-gradient(135deg, var(--stone-700), var(--stone-900));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: var(--stone-200);
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: var(--amber-100);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid rgba(214, 211, 209, 0.8);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-empty {
  margin: 28px 0 0;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--stone-600);
  background: var(--white);
  text-align: center;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.detail-backdrop div {
  background: linear-gradient(0deg, var(--stone-900), rgba(28, 25, 23, 0.7), rgba(28, 25, 23, 0.3));
}

.detail-hero-inner {
  position: relative;
  padding: 44px 0 58px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: end;
  gap: 34px;
  margin-top: 64px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--stone-700);
}

.detail-copy {
  max-width: 820px;
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 62px);
  margin: 0 0 16px;
}

.detail-copy p {
  margin: 0 0 18px;
  color: var(--stone-100);
  font-size: 18px;
}

.detail-meta-pills span {
  padding: 6px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 54px 0 26px;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 24px;
  align-content: start;
}

.content-card,
.side-card {
  padding: 24px;
}

.player-card {
  padding: 20px;
}

.duration-pill {
  padding: 6px 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stone-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone-900);
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.42);
  font-size: 34px;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.article-content h2 {
  margin: 10px 0 12px;
  font-size: 26px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 22px;
  color: var(--stone-700);
}

.detail-tags span {
  margin-bottom: 2px;
}

.side-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--stone-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--stone-800);
}

.related-links {
  display: grid;
  gap: 10px;
}

.related-links h2 {
  margin-bottom: 6px;
}

.site-footer {
  margin-top: 72px;
  color: var(--stone-300);
  background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
}

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

.footer-about p {
  max-width: 520px;
  color: var(--stone-300);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 17px;
}

.footer-column a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(16px, calc((100% - var(--container)) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stone-400);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .compact-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-button {
    display: flex;
  }

  .hero-section {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding: 70px 0 54px;
  }

  .focus-grid,
  .compact-grid,
  .listing-grid,
  .category-grid,
  .category-wide-grid,
  .footer-grid,
  .filter-panel,
  .detail-intro,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

  .detail-intro {
    margin-top: 30px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .header-inner {
    height: 64px;
  }

  .brand-text em {
    display: none;
  }

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

  .hero-actions,
  .home-search {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-item {
    grid-template-columns: 34px 58px 1fr;
  }

  .ranking-score {
    display: none;
  }

  .ranking-item img {
    width: 58px;
    height: 44px;
  }

  .content-card,
  .side-card,
  .ranking-card,
  .search-promo,
  .category-tile,
  .category-main-link {
    padding: 18px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
