:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3e7d3;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fff3d6;
  --dark: #111827;
  --dark-2: #1f2937;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(243, 231, 211, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #ea580c);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

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

.main-nav > a,
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown:hover > button {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 10px;
  border-radius: 12px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-search {
  display: flex;
  align-items: center;
  width: 290px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
  background: transparent;
}

.header-search button,
.wide-search button,
.search-page-form button,
.page-filter button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.wide-search button:hover,
.search-page-form button:hover,
.page-filter button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-dark);
}

.mobile-panel {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffaf0;
  color: #4b5563;
}

.hero-carousel {
  position: relative;
  height: min(760px, 84vh);
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(217, 119, 6, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.95), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 58px;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p:not(.hero-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #ea580c);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.88);
  transform: translate(-50%, -50%);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.quick-search-band {
  position: relative;
  z-index: 5;
  margin-top: -36px;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-search-inner strong {
  display: block;
  font-size: 22px;
}

.quick-search-inner span {
  color: var(--muted);
}

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

.wide-search input,
.search-page-form input,
.search-page-form select,
.page-filter input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
  background: #ffffff;
}

.wide-search button,
.search-page-form button,
.page-filter button {
  padding: 0 22px;
}

.content-section {
  padding: 72px 0;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-more {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffffff;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 44%);
  opacity: 0.82;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: #dc2626;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

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

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  min-height: 44px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row span {
  background: #fff7ed;
  color: var(--brand-dark);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.35), transparent 34%),
    linear-gradient(135deg, #111827, #1f2937);
}

.page-hero {
  padding: 88px 0;
}

.small-hero {
  padding: 78px 0;
}

.page-hero h1,
.detail-info h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-strip {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.filter-strip .container {
  display: grid;
  gap: 14px;
  padding: 18px 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.filter-group strong {
  margin-right: 6px;
}

.filter-group button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  cursor: pointer;
}

.filter-group button.is-active,
.filter-group button:hover {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

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

.category-tile a {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

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

.category-mosaic img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  background: #1f2937;
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-tile p {
  color: var(--muted);
}

.category-tile span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-hero {
  min-height: 520px;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-position: center;
  background-size: cover;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.04);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.36)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.98), transparent 50%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 44px;
  padding: 48px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags a {
  color: #ffffff;
}

.detail-info .btn {
  margin-top: 28px;
}

.player-section {
  padding: 42px 0;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.18), rgba(0, 0, 0, 0.36));
  cursor: pointer;
}

.player-start.is-hidden {
  display: none;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 20px 46px rgba(217, 119, 6, 0.36);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-main-card,
.detail-side-card,
.prose-card,
.support-grid article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.detail-main-card,
.detail-side-card,
.prose-card {
  padding: 28px;
}

.detail-main-card h2,
.detail-side-card h2,
.prose-card h2,
.support-grid h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-main-card p,
.prose-card p,
.support-grid p {
  color: #374151;
  font-size: 17px;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--muted);
}

.detail-side-card dd {
  margin: 0;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.prev-next a {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--brand-dark);
}

.search-status {
  margin-bottom: 18px;
  color: var(--muted);
}

.empty-result {
  padding: 30px;
  border-radius: 22px;
  background: #fff7ed;
  color: var(--brand-dark);
  text-align: center;
}

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

.support-grid article {
  padding: 24px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

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

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

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

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

  .main-nav {
    display: none;
  }

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

  .site-logo {
    font-size: 19px;
  }

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

  .hero-slide {
    position: absolute;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 70px 0 110px;
  }

  .hero-poster {
    width: min(250px, 72vw);
    justify-self: center;
  }

  .quick-search-inner,
  .detail-hero-inner,
  .category-tile a {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .detail-poster {
    width: min(230px, 72vw);
  }

  .footer-bottom .container {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

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

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

  .movie-line {
    -webkit-line-clamp: 3;
  }
}
