body {
  min-height: 100vh;
  background: #f9fafb;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b, #eab308);
  box-shadow: 0 12px 34px rgba(234, 88, 12, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-name {
  font-size: clamp(20px, 2.4vw, 28px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  opacity: 0.88;
  border-color: rgba(255, 255, 255, 0.9);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: #ffffff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(251, 146, 60, 0.44), transparent 30%),
    linear-gradient(100deg, rgba(17, 24, 39, 0.96) 0%, rgba(31, 41, 55, 0.78) 48%, rgba(17, 24, 39, 0.48) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.52fr);
  align-items: center;
  gap: 58px;
  min-height: 680px;
  padding: 92px 0 74px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 9px 14px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.68);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.24);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.text-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 {
  padding: 13px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.32);
}

.secondary-button {
  padding: 12px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 460px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.home-search {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: -42px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.home-search-box label {
  display: block;
  margin-bottom: 10px;
  color: #9a3412;
  font-weight: 800;
}

.home-search-box div {
  display: flex;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  outline: none;
}

.home-search input {
  flex: 1;
  padding: 15px 18px;
  background: transparent;
}

.home-search button {
  padding: 0 22px;
  color: #ffffff;
  font-weight: 800;
  background: #f97316;
}

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

.quick-links a {
  border-radius: 999px;
  padding: 10px 16px;
  color: #ea580c;
  font-weight: 800;
  background: #ffedd5;
}

.section-block {
  padding: 72px 0;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.section-kicker {
  padding: 6px 11px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.3s ease;
}

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

.category-card div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: #ffffff;
}

.category-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f97316, #facc15);
}

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

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

.cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-info h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.rank-body h2 a:hover {
  color: #ea580c;
}

.movie-meta,
.movie-line,
.rank-body p,
.page-hero p,
.content-card p,
.footer-grid p {
  color: #6b7280;
  line-height: 1.75;
}

.movie-meta {
  margin: 0 0 10px;
  font-size: 13px;
}

.movie-line {
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row span {
  padding: 6px 9px;
  color: #9a3412;
  background: #ffedd5;
}

.movie-info .text-link {
  margin-top: 14px;
  font-size: 14px;
}

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

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

.rank-panel,
.filter-panel,
.content-card,
.category-overview-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.rank-panel {
  position: sticky;
  top: 92px;
  height: fit-content;
  padding: 24px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.slim-rank-list .rank-card {
  grid-template-columns: 38px 64px minmax(0, 1fr);
  box-shadow: none;
  background: #fff7ed;
}

.rank-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #ffedd5;
}

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

.rank-body h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.rank-body p {
  margin: 0;
  font-size: 13px;
}

.full-rank-list {
  padding-bottom: 72px;
}

.full-rank-list .rank-card {
  grid-template-columns: 54px 110px minmax(0, 1fr);
}

.page-main {
  min-height: 72vh;
}

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

.page-hero p {
  max-width: 760px;
  margin-top: 14px;
  font-size: 18px;
}

.filter-panel {
  margin: 0 0 30px;
  padding: 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.filter-panel label span {
  display: block;
  margin-bottom: 8px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 12px;
  background: #fff7ed;
}

.filter-result {
  margin-top: 14px;
  color: #9a3412;
  font-weight: 800;
}

.listing-grid {
  padding-bottom: 72px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  min-height: 210px;
  border-radius: 18px;
  background: #ffedd5;
}

.category-mosaic img {
  width: 100%;
  height: 105px;
  object-fit: cover;
}

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

.category-overview-card strong {
  display: block;
  margin: 12px 0 16px;
  color: #ea580c;
}

.small-button {
  width: fit-content;
  padding: 10px 16px;
  font-size: 14px;
}

.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(251, 146, 60, 0.38), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 58%, #7c2d12);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.65fr);
  align-items: center;
  gap: 42px;
  padding: 54px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.36);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
}

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
  margin-top: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 42px 0 10px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  font-size: 16px;
}

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-grid a:hover {
  color: #fb923c;
}

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

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

  .main-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
    padding: 10px;
    background: rgba(194, 65, 12, 0.98);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
  }

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

  .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: rgba(255, 255, 255, 0.12);
  }

  .hero-content,
  .detail-hero-grid,
  .two-column-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 340px;
  }

  .hero-poster img {
    min-height: 340px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

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

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-poster {
    display: none;
  }

  .home-search-box div {
    flex-direction: column;
  }

  .home-search button {
    min-height: 46px;
  }

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

  .category-grid,
  .movie-grid,
  .small-grid,
  .filter-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    padding: 16px;
  }

  .full-rank-list .rank-card,
  .rank-card,
  .slim-rank-list .rank-card {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-body p:nth-of-type(2) {
    display: none;
  }
}
