:root {
  --sunset-50: #fff7ed;
  --sunset-100: #ffedd5;
  --sunset-400: #fb923c;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --twilight-50: #fef2f2;
  --twilight-100: #fee2e2;
  --twilight-500: #ef4444;
  --twilight-600: #dc2626;
  --golden-50: #fefce8;
  --golden-400: #facc15;
  --golden-500: #eab308;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --strong-shadow: 0 24px 70px rgba(17, 24, 39, .24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0%, #fef2f2 35%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  display: block;
  background: linear-gradient(135deg, var(--sunset-100), var(--twilight-100), var(--golden-50));
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(229, 231, 235, .9);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 10px 25px rgba(239, 68, 68, .25);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 16px;
  color: var(--gray-700);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sunset-600);
  background: var(--sunset-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--sunset-50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--sunset-600);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, .96);
}

.mobile-links,
.mobile-category-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.mobile-category-links {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 0;
}

.mobile-category-links a {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--gray-50);
  color: var(--gray-700);
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-backdrop,
.category-hero,
.detail-hero {
  background-position: center;
  background-size: cover;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.08);
  opacity: .58;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(249, 115, 22, .34), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, .96) 0%, rgba(17, 24, 39, .78) 44%, rgba(17, 24, 39, .34) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  color: #fff;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  color: var(--sunset-600);
  background: rgba(255, 247, 237, .92);
  border: 1px solid rgba(254, 215, 170, .8);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

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

.hero-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.card-tags span {
  color: var(--sunset-700);
  background: var(--sunset-50);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 16px 35px rgba(239, 68, 68, .28);
}

.secondary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

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

.text-link {
  color: var(--sunset-600);
  font-size: 15px;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--strong-shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(249, 115, 22, .92);
  border-radius: 12px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.section-block,
.filter-section,
.quick-search-section {
  padding: 72px 0 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(254, 215, 170, .95);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
}

.search-panel h2,
.section-heading h2,
.ranking-copy h2,
.detail-article h2,
.detail-side h2 {
  margin: 10px 0 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 700;
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--sunset-100);
  border-radius: 18px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--sunset-400);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, .18);
}

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

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--gray-700);
}

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

.category-tile {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  color: #fff;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 39, .12), rgba(17, 24, 39, .88));
}

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

.category-tile strong {
  font-size: 20px;
  line-height: 1.2;
}

.category-tile em {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-style: normal;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--soft-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(17, 24, 39, .15);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sunset-100), var(--twilight-100));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.poster-year,
.poster-type {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: 12px;
  background: rgba(17, 24, 39, .72);
}

.poster-type {
  right: 12px;
  background: rgba(249, 115, 22, .9);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.card-body p {
  min-height: 58px;
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.ranking-band {
  margin-top: 82px;
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 15%, rgba(249, 115, 22, .33), transparent 28%),
    linear-gradient(135deg, #111827, #37110a 48%, #7f1d1d);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.ranking-copy h2,
.ranking-copy p {
  color: #fff;
}

.ranking-copy p {
  color: rgba(255, 255, 255, .78);
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 50px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

.rank-number {
  color: var(--golden-400);
  font-size: 22px;
  font-weight: 900;
}

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

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.rank-copy em {
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-score {
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(249, 115, 22, .85);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.compact-hero,
.ranking-hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(250, 204, 21, .28), transparent 28%),
    linear-gradient(135deg, #111827, #7f1d1d);
}

.category-hero {
  min-height: 460px;
  display: flex;
  align-items: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--sunset-100);
  border-radius: 999px;
  color: var(--gray-700);
  background: #fff;
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #fff;
  border-color: var(--sunset-500);
  background: var(--sunset-500);
}

.category-preview {
  padding: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--soft-shadow);
}

.stacked-previews {
  display: grid;
  gap: 26px;
}

.rankings-page-grid {
  padding-top: 72px;
}

.large-rank-list .rank-item a {
  background: rgba(255, 255, 255, .96);
  border-color: var(--gray-200);
}

.large-rank-list .rank-copy strong {
  color: var(--gray-900);
}

.large-rank-list .rank-copy em {
  color: var(--gray-700);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(16px);
  transform: scale(1.05);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 96px 0 72px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--strong-shadow);
}

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

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

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

.player-section {
  margin-top: -62px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--strong-shadow);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, .28), rgba(17, 24, 39, .82));
  cursor: pointer;
  z-index: 3;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 20px 45px rgba(239, 68, 68, .35);
  font-size: 30px;
}

.play-overlay strong {
  max-width: min(620px, 90%);
  text-align: center;
  font-size: clamp(22px, 4vw, 38px);
}

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

.detail-article,
.detail-side {
  padding: 30px;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--soft-shadow);
}

.detail-article p {
  color: var(--gray-700);
  font-size: 17px;
}

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

.info-list div {
  padding: 16px;
  border-radius: 18px;
  background: var(--gray-50);
}

.info-list dt {
  color: var(--gray-700);
  font-size: 13px;
}

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

.page-switcher {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.page-switcher a {
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--sunset-600);
  background: var(--sunset-50);
  font-weight: 800;
}

.side-card-list {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.compact-card .poster-link img {
  height: 100%;
  min-height: 156px;
}

.compact-card .card-body {
  padding: 14px;
}

.compact-card .card-body h2 {
  font-size: 16px;
}

.compact-card .card-body p {
  min-height: auto;
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, .78);
  background: #111827;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
}

.site-footer li {
  margin: 0 0 8px;
}

.site-footer a:hover {
  color: var(--sunset-400);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .hero-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .search-panel,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    height: 64px;
  }

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

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

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

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

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

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

  .rank-item img {
    width: 58px;
    height: 78px;
  }

  .heat-score {
    display: none;
  }

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

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