* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: #1f2937;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
  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;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 235, 0.94);
  border-bottom: 1px solid #fde68a;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #78350f;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fffbeb;
  border-radius: 12px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.25);
}

.brand-text {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #d97706;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #fef3c7;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #92400e;
}

.mobile-menu {
  display: none;
  padding: 10px 24px 22px;
  border-top: 1px solid #fde68a;
  background: #fffbeb;
}

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

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

.page-space {
  padding-top: 38px;
  padding-bottom: 72px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  height: 680px;
  max-height: 780px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 45%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translate(-50%, -50%);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0 0 14px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta span,
.hero-meta a,
.detail-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  color: #fff7ed;
  font-weight: 800;
}

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

.hero-tags span,
.tag-row span,
.genre-cloud span {
  display: inline-flex;
  padding: 6px 10px;
  color: #92400e;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 700;
}

.detail-tags span {
  background: #fff7ed;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 18px 34px rgba(180, 83, 9, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.quick-search-panel,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-article,
.detail-side,
.category-overview-card,
.rank-panel,
.warm-section {
  border: 1px solid rgba(253, 230, 138, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 60px rgba(146, 64, 14, 0.11);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  margin: -46px 0 56px;
  padding: 28px;
  position: relative;
  z-index: 8;
}

.quick-search-panel h2,
.section-head h2,
.page-hero h1,
.detail-intro h1,
.player-section h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.quick-search-panel h2,
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.quick-search-panel p,
.section-head p,
.page-hero p {
  color: #6b7280;
  line-height: 1.8;
}

.quick-search {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #78350f;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  outline: none;
  background: #fffbeb;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.quick-search button {
  min-width: 110px;
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  background: #d97706;
  font-weight: 900;
}

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

.warm-section,
.rank-panel {
  padding: 28px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.95));
}

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

.section-head p {
  margin: 8px 0 0;
}

.section-more,
.text-link {
  color: #92400e;
  background: #fef3c7;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 22px 44px rgba(120, 53, 15, 0.16);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #92400e);
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent);
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff7ed;
  font-weight: 900;
  font-size: 13px;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: rgba(146, 64, 14, 0.88);
}

.poster-score {
  right: 12px;
  bottom: 12px;
  background: rgba(217, 119, 6, 0.94);
}

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

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

.movie-card h3 a:hover {
  color: #d97706;
}

.movie-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-bottom: 12px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 22px;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(120, 53, 15, 0.14);
}

.category-tile span {
  color: #78350f;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  color: #92400e;
  line-height: 1.65;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.rank-item img {
  width: 56px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item-title {
  display: block;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

.rank-item-meta {
  display: block;
  margin-top: 4px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  margin-bottom: 30px;
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.92);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 820px;
  margin-bottom: 0;
}

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

.breadcrumb a:hover {
  color: #d97706;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: #92400e;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  color: #6b7280;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.search-page-panel {
  grid-template-columns: 1fr;
}

.searchable-item.is-hidden {
  display: none;
}

.rank-lead-grid {
  margin-bottom: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 50%;
  background: #d97706;
  font-weight: 900;
}

.ranking-poster img {
  width: 92px;
  height: 124px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.7;
}

.ranking-score {
  color: #d97706;
  font-size: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, #ffffff, #fffbeb);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.18);
}

.detail-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
}

.detail-one-line {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  margin-bottom: 30px;
  padding: 24px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.24);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  font-size: 34px;
}

.player-start strong {
  font-size: 20px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  margin-bottom: 44px;
}

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-article p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

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

.detail-side dt {
  color: #92400e;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: #374151;
}

.related-section {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 72px;
  color: #fef3c7;
  background: linear-gradient(135deg, #78350f, #451a03);
}

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

.footer-brand {
  max-width: 720px;
}

.footer-brand p {
  color: #fde68a;
  line-height: 1.8;
}

.footer-brand-link {
  color: #fff7ed;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.footer-links a {
  color: #fef3c7;
  font-weight: 800;
}

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

.copyright {
  margin: 24px 0 0;
  color: #fcd34d;
}

@media (max-width: 1024px) {
  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .rank-list,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-grid .movie-grid,
  .rank-lead-grid,
  .category-overview-grid,
  .detail-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-slider {
    height: 640px;
    min-height: 620px;
  }

  .hero-content {
    top: 52%;
  }

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

  .hero-arrow {
    top: auto;
    bottom: 72px;
    width: 44px;
    height: 44px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .quick-search-panel,
  .filter-panel,
  .detail-hero,
  .detail-content-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .quick-search-panel {
    margin-top: -30px;
  }

  .quick-search {
    flex-direction: column;
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .featured-grid .movie-grid,
  .rank-lead-grid,
  .category-overview-grid,
  .rank-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .ranking-score {
    grid-column: 2 / 4;
    font-size: 22px;
  }

  .ranking-poster img {
    width: 74px;
    height: 100px;
  }
}

@media (max-width: 520px) {
  .page-wrap,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .featured-grid .movie-grid,
  .rank-lead-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-actions {
    display: grid;
  }

  .page-hero,
  .quick-search-panel,
  .warm-section,
  .rank-panel,
  .detail-hero,
  .player-section,
  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }
}
