:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow-sm: 0 2px 8px rgba(41, 37, 36, 0.08);
  --shadow-md: 0 12px 30px rgba(41, 37, 36, 0.12);
  --shadow-xl: 0 30px 80px rgba(41, 37, 36, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 64px;
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(120, 53, 15, 0.97);
  box-shadow: 0 8px 26px rgba(28, 25, 23, 0.2);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
  box-shadow: 0 0 26px rgba(253, 230, 138, 0.4);
}

.brand-text {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-100);
}

.nav-links a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover {
  background: rgba(146, 64, 14, 0.85);
  color: var(--amber-50);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber-50);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-50);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.16);
}

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

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

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

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 30%),
    linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding-top: 20px;
}

.hero-kicker,
.eyebrow,
.feature-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.95);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.42);
}

.hero-content p,
.page-hero p,
.detail-intro p {
  width: min(760px, 100%);
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.88);
  color: var(--amber-900);
  font-size: 12px;
  font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.search-panel button {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: white;
  box-shadow: 0 14px 35px rgba(180, 83, 9, 0.32);
}

.btn-primary:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(180, 83, 9, 0.42);
}

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

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: white;
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.quick-search {
  margin-top: -40px;
  position: relative;
  z-index: 6;
}

.quick-search .container {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
}

.search-panel {
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: white;
  color: var(--stone-800);
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.quick-links a,
.text-link,
.section-more {
  color: var(--amber-700);
  font-weight: 800;
}

.section-block {
  padding: 70px 0;
  background: white;
}

.warm-block {
  background: linear-gradient(180deg, var(--amber-50), white);
}

.category-block {
  background: var(--stone-100);
}

.dark-block,
.dark-list {
  background: var(--stone-900);
  color: white;
}

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

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.dark-block .section-head p,
.dark-list .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

.movie-card,
.rank-card,
.category-detail-card,
.content-card,
.side-card,
.hero-link-card {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-link img,
.rank-poster img,
.category-tile img,
.feature-image img,
.category-cover img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.rank-card:hover .rank-poster img,
.category-tile:hover img,
.feature-card:hover .feature-image img {
  transform: scale(1.07);
}

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.movie-info {
  padding: 15px;
}

.movie-info h2,
.rank-card h2,
.feature-body h2,
.category-detail-card h2,
.hero-link-card h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-800);
  line-height: 1.25;
}

.movie-info h2 {
  min-height: 2.5em;
  font-size: 17px;
}

.movie-info h2 a:hover,
.rank-card h2 a:hover,
.feature-body h2 a:hover,
.category-detail-card h2 a:hover {
  color: var(--amber-700);
}

.movie-info p {
  min-height: 3.4em;
  margin: 10px 0 12px;
  color: var(--stone-600);
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--stone-500);
  font-size: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(260px, 45%) 1fr;
  overflow: hidden;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.feature-image {
  display: block;
  min-height: 420px;
  overflow: hidden;
}

.feature-body {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.feature-body h2 {
  font-size: clamp(26px, 3vw, 42px);
}

.feature-body p {
  margin: 0;
  color: var(--stone-600);
}

.feature-side {
  display: grid;
  gap: 14px;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: var(--stone-800);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-200);
}

.rank-num {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.rank-card p {
  margin: 8px 0 0;
  color: var(--stone-600);
  font-size: 14px;
}

.dark-block .rank-card,
.dark-list .rank-card {
  background: rgba(255, 255, 255, 0.96);
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
  color: white;
  box-shadow: var(--shadow-md);
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
}

.category-tile span {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2), transparent);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
  line-height: 1.2;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 86px 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(253, 230, 138, 0.24), transparent 28%),
    linear-gradient(135deg, var(--amber-900), var(--amber-800));
  color: white;
}

.small-hero,
.search-hero,
.rank-hero {
  text-align: center;
}

.page-hero .container > p {
  color: rgba(255, 255, 255, 0.84);
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 32px;
  align-items: center;
}

.hero-link-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-link-card h2 {
  color: white;
  margin-bottom: 12px;
}

.hero-link-card a {
  display: block;
  padding: 10px 0;
  color: var(--amber-100);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 28px;
}

.filter-row select {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: white;
  color: var(--stone-700);
  outline: none;
}

.category-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.category-detail-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  overflow: hidden;
  padding: 14px;
}

.category-cover {
  display: block;
  min-height: 210px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--stone-200);
}

.category-detail-card p {
  color: var(--stone-600);
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) scale(1.08);
  opacity: 0.58;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  min-height: 580px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
  color: white;
}

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

.detail-intro .eyebrow {
  background: rgba(217, 119, 6, 0.9);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.player-wrap {
  padding: 56px 0 22px;
  background: var(--stone-900);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: black;
  box-shadow: var(--shadow-xl);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

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

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

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 20px 46px rgba(180, 83, 9, 0.36);
  font-size: 28px;
}

.detail-content {
  background: var(--stone-50);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

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

.content-card h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 23px;
}

.content-card p {
  margin: 0 0 24px;
  color: var(--stone-600);
  font-size: 16px;
}

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

.info-table div {
  padding: 14px;
  border-radius: 14px;
  background: var(--stone-100);
}

.info-table span {
  display: block;
  color: var(--stone-500);
  font-size: 13px;
}

.info-table strong {
  display: block;
  margin-top: 4px;
  color: var(--stone-800);
}

.side-card a {
  display: block;
  padding: 12px 0;
  color: var(--amber-700);
  font-weight: 800;
  border-top: 1px solid var(--stone-200);
}

.site-footer {
  background: var(--stone-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 22px;
}

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

.footer-brand {
  color: var(--amber-100);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--amber-100);
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  text-align: center;
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

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

  .feature-grid,
  .feature-card,
  .detail-grid,
  .split-hero,
  .category-detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 60px;
  }

  .nav-inner {
    height: 60px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
  }

  .hero-content p,
  .page-hero p,
  .detail-intro p {
    margin-left: 0;
  }

  .hero-tags {
    justify-content: flex-start;
  }

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

  .search-panel button {
    width: 100%;
  }

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

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

  .category-detail-card,
  .detail-hero-content {
    grid-template-columns: 1fr;
  }

  .detail-hero-content {
    padding: 42px 0;
  }

  .detail-poster {
    width: min(240px, 80%);
  }

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

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .page-hero {
    padding: 62px 0;
  }
}
