
:root {
  --amber-950: #431407;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --yellow-500: #eab308;
  --yellow-300: #fde047;
  --cream: #fffbeb;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --shadow: 0 22px 55px rgba(67, 20, 7, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
  box-shadow: 0 10px 30px rgba(67, 20, 7, 0.28);
}

.nav-wrap {
  max-width: 1180px;
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--yellow-300), var(--yellow-500));
  box-shadow: 0 8px 24px rgba(253, 224, 71, 0.36);
}

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

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 251, 235, 0.86);
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(253, 224, 71, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-button,
.mobile-menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search-button:hover,
.mobile-menu-button:hover {
  background: rgba(253, 224, 71, 0.18);
}

.mobile-menu-button {
  display: none;
}

.header-search,
.mobile-nav {
  display: none;
  border-top: 1px solid rgba(253, 224, 71, 0.18);
}

.header-search.is-open,
.mobile-nav.is-open {
  display: block;
}

.header-search-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  gap: 10px;
}

.header-search-form input,
.page-search-form input,
.filter-bar input {
  width: 100%;
  border: 1px solid rgba(180, 83, 9, 0.22);
  outline: none;
  border-radius: 14px;
  padding: 12px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search-form button,
.page-search-form button,
.hero-search-form button,
.primary-button {
  border: 0;
  border-radius: 14px;
  padding: 12px 22px;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.26);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form button:hover,
.page-search-form button:hover,
.hero-search-form button:hover,
.primary-button:hover {
  background: var(--yellow-500);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.mobile-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 18px;
}

.mobile-nav a {
  display: block;
  margin: 4px 0;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--amber-950), var(--amber-800));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.04);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 2, 0.82), rgba(67, 20, 7, 0.58), rgba(67, 20, 7, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  color: var(--yellow-300);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.hero-meta,
.detail-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
}

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

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 12px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--yellow-300);
}

.quick-search-panel {
  max-width: 1040px;
  margin: -36px auto 0;
  padding: 20px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(180, 83, 9, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.hero-search-form input {
  flex: 1;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.quick-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.filter-chips button,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 999px;
  color: var(--amber-800);
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.quick-links a,
.filter-chips button {
  padding: 8px 13px;
}

.content-section,
.category-strip {
  padding: 72px 20px;
}

.white-section {
  background: #ffffff;
}

.gold-section,
.category-strip:nth-of-type(even) {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 48%, #fff7ed 100%);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 4px 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading span {
  color: var(--muted);
}

.section-link {
  color: var(--amber-700);
  font-weight: 800;
}

.movie-grid,
.poster-grid,
.category-grid,
.category-overview-grid,
.library-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #fffbeb);
  box-shadow: 0 10px 28px rgba(67, 20, 7, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover,
.poster-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fef3c7;
}

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

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

.duration-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3,
.rank-item h3,
.poster-info h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body p,
.rank-item p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta,
.rank-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span:first-child,
.rank-meta span:first-child {
  color: var(--amber-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-row span {
  padding: 5px 9px;
}

.large-tags span {
  padding: 7px 11px;
  background: rgba(255, 251, 235, 0.9);
}

.poster-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #fef3c7;
  box-shadow: 0 10px 28px rgba(67, 20, 7, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 62%);
}

.poster-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #ffffff;
}

.poster-info span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--yellow-300);
  font-weight: 900;
}

.poster-info h3 {
  color: #ffffff;
  font-size: 15px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  box-shadow: 0 10px 28px rgba(67, 20, 7, 0.08);
}

.category-tile {
  padding: 24px;
}

.category-tile span,
.category-overview-card h2 {
  color: var(--amber-900);
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-950), var(--amber-800));
}

.small-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 72px 20px;
}

.small-hero > div {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.search-hero {
  min-height: 390px;
}

.page-search-form {
  max-width: 650px;
  margin-top: 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-posters img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #fef3c7;
}

.filter-bar {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  gap: 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button:hover {
  color: #ffffff;
  background: var(--amber-700);
}

.rank-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(67, 20, 7, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(67, 20, 7, 0.12);
}

.rank-number {
  color: var(--amber-800);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 110px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.search-status {
  max-width: 1180px;
  margin: 0 auto 20px;
  color: var(--amber-900);
  font-size: 20px;
  font-weight: 900;
}

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

.library-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #fffbeb);
}

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

.library-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.library-block li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(146, 64, 14, 0.16);
  padding-bottom: 8px;
}

.library-block a {
  color: #111827;
  font-weight: 700;
}

.library-block a:hover {
  color: var(--amber-700);
}

.library-block span {
  color: var(--muted);
  white-space: nowrap;
}

.detail-hero {
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--yellow-300);
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 38px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: #fef3c7;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  max-width: 820px;
}

.detail-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.player-panel {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.28), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--yellow-300), var(--yellow-500));
  font-size: 36px;
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.45);
}

.player-title {
  padding: 22px 26px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-950), #111827);
}

.player-title h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.player-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.detail-text-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-text-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(67, 20, 7, 0.08);
}

.detail-text-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 24px;
}

.detail-text-grid p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  color: rgba(255, 251, 235, 0.88);
  background: linear-gradient(180deg, var(--amber-950), var(--amber-900));
}

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

.footer-brand {
  margin-bottom: 16px;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 251, 235, 0.72);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--yellow-300);
  font-size: 15px;
  letter-spacing: 0.08em;
}

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

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(253, 224, 71, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 251, 235, 0.64);
}

.hidden-card {
  display: none !important;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .three-grid,
  .four-grid,
  .poster-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-grid,
  .library-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding: 0 18px 70px;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-desc,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel {
    margin: -22px 14px 0;
  }

  .hero-search-form,
  .page-search-form,
  .header-search-form {
    flex-direction: column;
  }

  .content-section,
  .category-strip {
    padding: 48px 14px;
  }

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

  .three-grid,
  .four-grid,
  .poster-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px 78px 1fr;
    gap: 12px;
  }

  .rank-item img {
    width: 78px;
    height: 60px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-inner {
    padding: 26px 14px 52px;
  }

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

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

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