:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --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;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(41, 37, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: var(--white);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stone-900);
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.25);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text small {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 500;
}

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

.desktop-nav a,
.mobile-panel nav a {
  color: var(--stone-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: var(--amber);
}

.header-search {
  width: 260px;
  display: flex;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: var(--white);
  color: var(--stone-800);
}

.header-search input,
.mobile-search input {
  flex: 1;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

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

.header-search button,
.mobile-search button,
.filter-bar button,
.primary-btn {
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.24);
}

.header-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover,
.primary-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--stone-700);
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--stone-200);
  background: var(--white);
}

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

.mobile-panel nav,
.mobile-search {
  display: grid;
  gap: 10px;
}

.mobile-search {
  grid-template-columns: 1fr auto;
  margin: 16px 0;
}

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

.hero-track,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-shade {
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.98) 0%, rgba(28, 25, 23, 0.72) 48%, rgba(28, 25, 23, 0.24) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 86px;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content p:not(.hero-kicker) {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section-block {
  padding: 68px 0;
}

.section-block > .container,
.soft-bg > .container {
  position: relative;
}

.soft-bg {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-900);
  letter-spacing: -0.03em;
}

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

.text-link {
  color: var(--amber);
  font-weight: 900;
}

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

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

.category-card {
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card > a {
  display: block;
  padding: 22px;
}

.category-card span {
  color: var(--amber);
  font-weight: 900;
}

.category-card h2 {
  margin: 8px 0 10px;
  color: var(--stone-900);
}

.category-card p,
.movie-desc,
.rank-copy p,
.page-hero p,
.detail-line,
.story-card p,
.site-footer p {
  color: var(--stone-600);
  line-height: 1.75;
}

.category-preview {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-preview a {
  color: var(--stone-700);
  font-weight: 700;
}

.category-preview a:hover {
  color: var(--amber);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), var(--stone-100));
}

.poster img,
.rank-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.74);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-meta {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--stone-900);
}

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

.movie-desc {
  min-height: 54px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 700;
}

.page-hero,
.detail-top {
  padding: 76px 0;
  background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.17), transparent 34%), linear-gradient(135deg, var(--stone-50), #ffffff);
}

.page-hero h1,
.detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 60px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: var(--stone-50);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 22px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-100);
}

.rank-copy h2 {
  margin: 0 0 6px;
  color: var(--stone-900);
}

.rank-copy h2 a:hover {
  color: var(--amber);
}

.rank-copy p {
  margin: 0 0 10px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  background: var(--stone-100);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-600);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-line {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--stone-800);
  background: var(--white);
  border: 1px solid var(--stone-200);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.72));
  cursor: pointer;
  z-index: 2;
}

.play-layer.is-hidden {
  display: none;
}

.play-layer span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 6px;
  background: var(--amber);
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.36);
  font-size: 34px;
}

.play-layer strong {
  font-size: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
}

.story-card,
.side-card {
  border: 1px solid var(--stone-200);
  border-radius: 26px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.07);
}

.story-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.story-card p {
  margin: 0 0 24px;
  font-size: 17px;
}

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

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

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

.site-footer {
  padding: 54px 0 0;
  color: var(--stone-300);
  background: var(--stone-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

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

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

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

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

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  text-align: center;
  color: var(--stone-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filter-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

  .header-inner {
    height: 66px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

  .section-block,
  .page-hero,
  .detail-top {
    padding: 46px 0;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px 70px 1fr;
    gap: 12px;
  }

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

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

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

@media (max-width: 520px) {
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 112px 1fr;
  }

  .poster {
    height: 100%;
  }

  .movie-desc {
    min-height: 0;
  }

  .rank-copy p {
    display: none;
  }

  .play-layer span {
    width: 62px;
    height: 62px;
    font-size: 27px;
  }
}
