: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-600: #ea580c;
  --orange-700: #c2410c;
  --orange-900: #7c2d12;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #fffaf0;
  --card: #ffffff;
  --ring: rgba(245, 158, 11, 0.35);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

* {
  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(180deg, #fff7ed 0%, #fffbeb 44%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--amber-50);
  background: linear-gradient(90deg, var(--amber-800), var(--orange-700), var(--amber-900));
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--amber-900);
  background: var(--amber-100);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--amber-200);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 700;
  color: var(--amber-50);
  opacity: 0.92;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-200);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.search-page-form input {
  outline: none;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.42);
  color: var(--amber-50);
  padding: 11px 16px;
  min-width: 240px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--amber-200);
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.search-page-form input:focus {
  border-color: var(--amber-300);
  box-shadow: 0 0 0 4px var(--ring);
}

.header-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--amber-600);
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  background: var(--amber-700);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

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

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

.mobile-nav a {
  color: var(--amber-50);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 640px;
  min-height: 72vh;
  overflow: hidden;
  background: var(--amber-900);
}

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

.hero-slide {
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-layer {
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.42) 0%, rgba(124, 45, 18, 0.28) 42%, rgba(255, 251, 235, 0.92) 100%), radial-gradient(circle at center, rgba(245, 158, 11, 0.2), rgba(120, 53, 15, 0.5));
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 32px));
  color: var(--amber-50);
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.26), rgba(120, 53, 15, 0.1));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-200);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  width: min(680px, 100%);
  margin: 22px auto 0;
  color: var(--amber-100);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.65;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 30px;
}

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

.primary-btn {
  color: white;
  background: var(--amber-600);
  padding: 14px 26px;
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.35);
}

.secondary-btn {
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 26px;
  margin-left: 12px;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.section-link:hover,
.filter-bar a:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: var(--amber-300);
}

.search-panel {
  position: relative;
  z-index: 5;
  width: min(860px, calc(100% - 32px));
  margin: -44px auto 48px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.big-search,
.search-page-form {
  display: flex;
  gap: 12px;
}

.big-search input,
.search-page-form input,
.filter-bar input {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  background: white;
}

.big-search input::placeholder,
.search-page-form input::placeholder,
.filter-bar input::placeholder {
  color: #a16207;
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

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

.section-link,
.filter-bar a {
  color: var(--amber-900);
  background: var(--amber-100);
  padding: 10px 16px;
  white-space: nowrap;
}

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

.category-tile,
.category-panel {
  border-radius: 24px;
  background: linear-gradient(135deg, white, var(--amber-100));
  padding: 24px;
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.18);
}

.category-tile strong,
.category-panel-head span {
  display: block;
  color: var(--amber-900);
  font-size: 22px;
  margin-bottom: 10px;
}

.category-tile span,
.category-panel p {
  color: var(--muted);
  line-height: 1.65;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.06);
  filter: brightness(0.78);
}

.play-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: white;
  background: rgba(217, 119, 6, 0.92);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--amber-900);
  background: var(--amber-200);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  color: var(--amber-950, #451a03);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  min-height: 46px;
}

.card-title:hover {
  color: var(--amber-700);
}

.card-meta {
  color: #a16207;
  font-size: 13px;
  margin: 8px 0;
}

.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  min-height: 64px;
  margin: 0 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  color: var(--amber-800);
  background: var(--amber-100);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.wide-band {
  background: linear-gradient(90deg, var(--amber-100), #ffedd5, var(--amber-100));
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.compact-card .poster {
  aspect-ratio: 2 / 3;
}

.compact-card .card-title {
  min-height: 0;
}

.compact-card .card-desc {
  min-height: 0;
}

.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--amber-50);
  padding: 72px 16px;
  background: linear-gradient(120deg, var(--amber-800), var(--orange-600), var(--amber-900));
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0 10%, transparent 11% 100%);
  background-size: 80px 80px;
  transform: rotate(12deg);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.page-hero p:last-child {
  margin: 18px auto 0;
  color: var(--amber-100);
  font-size: 18px;
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-panel-head strong {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 16px;
  background: var(--amber-600);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  color: var(--amber-800);
  background: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.detail-top {
  position: relative;
  min-height: 620px;
  color: var(--amber-50);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.68), rgba(255, 251, 235, 0.5));
  backdrop-filter: blur(3px);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.32);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-200);
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  color: var(--amber-100);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
  margin: 22px 0;
}

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

.detail-meta span {
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
}

.big-tags {
  margin-top: 18px;
}

.player-section {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 2;
}

.player-box.is-playing .player-cover {
  display: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  box-shadow: 0 18px 55px rgba(217, 119, 6, 0.42);
  font-size: 34px;
  padding-left: 5px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 42px 0 10px;
}

.content-card {
  background: white;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.search-workspace {
  padding: 46px 0;
}

.search-status {
  color: var(--amber-900);
  font-weight: 900;
  margin: 22px 0;
}

.site-footer {
  margin-top: 60px;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-900), #451a03);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-50);
  font-size: 22px;
  margin-bottom: 14px;
}

.site-footer h3 {
  color: var(--amber-50);
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  color: var(--amber-200);
  line-height: 1.75;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 22px 0;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  text-align: center;
  color: var(--amber-300);
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 24px;
  }

  .secondary-btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .big-search,
  .search-page-form,
  .filter-bar {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .category-panel-grid,
  .rank-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 560px) {
  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    height: 590px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .section-head {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .category-panel-grid,
  .rank-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .player-section {
    margin-top: -34px;
  }
}
