:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-500: #f17925;
  --primary-600: #e2591b;
  --primary-700: #bc3e18;
  --accent-500: #f04f1f;
  --accent-600: #dd3f13;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-500: #78716c;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(28, 25, 23, 0.12);
  --soft-shadow: 0 12px 32px rgba(28, 25, 23, 0.09);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 18px rgba(28, 25, 23, 0.08);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 10px 28px rgba(240, 79, 31, 0.25);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.site-search,
.mobile-search,
.home-search-panel form,
.large-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search input,
.mobile-search input,
.home-search-panel input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  background: #ffffff;
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input {
  width: 230px;
  padding: 10px 16px;
}

.site-search button,
.mobile-search button,
.home-search-panel button,
.large-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.mobile-search button,
.home-search-panel button,
.large-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 12px 28px rgba(240, 79, 31, 0.22);
}

.site-search button {
  padding: 10px 18px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--neutral-900);
  font-size: 1.8rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--neutral-200);
  padding: 16px;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: var(--neutral-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.56fr);
  align-items: center;
  gap: 46px;
  padding: 86px max(32px, calc((100vw - var(--max)) / 2)) 76px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.48;
}

.hero-shade,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(241, 121, 37, 0.45), transparent 34%),
    linear-gradient(115deg, rgba(28, 25, 23, 0.96) 0%, rgba(28, 25, 23, 0.84) 48%, rgba(28, 25, 23, 0.42) 100%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  line-height: 1.08;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin-top: 16px;
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.hero-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.meta-pills span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.site-search button:hover,
.home-search-panel button:hover,
.large-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(240, 79, 31, 0.28);
}

.hero-poster {
  justify-self: end;
  width: min(380px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
}

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

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-panel,
.page-container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 26px;
  align-items: center;
  margin-top: -44px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.home-search-panel h2,
.section-head h2,
.related-panel h2,
.detail-card h2,
.footer-links h2 {
  margin: 0;
}

.home-search-panel p {
  margin: 6px 0 0;
  color: var(--neutral-500);
}

.home-search-panel input,
.large-search input {
  width: 100%;
  padding: 14px 18px;
}

.home-search-panel button,
.large-search button {
  padding: 14px 24px;
}

.home-layout {
  display: grid;
  gap: 58px;
  padding: 58px 0 10px;
}

.content-section,
.latest-section,
.ranking-entrance,
.detail-card,
.related-panel,
.player-card {
  border-radius: var(--radius-lg);
}

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

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section-head a {
  color: var(--primary-600);
  font-weight: 750;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(28, 25, 23, 0.15);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--neutral-200);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-frame em,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.poster-frame em {
  right: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
}

.movie-info {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 1rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info small,
.card-desc,
.mini-card small,
.rank-feature small {
  color: var(--neutral-500);
  font-size: 0.86rem;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact .movie-info {
  padding: 12px;
}

.latest-section {
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-50), #fff1e9);
  box-shadow: var(--soft-shadow);
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.rail-item {
  scroll-snap-align: start;
}

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

.category-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(241, 121, 37, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--primary-50));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  font-size: 1.35rem;
  font-weight: 850;
}

.category-card p {
  margin: 0;
  color: var(--neutral-500);
}

.category-card b {
  align-self: end;
  color: var(--primary-600);
}

.ranking-entrance {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 20%, rgba(240, 79, 31, 0.55), transparent 30%),
    linear-gradient(135deg, var(--neutral-900), #3b1c14);
  box-shadow: var(--shadow);
}

.ranking-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.78);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.mini-card:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mini-card span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  font-weight: 850;
}

.mini-card img {
  grid-row: 1 / 3;
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
}

.page-hero {
  padding: 72px 0;
}

.page-hero > div {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p,
.detail-title-row p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 750;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.page-hero h2 {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  font-weight: 500;
}

.small-hero {
  padding: 56px 0;
}

.page-container {
  padding: 46px 0 16px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 16px;
}

.rank-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.rank-feature {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: grid;
  align-content: end;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.rank-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.rank-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.rank-feature span,
.rank-feature strong,
.rank-feature small {
  position: relative;
  z-index: 2;
}

.rank-feature span {
  width: max-content;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  font-weight: 850;
}

.rank-feature strong {
  font-size: 1.45rem;
}

.detail-hero {
  min-height: 470px;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.08);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.detail-title-row img {
  width: 210px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.detail-title-row h2 {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  font-weight: 500;
}

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

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

.player-card,
.detail-card,
.related-panel {
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
  transform: translateX(2px);
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: 28px;
}

.meta-pills {
  margin: 0 0 24px;
}

.meta-pills span {
  color: var(--primary-700);
  background: var(--primary-50);
}

.detail-card h2 {
  margin-top: 26px;
  color: var(--neutral-900);
}

.detail-card h2:first-of-type {
  margin-top: 0;
}

.detail-card p {
  margin: 10px 0 0;
  color: var(--neutral-700);
  font-size: 1.02rem;
}

.related-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
}

.related-panel h2 {
  margin-bottom: 16px;
}

.related-panel .mini-card {
  grid-template-columns: 28px 58px minmax(0, 1fr);
  color: var(--neutral-900);
  background: var(--neutral-50);
  margin-bottom: 12px;
}

.related-panel .mini-card:hover {
  background: var(--primary-50);
}

.related-panel .mini-card small {
  color: var(--neutral-500);
}

.large-search {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-state {
  margin-bottom: 20px;
  color: var(--neutral-600);
  font-weight: 700;
  text-align: center;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--neutral-900);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-main p {
  max-width: 560px;
  margin: 0;
}

.footer-links h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1rem;
}

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

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

.footer-copy {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
  }

  .site-search input {
    width: 180px;
  }

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .nav-wrap {
    height: 64px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 46px;
    gap: 28px;
  }

  .hero-poster {
    justify-self: start;
    width: min(270px, 74vw);
  }

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

  .home-search-panel form,
  .large-search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .six-grid,
  .four-grid,
  .category-grid,
  .overview-grid,
  .rank-feature-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .detail-title-row {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
  }

  .detail-title-row img {
    width: 120px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-control {
    display: none;
  }

  .home-search-panel,
  .page-container {
    width: min(100% - 20px, var(--max));
  }

  .home-search-panel,
  .latest-section,
  .ranking-entrance,
  .detail-card,
  .related-panel {
    padding: 20px;
  }

  .six-grid,
  .four-grid,
  .category-grid,
  .overview-grid,
  .rank-feature-grid,
  .footer-inner,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .movie-rail {
    grid-auto-columns: 72%;
  }

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

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

  .detail-title-row img {
    width: 170px;
  }
}
