:root {
  --rose-950: #4c0519;
  --rose-900: #881337;
  --rose-800: #9f1239;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-100: #ffe4e6;
  --rose-50: #fff1f2;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 22px 60px rgba(136, 19, 55, 0.18);
  --shadow-card: 0 18px 36px rgba(17, 24, 39, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  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: var(--gray-800);
  background: linear-gradient(180deg, var(--rose-50), var(--amber-50) 38%, var(--white));
}

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: var(--white);
  background: linear-gradient(90deg, rgba(136, 19, 55, 0.95), rgba(120, 53, 15, 0.92));
  box-shadow: 0 16px 45px rgba(17, 24, 39, 0.2);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(76, 5, 25, 0.98), rgba(120, 53, 15, 0.96));
}

.site-header__inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-400));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.38);
}

.site-logo__text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

.nav-link,
.nav-dropdown__button {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown__button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--gray-700);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--gray-700);
}

.nav-dropdown__menu a:hover {
  color: var(--rose-800);
  background: var(--rose-50);
}

.header-search,
.mobile-search,
.quick-search-form,
.search-panel,
.category-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.quick-search-form input,
.search-panel input,
.search-panel select,
.category-toolbar input,
.category-toolbar select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search-form input:focus,
.search-panel input:focus,
.search-panel select:focus,
.category-toolbar input:focus,
.category-toolbar select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}

.header-search button,
.mobile-search button,
.quick-search-form button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.24);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--gray-950);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, var(--rose-900), var(--gray-950));
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 30%, rgba(251, 191, 36, 0.22), transparent 25%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(76, 5, 25, 0.78) 44%, rgba(3, 7, 18, 0.2));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 96px 0 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero-slide h1,
.page-hero h1,
.detail-info h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-slide p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--rose-800);
  font-size: 13px;
  font-weight: 800;
  background: var(--rose-50);
}

.hero-tags span {
  color: var(--amber-50);
  background: rgba(225, 29, 72, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.3);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--amber-400);
}

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

.hero-thumb {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  transform: translateY(-2px);
  background: rgba(251, 191, 36, 0.22);
}

.hero-thumb img {
  width: 54px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  font-weight: 800;
}

.quick-search-band,
.content-section,
.category-section,
.ranking-band,
.ranking-page,
.search-page,
.category-toolbar,
.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-band {
  position: relative;
  z-index: 6;
  margin-top: -52px;
}

.quick-search-band__inner {
  display: grid;
  grid-template-columns: minmax(180px, 330px) 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search-band h2 {
  margin: 0;
  color: var(--rose-900);
  font-size: clamp(24px, 3vw, 34px);
}

.quick-search-form input {
  flex: 1;
  border-color: var(--rose-100);
  background: var(--white);
}

.content-section,
.category-section,
.ranking-page,
.search-page {
  padding: 70px 0 0;
}

.content-section--plain {
  padding-top: 28px;
}

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

.section-head--inside {
  margin-bottom: 18px;
}

.section-head h2,
.ranking-band__intro h2,
.side-card h2,
.detail-block h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--rose-800);
  background: var(--rose-100);
  border-color: rgba(225, 29, 72, 0.15);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--rose-700);
  font-weight: 900;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(136, 19, 55, 0.1);
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

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

.movie-card:hover .movie-card__poster img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.78), transparent);
}

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
}

.movie-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--rose-700);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card--compact .movie-card__body {
  padding: 13px;
}

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

.category-chip {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-chip:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

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

.category-chip__covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.category-chip__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-chip h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 26px;
  font-weight: 950;
}

.category-chip p {
  margin: 0 0 16px;
  color: var(--gray-600);
  line-height: 1.75;
}

.category-chip span {
  color: var(--rose-700);
  font-weight: 900;
}

.ranking-band {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 34px;
  margin-top: 70px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
  box-shadow: var(--shadow-soft);
}

.ranking-band__intro {
  color: var(--white);
}

.ranking-band__intro h2 {
  color: var(--white);
}

.ranking-band__intro p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: var(--white);
}

.ranking-item__number {
  color: var(--rose-700);
  font-size: 18px;
  font-weight: 950;
}

.ranking-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.ranking-item__content {
  min-width: 0;
}

.ranking-item strong,
.ranking-item em {
  display: block;
}

.ranking-item strong {
  overflow: hidden;
  color: var(--gray-900);
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-item em {
  overflow: hidden;
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-item__heat {
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 950;
}

.ranking-page {
  padding-top: 42px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 95px max(16px, calc((100vw - 1200px) / 2)) 78px;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 24%, rgba(251, 191, 36, 0.28), transparent 32%),
    linear-gradient(135deg, var(--rose-950), var(--amber-900));
}

.page-hero--compact,
.page-hero--search,
.page-hero--ranking,
.page-hero--category {
  min-height: 330px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
}

.category-toolbar,
.search-panel {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
}

.category-toolbar input,
.search-panel input {
  flex: 1;
}

.category-toolbar select,
.search-panel select {
  border-color: var(--rose-100);
  background: var(--white);
}

.search-results:empty {
  display: none;
}

.empty-state {
  margin: 28px 0 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--rose-800);
  text-align: center;
  font-weight: 900;
  background: var(--rose-50);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.38;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(76, 5, 25, 0.82), rgba(120, 53, 15, 0.58));
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

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

.detail-poster img {
  width: 260px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card,
.detail-block,
.side-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-950);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-950);
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-layer__icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.32);
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 5;
  margin: 0;
  color: var(--amber-100);
  font-weight: 800;
}

.detail-block,
.side-card {
  padding: 26px;
}

.detail-block p {
  margin: 14px 0 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-block--review {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--amber-50));
}

.info-table {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-table div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-table strong {
  color: var(--rose-800);
}

.info-table span {
  color: var(--gray-700);
}

.tag-row--large {
  margin-top: 18px;
}

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

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

.ranking-list--side .ranking-item {
  grid-template-columns: 34px 50px minmax(0, 1fr);
}

.ranking-list--side .ranking-item__heat {
  display: none;
}

.ranking-list--side .ranking-item img {
  width: 50px;
  height: 66px;
}

.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.side-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-800);
  font-weight: 900;
  background: var(--rose-50);
}

.site-footer {
  margin-top: 80px;
  padding: 54px max(16px, calc((100vw - 1200px) / 2)) 24px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, var(--gray-900), var(--gray-950));
}

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

.site-logo--footer {
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 66px;
  }

  .site-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-slide__content {
    padding-bottom: 115px;
  }

  .hero-thumbs {
    display: none;
  }

  .quick-search-band__inner,
  .detail-grid,
  .category-chip {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    width: min(260px, 100%);
  }

  .movie-grid,
  .movie-grid--related,
  .ranking-list--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel,
  .category-toolbar,
  .quick-search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-panel input,
  .search-panel select,
  .category-toolbar input,
  .category-toolbar select,
  .quick-search-form input,
  .quick-search-form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-logo__text {
    font-size: 18px;
  }

  .site-logo__mark {
    width: 36px;
    height: 36px;
  }

  .hero-slide__content {
    padding-top: 60px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid--related {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 36px 52px minmax(0, 1fr);
  }

  .ranking-item__heat {
    display: none;
  }

  .category-chip__covers {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-hero__inner {
    padding-top: 28px;
  }

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