:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #f59e0b;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(146, 64, 14, 0.08);
  --shadow-md: 0 16px 38px rgba(146, 64, 14, 0.14);
  --shadow-xl: 0 26px 70px rgba(146, 64, 14, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffbeb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #b45309;
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.34);
  font-size: 13px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #b45309;
  background: var(--amber-100);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--amber-200);
  background: var(--white);
  border-radius: 999px;
  padding: 5px;
  box-shadow: var(--shadow-sm);
}

.top-search input {
  width: 145px;
  border: 0;
  outline: 0;
  padding: 8px 8px 8px 12px;
  background: transparent;
  color: var(--gray-800);
}

.top-search button,
.btn,
.search-panel button,
.play-mask,
.slider-arrow {
  border: 0;
  cursor: pointer;
}

.top-search button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.30);
  transition: 0.22s ease;
}

.top-search button {
  padding: 8px 14px;
}

.btn {
  padding: 13px 22px;
}

.btn:hover,
.top-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.38);
}

.btn.secondary {
  color: #b45309;
  background: #ffffff;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #b45309;
  border-radius: 8px;
}

.mobile-panel {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--amber-100);
  background: #ffffff;
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 800;
}

.mobile-link:hover,
.mobile-link.active {
  color: #b45309;
  background: var(--amber-100);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, #fde68a 0%, #fff7ed 34%, #ffffff 100%);
}

.hero-frame {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.62) 42%, rgba(217, 119, 6, 0.28) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 96px 20px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  font-size: clamp(34px, 6vw, 64px);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.tag-row span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
}

.hero-mini-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
  color: #ffffff;
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-mini-card small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #b45309;
  box-shadow: var(--shadow-md);
  font-size: 28px;
  transition: 0.2s ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: #ffffff;
}

.slider-arrow.prev {
  left: 20px;
  transform: translateY(-50%);
}

.slider-arrow.next {
  right: 20px;
  transform: translateY(-50%);
}

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

.slider-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.slider-dots button.active {
  width: 34px;
  background: #ffffff;
}

main {
  display: block;
}

.section,
.page-hero,
.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px;
}

.page-hero {
  padding-top: 70px;
  padding-bottom: 34px;
}

.page-hero h1,
.section-title h2,
.detail-title h1 {
  margin: 0;
  color: var(--gray-800);
  letter-spacing: -0.04em;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p,
.section-title p {
  max-width: 760px;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 17px;
}

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

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-link {
  color: #b45309;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: var(--shadow-md);
  transition: 0.24s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #38bdf8, #f59e0b);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #34d399, #f59e0b);
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.category-card strong {
  position: relative;
  z-index: 2;
  font-size: 22px;
}

.category-card span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: var(--shadow-sm);
  transition: 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-wrap em,
.detail-poster em {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red-500);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.movie-info {
  display: grid;
  gap: 9px;
  padding: 17px;
}

.movie-info strong {
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info small,
.rank-main small,
.detail-muted {
  color: var(--gray-500);
  line-height: 1.55;
}

.movie-desc {
  min-height: 44px;
  color: var(--gray-600);
  line-height: 1.58;
  font-size: 14px;
}

.tag-row span,
.meta-row span {
  padding: 5px 9px;
  color: #b45309;
  background: var(--amber-100);
}

.movie-card.compact {
  flex-direction: row;
  min-height: 132px;
}

.movie-card.compact .poster-wrap {
  width: 92px;
  min-width: 92px;
  aspect-ratio: auto;
}

.movie-card.compact .movie-info {
  padding: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--amber-200);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.search-panel input,
.filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 16px;
  background: var(--gray-50);
  padding: 14px 16px;
  color: var(--gray-800);
  font-size: 16px;
}

.search-panel button {
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #ffffff;
  font-weight: 900;
}

.filter-bar {
  margin: 0 0 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.56);
  box-shadow: var(--shadow-md);
}

.rank-num {
  color: #d97706;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank-main strong {
  overflow: hidden;
  color: var(--gray-800);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-action {
  padding: 8px 12px;
  border-radius: 999px;
  color: #b45309;
  background: var(--amber-100);
  font-weight: 900;
}

.detail-wrap {
  display: grid;
  gap: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: #b45309;
  font-weight: 800;
}

.player-card,
.detail-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.player-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.56) 100%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-mask span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.play-mask span::before {
  content: "";
  display: block;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
}

.player-shell.is-playing .play-mask {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fef3c7;
  box-shadow: var(--shadow-sm);
}

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

.detail-title h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
}

.detail-title p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 17px;
}

.detail-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.detail-block h2 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 23px;
}

.detail-block p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.9;
}

.no-results {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  color: var(--gray-600);
  text-align: center;
}

.no-results.show {
  display: block;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border-top: 1px solid rgba(245, 158, 11, 0.22);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 34px;
}

.footer-grid p {
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 18px;
}

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

.footer-links.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 700;
}

.footer-links a:hover {
  color: #b45309;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--gray-600);
  text-align: center;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-panel {
    display: none;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    height: 62px;
    padding: 0 14px;
  }

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

  .hero-frame,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 78px 18px 74px;
  }

  .slider-arrow {
    display: none;
  }

  .section,
  .page-hero,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    display: grid;
    align-items: start;
  }

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

  .movie-info {
    padding: 13px;
  }

  .movie-info strong {
    font-size: 16px;
  }

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

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

  .search-panel button {
    min-height: 46px;
  }

  .detail-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

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

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

  .hero-actions {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 42px 54px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }
}
