* {
  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: #1f2937;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.26);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.26);
}

.logo:hover .logo-mark {
  transform: scale(1.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #ffffff;
  font-weight: 650;
}

.main-nav > a {
  opacity: 0.92;
  transition: opacity .2s ease, transform .2s ease;
}

.main-nav > a:hover,
.main-nav > a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
}

.nav-search button,
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-search button {
  color: #ffffff;
  background: rgba(120, 53, 15, 0.38);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.32);
}

.btn.glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn:hover,
.nav-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
  display: none;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .5), rgba(0, 0, 0, .1));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: #ffffff;
  animation: fadeUp .8s ease both;
}

.hero-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(245, 158, 11, .88);
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

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

.site-section {
  padding: 64px 0;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: -34px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 46px rgba(146, 64, 14, 0.16);
  position: relative;
  z-index: 8;
}

.intro-band h2,
.section-heading h2,
.rank-title h2,
.content-card h2,
.side-links h2,
.search-panel h2 {
  margin: 10px 0 0;
  font-size: 32px;
  color: #1f2937;
}

.intro-band p {
  max-width: 760px;
  color: #6b7280;
  line-height: 1.8;
}

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

.section-heading.left-align {
  align-items: start;
}

.section-heading a,
.text-link {
  color: #d97706;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 34px rgba(146, 64, 14, 0.16);
}

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

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

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
}

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

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(146, 64, 14, 0.22);
}

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

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

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

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

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.4);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #ef4444;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin: 8px 0;
  color: #d97706;
  font-size: 13px;
  font-weight: 750;
}

.card-desc {
  display: -webkit-box;
  min-height: 60px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags a {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #b45309;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 88px;
  border-radius: 28px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.13);
}

.rank-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.rank-title h2 {
  font-size: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 32px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f3f4f6;
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

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

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #111827;
  font-size: 15px;
}

.rank-info em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.simple-hero,
.category-hero {
  background: linear-gradient(135deg, #f59e0b, #ea580c, #92400e);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.category-list {
  display: grid;
  gap: 24px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.12);
}

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

.category-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.category-card-large h2 {
  margin: 14px 0 10px;
  font-size: 30px;
}

.category-card-large p {
  color: #6b7280;
  line-height: 1.8;
}

.toolbar,
.search-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
}

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

.toolbar input,
.search-panel input {
  width: min(100%, 520px);
  border: 1px solid #fed7aa;
  outline: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: #374151;
  background: #ffffff;
}

.search-panel input {
  width: 100%;
  margin-bottom: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button.active {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.ranking-list [data-filter-grid] {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 96px 56px 1fr 90px;
  gap: 18px;
  align-items: center;
  border-radius: 26px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.1);
}

.ranking-cover img {
  width: 96px;
  height: 126px;
  object-fit: cover;
  border-radius: 18px;
}

.ranking-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 20px;
  font-weight: 900;
}

.ranking-body h2 {
  margin: 0 0 8px;
  color: #111827;
}

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

.ranking-score {
  color: #d97706;
  font-size: 34px;
  font-weight: 900;
  text-align: right;
}

.movie-detail-hero {
  min-height: 540px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

.movie-detail-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 900;
}

.movie-detail-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
  line-height: 1.85;
}

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

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 52px rgba(0, 0, 0, .36);
}

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

.detail-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  transform: translate(-50%, -50%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.player-card,
.content-card,
.score-card,
.side-links {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.12);
}

.player-card {
  overflow: hidden;
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .52));
  cursor: pointer;
  z-index: 4;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 24px 48px rgba(234, 88, 12, .38);
  font-size: 34px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.content-card {
  margin-top: 24px;
  padding: 26px;
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.content-card p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.score-card,
.side-links {
  padding: 24px;
}

.score-card span,
.score-card p {
  color: #6b7280;
}

.score-card strong {
  display: block;
  margin: 8px 0;
  color: #d97706;
  font-size: 56px;
  line-height: 1;
}

.side-links {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.footer-bottom {
  padding: 18px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 24px 44px rgba(120, 53, 15, .28);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-search,
  .nav-search input {
    width: 100%;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .toolbar,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .category-card-large,
  .detail-hero-grid,
  .footer-grid,
  .ranking-row {
    grid-template-columns: 1fr;
  }

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

  .ranking-score {
    text-align: left;
  }
}

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

  .logo-text {
    display: none;
  }

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

  .hero-desc,
  .page-hero p,
  .movie-detail-hero p {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    display: none;
  }
}
