:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 10px 35px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 25px 70px rgba(28, 25, 23, 0.24);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 12px;
  font-size: 17px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

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

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--stone-300);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  color: var(--stone-200);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(245, 158, 11, 0.95);
}

.nav-search {
  display: flex;
  overflow: hidden;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

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

.nav-search input::placeholder {
  color: var(--stone-300);
}

.nav-search button {
  padding: 0 16px;
  color: var(--white);
  border: 0;
  background: var(--amber-600);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-menu {
  padding: 8px 16px 18px;
  background: var(--stone-900);
}

.mobile-link {
  display: block;
  padding: 12px 8px;
  color: var(--stone-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link.active {
  color: var(--amber-400);
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.52) 48%, rgba(28, 25, 23, 0.18));
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 78px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--amber-600);
  border-radius: 999px;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
  width: min(760px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-meta span {
  padding: 7px 11px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.primary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  background: var(--amber-500);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-picks {
  position: relative;
  margin-top: -48px;
  padding-bottom: 28px;
}

.hero-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.content-section {
  padding: 58px 0;
}

.white-section {
  background: var(--white);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.6;
}

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

.section-more {
  color: var(--white);
  background: var(--amber-600);
  white-space: nowrap;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-strong);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.poster-image.is-missing {
  opacity: 0;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  transition: opacity 0.24s ease;
}

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

.card-category,
.card-duration {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

.card-category {
  left: 12px;
  background: var(--amber-600);
}

.card-duration {
  right: 12px;
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-info h2 a:hover {
  color: var(--amber-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  gap: 8px 12px;
  color: var(--stone-500);
  font-size: 12px;
}

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

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

.category-tile {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-tile span {
  font-size: 20px;
  font-weight: 800;
}

.category-tile small {
  color: var(--stone-300);
  line-height: 1.6;
}

.ranking-section {
  background: linear-gradient(135deg, #fffbeb, #fff7ed, var(--stone-50));
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 32px;
}

.ranking-list {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--stone-200);
}

.ranking-row:hover {
  color: var(--amber-600);
  background: #fffbeb;
}

.ranking-row strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 9px;
}

.ranking-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.soft-hero {
  background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.category-hero {
  background: linear-gradient(135deg, var(--amber-700), var(--stone-900));
}

.ranking-hero {
  background: linear-gradient(135deg, #7c2d12, var(--stone-950));
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(214, 211, 209, 0.75);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.search-panel {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 170px));
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--stone-800);
  border: 1px solid var(--stone-200);
  border-radius: 11px;
  outline: 0;
  background: var(--stone-50);
}

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

.filter-count {
  margin: 0 0 20px;
  color: var(--stone-600);
  font-size: 14px;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(214, 211, 209, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  color: var(--stone-900);
}

.category-overview-head p {
  margin: 0;
  color: var(--stone-600);
}

.detail-hero {
  padding: 68px 0 90px;
  background: var(--stone-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.64), rgba(28, 25, 23, 0.38));
}

.detail-hero-content {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--stone-300);
  font-size: 14px;
}

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

.detail-section {
  margin-top: -50px;
  padding-top: 0;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.detail-article,
.detail-cover-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
}

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--black);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: radial-gradient(circle, rgba(28, 25, 23, 0.16), rgba(28, 25, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  padding-left: 4px;
  color: var(--stone-900);
  font-size: 28px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 25px;
}

.detail-article p {
  margin: 0 0 28px;
  color: var(--stone-700);
  line-height: 1.9;
}

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

.info-list div {
  padding: 14px;
  background: var(--stone-50);
  border-radius: 12px;
}

.info-list dt {
  margin-bottom: 5px;
  color: var(--stone-500);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 700;
}

.detail-cover-card {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.detail-cover-card img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--stone-900);
}

.detail-cover-card h2 {
  margin: 16px 0 8px;
  color: var(--stone-900);
}

.detail-cover-card p {
  color: var(--stone-600);
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-cloud span {
  padding: 7px 10px;
  color: var(--amber-700);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.related-section {
  padding-top: 20px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 54px 210px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.ranking-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 14px;
  font-size: 18px;
}

.ranking-poster {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone-900);
  border-radius: 14px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--stone-600);
  line-height: 1.7;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0;
  color: var(--stone-300);
  background: var(--stone-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.6fr) minmax(260px, 1.2fr);
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card.is-hidden,
.ranking-card.is-hidden {
  display: none;
}

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

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

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

  .detail-cover-card {
    position: static;
  }

  .filter-panel,
  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-pick-grid,
  .movie-grid,
  .all-grid,
  .compact-grid,
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-card {
    grid-template-columns: 42px 120px minmax(0, 1fr);
    gap: 12px;
  }

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

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

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .hero-pick-grid,
  .movie-grid,
  .all-grid,
  .compact-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .search-panel,
  .info-list {
    grid-template-columns: 1fr;
  }

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

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

  .detail-article {
    padding: 22px;
  }

  .ranking-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ranking-poster {
    display: none;
  }
}
