:root {
  --bg: #fffaf1;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --soft: #fff7ed;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --gold: #f59e0b;
  --shadow: 0 22px 50px rgba(124, 45, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 48%, #fffaf1 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

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

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

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand-dark);
  background: #ffedd5;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(251, 146, 60, 0.10);
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 11px 14px;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.header-search button,
.mobile-search button {
  padding: 11px 18px;
  border: 0;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-size: 22px;
  cursor: pointer;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 0 0 34px 34px;
  isolation: isolate;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 110px max(32px, calc((100vw - 1180px) / 2)) 80px;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.65s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(251, 146, 60, 0.30), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.24) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.88));
}

.hero-content {
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 237, 213, 0.34);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.10);
  font-size: 14px;
  font-weight: 800;
}

.section-kicker {
  color: var(--brand-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.30);
}

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

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
  color: var(--brand-dark);
  background: #ffedd5;
}

.hero-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-panel-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(14px);
}

.hero-panel-info h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
}

.hero-panel-info span {
  color: #fed7aa;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  background: #ffffff;
}

.quick-search {
  width: min(980px, calc(100% - 32px));
  margin: -34px auto 56px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search input {
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  border-radius: 18px;
  background: #fff7ed;
  color: #111827;
  font-size: 17px;
}

.quick-search button {
  min-width: 150px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: var(--brand);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.section {
  padding: 64px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.info-panel,
.content-card,
.search-panel,
.pagination,
.breadcrumb {
  border: 1px solid rgba(251, 146, 60, 0.20);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(124, 45, 18, 0.10);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 62px rgba(124, 45, 18, 0.17);
}

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

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

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

.poster-badge,
.poster-play,
.rank-number {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(10px);
}

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

.movie-card h3,
.compact-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 900;
}

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

.movie-meta,
.movie-desc,
.compact-card p,
.content-card p,
.info-panel p {
  color: var(--muted);
  line-height: 1.72;
}

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

.movie-desc {
  min-height: 72px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  border-radius: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.18);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 62px rgba(124, 45, 18, 0.17);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 25px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.72;
}

.category-card span {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.10);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.compact-poster img {
  width: 104px;
  height: 138px;
  object-fit: cover;
}

.compact-card p {
  margin: 0 0 10px;
  font-size: 14px;
}

.compact-card span:not(.rank-number) {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.rank-number {
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, var(--brand));
  font-weight: 950;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 28px 0 34px;
  padding: 56px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(251, 146, 60, 0.32), transparent 30%),
    linear-gradient(135deg, #111827 0%, #7c2d12 100%);
  box-shadow: var(--shadow);
}

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 28px 0 22px;
  padding: 14px 18px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

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

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.34);
  transition: opacity 0.25s ease;
}

.player-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.78));
}

.player-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(2px) saturate(1.08);
}

.play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.40);
}

.video-player.is-active .player-poster {
  opacity: 0;
  pointer-events: none;
}

.player-meta {
  padding: 20px;
  color: #ffffff;
}

.player-meta h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 950;
}

.player-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-tabs button {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  font-weight: 900;
  cursor: pointer;
}

.source-tabs button.active,
.source-tabs button:hover {
  background: rgba(249, 115, 22, 0.86);
}

.info-panel {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 28px;
}

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

.info-body {
  padding: 20px;
}

.info-body dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-body div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
}

.info-body dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.info-body dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.content-card {
  margin-top: 26px;
  padding: 30px;
  border-radius: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  font-size: 16px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 42px 0 0;
  padding: 16px;
  border-radius: 24px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
  font-weight: 900;
}

.pagination a {
  color: var(--brand-dark);
  background: #ffedd5;
}

.pagination span {
  color: #ffffff;
  background: var(--brand);
}

.search-panel {
  margin: -10px 0 30px;
  padding: 20px;
  border-radius: 26px;
}

.search-form-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

.search-form-large input,
.search-form-large select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #111827;
  background: #fffaf1;
  outline: 0;
}

.search-form-large button {
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 950;
  cursor: pointer;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.empty-state {
  padding: 40px;
  border-radius: 26px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  font-weight: 900;
}

.site-footer {
  margin-top: 76px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 92px;
  }

  .hero-panel {
    display: none;
  }

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

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

  .info-panel {
    position: static;
  }
}

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

  .logo {
    font-size: 19px;
  }

  .hero {
    min-height: 660px;
    border-radius: 0 0 26px 26px;
  }

  .hero-slide {
    padding: 88px 18px 72px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-dots {
    left: 18px;
  }

  .quick-search,
  .search-form-large {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .category-grid,
  .compact-grid,
  .footer-inner,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .compact-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .compact-poster img {
    width: 90px;
    height: 122px;
  }

  .content-card {
    padding: 22px;
  }
}
