:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --ink: #2f1602;
  --muted: #8a5a16;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --soft-shadow: 0 8px 24px rgba(146, 64, 14, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--orange-50) 48%, var(--amber-100) 100%);
  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;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.94));
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
  font-size: 15px;
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-600);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input {
  width: 220px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.20);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  margin: 8px 0 14px;
}

.mobile-search input {
  width: 100%;
}

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

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms 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 {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(245, 158, 11, 0.36), transparent 30%),
    linear-gradient(90deg, rgba(36, 13, 2, 0.92), rgba(36, 13, 2, 0.58) 48%, rgba(36, 13, 2, 0.18)),
    linear-gradient(0deg, rgba(36, 13, 2, 0.92), transparent 42%);
}

.hero-content {
  position: absolute;
  left: max(34px, calc((100vw - 1180px) / 2));
  bottom: 86px;
  width: min(740px, calc(100% - 68px));
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--white);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.24);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.3vw, 23px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

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

.hero-tags {
  margin: 22px 0 28px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff8e1;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.secondary-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

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

.primary-btn:hover,
.secondary-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.40);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.62);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

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

.content-section {
  padding: 58px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading span {
  color: var(--amber-600);
  font-weight: 900;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 8px 0 0;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 12px 0 0;
  max-width: 780px;
  color: var(--muted);
}

.category-grid,
.movie-grid,
.overview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.category-tile,
.category-overview,
.movie-card,
.detail-card,
.side-card,
.rank-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.category-tile,
.category-overview {
  position: relative;
  min-height: 250px;
  color: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-overview img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile::after,
.category-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(40, 16, 2, 0.88), rgba(40, 16, 2, 0.16));
}

.category-tile:hover img,
.category-overview:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-overview span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(245, 158, 11, 0.92);
  font-weight: 900;
}

.category-tile strong,
.category-overview h2 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.12;
}

.category-tile p,
.category-overview p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

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

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

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 44px;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-body {
  padding: 17px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  background: var(--amber-100);
  padding: 4px 9px;
}

.card-title {
  display: -webkit-box;
  margin: 10px 0 8px;
  color: var(--amber-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.rank-title:hover {
  color: var(--amber-600);
}

.card-body p,
.rank-item p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  font-size: 12px;
  padding: 4px 8px;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.horizontal-card .card-image {
  aspect-ratio: auto;
  min-height: 190px;
}

.warm-section {
  width: min(1220px, calc(100% - 32px));
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.85));
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  border-radius: 16px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--amber-100);
}

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

.rank-title {
  color: var(--amber-900);
  font-weight: 950;
}

.more-link {
  margin-top: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.page-main {
  padding-top: 34px;
  padding-bottom: 46px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 52px;
  color: var(--amber-900);
  background:
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.25), transparent 34%),
    linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.96));
  box-shadow: var(--soft-shadow);
}

.small-hero .eyebrow {
  color: var(--white);
}

.hero-search {
  max-width: 680px;
  margin-top: 24px;
}

.hero-search input {
  width: 100%;
  padding: 14px 20px;
}

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

.category-overview {
  min-height: 290px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--white);
  padding: 9px 14px;
  font-weight: 850;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  transform: translateY(-1px);
}

.search-summary {
  margin-bottom: 22px;
  color: var(--amber-800);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--amber-700);
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-panel {
  padding: 0;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 24px 60px rgba(20, 8, 2, 0.28);
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.video-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.34);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.video-overlay:hover span {
  transform: scale(1.06);
}

.video-overlay.is-hidden {
  display: none;
}

.video-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  padding: 8px 14px;
  font-weight: 800;
}

.video-message.is-visible {
  display: block;
}

.detail-card,
.side-card {
  padding: 26px;
}

.detail-card h1 {
  margin-bottom: 10px;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--amber-700);
  font-size: 18px;
  font-weight: 750;
}

.detail-meta,
.detail-tags {
  margin: 16px 0;
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 10px;
  color: var(--amber-900);
  font-size: 24px;
}

.detail-card p {
  color: #683b0a;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--amber-100);
}

.detail-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card dt {
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 0;
  color: var(--amber-900);
  font-weight: 800;
}

.related-section {
  padding-top: 40px;
}

.site-footer {
  margin-top: 34px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.92), var(--orange-100));
  border-top: 1px solid rgba(251, 191, 36, 0.30);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand p,
.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--amber-700);
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--amber-600);
  border-top: 1px solid rgba(217, 119, 6, 0.16);
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 78px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .page-main {
    width: min(100% - 24px, 1180px);
  }

  .content-section {
    padding: 38px 0;
  }

  .category-grid,
  .movie-grid,
  .catalog-grid,
  .overview-grid,
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .horizontal-card .card-image {
    aspect-ratio: 3 / 4;
  }

  .page-hero {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .hero-search {
    display: grid;
  }

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

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

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

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

  .hero-tags {
    display: none;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .video-overlay span {
    width: 68px;
    height: 68px;
  }
}
