:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-600: #db2777;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 22px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.18);
  --radius-lg: 16px;
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.22);
  font-size: 15px;
}

.brand-name {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search {
  position: relative;
}

.top-search input {
  width: 260px;
  height: 40px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 0 48px 0 18px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.library-search:focus,
.search-page-input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.top-search button {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
}

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

.mobile-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--gray-200);
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--rose-500);
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--rose-50);
  color: var(--gray-700);
  font-weight: 600;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image.is-missing,
.poster-image.is-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  color: var(--white);
}

.hero-content h1,
.hero-content h2 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-kicker,
.hero-meta,
.hero-tags,
.detail-meta,
.detail-tags,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker {
  margin-bottom: 16px;
}

.hero-kicker span,
.hero-tags span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-kicker span:first-child {
  background: rgba(244, 63, 94, 0.78);
}

.hero-meta {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 700;
}

.hero-tags {
  margin-bottom: 28px;
}

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

.primary-button,
.ghost-button,
.side-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--rose-500);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.3);
}

.primary-button:hover,
.side-button:hover {
  background: var(--rose-600);
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-control-prev {
  left: 24px;
}

.hero-control-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.home-search-band {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  color: var(--white);
}

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

.home-search-inner h2,
.home-search-inner p {
  margin: 0;
}

.home-search-inner p {
  color: rgba(255, 255, 255, 0.86);
}

.home-search-inner form {
  display: flex;
  flex: 0 1 520px;
  gap: 10px;
}

.home-search-inner input,
.search-page-input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

.home-search-inner button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--rose-600);
  background: var(--white);
  font-weight: 800;
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-stack {
  padding-top: 64px;
  padding-bottom: 72px;
}

.content-section,
.category-strip {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 900;
}

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

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

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.category-chips a {
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.category-chips a:hover {
  color: var(--rose-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.poster-frame {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(244, 63, 94, 0.34), transparent 32%), linear-gradient(135deg, #111827, #374151);
}

.poster-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.card-region,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-region {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.card-link:hover h3 {
  color: var(--rose-500);
}

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

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

.card-meta span {
  border-radius: 999px;
  background: var(--gray-100);
  padding: 4px 8px;
}

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

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

.movie-card-compact .poster-frame {
  height: 180px;
}

.movie-card-compact .card-body p {
  display: none;
}

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

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

.movie-card-horizontal .poster-frame {
  height: 140px;
}

.movie-card-horizontal .card-body p {
  min-height: 44px;
}

.rank-list {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-xl);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--rose-50);
}

.rank-number {
  color: var(--rose-500);
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0;
  color: var(--white);
}

.gradient-hero,
.search-hero {
  background: linear-gradient(110deg, var(--rose-500), var(--pink-600));
}

.page-hero h1 {
  max-width: 860px;
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

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

.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.category-card-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card-body p {
  min-height: 52px;
  margin: 0 0 16px;
  color: var(--gray-600);
}

.category-card-body span {
  color: var(--rose-500);
  font-weight: 800;
}

.library-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.library-search-box {
  flex: 1;
}

.library-search {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  background: var(--white);
}

.sort-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-actions button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 750;
}

.sort-actions button.is-active,
.sort-actions button:hover {
  color: var(--white);
  background: var(--rose-500);
}

.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

.search-page-input {
  min-height: 52px;
}

.detail-shell {
  background: var(--gray-50);
  padding: 32px 0 80px;
}

.detail-breadcrumb {
  color: var(--gray-500);
}

.detail-breadcrumb a:hover {
  color: var(--rose-500);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 32px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding-left: 5px;
  background: var(--rose-500);
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.36);
  font-size: 32px;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

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

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
}

.detail-card p,
.story-block p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--rose-100);
  color: var(--rose-600);
  font-weight: 800;
  font-size: 14px;
}

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

.intro-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 16px;
  background: var(--gray-50);
  color: var(--gray-700);
}

.intro-line strong {
  flex-shrink: 0;
  color: var(--gray-900);
}

.story-block {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-200);
}

.detail-sidebar {
  min-width: 0;
}

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

.side-card {
  padding: 24px;
}

.side-card dl {
  margin: 0;
}

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.side-button {
  width: 100%;
  margin-top: 22px;
  color: var(--white);
  background: var(--rose-500);
}

.related-section {
  margin-top: 56px;
  margin-bottom: 0;
}

.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

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

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  margin: 16px 0 0;
  color: var(--gray-400);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 16px;
}

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

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

.site-footer a:hover {
  color: var(--rose-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .desktop-nav,
  .top-search {
    display: none;
  }

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

@media (max-width: 860px) {
  .header-inner {
    padding: 0 18px;
  }

  .hero {
    height: 560px;
  }

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

  .hero-control {
    display: none;
  }

  .home-search-inner,
  .library-toolbar,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search-inner form,
  .search-page-form {
    width: 100%;
    flex: none;
  }

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

  .poster-frame {
    height: 230px;
  }

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

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

  .movie-card-horizontal .poster-frame {
    height: 150px;
  }

  .rank-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

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

  .sticky-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 19px;
  }

  .page-container,
  .hero-content,
  .header-inner,
  .mobile-panel,
  .footer-inner,
  .home-search-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    height: 520px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 36px;
  }

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

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

  .poster-frame,
  .movie-card-compact .poster-frame {
    height: 260px;
  }

  .home-search-inner form,
  .mobile-search,
  .search-page-form {
    flex-direction: column;
  }

  .home-search-inner button,
  .mobile-search button,
  .search-page-form button {
    width: 100%;
    min-height: 44px;
  }

  .movie-card-horizontal .card-link {
    display: block;
  }

  .movie-card-horizontal .poster-frame {
    height: 240px;
  }

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

  .intro-line {
    flex-direction: column;
  }
}
