:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-500: #f59e0b;
  --orange-600: #ea580c;
  --rose-900: #881337;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --line: rgba(251, 191, 36, 0.28);
  --shadow: 0 18px 55px rgba(120, 53, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 48%, #881337 100%);
  box-shadow: 0 10px 25px rgba(67, 20, 7, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff7ed;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 24px rgba(251, 146, 60, 0.34);
  color: #ffffff;
}

.brand-text {
  font-size: 24px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #ffedd5;
  font-weight: 650;
}

.nav-links a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 237, 213, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffedd5;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px 18px;
  background: linear-gradient(90deg, #92400e, #9a3412, #9f1239);
}

.mobile-nav a {
  color: #ffedd5;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(120, 53, 15, 0.42);
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 80px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 35px rgba(234, 88, 12, 0.34);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: #9a3412;
  background: #ffffff;
  border: 1px solid #fed7aa;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #f59e0b;
}

.hero-search {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: min(380px, 32vw);
  padding: 22px;
  color: #fff7ed;
  border: 1px solid rgba(255, 237, 213, 0.24);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(15px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.hero-search h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.hero-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  color: #111827;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-chip-row a,
.tag-list a,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.section-block.alt {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.8), rgba(255, 237, 213, 0.8));
}

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

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  background: linear-gradient(90deg, #92400e, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.page-hero p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.7;
}

.section-heading a {
  color: #c2410c;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #9a3412);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.category-card:hover img,
.mini-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.38);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.64);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #c2410c;
}

.card-body p {
  margin: 0 0 15px;
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.card-meta span {
  color: #c2410c;
  background: #ffedd5;
  padding: 5px 9px;
  border-radius: 8px;
  font-weight: 800;
}

.card-meta em {
  color: var(--muted);
  font-style: normal;
}

.scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 22px;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #fdba74;
}

.feature-card {
  position: relative;
  flex: 0 0 300px;
  height: 220px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  background: #111827;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.feature-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 18px 18px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: #fcd34d;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 20px;
  color: #92400e;
}

.category-card span {
  display: block;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-card em {
  margin-top: auto;
  color: #c2410c;
  font-style: normal;
  font-weight: 800;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 142px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-num {
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-card img {
  width: 142px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-meta {
  padding-right: 20px;
  color: #92400e;
  font-weight: 800;
  white-space: nowrap;
}

.page-hero {
  padding: 56px 0 26px;
}

.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #c2410c;
  font-weight: 700;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 28px 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
}

.filter-search input {
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-width: 130px;
  padding: 0 12px;
}

.empty-state {
  display: none;
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding: 30px 0 70px;
}

.player-card {
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.36));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
  cursor: pointer;
  font-size: 34px;
}

.player-overlay strong {
  font-size: 22px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #f3e8d7;
}

.detail-meta span {
  color: #92400e;
  background: #ffedd5;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #7c2d12;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  line-height: 1.88;
}

.review-box {
  padding: 20px;
  border-left: 5px solid #f59e0b;
  border-radius: 14px;
  background: #fffbeb;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.side-card {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

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

.related-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #fffbeb;
}

.related-card img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

.related-card strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.45;
}

.related-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.mini-card {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini-card span,
.mini-card small {
  display: block;
  padding: 0 12px;
}

.mini-card span {
  margin-top: 10px;
  font-weight: 800;
  line-height: 1.45;
}

.mini-card small {
  color: var(--muted);
  padding-bottom: 12px;
}

.site-footer {
  margin-top: 70px;
  color: #ffedd5;
  background: linear-gradient(90deg, #78350f 0%, #7c2d12 48%, #881337 100%);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-shell h2,
.footer-shell h3 {
  margin: 0 0 14px;
  color: #fde68a;
}

.footer-shell p,
.footer-shell a {
  display: block;
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.8;
}

.footer-shell a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
  color: rgba(255, 237, 213, 0.74);
}

@media (max-width: 1060px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .side-card {
    position: static;
  }

  .hero-search {
    display: none;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

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

  .hero {
    min-height: 520px;
    height: 66vh;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-control {
    display: none;
  }

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

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

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

  .filter-selects {
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: 56px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card img {
    width: 96px;
    height: 74px;
  }

  .rank-meta {
    display: none;
  }

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

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

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

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

  .hero h1 {
    font-size: 34px;
  }

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

  .btn-primary,
  .btn-secondary,
  .btn-light {
    width: 100%;
  }
}
