* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: #fffaf0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(146, 64, 14, 0.12);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 25px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: #78716c;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #57534e;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #b45309;
  background: #fff7ed;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 3px;
  background: #b45309;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(120, 53, 15, 0.14);
}

.hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background: #92400e;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(251, 191, 36, 0.38), transparent 32%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.88), rgba(146, 64, 14, 0.72) 48%, rgba(146, 64, 14, 0.22)),
    linear-gradient(0deg, rgba(255, 250, 240, 1), rgba(255, 250, 240, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero > span,
.section-title > span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: #b45309;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #fffbeb;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dot.is-active {
  width: 56px;
  background: #ffffff;
}

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

.quick-section {
  position: relative;
  z-index: 7;
  margin-top: -46px;
}

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

.quick-card,
.category-tile,
.overview-card,
.movie-card,
.ranking-panel {
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(120, 53, 15, 0.08);
}

.quick-card {
  min-height: 112px;
  padding: 24px;
  border-radius: 28px;
  display: grid;
  align-content: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover,
.category-tile:hover,
.movie-card:hover,
.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(180, 83, 9, 0.16);
}

.quick-card strong {
  color: #92400e;
  font-size: 22px;
}

.quick-card span {
  color: #78716c;
}

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

.tinted-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-title {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 34px;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.section-title p {
  margin: 0;
  color: #78716c;
  font-size: 17px;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fed7aa;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(69, 26, 3, 0.78));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.24);
}

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

.movie-card h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #b45309;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 10px;
  color: #78716c;
  font-size: 13px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}

.movie-card .tag-row {
  margin-top: 10px;
}

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

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

.category-tile {
  min-height: 172px;
  padding: 25px;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile span {
  color: #92400e;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 12px 0 0;
  color: #78716c;
}

.two-column-section,
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  border-radius: 28px;
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 98px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head span {
  color: #92400e;
  font-size: 24px;
  font-weight: 900;
}

.panel-head a,
.text-link {
  color: #ea580c;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-row strong {
  color: #f59e0b;
  font-size: 20px;
}

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

.rank-row span {
  display: grid;
  min-width: 0;
}

.rank-row b {
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  overflow: hidden;
  color: #78716c;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row i {
  color: #b45309;
  font-style: normal;
  font-weight: 900;
}

.page-main {
  padding-top: 96px;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 26%, rgba(251, 191, 36, 0.30), transparent 28%),
    linear-gradient(135deg, #7c2d12, #f59e0b);
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(146, 64, 14, 0.18);
}

.page-hero {
  padding: 72px;
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fffbeb;
  font-size: 18px;
}

.inline-search,
.large-search {
  display: flex;
  width: min(640px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

.inline-search input,
.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
}

.inline-search input::placeholder,
.large-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.inline-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: #b45309;
  background: #ffffff;
  font-weight: 900;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.filter-chip {
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #ffffff;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: #f59e0b;
}

.local-search {
  width: min(320px, 100%);
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  outline: 0;
  padding: 12px 18px;
  color: #1f2937;
  background: #ffffff;
}

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

.overview-card {
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  background: #fed7aa;
}

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

.overview-copy {
  padding: 22px;
}

.overview-copy h2 {
  margin: 0 0 10px;
  color: #92400e;
  font-size: 24px;
}

.overview-copy p {
  margin: 0 0 16px;
  color: #78716c;
}

.detail-hero {
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #fffbeb;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(69, 26, 3, 0.35);
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fffbeb;
  font-size: 19px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

.detail-copy .primary-button {
  margin-top: 26px;
  background: #ffffff;
  color: #b45309;
}

.player-section {
  padding-bottom: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.22);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

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

.player-button {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #b45309;
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  max-width: min(620px, calc(100% - 42px));
  text-align: center;
  font-size: clamp(24px, 5vw, 44px);
  line-height: 1.1;
}

.article-section {
  padding-top: 30px;
}

.detail-article {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(120, 53, 15, 0.08);
}

.detail-article h2 {
  margin: 0;
  color: #92400e;
  font-size: 26px;
}

.detail-article p {
  margin: 0;
  color: #44403c;
  font-size: 17px;
}

.site-footer {
  margin-top: 60px;
  color: #57534e;
  background: #fff7ed;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

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

.footer-brand p {
  max-width: 620px;
  margin: 18px 0 0;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #92400e;
  font-size: 22px;
}

.footer-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link-grid a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #b45309;
  font-weight: 800;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #78716c;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

[data-card].is-hidden {
  display: none;
}

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

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

  .two-column-section,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .quick-grid,
  .category-grid,
  .overview-grid,
  .footer-inner,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-hero {
    padding: 46px 26px;
  }

  .list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .local-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 70px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .inline-search,
  .large-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .quick-grid,
  .category-grid,
  .overview-grid,
  .footer-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card p {
    min-height: auto;
  }

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

  .detail-hero {
    padding: 20px;
    border-radius: 26px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .detail-article {
    padding: 24px;
  }

  .rank-row {
    grid-template-columns: 26px 52px minmax(0, 1fr);
  }

  .rank-row i {
    display: none;
  }
}
