:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --sky: #38bdf8;
  --sky-dark: #0ea5e9;
  --emerald: #34d399;
  --amber: #f59e0b;
  --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 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 25px 60px rgba(236, 72, 153, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.75), #ffffff 40%, rgba(240, 249, 255, 0.8));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #ffffff;
  background: var(--pink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.logo-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

.logo-text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--pink);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 30vw);
  padding: 4px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.header-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--gray-700);
  background: transparent;
}

.header-search input {
  padding: 10px 12px 10px 18px;
}

.header-search button,
.mobile-search button {
  flex: 0 0 auto;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.20);
}

.header-search button {
  padding: 9px 16px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--gray-700);
  border-radius: 14px;
  background: var(--gray-100);
}

.mobile-panel {
  padding: 0 24px 20px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 18px;
  background: var(--gray-100);
}

.mobile-search input {
  padding: 10px 12px;
}

.mobile-search button {
  padding: 10px 16px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.12));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(15, 23, 42, 0.58) 72%, rgba(15, 23, 42, 0.72) 100%), var(--hero-bg);
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 22%, rgba(236, 72, 153, 0.18), transparent 32%), radial-gradient(circle at 70% 12%, rgba(56, 189, 248, 0.18), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 + p,
.hero-copy p {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions,
.detail-meta-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.25);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  color: var(--gray-800);
  border: 2px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.85);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.ghost-button:hover {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.45);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.30);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: var(--pink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

.hero-floating {
  position: absolute;
  z-index: 1;
  opacity: 0.32;
  font-size: 52px;
  animation: float 14s ease-in-out infinite;
}

.hero-floating.one {
  left: 8%;
  top: 18%;
}

.hero-floating.two {
  right: 12%;
  top: 14%;
  animation-delay: 2s;
}

.hero-floating.three {
  left: 18%;
  bottom: 12%;
  animation-delay: 4s;
}

.section-block {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.nested-section {
  width: 100%;
  padding: 56px 0 0;
}

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

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

.section-heading h2,
.page-hero h1,
.rank-card h2,
.side-card h2,
.text-panel h2 {
  margin: 0;
  color: var(--gray-800);
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-heading a {
  color: var(--pink);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.36);
  box-shadow: var(--shadow-hover);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray-100);
}

.movie-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .movie-cover img,
.small-card:hover img,
.hero-poster:hover img {
  transform: scale(1.06);
}

.card-label,
.duration,
.badge,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--pink);
  font-size: 34px;
  background: rgba(17, 24, 39, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.movie-info {
  padding: 18px;
}

.movie-info h3,
.small-card h3 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.4;
}

.movie-info h3 a:hover,
.small-card h3 a:hover,
.category-samples a:hover {
  color: var(--pink);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--gray-300);
}

.gradient-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.55), rgba(224, 242, 254, 0.60), rgba(209, 250, 229, 0.55));
}

.band-inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-main-link {
  display: block;
  min-height: 210px;
  padding: 28px;
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 20px;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(56, 189, 248, 0.18));
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-tile strong {
  color: var(--pink);
}

.category-samples {
  display: flex;
  gap: 8px;
  padding: 0 28px 24px;
  overflow: hidden;
}

.category-samples a {
  flex: 0 0 auto;
  max-width: 32%;
  overflow: hidden;
  padding: 7px 10px;
  color: var(--gray-600);
  border-radius: 999px;
  background: var(--gray-100);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

.wide-list {
  display: grid;
  gap: 20px;
}

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

.movie-card-wide .movie-cover img {
  height: 100%;
  aspect-ratio: 16 / 10;
}

.movie-card-wide .movie-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge,
.badge.soft {
  width: fit-content;
  padding: 7px 12px;
}

.badge {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

.badge.soft {
  color: var(--pink);
  background: rgba(252, 231, 243, 0.9);
}

.rank-panel,
.rank-card,
.side-card {
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
}

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

.small-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.small-card:hover {
  background: rgba(249, 250, 251, 0.9);
  transform: translateX(2px);
}

.small-cover {
  overflow: hidden;
  border-radius: 14px;
}

.small-cover img {
  height: 70px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.small-card h3 {
  display: -webkit-box;
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-card p,
.small-card span {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff !important;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 24px;
  background: linear-gradient(120deg, rgba(236, 72, 153, 0.12), rgba(56, 189, 248, 0.13), rgba(52, 211, 153, 0.10));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 55%;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 68%);
}

.page-hero > div {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.no-results {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--gray-500);
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

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

.rank-card {
  padding: 24px;
}

.rank-card h2,
.side-card h2 {
  margin-bottom: 22px;
  font-size: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #000000;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.big-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  color: var(--pink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  transition: transform 0.25s ease;
}

.player-cover:hover .big-play {
  transform: scale(1.08);
}

.detail-content {
  padding: 28px;
}

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

.detail-tags a {
  min-height: 32px;
  padding: 0 12px;
  color: var(--pink);
  background: rgba(252, 231, 243, 0.88);
}

.detail-tags a:hover {
  color: #ffffff;
  background: var(--pink);
}

.detail-content h1 {
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.24;
}

.lead-text {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta-row {
  padding-bottom: 22px;
  margin-bottom: 24px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta-row span {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--gray-100);
}

.text-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.72);
}

.highlight-panel {
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.65), rgba(224, 242, 254, 0.65));
}

.text-panel h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.text-panel p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 20px;
  align-self: start;
}

.side-card {
  padding: 22px;
}

.poster-card img {
  margin-bottom: 18px;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.facts-grid {
  display: grid;
  gap: 12px;
}

.facts-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.facts-grid span {
  color: var(--gray-500);
}

.facts-grid strong {
  color: var(--gray-800);
  text-align: right;
}

.site-footer {
  padding: 44px 24px 28px;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: min(1280px, 100%);
  margin: 0 auto 24px;
}

.footer-logo {
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 22px;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--pink);
}

.copyright {
  width: min(1280px, 100%);
  margin: 0 auto;
  color: var(--gray-500);
  font-size: 14px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@media (max-width: 1180px) {
  .movie-grid,
  .movie-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0 110px;
  }

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

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

  .category-grid,
  .rank-columns {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .header-inner,
  .section-block,
  .detail-layout {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .header-inner {
    height: 64px;
    padding: 0;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

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

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

  .hero-slide {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.70), rgba(15, 23, 42, 0.68)), var(--hero-bg);
  }

  .hero-content {
    width: calc(100% - 32px);
  }

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

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

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .section-block {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

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

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

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

  .detail-content,
  .rank-card,
  .side-card {
    padding: 18px;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
