:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --cyan-50: #ecfeff;
  --teal-50: #f0fdfa;
  --orange-500: #f97316;
  --purple-500: #a855f7;
  --green-500: #22c55e;
  --red-600: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.13);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.2);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700), var(--blue-800));
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease;
}

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

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.brand em,
.footer-brand em {
  display: block;
  font-style: normal;
  font-size: 12px;
  opacity: 0.82;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-100);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 8px;
  border-radius: 14px;
  color: var(--gray-800);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

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

.header-search input {
  width: 230px;
  padding: 10px 44px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  outline: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.header-search input::placeholder {
  color: rgba(219, 234, 254, 0.92);
}

.header-search input:focus {
  width: 270px;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
}

.header-search button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 3px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: block;
  animation: fadeIn 0.25s ease both;
}

.mobile-panel a,
.mobile-panel form {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--white);
  outline: 0;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel button {
  margin-top: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-image: var(--hero-image), linear-gradient(135deg, #1d4ed8, #0891b2);
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 42%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(30, 64, 175, 0.72), rgba(6, 182, 212, 0.36)),
    linear-gradient(0deg, rgba(249, 250, 251, 0.95), transparent 18%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 20px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 34px;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--blue-100);
}

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

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

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

.btn-primary {
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: var(--blue-700);
  background: var(--blue-50);
}

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

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

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

.section {
  padding: 64px 0;
}

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

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.section-heading h2 span {
  color: var(--blue-500);
}

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

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  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;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--cyan-50));
}

.movie-cover-wide {
  aspect-ratio: 16 / 9;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 60%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--blue-600);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta a {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-50);
  white-space: nowrap;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
}

.category-band {
  background: linear-gradient(135deg, var(--blue-50), var(--cyan-50), var(--teal-50));
}

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

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(4n + 2) {
  background: linear-gradient(135deg, var(--green-500), #15803d);
}

.category-card:nth-child(4n + 3) {
  background: linear-gradient(135deg, var(--purple-500), #7e22ce);
}

.category-card:nth-child(4n + 4) {
  background: linear-gradient(135deg, var(--orange-500), #c2410c);
}

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

.category-card span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

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

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.rank-panel,
.side-card,
.content-card,
.player-card,
.cta-panel,
.toolbar,
.search-status {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  padding: 22px;
}

.rank-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rank-head span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red-600);
  font-weight: 900;
}

.rank-head strong {
  font-size: 22px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: var(--blue-50);
  transform: translateX(4px);
}

.rank-no {
  color: var(--blue-700);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--blue-50);
}

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

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

.rank-info em {
  display: block;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-700);
  font-weight: 800;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), #0891b2);
}

.cta-panel span {
  display: inline-flex;
  margin-bottom: 8px;
  opacity: 0.82;
}

.cta-panel h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.cta-panel p {
  margin: 0;
  color: var(--blue-100);
}

.page-hero {
  padding: 86px 0 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, var(--blue-600), var(--blue-800));
}

.category-hero {
  background: linear-gradient(135deg, #0f766e, var(--blue-700));
}

.ranking-hero {
  background: linear-gradient(135deg, #7f1d1d, var(--blue-800));
}

.search-hero {
  background: linear-gradient(135deg, #5b21b6, var(--blue-700));
}

.page-hero span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.page-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--blue-100);
  font-size: 19px;
}

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

.toolbar label {
  flex: 1;
}

.toolbar span {
  display: block;
  margin-bottom: 7px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 800;
}

.toolbar input,
.big-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.toolbar input:focus,
.big-search input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

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

.big-search input {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.big-search input::placeholder {
  color: var(--blue-100);
}

.big-search button {
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.search-status {
  margin-bottom: 24px;
  padding: 16px 20px;
  color: var(--gray-600);
}

.detail-hero {
  position: relative;
  color: var(--white);
  background-image: var(--detail-image), linear-gradient(135deg, var(--blue-800), #111827);
  background-size: cover;
  background-position: center;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(30, 64, 175, 0.76), rgba(17, 24, 39, 0.52)),
    linear-gradient(0deg, rgba(249, 250, 251, 1), transparent 18%);
  backdrop-filter: blur(1px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: 60px 0 90px;
}

.detail-poster img {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: var(--blue-50);
  box-shadow: var(--shadow-lg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue-100);
  font-weight: 700;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--blue-100);
  font-size: 20px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

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

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.32)),
    var(--player-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

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

.player-cover strong {
  font-size: 22px;
}

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

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 24px;
  color: var(--gray-800);
  font-size: 17px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.side-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 24px;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 700;
}

.side-card a {
  color: var(--blue-700);
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--gray-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .brand-icon {
  color: var(--blue-700);
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

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

.site-footer a {
  color: #d1d5db;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

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

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

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

  .brand strong {
    font-size: 20px;
  }

  .brand em {
    display: none;
  }

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

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 18px;
  }

  .section {
    padding: 42px 0;
  }

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

  .movie-body {
    padding: 13px;
  }

  .movie-title {
    font-size: 15px;
  }

  .movie-body p {
    display: none;
  }

  .category-card {
    min-height: 150px;
    padding: 18px;
  }

  .cta-panel,
  .toolbar,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 0 72px;
  }

  .detail-poster img {
    width: 210px;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .detail-info p {
    font-size: 17px;
  }

  .content-card {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 36px 54px minmax(0, 1fr);
  }

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

@media (max-width: 460px) {
  .poster-grid,
  .wide-grid,
  .category-grid,
  .category-grid-large,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-cover {
    aspect-ratio: 16 / 11;
  }
}
