:root {
  --bg-start: #fff7ed;
  --bg-mid: #fffbeb;
  --bg-end: #fff7ed;
  --text: #251407;
  --muted: #7c5a35;
  --soft: #fdecc8;
  --line: rgba(180, 83, 9, 0.18);
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-hot: #ea580c;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --shadow-soft: 0 10px 25px rgba(120, 53, 15, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg-start), var(--bg-mid) 48%, var(--bg-end));
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(120, 53, 15, 0.08);
}

.header-inner,
.section,
.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 25px rgba(234, 88, 12, 0.28);
}

.logo-title {
  display: block;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  display: block;
  margin-top: 1px;
  color: #b45309;
  font-size: 12px;
}

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

.main-nav a,
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #7c2d12;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  background: #ffedd5;
  color: #9a3412;
}

.search-mini {
  position: relative;
  width: min(280px, 28vw);
}

.search-mini input,
.hero-search input,
.filter-input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.28);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #431407;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.search-mini input {
  height: 40px;
  padding: 0 18px;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  color: #9a3412;
  width: 44px;
  height: 44px;
  font-size: 23px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.hero {
  position: relative;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, #92400e, #ea580c 52%, #f59e0b);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 25%, rgba(253, 186, 116, 0.35), transparent 32%),
    linear-gradient(120deg, rgba(69, 26, 3, 0.72), rgba(124, 45, 18, 0.34));
  z-index: 2;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 46px;
  padding: 72px 0 64px;
}

.hero-label,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 237, 213, 0.45);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.16);
  backdrop-filter: blur(12px);
  color: #ffedd5;
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 850px;
}

.hero h1 span {
  color: #fde68a;
}

.hero-copy {
  max-width: 690px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn-primary {
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #fde68a);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.22);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.20);
}

.hero-search {
  position: relative;
  max-width: 600px;
}

.hero-search input {
  height: 56px;
  padding: 0 148px 0 22px;
  font-size: 16px;
}

.hero-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #ea580c);
  cursor: pointer;
}

.hero-focus {
  display: grid;
  gap: 16px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 237, 213, 0.25);
  box-shadow: 0 26px 65px rgba(67, 20, 7, 0.35);
  backdrop-filter: blur(18px);
}

.focus-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0.72;
}

.focus-card-info {
  position: absolute;
  inset: auto 0 0;
  padding: 80px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
}

.focus-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.focus-card p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.65;
}

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

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

.hero-dot.is-active {
  background: #fde68a;
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding-top: 34px;
}

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

.section-title {
  margin: 0;
  color: #1f1308;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(251, 191, 36, 0.24);
  transition: 0.22s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 25% 25%, rgba(253, 186, 116, 0.76), transparent 42%),
    linear-gradient(135deg, #92400e, #f59e0b);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.62);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.card-title {
  margin: 0;
  color: #231307;
  font-size: 18px;
  line-height: 1.35;
}

.card-line {
  margin: 0;
  color: #76502c;
  line-height: 1.58;
  font-size: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

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

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

.tag {
  color: #9a3412;
  border: 1px solid rgba(217, 119, 6, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
}

.feature-big .movie-link {
  min-height: 100%;
}

.feature-big .poster {
  aspect-ratio: 16 / 9;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(251, 191, 36, 0.24);
  transition: 0.2s ease;
}

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

.horizontal-card .poster {
  aspect-ratio: auto;
  min-height: 128px;
}

.horizontal-card .card-body {
  padding: 14px;
}

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.22);
  transition: 0.22s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #fb923c, #9a3412);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card strong {
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.65;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.rank-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-title {
  display: block;
  color: #2b1609;
  font-weight: 900;
}

.rank-meta {
  display: block;
  margin-top: 4px;
  color: #8a5b32;
  font-size: 13px;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 237, 213, 0.22), transparent 32%),
    linear-gradient(120deg, #78350f, #ea580c 54%, #f59e0b);
  padding: 58px 0;
}

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

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.045em;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: var(--shadow-soft);
}

.filter-input {
  max-width: 450px;
  height: 44px;
  padding: 0 16px;
}

.result-count {
  color: #92400e;
  font-weight: 900;
}

.detail-hero {
  padding: 34px 0 64px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 237, 213, 0.25), transparent 34%),
    linear-gradient(135deg, #431407, #9a3412 58%, #ea580c);
  color: #fff;
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 24px;
  color: #fed7aa;
  font-size: 14px;
}

.breadcrumb a {
  color: #ffedd5;
  font-weight: 800;
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 32px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 28% 24%, rgba(251, 191, 36, 0.18), transparent 36%),
    #020617;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: 0.2s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #fde68a);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 36px;
  transform: translateX(3px);
}

.player-caption {
  padding: 18px 20px;
  color: #fed7aa;
  background: rgba(17, 24, 39, 0.88);
}

.detail-info-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  color: #2a1608;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-info-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.detail-info-card h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.content-block {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
}

.article-card,
.sidebar-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: var(--shadow-soft);
}

.article-card {
  padding: 30px;
}

.article-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: #2a1608;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 22px;
  color: #593b20;
  line-height: 1.9;
  font-size: 17px;
}

.sidebar-card {
  padding: 20px;
  height: max-content;
}

.mini-related {
  display: grid;
  gap: 12px;
}

.mini-related a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.20);
}

.mini-related strong {
  color: #2a1608;
}

.mini-related span {
  color: #7c5a35;
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.pagination a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #8a3b0c;
  font-weight: 900;
  background: #ffedd5;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #431407);
  margin-top: 46px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.6fr));
  gap: 28px;
  padding: 44px 0;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 14px;
  color: #fff7ed;
}

.footer-inner p,
.footer-inner a {
  color: #fed7aa;
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(254, 215, 170, 0.14);
  padding: 18px 0;
  text-align: center;
  color: #fed7aa;
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 14px 28px rgba(154, 52, 18, 0.22);
  cursor: pointer;
  display: none;
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

img.image-missing {
  opacity: 0;
}

@media (max-width: 1050px) {
  .main-nav,
  .search-mini {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-focus {
    max-width: 680px;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section,
  .footer-inner,
  .page-hero-inner,
  .breadcrumb,
  .detail-layout,
  .content-block {
    width: min(100% - 24px, 1240px);
  }

  .logo-subtitle {
    display: none;
  }

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

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

  .hero-search input {
    height: 54px;
    padding-right: 112px;
  }

  .hero-search button {
    padding: 0 15px;
  }

  .grid,
  .grid.large,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .detail-info-card h1 {
    font-size: 26px;
  }
}
