:root {
  --page-bg: #f4f7fb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-soft: #4b5563;
  --text-light: #9ca3af;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --red: #dc2626;
  --orange: #f97316;
  --dark: #0f172a;
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.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.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.brand-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  display: block;
  margin-top: -3px;
  color: #6b7280;
  font-size: 12px;
}

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

.nav-link {
  padding: 9px 13px;
  color: #374151;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-soft);
}

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

.top-search input,
.search-page-form input,
.card-search-input {
  width: 220px;
  height: 40px;
  padding: 0 14px;
  color: var(--text-main);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.top-search input:focus,
.search-page-form input:focus,
.card-search-input:focus,
.filter-bar select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.top-search button,
.search-page-form button {
  height: 40px;
  padding: 0 16px;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  min-height: 640px;
}

.hero-slide.active {
  display: block;
  animation: fadeHero 0.55s ease both;
}

.hero-backdrop,
.hero-backdrop img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 38%, rgba(37, 99, 235, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  min-height: 560px;
  padding-top: 42px;
}

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

.hero-badge,
.section-kicker,
.featured-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  padding: 6px 11px;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.42);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-thumbs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: -74px;
  padding-bottom: 28px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
}

.hero-thumb.active {
  border-color: rgba(249, 115, 22, 0.86);
  background: rgba(249, 115, 22, 0.2);
}

.hero-thumb img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

.page-section {
  padding: 54px 0;
}

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

.section-head h2,
.ranking-head h2,
.search-result-head h2 {
  margin: 8px 0 0;
  color: var(--text-main);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head .section-kicker,
.page-hero .section-kicker {
  color: var(--red);
  background: #fff1f2;
}

.section-more,
.full-link,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

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

.featured-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: var(--shadow);
}

.featured-card img,
.featured-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-card img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.featured-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.1));
}

.featured-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

.featured-copy strong,
.featured-copy small {
  display: block;
}

.featured-copy strong {
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.18;
}

.featured-copy small {
  display: -webkit-box;
  margin-top: 8px;
  color: #d1d5db;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-image::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), transparent);
  transition: opacity 0.25s ease;
}

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

.movie-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info h2 a:hover {
  color: var(--blue);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f3f4f6;
}

.ranking-panel,
.content-card,
.side-card,
.player-card {
  background: var(--card-bg);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.ranking-head span {
  display: inline-flex;
  padding: 4px 9px;
  color: #fff;
  border-radius: 999px;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

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

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

.rank-row:hover {
  background: #f8fafc;
}

.rank-num {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

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

.rank-copy small {
  color: #6b7280;
  font-size: 12px;
}

.full-link {
  display: block;
  margin-top: 16px;
  text-align: center;
}

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

.category-card {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.category-card img,
.category-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-card-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.18));
}

.category-card-copy {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #fff;
}

.category-card-copy strong,
.category-card-copy small {
  display: block;
}

.category-card-copy strong {
  font-size: 20px;
  font-weight: 900;
}

.category-card-copy small {
  margin-top: 4px;
  color: #d1d5db;
  font-size: 13px;
}

.page-hero {
  margin-top: 34px;
  padding: 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.18), transparent 26%),
    linear-gradient(135deg, #ffffff, #eef4ff);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

.category-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 24px;
}

.category-overview-card p {
  margin: 8px 0 12px;
  color: var(--text-soft);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filter-bar select {
  height: 40px;
  padding: 0 38px 0 13px;
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  outline: none;
}

.movie-card-list,
.ranking-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 12px;
}

.movie-card-list .movie-image img {
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}

.movie-card-list .movie-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px 10px 0;
}

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

.ranking-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.ranking-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-cover span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 20px;
  font-weight: 900;
}

.ranking-cover img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}

.detail-backdrop,
.detail-backdrop img,
.detail-cover-layer {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.08);
  transform: scale(1.04);
}

.detail-cover-layer {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  max-width: 920px;
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 6px 11px;
  color: #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.player-card {
  padding: 20px;
}

.player-card h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
  background: #020617;
}

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

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  width: 92px;
  height: 92px;
  margin: auto;
  place-items: center;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 42px rgba(220, 38, 38, 0.32);
}

.play-button span {
  transform: translateX(3px);
  font-size: 34px;
}

.player-shell.is-playing .play-button {
  display: none;
}

.content-card,
.side-card {
  padding: 24px;
}

.content-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--text-light);
}

.side-card dd {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
}

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin-top: 26px;
}

.search-page-form input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
}

.search-page-form button {
  height: 48px;
  border-radius: 14px;
}

.search-result-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.search-result-head span {
  color: var(--text-soft);
}

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

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

.footer-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

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

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

.footer-bottom {
  padding: 20px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hidden-card {
  display: none !important;
}

@keyframes fadeHero {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  .hero-content {
    grid-template-columns: 1fr 300px;
  }

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

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

@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

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

  .brand-subtitle {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    min-height: 590px;
  }

  .hero-poster {
    width: min(320px, 82vw);
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -88px;
  }

  .two-column-layout,
  .detail-layout,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .detail-poster {
    width: min(340px, 88vw);
  }
}

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

  .brand-title {
    font-size: 18px;
  }

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

  .hero-content {
    min-height: 610px;
  }

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

  .hero h2 {
    font-size: 28px;
  }

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

  .hero-thumbs {
    grid-template-columns: 1fr;
  }

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }

  .page-section {
    padding: 36px 0;
  }

  .featured-grid,
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 300px;
  }

  .category-overview-card,
  .movie-card-list,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .category-preview img {
    height: 92px;
  }

  .page-hero {
    padding: 28px;
    border-radius: 22px;
  }

  .filter-bar select,
  .card-search-input {
    width: 100%;
  }

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

  .search-result-head {
    display: block;
  }
}
