:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde68a;
  --card: #ffffff;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  color: #4b5563;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transition: right 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #b45309;
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 237, 0.8);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.search-page-form button,
.quick-search button {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #92400e;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  font-weight: 700;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 36px;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(251, 191, 36, 0.18), transparent 18rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(127, 29, 29, 0.82) 48%, rgba(17, 24, 39, 0.58) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.15);
  transform: scale(1.06);
}

.hero-content,
.hero-side {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #fbbf24;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 760px;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: #92400e;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.32);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-side {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  padding: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.hero-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.hero-side span {
  display: block;
  color: #fff;
  font-weight: 800;
  padding: 14px 6px 4px;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 36px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fbbf24;
}

.quick-panel {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

.quick-search,
.quick-cats,
.page-hero,
.detail-block,
.player-card,
.category-tile,
.ranking-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.quick-search {
  padding: 30px;
}

.quick-search h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.quick-search form,
.search-page-form,
.filter-bar {
  display: flex;
  gap: 10px;
}

.quick-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  flex: 1;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
  background: #fff;
}

.quick-cats {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 12px;
}

.quick-cats a {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
  border: 1px solid #fde68a;
}

.content-section {
  margin-top: 64px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.05em;
}

.section-more {
  color: #b45309;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(146, 64, 14, 0.18);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.rating {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--amber));
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-info p:first-child {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.card-desc {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.compact .card-desc,
.movie-card.compact .tag-row {
  display: none;
}

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

.page-hero {
  padding: clamp(32px, 5vw, 60px);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 20rem),
    linear-gradient(135deg, #fff, #fffbeb);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-tile a {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  align-items: center;
}

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

.tile-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.tile-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.tile-body p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.7;
}

.tile-body span {
  color: #b45309;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-weight: 700;
  flex-wrap: wrap;
}

.filter-bar {
  margin-top: 24px;
  max-width: 780px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 92px minmax(0, 1fr) 120px;
  gap: 18px;
  padding: 16px;
  align-items: center;
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--amber));
}

.rank-cover img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.rank-info p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.6;
}

.rank-score {
  text-align: center;
  color: #b45309;
}

.rank-score strong {
  display: block;
  font-size: 34px;
}

.rank-score span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

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

.detail-poster {
  position: sticky;
  top: 100px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #fde68a;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.poster-score {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #92400e;
  font-weight: 800;
}

.poster-score strong {
  font-size: 34px;
  color: #dc2626;
}

.detail-content {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 20rem),
    #ffffff;
  border: 1px solid #fde68a;
  box-shadow: var(--shadow);
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.lead {
  margin: 22px 0;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

.meta-list {
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-list div {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fde68a;
}

.meta-list dt {
  color: var(--muted);
  font-size: 13px;
}

.meta-list dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.player-card {
  margin-top: 34px;
  padding: 14px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.58), rgba(127, 29, 29, 0.54));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.34);
  font-size: 38px;
  padding-left: 5px;
}

.player-overlay strong {
  font-size: clamp(24px, 4vw, 44px);
  max-width: 80%;
  text-align: center;
}

.detail-block {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
}

.detail-block h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.detail-block p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

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

.search-results {
  display: grid;
  gap: 16px;
}

.search-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #fde68a;
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.1);
}

.search-card img {
  width: 94px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.search-card h2 {
  margin: 0 0 8px;
}

.search-card p {
  margin: 0 0 10px;
  color: #4b5563;
  line-height: 1.7;
}

.site-footer {
  margin-top: 80px;
  background: #111827;
  color: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: rgba(255, 255, 255, 0.48);
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr 260px;
    padding: 48px;
  }
}

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

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

  .hero {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 24px 90px;
  }

  .hero-side {
    display: none;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .quick-panel,
  .category-overview,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: relative;
    top: auto;
    max-width: 320px;
  }

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

  .category-tile a,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .rank-score {
    text-align: left;
  }

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

@media (max-width: 540px) {
  .container,
  .header-inner,
  .mobile-nav,
  .hero,
  .footer-inner,
  .copyright {
    width: min(100% - 20px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .quick-search form,
  .search-page-form,
  .filter-bar {
    flex-direction: column;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}
