:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --soft: #e5e7eb;
  --accent: #d97706;
  --accent-deep: #b45309;
  --dark: #030712;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  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: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #fef3c7 140%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.25);
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--accent-deep);
  background: #fffbeb;
}

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

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.56) 48%, rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
  padding-top: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d97706;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  color: #fbbf24;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-line {
  margin: 22px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions,
.hero-dots,
.section-heading,
.movie-meta,
.tag-row,
.footer-links,
.breadcrumb,
.filter-panel {
  display: flex;
  align-items: center;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 32px rgba(180, 83, 9, 0.28);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

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

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.search-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 4;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-strip h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-strip p {
  margin: 0;
  color: var(--muted);
}

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

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.detail-article h2,
.side-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading.plain {
  margin-bottom: 16px;
}

.section-link {
  color: var(--accent-deep);
  background: #fffbeb;
  padding: 10px 16px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}

.play-dot {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #d97706);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  flex-wrap: wrap;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}

.movie-info h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-info h3 a:hover {
  color: var(--accent-deep);
}

.movie-info p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 190px;
  padding: 22px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.ranking-list {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid #f1f5f9;
}

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

.ranking-row:hover {
  background: #fffbeb;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--dark);
  font-weight: 900;
}

.ranking-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.ranking-meta {
  color: var(--muted);
  font-size: 13px;
}

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  padding: 76px 0 34px;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.page-hero .breadcrumb {
  color: var(--muted);
  margin-top: 20px;
}

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

.filter-panel {
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 170px;
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}

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

.single-filter .search-box {
  min-width: 100%;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: #ffffff;
}

.overview-cover {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

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

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-title-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.rank-feature {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.rank-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 0.82;
}

.rank-feature div {
  padding: 24px;
}

.rank-feature h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.rank-feature p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.04);
  opacity: 0.55;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58)), radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.22), transparent 28%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  min-height: 560px;
  padding: 84px 0 54px;
}

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

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

.detail-copy h1 {
  margin-top: 18px;
}

.detail-one-line {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags span {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
}

.player-section {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 5;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.96);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 38px;
}

.detail-article,
.side-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin: 0 0 14px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-list dt {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.side-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.side-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-list a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 16px;
  background: #f8fafc;
}

.side-list a:hover {
  background: #fffbeb;
}

.side-list span {
  font-weight: 800;
}

.side-list small {
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-links {
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.is-hidden-card {
  display: none;
}

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

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

  .detail-content-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

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

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

  .header-inner {
    height: 64px;
  }

  .hero {
    height: 76vh;
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 20px;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .ranking-meta {
    grid-column: 2;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .detail-poster {
    width: 220px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .detail-article {
    padding: 24px;
  }
}

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

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

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