* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: rgba(250, 250, 249, 0.78);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(250, 250, 249, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 12px 26px rgba(180, 83, 9, 0.35);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #475569;
  font-weight: 650;
  transition: all 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #b45309;
  background: #fffbeb;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  background: #fafaf9;
  border-top: 1px solid #e7e5e4;
}

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

.hero {
  position: relative;
  height: 86vh;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

.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 {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.84), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(3, 7, 18, 0.84), rgba(3, 7, 18, 0.08) 48%, rgba(3, 7, 18, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 108px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(255, 251, 235, 0.14);
  border: 1px solid rgba(253, 230, 138, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.90);
}

.hero-chips,
.tag-list,
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-chips span,
.tag-list span,
.filter-tags a,
.filter-tags button {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 18px 34px rgba(180, 83, 9, 0.34);
}

.btn-primary:hover {
  background: #b45309;
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: #334155;
  border-color: #e7e5e4;
  background: #ffffff;
}

.btn-light:hover {
  color: #b45309;
  background: #fffbeb;
}

.hero-panel {
  background: rgba(250, 250, 249, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(22px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: #e7e5e4;
}

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

.hero-panel h2 {
  margin: 16px 0 8px;
  font-size: 22px;
  color: #0f172a;
}

.hero-panel p {
  margin: 0 0 14px;
  color: #475569;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-mini-grid a {
  overflow: hidden;
  border-radius: 14px;
  background: #e7e5e4;
}

.hero-mini-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-mini-grid a:hover img {
  transform: scale(1.08);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.page-hero,
.section {
  padding: 72px 24px;
}

.page-hero {
  padding-top: 132px;
  background: linear-gradient(180deg, #f5f5f4, #ffffff);
  border-bottom: 1px solid #e7e5e4;
}

.page-hero-inner,
.section-inner,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.narrow {
  max-width: 920px;
}

.page-hero h1,
.section-title h2,
.content-block h2 {
  margin: 0;
  color: #1e293b;
  line-height: 1.1;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p,
.section-title p {
  max-width: 780px;
  color: #64748b;
  font-size: 18px;
  margin: 14px 0 0;
}

.section {
  background: linear-gradient(180deg, #fafaf9, #ffffff);
}

.section.alt {
  background: #ffffff;
}

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

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e5e4, #d6d3d1);
}

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

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

.card-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.play-glow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 38px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-glow,
.rank-row:hover .play-glow {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.card-body,
.card-content {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong,
.card-content strong {
  color: #1e293b;
  font-size: 17px;
  line-height: 1.3;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body span,
.card-content span {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em,
.card-content em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b45309;
  background: #fffbeb;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 128px;
}

.small-poster {
  aspect-ratio: auto;
  height: 100%;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fafaf9);
  border: 1px solid #e7e5e4;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.22), rgba(217, 119, 6, 0));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.category-card strong {
  display: block;
  color: #1e293b;
  font-size: 24px;
  margin-bottom: 12px;
}

.category-card p {
  color: #64748b;
  margin: 0;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: #b45309;
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 24px;
}

.rank-list,
.side-panel,
.content-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid #e7e5e4;
}

.rank-list {
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid #f5f5f4;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  display: grid;
  place-items: center;
  color: #b45309;
  font-size: 20px;
  font-weight: 900;
  background: #fffbeb;
}

.rank-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: #e7e5e4;
}

.rank-cover img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rank-info {
  display: grid;
  align-content: center;
  gap: 4px;
}

.rank-info strong {
  color: #1e293b;
}

.rank-info em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.rank-info span {
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-panel {
  padding: 22px;
}

.side-panel h3 {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 22px;
}

.side-panel .movie-card {
  margin-bottom: 14px;
}

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 10;
  margin: -28px 0 32px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e7e5e4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.filter-tags {
  margin: 0;
}

.filter-tags a,
.filter-tags button {
  color: #475569;
  background: #f5f5f4;
  border-color: #e7e5e4;
  cursor: pointer;
}

.filter-tags a:hover,
.filter-tags a.is-active,
.filter-tags button:hover,
.filter-tags button.is-active {
  color: #ffffff;
  background: #d97706;
  border-color: #d97706;
}

.search-box {
  position: relative;
  max-width: 760px;
  margin: 0 auto 34px;
}

.search-box input {
  width: 100%;
  min-height: 62px;
  border: 2px solid #e7e5e4;
  border-radius: 18px;
  padding: 0 58px 0 22px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.18);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  width: 46px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: #d97706;
  cursor: pointer;
}

.search-state {
  text-align: center;
  color: #64748b;
  margin: 0 0 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #b45309;
  font-weight: 700;
}

.detail-hero {
  padding-top: 112px;
  background: linear-gradient(180deg, #0f172a, #292524);
  color: #ffffff;
}

.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 18px 48px rgba(217, 119, 6, 0.48);
  font-size: 36px;
}

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

.player-meta {
  padding: 24px;
  background: #0f172a;
}

.player-meta h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
}

.player-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-facts {
  padding: 18px;
  border-radius: 20px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fact-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row span:first-child {
  color: #fbbf24;
  font-weight: 800;
}

.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.content-card {
  padding: 30px;
}

.content-block h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-block p {
  color: #475569;
  font-size: 17px;
  margin: 0 0 14px;
}

.tag-list span {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.site-footer {
  background: linear-gradient(180deg, #f5f5f4, #e7e5e4);
  border-top: 1px solid #d6d3d1;
}

.footer-inner {
  padding: 46px 24px;
  display: grid;
  gap: 22px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #64748b;
}

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

.footer-links a {
  color: #475569;
  font-weight: 700;
}

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

.copyright {
  font-size: 14px;
}

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

  .rank-layout,
  .detail-inner,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 640px;
  }
}

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

  .menu-button {
    display: flex;
  }

  .header-inner {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    height: auto;
    min-height: 760px;
  }

  .hero-inner {
    padding-top: 92px;
    padding-bottom: 80px;
  }

  .hero-control {
    display: none;
  }

  .page-hero {
    padding-top: 104px;
  }

  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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

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

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

  .detail-inner {
    padding-top: 18px;
  }

  .player-meta,
  .content-card {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 820px;
  }

  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

  .rank-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    height: 86px;
  }

  .filter-bar {
    position: static;
  }
}
