* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: #f7f3ee;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 251, 245, 0.86);
  border-bottom: 1px solid rgba(120, 113, 108, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff7ed;
  background: linear-gradient(135deg, #92400e, #f59e0b);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.32);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #475569;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #0f172a;
  background: rgba(245, 158, 11, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
  background: #fafaf9;
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  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.08) contrast(1.08);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58) 45%, rgba(15, 23, 42, 0.26)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 84vh;
  margin: 0 auto;
  padding: 140px 0 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff7ed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #fbbf24;
}

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 247, 237, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 28px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-actions,
.quick-links,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff7ed;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.36);
}

.btn-glass {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.btn-outline {
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.quick-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.quick-search label,
.filter-bar span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

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

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 46px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.quick-search button {
  min-width: 96px;
  border: 0;
  border-radius: 14px;
  color: #fff7ed;
  background: #92400e;
  font-weight: 800;
  cursor: pointer;
}

.quick-links a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

.content-section,
.category-overview-grid,
.filter-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-copy h2 {
  color: #0f172a;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.left-heading {
  align-items: start;
  justify-content: start;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.category-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.category-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff7ed;
}

.category-info strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-info span {
  display: block;
  color: rgba(255, 247, 237, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 229, 228, 0.84);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(15, 23, 42, 0.78));
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  min-width: 42px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(146, 64, 14, 0.92);
  font-weight: 850;
  font-size: 13px;
}

.movie-card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.movie-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.movie-card strong {
  min-height: 48px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-line {
  min-height: 44px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

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

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

.rank-row,
.ranking-card {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(231, 229, 228, 0.86);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover,
.ranking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.42);
}

.rank-row {
  grid-template-columns: 48px 58px minmax(0, 1fr) 68px;
  min-height: 80px;
  padding: 10px 14px;
  border-radius: 18px;
}

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

.rank-number,
.ranking-index {
  color: #92400e;
  font-weight: 900;
  font-size: 20px;
}

.rank-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-title strong,
.ranking-body strong {
  color: #0f172a;
}

.rank-title small,
.ranking-body span,
.ranking-meta small {
  color: #64748b;
}

.rank-heat,
.ranking-meta b {
  color: #b45309;
  font-weight: 900;
}

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

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

.small-hero,
.category-hero,
.ranking-hero {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  max-width: 880px;
  margin: 12px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.8;
}

.compact-actions {
  margin-top: 24px;
}

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

.category-overview-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 229, 228, 0.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.category-overview-head h2 {
  margin: 10px 0;
  color: #0f172a;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.75;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-poster-row a {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #1e293b;
}

.mini-poster-row span {
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-more {
  display: inline-flex;
  margin-top: 18px;
  color: #92400e;
  font-weight: 850;
}

.filter-shell {
  padding-bottom: 80px;
}

.filter-bar {
  position: sticky;
  top: 88px;
  z-index: 30;
  margin-bottom: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

.ranking-filter {
  grid-template-columns: minmax(260px, 1fr) 180px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: #64748b;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.empty-state.is-visible {
  display: block;
}

.ranking-card {
  grid-template-columns: 58px 92px minmax(0, 1fr) 92px;
  padding: 14px;
  border-radius: 22px;
}

.ranking-card img {
  width: 92px;
  height: 122px;
  border-radius: 16px;
  object-fit: cover;
  background: #1e293b;
}

.ranking-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ranking-body strong {
  font-size: 20px;
}

.ranking-body > span:not(.tag-row) {
  line-height: 1.6;
}

.ranking-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.ranking-meta b {
  font-size: 26px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #92400e;
  font-weight: 750;
}

.detail-main {
  padding-bottom: 80px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 20px 0 52px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
  background: #1e293b;
}

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

.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
}

.detail-lead {
  margin: 0 0 22px;
  color: #475569;
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta {
  margin-bottom: 18px;
}

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

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

.player-section {
  padding: 18px 0 50px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff7ed;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.82));
  cursor: pointer;
}

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

.play-ring {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #92400e;
  background: #fffbeb;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  font-size: 30px;
  text-indent: 4px;
}

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

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-copy article {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(231, 229, 228, 0.88);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.95;
}

.related-section {
  padding-top: 58px;
}

.site-footer {
  margin-top: 80px;
  background: #1c1917;
  color: #fef3c7;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: 1fr auto;
}

.footer-brand {
  color: #fff7ed;
}

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

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(254, 243, 199, 0.72);
  font-size: 14px;
}

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

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

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    height: 66px;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 78vh;
  }

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

  .hero-controls {
    bottom: 24px;
  }

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

  .section-heading,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-overview-grid,
  .detail-copy {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .ranking-filter {
    position: static;
    grid-template-columns: 1fr;
  }

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

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

  .ranking-card {
    grid-template-columns: 42px 76px minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 3;
    justify-items: start;
  }

  .ranking-card img {
    width: 76px;
    height: 104px;
  }
}

@media (max-width: 620px) {
  .movie-grid,
  .category-grid,
  .mini-poster-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card strong {
    min-height: 42px;
    font-size: 16px;
  }

  .movie-line {
    min-height: 58px;
    font-size: 13px;
  }

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

  .quick-search button {
    min-height: 44px;
  }

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

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

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

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

  .play-ring {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }
}
