* {
  box-sizing: border-box;
}

: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-900: #7c2d12;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(180, 83, 9, 0.18);
  --shadow: 0 18px 50px rgba(120, 53, 15, 0.16);
  --shadow-soft: 0 10px 28px rgba(120, 53, 15, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 48%, #fffbeb 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 243, 199, 0.96));
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.10);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-800), #ea580c, var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--amber-800);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--amber-900);
  background: rgba(253, 230, 138, 0.70);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.22);
}

.header-search {
  display: flex;
  width: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--amber-900);
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 0 16px;
  color: #fff;
  background: var(--amber-600);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(253, 230, 138, 0.70);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--amber-800);
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(124, 45, 18, 0.84) 48%, rgba(251, 146, 60, 0.44));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(253, 230, 138, 0.48);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.32);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: #fff7ed;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.07em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 22px 0 0;
  color: #fde68a;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.75;
}

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

.primary-btn,
.ghost-btn,
.section-action,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.pill-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 30px;
  background: rgba(255, 251, 235, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-poster img,
.movie-cover img,
.category-tile img,
.category-overview-card img,
.ranking-cover img,
.detail-poster img,
.hero-mini-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-info {
  padding: 24px;
}

.hero-info h2 {
  margin: 0 0 10px;
  color: #fff7ed;
  font-size: 26px;
}

.hero-info p {
  margin: 0 0 16px;
  color: #fde68a;
  line-height: 1.75;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 24px 24px;
}

.hero-mini-list a {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--amber-900);
}

.hero-mini-list span {
  position: absolute;
  inset: auto 8px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.narrow-wrap {
  width: min(900px, calc(100% - 32px));
}

.content-section {
  margin-bottom: 76px;
}

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

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

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-action,
.pill-link {
  color: var(--amber-800);
  background: var(--amber-100);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

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

.wide-cover {
  aspect-ratio: 16 / 11;
  min-height: 100%;
}

.movie-cover img {
  transition: transform 0.38s ease;
}

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

.cover-badge,
.play-chip {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.cover-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(120, 53, 15, 0.78);
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(217, 119, 6, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7c2d12;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ffedd5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 26px;
  background: var(--amber-900);
  box-shadow: var(--shadow-soft);
}

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(69, 26, 3, 0.86) 100%);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  transition: transform 0.36s ease;
}

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

.category-tile span,
.category-tile small,
.category-overview-card div {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-tile span {
  bottom: 58px;
  color: #fff7ed;
  font-size: 25px;
  font-weight: 900;
}

.category-tile small {
  bottom: 20px;
  color: #fde68a;
  line-height: 1.45;
}

.subpage-main {
  min-height: 70vh;
}

.page-hero {
  min-height: 320px;
  padding: 72px max(16px, calc((100vw - 1180px) / 2)) 64px;
  background:
    radial-gradient(circle at 82% 25%, rgba(251, 191, 36, 0.35), transparent 32%),
    linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.compact-hero p,
.category-hero p {
  max-width: 760px;
}

.filter-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  color: var(--amber-900);
  font-size: 15px;
  font-weight: 900;
}

.filter-panel input {
  width: 100%;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 16px;
  outline: 0;
  padding: 14px 16px;
  color: #111827;
  background: #fff;
}

.large-filter input {
  min-height: 56px;
  font-size: 18px;
}

.category-overview-card div {
  bottom: 22px;
  color: #fff;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0;
  color: #fde68a;
  line-height: 1.6;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px 116px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-700), #ea580c);
  font-size: 20px;
  font-weight: 900;
}

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

.ranking-title {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.ranking-body p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-main {
  background: linear-gradient(180deg, #451a03 0, #fffbeb 540px, #fffbeb 100%);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(253, 230, 138, 0.32);
  border-radius: 30px;
  background: var(--amber-900);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags span {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.52);
}

.detail-wrap {
  padding-top: 0;
}

.player-section,
.detail-article {
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.player-section {
  padding: 24px;
}

.player-section h2,
.detail-article h2 {
  margin: 0 0 18px;
  color: var(--amber-900);
  font-size: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #111;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.20), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.detail-article {
  padding: 28px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.site-footer {
  color: #fffbeb;
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

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

.footer-logo .brand-text {
  color: #fef3c7;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p,
.footer-column p,
.footer-column a,
.footer-bottom {
  color: #fde68a;
  line-height: 1.75;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #fff7ed;
  font-size: 18px;
}

.footer-column a:hover {
  color: #fff7ed;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  padding: 18px 16px 26px;
  text-align: center;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

  .hero-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(320px, 100%);
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

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

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

  .main-nav {
    display: none;
    width: 100%;
    margin: 0;
    padding: 8px 0 4px;
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    text-align: center;
  }

  .hero-section,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 52px 0;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 38px;
  }

  .hero-panel {
    border-radius: 24px;
  }

  .hero-mini-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .poster-grid,
  .featured-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .wide-cover {
    aspect-ratio: 16 / 10;
  }

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

  .movie-title {
    font-size: 14px;
  }

  .movie-desc {
    font-size: 13px;
  }

  .category-tile,
  .category-overview-card {
    min-height: 180px;
  }

  .ranking-item {
    grid-template-columns: 48px 82px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 15px;
  }

  .ranking-title {
    font-size: 17px;
  }

  .ranking-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

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

  .detail-hero-inner {
    padding: 42px 0;
  }

  .player-section,
  .detail-article {
    border-radius: 22px;
    padding: 18px;
  }

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

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

  .hero-actions {
    display: grid;
  }

  .primary-btn,
  .ghost-btn,
  .section-action,
  .pill-link {
    width: 100%;
  }
}
