:root {
  --pink: #ec4899;
  --pink-dark: #be185d;
  --orange: #f97316;
  --yellow: #eab308;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: #f3e8ee;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.14);
  --radius: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #fff7fb 0%, #fff 40%, #fff8ed 100%);
  color: var(--ink);
}

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

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

button,
input,
select {
  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, 0.94);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 70px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.logo {
  font-size: 25px;
}

.logo-icon,
.footer-logo span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

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

.main-nav > a,
.nav-dropdown > button {
  color: #374151;
  font-weight: 700;
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-dropdown:hover > button {
  color: var(--pink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 260px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.nav-dropdown-panel a:hover {
  color: var(--pink);
  background: var(--soft);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid transparent;
  outline: 0;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 12px 88px 12px 18px;
  color: #374151;
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  background: #fff;
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.header-search button,
.mobile-search button,
.big-search button {
  position: absolute;
  right: 5px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff0f7;
  color: var(--pink);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-search {
  position: relative;
  margin: 14px auto;
  width: min(520px, 100%);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #4b5563;
  font-weight: 700;
}

.mobile-panel nav a:hover {
  background: var(--soft);
  color: var(--pink);
}

.home-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
  border-radius: 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #ec4899 0%, #f97316 58%, #eab308 100%);
  box-shadow: 0 30px 85px rgba(236, 72, 153, 0.28);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.28), transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.24), transparent 34%),
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.18), transparent 24%);
  pointer-events: none;
}

.hero-slides {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

.hero-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
}

.hero-copy h2 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-copy p:not(.hero-kicker) {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.callout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags a,
.detail-tags span,
.callout-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
  color: var(--pink-dark);
  background: #fff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  position: relative;
  width: min(380px, 100%);
  margin-left: auto;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 75px rgba(92, 22, 72, 0.28);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img,
.poster-link:hover img,
.category-card:hover img,
.mini-hero-card:hover img {
  transform: scale(1.08);
}

.hero-poster span,
.card-duration,
.card-category {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.hero-poster span {
  right: 16px;
  bottom: 16px;
}

.hero-poster::after,
.poster-link::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 56px 42px;
}

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

.hero-dots button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-weight: 800;
}

.hero-dots button.is-active {
  color: var(--pink-dark);
  background: #fff;
}

.hero-mini-cards {
  display: flex;
  gap: 12px;
}

.mini-hero-card {
  position: relative;
  width: 118px;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(92, 22, 72, 0.18);
}

.mini-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.mini-hero-card span {
  position: absolute;
  inset: auto 8px 8px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.content-section,
.category-callout,
.search-page-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-title-row a,
.section-title-row span {
  color: var(--pink);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.card-duration {
  right: 10px;
  bottom: 10px;
}

.card-category {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.34);
}

.rank-badge + img + .card-duration + .card-category,
.rank-badge ~ .card-category {
  top: 52px;
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--pink);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

.ranking-slice {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff0f7, #fff7ed);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.ranking-row:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

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

.ranking-row img {
  width: 72px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

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

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

.ranking-info em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ranking-score {
  color: var(--orange);
  font-weight: 900;
}

.category-callout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: center;
  padding: 40px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fce7f3, #ffedd5, #fef9c3);
  box-shadow: var(--shadow);
}

.category-callout h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.category-callout p {
  margin: 0;
  color: #6b4b54;
  line-height: 1.8;
}

.callout-links {
  justify-content: flex-end;
  margin-top: 0;
}

.callout-links a {
  background: #fff;
  color: #374151;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.11);
}

.callout-links a:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

.catalog-layout {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  border-radius: 30px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--orange), var(--yellow));
  box-shadow: var(--shadow);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at 86% 70%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.page-hero > * {
  position: relative;
}

.page-hero p {
  margin: 0 0 10px;
  font-weight: 900;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  border-radius: 16px;
  padding: 13px 14px;
}

.flat-section {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.category-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 70px;
}

.category-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.category-card span,
.category-card em {
  position: relative;
  z-index: 2;
}

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

.category-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  line-height: 1.5;
}

.large-ranking {
  grid-template-columns: 1fr;
}

.detail-layout {
  padding: 34px 0 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 36px;
  border-radius: 34px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(120deg, #ec4899 0%, #f97316 58%, #eab308 100%);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(68, 18, 54, 0.28);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-copy > p:not(.hero-kicker) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  border-radius: 14px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.watch-section,
.detail-content-grid,
.search-page-panel {
  margin-bottom: 42px;
}

.watch-section {
  border-radius: 30px;
  padding: 26px;
  background: #111827;
  box-shadow: 0 24px 72px rgba(17, 24, 39, 0.18);
}

.watch-section .section-title-row h2 {
  color: #fff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.22), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  padding-left: 5px;
  color: var(--pink-dark);
  background: #fff;
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.22);
}

.play-layer strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.detail-article,
.related-panel,
.search-page-panel {
  border-radius: 28px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

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

.detail-article h2:not(:first-child) {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-article p,
.detail-article blockquote {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
}

.detail-article blockquote {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
  font-style: italic;
}

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

.movie-info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.movie-info-list dt {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 900;
}

.movie-info-list dd {
  margin: 6px 0 0;
  color: #374151;
  font-weight: 900;
}

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

.related-links {
  display: grid;
  gap: 12px;
}

.related-links a {
  padding: 12px 14px;
  border-radius: 16px;
  color: #4b5563;
  background: #f9fafb;
  font-weight: 800;
}

.related-links a:hover {
  color: var(--pink);
  background: var(--soft);
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card-wide .poster-link {
  aspect-ratio: 4 / 3;
}

.big-search {
  position: relative;
  margin-bottom: 26px;
}

.big-search input {
  min-height: 58px;
  border-radius: 18px;
  padding-left: 18px;
}

.big-search button {
  top: 7px;
  bottom: 7px;
  right: 7px;
  padding: 0 24px;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: 26px;
  text-align: center;
  color: var(--muted);
  background: #f9fafb;
}

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: linear-gradient(120deg, #831843, #9a3412, #854d0e);
}

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

.footer-logo {
  font-size: 22px;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slide,
  .detail-hero,
  .detail-content-grid,
  .category-callout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 34px;
    min-height: 660px;
  }

  .hero-poster {
    width: min(270px, 100%);
    margin: 0 auto;
  }

  .hero-bottom {
    display: block;
    padding: 0 34px 34px;
  }

  .hero-mini-cards {
    display: none;
  }

  .ranking-list,
  .latest-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .related-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .container,
  .content-section,
  .category-callout,
  .search-page-panel,
  .home-hero {
    width: min(100% - 20px, 1180px);
  }

  .header-inner {
    height: 64px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .home-hero {
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero-slides {
    min-height: 650px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-bottom {
    padding: 0 24px 26px;
  }

  .hero-dots button {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card-body h3 {
    font-size: 15px;
  }

  .page-hero,
  .detail-hero,
  .watch-section,
  .detail-article,
  .related-panel,
  .search-page-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .filter-panel,
  .movie-info-list,
  .category-wall {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 32px 58px minmax(0, 1fr) 36px;
    gap: 9px;
  }

  .ranking-row img {
    width: 58px;
    height: 46px;
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 24px;
  }
}
