:root {
  color-scheme: light;
  --amber-50: #fff8ed;
  --amber-100: #ffedcc;
  --amber-200: #ffd899;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-400: #facc15;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.15);
  --shadow-strong: 0 30px 80px rgba(124, 45, 18, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1e0 45%, #fef9c3 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #d97706 0%, #f97316 52%, #eab308 100%);
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.22);
}

.nav-shell {
  width: min(100%, var(--container));
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 25px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.2);
}

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

.nav-menu a,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.96);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 0;
}

.nav-menu a:hover,
.nav-dropdown > button:hover {
  color: #fff7ed;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--orange-600);
  background: var(--amber-50);
}

.nav-search {
  position: relative;
  width: 270px;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 84px 10px 16px;
  color: var(--gray-900);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.nav-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  padding: 0 15px;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.32), transparent 24%), linear-gradient(120deg, #d97706 0%, #fb923c 48%, #eab308 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 247, 237, 0.45) 100%);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  width: min(100% - 32px, var(--container));
  min-height: 560px;
  margin: 0 auto;
  padding: 62px 0 86px;
  z-index: 1;
}

.hero-slide {
  display: none;
  min-height: 420px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(146, 64, 14, 0.72), rgba(249, 115, 22, 0.35)), var(--slide-poster);
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(3px);
  transform: scale(1.04);
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  font-weight: 700;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #fff7ed;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.88);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--orange-600);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.22);
}

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

.hero-media {
  display: block;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(124, 45, 18, 0.2));
  box-shadow: var(--shadow-strong);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 22px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--white);
}

.lift-panel {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

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

.section-header h1,
.section-header h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-header p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

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

.grid-cards.grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 52px rgba(146, 64, 14, 0.2);
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fb923c 55%, #7c2d12);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.poster-wrap img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img,
.compact-card:hover img {
  transform: scale(1.07);
}

.image-missing {
  opacity: 0;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 999px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.22);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  color: var(--orange-600);
  background: var(--white);
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span,
.meta-pill {
  color: var(--gray-700);
  background: var(--gray-100);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
}

.content-band {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.92));
  box-shadow: 0 10px 36px rgba(146, 64, 14, 0.08);
}

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

.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 20px;
  color: var(--gray-900);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.09);
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
  color: var(--orange-600);
  transform: translateY(-4px);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
}

.rank-row h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.rank-row p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.filter-panel input {
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: 0;
  padding: 14px 16px;
  border-radius: 999px;
}

.filter-panel input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 0;
  padding: 10px 13px;
  color: var(--gray-700);
  background: var(--amber-50);
  border-radius: 999px;
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: var(--white);
  background: var(--orange-500);
}

.detail-hero {
  background: linear-gradient(120deg, #d97706, #f97316 50%, #eab308);
  color: var(--white);
  padding: 46px 0;
}

.detail-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: center;
}

.detail-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-hero p {
  margin: 18px 0 0;
  max-width: 760px;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.75;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.player-panel {
  position: relative;
  overflow: hidden;
  margin: 34px auto 0;
  width: min(100% - 32px, var(--container));
  background: #0f172a;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.player-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  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: radial-gradient(circle, rgba(249, 115, 22, 0.38), rgba(15, 23, 42, 0.76));
  cursor: pointer;
}

.player-start strong {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-600);
  background: var(--white);
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.player-start span {
  font-size: 20px;
  font-weight: 800;
}

.player-panel.is-playing .player-start {
  display: none;
}

.article-panel {
  margin-top: 32px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.article-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 20px;
  color: var(--gray-700);
  line-height: 1.9;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.compact-poster {
  height: 96px;
  border-radius: 14px;
}

.compact-poster img {
  height: 96px;
  object-fit: cover;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info strong {
  margin-bottom: 8px;
  line-height: 1.35;
}

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

.site-footer {
  margin-top: 72px;
  color: var(--white);
  background: linear-gradient(90deg, #92400e, #c2410c 52%, #a16207);
}

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-size: 22px;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #ffedd5;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 237, 213, 0.2);
  padding: 18px 16px;
  color: #ffedd5;
  text-align: center;
}

.empty-result {
  display: none;
  padding: 38px;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  border-radius: 20px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .grid-cards,
  .grid-cards.grid-six,
  .category-cloud,
  .related-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-media,
  .hero-media img {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .brand {
    font-size: 22px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 10px 0 8px;
  }

  .nav-open .nav-menu {
    display: flex;
  }

  .nav-open .nav-search {
    display: block;
    width: 100%;
    order: 3;
    margin-bottom: 8px;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    box-shadow: none;
    margin-top: 8px;
  }

  .hero-carousel {
    min-height: auto;
    padding: 36px 0 72px;
  }

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

  .hero p {
    font-size: 17px;
  }

  .lift-panel,
  .content-band,
  .article-panel {
    padding: 22px;
  }

  .grid-cards,
  .grid-cards.grid-six,
  .category-cloud,
  .related-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .section-header,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-row .btn {
    grid-column: 1 / -1;
  }

  .detail-poster img {
    height: 360px;
  }
}
