:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --red: #ef4444;
  --orange: #f97316;
  --rose: #f43f5e;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --green: #10b981;
  --shadow: 0 20px 45px rgba(15, 23, 42, .12);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, .35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .98), rgba(15, 23, 42, .98));
  box-shadow: 0 10px 30px rgba(2, 6, 23, .25);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 25px rgba(239, 68, 68, .28);
  transition: transform .25s ease;
}

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

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #f87171;
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, .82);
  border: 1px solid rgba(255, 255, 255, .08);
}

.header-search input,
.mobile-search input,
.search-page-form input {
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 11px 14px;
  min-width: 190px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(51, 65, 85, .9);
}

.mobile-nav {
  display: none;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(15, 23, 42, .98);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, .95);
}

.mobile-search input {
  flex: 1;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .88);
}

.mobile-nav-link:hover {
  background: rgba(51, 65, 85, .85);
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-950);
}

.hero-slider {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  opacity: .42;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-overlay {
  background:
    radial-gradient(circle at 74% 26%, rgba(249, 115, 22, .32), transparent 30%),
    radial-gradient(circle at 15% 18%, rgba(239, 68, 68, .25), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, .96), rgba(15, 23, 42, .76) 45%, rgba(15, 23, 42, .5));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  padding: 72px 0 130px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .72fr);
  gap: 56px;
  align-items: center;
}

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

.hero h1,
.page-hero h1 {
  margin: 16px 0 22px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}

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

.hero-tags {
  margin: 26px 0 32px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .12);
}

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

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 34px rgba(239, 68, 68, .34);
}

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

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

.text-button {
  color: #fed7aa;
  padding-inline: 8px;
}

.hero-poster {
  position: relative;
  min-height: 465px;
  border-radius: 32px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-strong);
  isolation: isolate;
  transform: rotate(1.5deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .62));
}

.hero-poster span {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 34px rgba(239, 68, 68, .34);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 8px;
  color: #fff;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(10px);
}

.hero-thumb.is-active {
  background: rgba(239, 68, 68, .38);
  border-color: rgba(248, 113, 113, .72);
}

.hero-thumb img {
  width: 46px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

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

.dark-panel {
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 68, 68, .25), transparent 28%),
    linear-gradient(135deg, #2e1065, #111827 58%, #020617);
}

.feature-strip {
  padding: 28px 0;
  background: #fff;
}

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

.feature-card {
  display: block;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow);
}

.feature-card:nth-child(2) {
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.feature-card:nth-child(3) {
  background: linear-gradient(135deg, var(--violet), #d946ef);
}

.feature-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.feature-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.dark-panel .section-heading p {
  color: rgba(255, 255, 255, .66);
}

.section-more {
  color: #ef4444;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  display: block;
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.category-tile strong,
.category-overview-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
}

.category-tile span,
.category-overview-card p,
.category-link {
  position: relative;
  z-index: 2;
}

.category-covers,
.category-preview {
  position: absolute;
  inset: auto 12px 12px auto;
  display: flex;
  transform: rotate(-5deg);
}

.category-covers img,
.category-preview img {
  width: 48px;
  height: 68px;
  margin-left: -14px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.from-red,
.category-page-hero.from-red {
  background: linear-gradient(135deg, #dc2626, #fb923c);
}

.from-orange,
.category-page-hero.from-orange {
  background: linear-gradient(135deg, #ea580c, #f43f5e);
}

.from-pink,
.category-page-hero.from-pink {
  background: linear-gradient(135deg, #db2777, #7c3aed);
}

.from-blue,
.category-page-hero.from-blue {
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.from-emerald,
.category-page-hero.from-emerald {
  background: linear-gradient(135deg, #059669, #0f766e);
}

.from-violet,
.category-page-hero.from-violet {
  background: linear-gradient(135deg, #6d28d9, #db2777);
}

.from-rose,
.category-page-hero.from-rose {
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.from-amber,
.category-page-hero.from-amber {
  background: linear-gradient(135deg, #d97706, #dc2626);
}

.from-cyan,
.category-page-hero.from-cyan {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.from-slate,
.category-page-hero.from-slate {
  background: linear-gradient(135deg, #334155, #020617);
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.all-grid {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, .15);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, .76));
}

.card-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  opacity: 0;
  transform: scale(.9);
  transition: opacity .25s ease, transform .25s ease;
}

.movie-card a:hover .card-play {
  opacity: 1;
  transform: scale(1);
}

.card-rating {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(249, 115, 22, .92);
}

.card-body {
  display: block;
  padding: 14px;
}

.card-body strong {
  display: block;
  min-height: 44px;
  color: var(--gray-900);
  line-height: 1.35;
  transition: color .2s ease;
}

.movie-card a:hover strong {
  color: var(--red);
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #b91c1c;
  background: #fee2e2;
  border-color: transparent;
}

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

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

.rank-card a {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .2s ease, transform .2s ease;
}

.rank-card a:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, .16);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.rank-card img {
  width: 72px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  font-size: 17px;
}

.rank-info em,
.rank-info small {
  color: rgba(255, 255, 255, .68);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, .28), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero {
  padding: 86px 0;
}

.library-hero,
.search-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(239, 68, 68, .28), transparent 30%),
    linear-gradient(135deg, #111827, #7f1d1d);
}

.ranking-hero {
  background:
    radial-gradient(circle at 20% 25%, rgba(245, 158, 11, .26), transparent 26%),
    linear-gradient(135deg, #4c1d95, #020617);
}

.category-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 42px;
  align-items: center;
  text-align: left;
}

.category-hero-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-hero-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(2, 6, 23, .24);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-panel label,
.search-page-form {
  display: block;
}

.filter-panel span {
  display: block;
  margin-bottom: 7px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-900);
  background: #fff;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, .18);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects label {
  min-width: 150px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  border-radius: 18px;
  color: var(--gray-500);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.search-page-form {
  width: min(720px, 100%);
  margin: 32px auto 0;
  display: flex;
  gap: 12px;
}

.search-page-form input {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
}

.detail-hero {
  padding: 24px 0;
  text-align: left;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

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

.detail-section {
  padding-top: 38px;
}

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

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

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 30px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 48px rgba(239, 68, 68, .35);
}

.detail-card,
.side-panel {
  margin-top: 22px;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-card h2,
.side-panel h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  background: #fee2e2;
}

.lead-text {
  color: var(--gray-700);
  font-size: 18px;
  font-weight: 700;
}

.detail-card p {
  color: var(--gray-700);
}

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

.detail-tags a {
  color: #b91c1c;
  background: #fee2e2;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.side-panel dl {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--gray-900);
}

.side-panel a {
  color: #dc2626;
  font-weight: 800;
}

.highlight-panel {
  display: grid;
  gap: 12px;
}

.highlight-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), #000);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
}

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

.site-footer p,
.site-footer li {
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 34px rgba(239, 68, 68, .32);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-content,
  .category-page-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-thumbs {
    display: flex;
    overflow-x: auto;
  }

  .hero-thumb {
    min-width: 190px;
  }

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

  .rank-grid,
  .rank-grid.large,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero,
  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    min-height: 520px;
    padding: 52px 0 126px;
  }

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

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

  .section {
    padding: 50px 0;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body strong {
    font-size: 14px;
    min-height: 40px;
  }

  .card-desc {
    display: none;
  }

  .filter-panel,
  .filter-selects,
  .search-page-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-selects label {
    min-width: 0;
  }

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

  .rank-card img {
    width: 58px;
    height: 82px;
  }

  .detail-card,
  .side-panel {
    padding: 20px;
  }
}
