:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --soft-rose: #fff1f2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --shadow-soft: 0 10px 28px rgba(244, 63, 94, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #faf5ff 100%);
  color: var(--text);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

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

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

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

.header-search input,
.inline-search input,
.search-panel input,
.page-search,
.hero-search-input {
  width: 100%;
  border: 1px solid rgba(236, 72, 153, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.inline-search input:focus,
.search-panel input:focus,
.page-search:focus,
.hero-search-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.inline-search button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fdf2f8;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--pink);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, var(--pink), var(--rose) 52%, var(--purple));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.28));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, #ffffff);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 56px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 24px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 16px 34px rgba(190, 24, 93, 0.3);
}

.hero .btn.primary {
  color: var(--pink);
  background: white;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.38);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
  z-index: 1;
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 72px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.search-band {
  position: relative;
  z-index: 3;
  margin-top: -58px;
  padding: 0 16px 34px;
}

.search-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 420px) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-block {
  padding: 56px 0;
}

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

.section-kicker {
  color: var(--rose);
  background: #ffe4ef;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--pink);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-card.is-hidden {
  display: none;
}

.movie-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ef, #ede9fe);
}

.movie-thumb.landscape {
  aspect-ratio: 16 / 10;
}

.movie-thumb.poster {
  aspect-ratio: 3 / 4;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: rgba(236, 72, 153, 0.92);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.22);
}

.movie-info {
  padding: 18px;
}

.movie-info strong,
.rank-card-info strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong,
.movie-card:hover .rank-card-info strong {
  color: var(--pink);
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 16px;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}

.movie-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 44% 1fr;
  align-items: stretch;
}

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

.warm-section {
  background: linear-gradient(90deg, #ffedd5, #ffe4e6 56%, #fce7f3);
}

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

.rank-card {
  position: relative;
  border-radius: 18px;
}

.rank-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 42px 12px 12px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.rank-card-info strong {
  color: white;
  font-size: 14px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-card-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: #111827;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.16);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.82));
}

.category-tile span {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile small {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  color: white;
  background: linear-gradient(120deg, var(--pink), var(--rose), var(--purple));
}

.compact-hero {
  padding: 78px 0 92px;
}

.compact-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.inline-search {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin-top: 26px;
}

.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  transform: translateY(-1px);
}

.page-search {
  max-width: 320px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  background: white;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 11;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--pink);
  background: #fdf2f8;
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 88px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 20px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.ranking-row img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.ranking-main small {
  display: -webkit-box;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-meta {
  color: var(--rose);
  font-weight: 900;
}

.hero-search-input {
  max-width: 660px;
  margin-top: 26px;
}

.detail-wrap {
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 700;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0f172a;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: white;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(15, 23, 42, 0.48));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 40px rgba(190, 24, 93, 0.4);
  font-size: 34px;
  padding-left: 5px;
}

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

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.type-pill {
  flex: none;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--pink);
  background: #fce7f3;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
}

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

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

.detail-section h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.highlight-section {
  padding: 22px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(90deg, #fdf2f8, #fff1f2);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-row span {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.genre-row span {
  color: #2563eb;
  background: #dbeafe;
}

.tag-row span {
  color: #4b5563;
  background: #f3f4f6;
}

.review-box {
  padding: 22px;
  border-radius: 20px;
  background: #f9fafb;
}

.sticky-card {
  position: sticky;
  top: 102px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #f9fafb;
}

.related-item img {
  width: 108px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: -webkit-box;
  color: #111827;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.site-footer {
  color: white;
  background: #111827;
  padding: 44px 0 28px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.footer-inner p {
  max-width: 580px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d1d5db;
  font-weight: 700;
}

.footer-links a:hover {
  color: #f9a8d4;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  color: #9ca3af;
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }

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

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

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

  .sticky-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

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

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    padding: 56px 0 110px;
  }

  .hero-poster {
    width: min(280px, 80vw);
    margin: 0 auto;
  }

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .section-heading,
  .footer-inner,
  .list-tools {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

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

  .page-search {
    max-width: none;
  }

  .ranking-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .ranking-row img {
    width: 72px;
    height: 52px;
  }

  .ranking-meta {
    grid-column: 3;
  }

  .detail-title-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .copyright,
  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

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

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

  .movie-grid,
  .featured-grid,
  .all-grid,
  .poster-grid,
  .category-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 40px 0;
  }

  .compact-hero {
    padding: 54px 0 66px;
  }

  .inline-search {
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 38px 1fr;
  }

  .ranking-row img {
    display: none;
  }

  .ranking-meta {
    grid-column: 2;
  }

  .detail-card,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .player-card {
    border-radius: 22px;
  }

  .related-item {
    grid-template-columns: 92px 1fr;
  }

  .related-item img {
    width: 92px;
    height: 62px;
  }
}
