:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --accent: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --green: #059669;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  color: #374151;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #111827;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 12% 20%, #fff 0 2px, transparent 2px),
    radial-gradient(circle at 80% 10%, #fff 0 2px, transparent 2px);
  background-size:
    72px 72px,
    110px 110px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.34;
  background: #fff;
}

.hero-glow.one {
  width: 300px;
  height: 300px;
  left: 5%;
  top: 8%;
}

.hero-glow.two {
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: 6%;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 54px;
  padding: 80px 0 96px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #ffedd5;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
}

.hero-feature {
  max-width: 720px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-feature span,
.hero-feature p {
  color: rgba(255, 255, 255, 0.88);
}

.hero-feature p {
  margin: 12px 0 0;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.quick-tags,
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 14px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-actions.single {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  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: #ea580c;
  background: #fff;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.18);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  min-height: 468px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.32);
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 54px;
  background: #fff;
}

.search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-panel button,
.filter-tags button {
  height: 52px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
  cursor: pointer;
}

.search-panel form button {
  padding: 0 26px;
}

.quick-tags,
.filter-tags {
  margin-top: 14px;
}

.quick-tags a,
.filter-tags button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 700;
}

.filter-tags button {
  color: #9a3412;
  background: #ffedd5;
}

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

.content-section > .section-head,
.content-section > .featured-grid,
.content-section > .movie-grid,
.content-section > .category-grid,
.content-section > .rank-grid,
.content-section > .ranking-list,
.content-section > .pagination {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.soft-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-orange {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.soft-green {
  background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
}

.white-section {
  background: #fff;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head .eyebrow,
.page-hero .eyebrow {
  color: var(--brand-dark);
}

.section-more {
  color: var(--brand-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.featured-grid .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.16);
}

.poster-shell {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fecaca, #fbcfe8);
}

.featured-grid .movie-card:first-child .poster-shell {
  min-height: 430px;
}

.compact-card .poster-shell {
  min-height: 178px;
}

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

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

.poster-fade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(12px);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.movie-info strong {
  font-size: 18px;
  line-height: 1.35;
}

.movie-info em,
.movie-info small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.movie-info small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info .tag-row span,
.detail-tags span {
  color: #7c2d12;
  background: #ffedd5;
}

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

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

.category-card {
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444 58%, #ec4899);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.category-card span {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card b {
  display: inline-flex;
  margin-top: 18px;
  font-size: 14px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 64px;
  border-radius: 32px;
  color: #fff;
  text-align: center;
  background: linear-gradient(120deg, #f97316, #ef4444 55%, #ec4899);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

.catalog-tools {
  margin-top: 26px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.pagination a.is-current,
.pagination a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 100px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.13);
}

.rank-row b {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.rank-row img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde68a, #fecaca);
}

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

.rank-row strong {
  font-size: 18px;
}

.rank-row em,
.rank-row small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.detail-content,
.related-panel {
  min-width: 0;
}

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

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

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

.play-overlay span {
  width: 78px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.4);
}

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

.detail-text,
.related-panel {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-line a,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.detail-text h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.one-line {
  margin: 0 0 18px;
  color: #334155;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-text section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-text h2,
.related-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-text p {
  color: #374151;
  line-height: 1.95;
}

.related-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

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

.related-list .compact-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  border-radius: 18px;
}

.related-list .poster-shell {
  min-height: 112px;
}

.related-list .movie-info {
  padding: 12px;
}

.related-list .movie-info strong {
  font-size: 15px;
}

.related-list .movie-info small,
.related-list .tag-row {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

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

  .hero-slider {
    min-height: 940px;
  }

  .hero-poster {
    max-width: 520px;
  }

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

  .related-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider {
    min-height: 930px;
  }

  .hero-slide {
    padding: 48px 0 80px;
    gap: 28px;
  }

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

  .hero-feature {
    padding: 18px;
  }

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

  .hero-dots {
    bottom: 28px;
  }

  .search-panel form {
    flex-direction: column;
  }

  .search-panel button {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .featured-grid,
  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-grid.wide,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid .movie-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .page-hero {
    padding: 42px 22px;
    border-radius: 24px;
  }

  .rank-row {
    grid-template-columns: 44px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row img {
    width: 82px;
    height: 62px;
  }

  .detail-text,
  .related-panel {
    padding: 20px;
    border-radius: 22px;
  }

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

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