:root {
  --bg: #fffaf2;
  --paper: #ffffff;
  --paper-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1e7d6;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fffbeb;
  --black: #0f172a;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 42%, #fffaf2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc,
.detail-one-line,
.page-hero p {
  width: min(680px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  margin: 20px 0 0;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.tag-list span,
.detail-meta span {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.btn-ghost {
  margin-left: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn-light {
  color: var(--brand-dark);
  background: #fffbeb;
  border-color: #fde68a;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.home-search-section {
  margin-top: -46px;
  position: relative;
  z-index: 10;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.16);
  backdrop-filter: blur(20px);
}

.search-band h2,
.section-heading h2,
.category-overview-body h2,
.detail-article h2,
.detail-sidebar h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-band h2,
.section-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.quick-search,
.filter-panel {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #f3d7a7;
  border-radius: 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.section-soft {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.inline-heading {
  margin-bottom: 20px;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fbbf24;
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.13);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

.movie-poster img,
.compact-cover img,
.detail-poster img,
.category-tile img,
.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

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

.movie-card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body h3 a:hover,
.compact-info h3 a:hover,
.category-overview-body h2 a:hover,
.detail-sidebar a:hover {
  color: var(--brand);
}

.movie-meta,
.movie-one-line,
.footer-description,
.category-overview-body p,
.compact-info p,
.detail-sidebar dd,
.filter-count {
  color: var(--muted);
}

.movie-meta {
  margin: 8px 0;
  font-size: 13px;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-list {
  margin-top: 12px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.compact-cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

.compact-info {
  min-width: 0;
}

.compact-info h3 {
  margin: 2px 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 900;
}

.compact-info p {
  margin: 0;
  font-size: 13px;
}

.rank-index {
  color: var(--brand);
  font-weight: 950;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.compact-hero {
  padding: 92px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 28%),
    linear-gradient(135deg, #111827 0%, #7c2d12 100%);
}

.category-hero {
  padding: 92px 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 230px;
  background: #111827;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  font-size: 28px;
}

.filter-panel {
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.filter-search {
  flex: 2 !important;
}

.filter-count {
  min-width: 120px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.movie-card.is-hidden,
.compact-card.is-hidden {
  display: none;
}

.detail-hero {
  padding: 72px 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.22);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, #1f2937, #92400e);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

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

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

.player-section {
  padding-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.34), transparent 28%),
    rgba(0, 0, 0, 0.36);
  cursor: pointer;
  text-align: center;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.3);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay em,
.player-status {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 34px;
}

.detail-article,
.detail-sidebar {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 12px 0 0;
  color: #374151;
  font-size: 17px;
}

.detail-sidebar dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.detail-sidebar dt {
  color: #111827;
  font-weight: 900;
}

.detail-sidebar dd {
  margin: -8px 0 6px;
}

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

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

.site-footer {
  padding: 56px 0 26px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
}

.footer-description {
  margin: 16px 0 0;
  max-width: 440px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  padding-top: 26px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

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

  .movie-grid-small,
  .top-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .detail-grid,
  .footer-grid,
  .search-band,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-carousel {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding: 90px 0 80px;
  }

  .hero-control {
    display: none;
  }

  .quick-search,
  .filter-panel {
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-small,
  .category-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(260px, 80vw);
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .movie-grid,
  .movie-grid-small,
  .category-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 88px 1fr;
  }

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

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

  .btn-ghost {
    margin: 12px 0 0;
  }
}
