:root {
  --red-50: #fff1f2;
  --red-100: #ffe4e6;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --mist-50: #f7faf9;
  --mist-100: #edf3f1;
  --mist-200: #dbe7e4;
  --mist-300: #c4d5d1;
  --mist-500: #78918b;
  --mist-600: #627973;
  --mist-700: #495f59;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 22px 60px rgba(15, 23, 42, 0.24);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --max-width: 1280px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--mist-50);
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
  background: var(--mist-200);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  transition: box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(100% - 32px, var(--max-width));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--orange-600));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.26);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--red-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 220px;
  border: 1px solid var(--mist-200);
  border-radius: 999px;
  background: var(--mist-50);
  color: var(--slate-800);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--red-600);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  background: var(--mist-100);
  color: var(--slate-700);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--mist-200);
  background: var(--white);
  padding: 16px;
}

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

.mobile-nav nav {
  width: min(100%, var(--max-width));
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-700);
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--red-50);
  color: var(--red-600);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: 520px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--mist-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: var(--mist-50);
}

.search-result img {
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.3;
}

.search-result span,
.search-empty {
  color: var(--mist-700);
  font-size: 13px;
}

.site-main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding-top: 92px;
}

.page-main {
  padding-top: 100px;
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-900);
  box-shadow: var(--shadow-xl);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-slide img,
.ranking-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 88%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}

.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--white);
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.page-hero h1 {
  margin: 18px 0 14px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

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

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

.primary-button {
  color: var(--white);
  background: var(--red-500);
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--red-600);
}

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

.ghost-button.dark {
  color: var(--slate-800);
  background: var(--white);
}

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

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  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: 34px;
  background: var(--white);
}

.content-section {
  margin-top: 68px;
}

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

.section-head h2 {
  margin: 0 0 4px;
  color: var(--slate-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--mist-600);
}

.section-link {
  color: var(--red-600);
  font-weight: 800;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 285px;
  scroll-snap-align: start;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--mist-100);
  font-size: 26px;
}

.rail-controls button:hover {
  background: var(--mist-200);
}

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

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

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

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
  position: relative;
  height: 245px;
  overflow: hidden;
  background: var(--mist-200);
}

.movie-card.small .movie-poster {
  height: 170px;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.14), transparent);
  transition: opacity 0.3s ease;
}

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

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .movie-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
  color: var(--red-600);
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--mist-700);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--mist-500);
  font-size: 13px;
}

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

.category-card a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 145px;
  background: var(--mist-200);
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-card-body h2 {
  margin: 0 0 6px;
  color: var(--slate-800);
  font-size: 21px;
}

.category-card-body p {
  margin: 0 0 12px;
  color: var(--mist-700);
  font-size: 14px;
}

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

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

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

.ranking-link {
  display: grid;
  grid-template-columns: 44px 76px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-number {
  color: var(--red-600);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.ranking-link img {
  width: 76px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-copy strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.35;
}

.ranking-copy em {
  display: block;
  margin-top: 6px;
  color: var(--mist-600);
  font-size: 13px;
  font-style: normal;
}

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

.latest-row a {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-row a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.latest-row img {
  width: 88px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.latest-row strong,
.latest-row em {
  display: block;
}

.latest-row strong {
  margin-bottom: 6px;
  color: var(--slate-800);
}

.latest-row em {
  color: var(--mist-700);
  font-style: normal;
}

.latest-row b {
  color: var(--red-600);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 52px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #312e81 52%, var(--red-700));
  box-shadow: var(--shadow-xl);
}

.compact-hero,
.category-hero {
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.78), transparent 36%), linear-gradient(135deg, var(--slate-900), #3b1f2f 58%, var(--red-700));
}

.ranking-hero {
  display: flex;
  min-height: 430px;
}

.ranking-hero > div:not(.hero-shade) {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(650px, 90%);
}

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

.mini-feature {
  position: relative;
  min-height: 145px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--slate-800);
}

.mini-feature img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mini-feature:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.mini-feature span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.65fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 14px;
  background: var(--mist-50);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--mist-700);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: #000;
}

.player-wrap.is-playing .player-trigger {
  display: none;
}

.player-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
}

.player-trigger span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--red-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.player-trigger:hover span {
  transform: translate(-50%, -50%) scale(1.08);
}

.movie-detail-copy h1 {
  margin: 24px 0 12px;
  color: var(--slate-800);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.movie-detail-copy .detail-meta span {
  color: var(--mist-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tag-list {
  margin: 18px 0 22px;
}

.tag-list span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: 14px;
  font-weight: 650;
}

.detail-card,
.info-card {
  margin-top: 18px;
  border-radius: 18px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h2,
.info-card h2 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--mist-700);
  white-space: pre-line;
}

.review-card {
  background: linear-gradient(135deg, var(--slate-50), var(--red-50));
}

.detail-sidebar {
  position: sticky;
  top: 90px;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.info-card dt {
  color: var(--mist-600);
  font-size: 13px;
}

.info-card dd {
  margin: -8px 0 5px;
  color: var(--slate-800);
  font-weight: 750;
}

.site-footer {
  margin-top: 86px;
  color: var(--mist-300);
  background: var(--slate-900);
}

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

.footer-brand p {
  max-width: 520px;
  color: var(--mist-500);
}

.footer-logo {
  color: var(--white);
  font-size: 20px;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 28px;
  color: var(--mist-500);
  font-size: 14px;
}

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

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

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

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

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

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

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

  .mobile-search {
    width: min(100%, var(--max-width));
    margin: 0 auto;
  }

  .mobile-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    width: 100%;
    padding: 32px;
  }

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

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

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

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

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

  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-main {
    width: min(100% - 22px, var(--max-width));
    padding-top: 84px;
  }

  .site-header-inner {
    width: min(100% - 22px, var(--max-width));
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-carousel {
    height: 520px;
    border-radius: 20px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    justify-content: end;
    padding: 24px 20px 58px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 34px;
  }

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

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

  .rail-controls {
    display: none;
  }

  .rail-item {
    flex-basis: 250px;
  }

  .category-grid,
  .four-cols,
  .six-cols {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .movie-poster,
  .movie-card.small .movie-poster {
    height: 230px;
  }

  .page-hero {
    min-height: auto;
    padding: 30px 22px;
    border-radius: 20px;
  }

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

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

  .latest-row a {
    grid-template-columns: 72px 1fr;
  }

  .latest-row b {
    grid-column: 2;
  }

  .player-trigger span {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
