:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-bg: #f8fafc;
  --color-muted: #64748b;
  --color-text: #111827;
  --color-card: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 46px rgba(15, 23, 42, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  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;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  font-size: 15px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: #374151;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: #eff6ff;
  transform: translateY(-1px);
}

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

.top-search input,
.mobile-search input,
.search-page-form input,
.category-search-box input {
  width: 220px;
  height: 40px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 0 16px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.category-search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.top-search button,
.mobile-search button,
.search-page-form button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: white;
  background: var(--color-primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-media,
.ranking-hero-media,
.poster-frame,
.small-poster {
  background: linear-gradient(135deg, #0f172a, #2563eb 48%, #06b6d4);
}

.hero-media,
.hero-media img,
.ranking-hero-media,
.ranking-hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img,
.ranking-hero-media img {
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(6, 182, 212, 0.25), transparent 28%), linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(15, 23, 42, 0.68) 46%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 110px 0 130px;
}

.hero-copy {
  width: min(720px, 100%);
  color: white;
}

.hero-kicker,
.section-title span,
.movie-eyebrow,
.detail-meta a,
.detail-meta span {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1,
.ranking-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-title-spacer {
  height: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 19px;
  color: #e0f2fe;
}

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

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

.primary-button {
  color: var(--color-primary);
  background: white;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.22);
}

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

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section-muted {
  width: 100%;
  background: #eef4fb;
}

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

.section-title span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title a {
  color: var(--color-primary);
  font-weight: 800;
}

.section-title-light span,
.section-title-light h2,
.section-title-light a {
  color: white;
}

.compact-title {
  align-items: start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0;
}

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

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

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

.movie-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  background: rgba(37, 99, 235, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-eyebrow {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--color-primary);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.ranking-band {
  padding: 72px 0;
  color: white;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 64px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.rank-item span {
  font-size: 22px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.rank-item div {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

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

.rank-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-item em {
  display: block;
  grid-column: 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.category-glow {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p,
.category-card strong {
  position: relative;
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.category-card strong {
  margin-top: 18px;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

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

.side-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.side-panel h2,
.sticky-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

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

.small-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.small-poster {
  width: 110px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
}

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

.small-card h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-card p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-card span {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}

.page-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  color: white;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -160px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero p,
.ranking-hero-copy p {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: #e0f2fe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.category-search-box {
  margin-top: 28px;
}

.category-search-box input {
  width: min(520px, 100%);
  height: 48px;
}

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

.ranking-hero {
  min-height: 440px;
  padding: 0;
  background: #0f172a;
}

.ranking-hero-media {
  position: absolute;
  inset: 0;
}

.ranking-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
  color: white;
}

.ranking-hero-copy .primary-button {
  width: fit-content;
  margin-top: 28px;
}

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

.ranking-card a {
  display: grid;
  grid-template-columns: 68px 180px 1fr;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  font-size: 20px;
  font-weight: 900;
}

.ranking-card .poster-frame {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

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

.ranking-card p {
  margin: 0 0 10px;
  color: var(--color-muted);
}

.ranking-card strong {
  color: var(--color-primary);
  font-size: 13px;
}

.search-page-form {
  margin-top: 28px;
}

.search-page-form input {
  width: min(520px, calc(100vw - 170px));
  height: 50px;
}

.search-page-form button {
  height: 50px;
  padding: 0 24px;
}

.detail-breadcrumb-wrap {
  padding: 18px 0;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.detail-breadcrumb-wrap .breadcrumb {
  margin-bottom: 0;
  color: #64748b;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
}

.movie-player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.detail-content-card {
  padding: 28px;
}

.detail-content-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.detail-meta a,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.detail-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.detail-block:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.review-block p {
  border-left: 4px solid var(--color-primary);
  border-radius: 0 16px 16px 0;
  padding: 18px;
  background: #eff6ff;
}

.tag-row-large {
  margin-top: 0;
}

.tag-row-large span {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

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

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

.more-link {
  width: 100%;
  margin-top: 20px;
  color: white;
  background: var(--color-primary);
}

.site-footer {
  margin-top: 32px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.site-footer p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  color: var(--color-muted);
  background: white;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

  .side-panel,
  .sticky-panel {
    position: static;
  }
}

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

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

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

  .mobile-search {
    margin-top: 8px;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 82px 0 112px;
  }

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

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

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

  .ranking-card a {
    grid-template-columns: 54px 120px 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 600px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-controls {
    bottom: 22px;
  }

  .section {
    padding: 48px 0;
  }

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

  .featured-grid,
  .movie-grid,
  .latest-grid,
  .category-movie-grid,
  .category-grid,
  .large-category-grid,
  .rank-grid,
  .grid-side-list {
    grid-template-columns: 1fr;
  }

  .ranking-card a {
    grid-template-columns: 48px 1fr;
  }

  .ranking-card .poster-frame {
    display: none;
  }

  .small-card {
    grid-template-columns: 92px 1fr;
  }

  .small-poster {
    width: 92px;
    height: 66px;
  }

  .detail-content-card {
    padding: 20px;
  }

  .player-overlay span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }

  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-page-form input,
  .search-page-form button {
    width: 100%;
  }
}
