:root {
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --orange: #ea580c;
  --brown: #78350f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3e8d2;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffaf1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.32);
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #f5d49a;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brown);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 20px;
  background: #fff;
  border-top: 1px solid #f7dfb7;
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 12%, #fbbf24 0, transparent 34%), linear-gradient(135deg, #78350f 0%, #111827 58%, #431407 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 54px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 22px 140px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  filter: blur(4px) saturate(1.2);
}

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

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.55), rgba(17, 24, 39, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-text,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.watch-meta,
.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.watch-meta span,
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.34);
}

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

.primary-btn,
.ghost-btn,
.outline-btn,
.search-form button {
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

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

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.primary-btn:hover,
.ghost-btn:hover,
.outline-btn:hover,
.search-form button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 32px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 5;
  width: min(1180px, calc(100% - 44px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(280px, 560px);
  gap: 22px;
  align-items: center;
}

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

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.hero-dot.active {
  width: 42px;
  background: var(--amber);
  border-color: var(--amber);
}

.hero-search,
.page-hero-panel {
  position: relative;
}

.search-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid #f3d49b;
  padding: 0 18px;
  color: #374151;
  background: #fff;
  outline: none;
}

.search-form input {
  border: 0;
  background: transparent;
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(560px, 92vw);
  display: none;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #f7d8a5;
  z-index: 20;
}

.search-results.is-open {
  display: grid;
  gap: 10px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #fff7ed;
}

.search-result-item img {
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  color: #111827;
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 22px;
}

.soft-bg {
  max-width: none;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.soft-bg > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 32px;
  text-align: center;
}

.section-head h2,
.overview-title,
.article-card h2,
.watch-panel h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.split-head p:not(.eyebrow) {
  margin-left: 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.1);
  border: 1px solid #f6e2bd;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fef3c7;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-badge,
.card-score {
  position: absolute;
  top: 14px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.92);
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 14px;
}

.card-score {
  right: 14px;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title.compact {
  font-size: 18px;
}

.card-title a:hover {
  color: var(--amber);
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  margin: 8px 0 0;
}

.card-desc {
  min-height: 72px;
  margin: 10px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: #b45309;
  background: #fff7ed;
}

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

.category-card,
.overview-card,
.article-card,
.watch-panel {
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid #f6e2bd;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.09);
}

.category-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-posters img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.category-card h2,
.overview-title {
  font-size: 26px;
}

.category-card p,
.overview-card p,
.article-card p,
.watch-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.ranking-section {
  max-width: none;
  background: linear-gradient(135deg, #431407, #78350f 55%, #111827);
  color: #fff;
}

.ranking-section .section-head {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.ranking-section h2,
.ranking-section .text-link {
  color: #fff;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.home-ranking {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  border: 1px solid rgba(251, 191, 36, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: #fffbeb;
}

.rank-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.ranking-item img {
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-weight: 900;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: var(--amber);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px max(22px, calc((100vw - 1180px) / 2 + 22px));
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.55), transparent 30%), linear-gradient(135deg, #78350f, #111827);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 42px;
  align-items: center;
}

.compact-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

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

.breadcrumb a:hover {
  color: var(--amber);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.category-chip-row {
  margin-bottom: 28px;
}

.category-chip:hover {
  color: #fff;
  background: var(--amber);
}

.overview-card {
  display: grid;
  gap: 16px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-links a {
  color: #92400e;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fffbeb;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(3px) saturate(1.2);
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 22px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

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

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-breadcrumb {
  color: #fde68a;
}

.detail-info h1 {
  max-width: 850px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.92);
}

.player-section {
  padding-top: 48px;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.poster-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #000;
}

.poster-layer.is-hidden {
  display: none;
}

.poster-layer img {
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.big-play {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 24px 54px rgba(217, 119, 6, 0.42);
  cursor: pointer;
}

.watch-panel {
  position: sticky;
  top: 92px;
}

.watch-panel h2 {
  font-size: 28px;
}

.watch-meta {
  margin-top: 18px;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 0;
}

.article-card h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

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

.site-footer {
  color: #fef3c7;
  background: linear-gradient(180deg, #78350f, #431407);
  padding: 52px 22px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
  color: #fde68a;
  line-height: 1.8;
}

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

.footer-links a {
  color: #fde68a;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
}

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

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

  .hero-slide,
  .page-hero,
  .detail-wrap,
  .player-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .hero {
    min-height: 860px;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-slide {
    padding-top: 80px;
    gap: 30px;
  }

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

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

  .search-form,
  .filter-bar,
  .split-head,
  .footer-grid,
  .content-section {
    grid-template-columns: 1fr;
  }

  .search-form {
    border-radius: 24px;
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .overview-grid,
  .home-ranking,
  .wide-ranking,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 18px;
  }

  .page-hero {
    padding: 70px 18px;
  }

  .detail-wrap {
    padding: 70px 18px;
  }

  .ranking-item {
    grid-template-columns: 38px 62px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }
}
