:root {
  --honey-50: #fff8e1;
  --honey-100: #fff0d1;
  --honey-300: #ffd875;
  --honey-500: #d4a574;
  --honey-700: #a67c3e;
  --honey-900: #6a4c20;
  --flame-100: #ffe0b2;
  --flame-500: #ff6b35;
  --flame-600: #e65a2a;
  --phoenix-400: #ff7043;
  --phoenix-600: #f4511e;
  --phoenix-900: #7f1d1d;
  --ink: #15110d;
  --muted: #6f655d;
  --line: rgba(106, 76, 32, 0.14);
  --glass: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(106, 76, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 45%, #fbe9e7);
  font-family: system-ui, -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%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--honey-700), var(--flame-500), #ffb300);
  box-shadow: 0 12px 36px rgba(127, 29, 29, 0.18);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #7f1d1d;
  background: radial-gradient(circle at 30% 20%, #fff8e1, #ffca28 55%, #ff7043);
  box-shadow: 0 0 24px rgba(255, 202, 40, 0.55);
  animation: flicker 3s ease-in-out infinite;
}

.brand-text {
  font-size: 1.28rem;
  white-space: nowrap;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  padding: 10px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 100%;
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
  outline: 0;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.header-search button {
  border: 0;
  color: #7f1d1d;
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  background: linear-gradient(180deg, var(--honey-700), var(--flame-600));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav a {
  display: block;
  color: #ffffff;
  padding: 12px 0;
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #150d09;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 88px max(24px, calc((100vw - 1280px) / 2)) 150px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 35%, rgba(255, 202, 40, 0.3), transparent 24%), linear-gradient(90deg, rgba(13, 7, 4, 0.88), rgba(41, 20, 10, 0.72) 48%, rgba(0, 0, 0, 0.54));
}

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

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

.eyebrow {
  margin: 0 0 12px;
  color: #ffdf7a;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.inner-hero h1,
.detail-intro h1 {
  margin: 0;
  line-height: 1.08;
  font-weight: 900;
}

.hero-content h1 {
  max-width: 880px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

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

.hero-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

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

.hero-meta span,
.detail-meta span,
.ranking-stats span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

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

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

.primary-btn {
  color: #7f1d1d;
  background: linear-gradient(135deg, #fff7c2, #ffca28 52%, #ff7043);
  box-shadow: 0 14px 34px rgba(255, 112, 67, 0.36);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover,
.ranking-row:hover,
.ranking-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  display: block;
  width: min(380px, 100%);
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
  animation: float 6s ease-in-out infinite;
}

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

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  opacity: 0.72;
}

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.hero-thumb img {
  width: 48px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 700;
}

.home-search-band,
.page-section,
.inner-hero,
.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: center;
  margin-top: -54px;
  position: relative;
  z-index: 3;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-band h2,
.section-heading h2,
.filter-panel h2,
.ranking-head h2,
.article-card h2,
.related-section h2 {
  margin: 0;
  color: #20140d;
  font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  line-height: 1.2;
}

.home-search-band p,
.section-heading p,
.filter-panel p,
.article-card p,
.inner-hero p,
.category-card p,
.movie-card p,
.ranking-card p {
  color: var(--muted);
}

.home-search-band form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.home-search-band input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 16px 18px;
  outline: 0;
}

.home-search-band button {
  border: 0;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-600));
  cursor: pointer;
}

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

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

.section-heading p {
  margin: 8px 0 0;
}

.section-more,
.ranking-head a {
  color: var(--phoenix-600);
  font-weight: 850;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--honey-700), var(--flame-500), var(--phoenix-600));
  box-shadow: 0 18px 40px rgba(244, 81, 30, 0.18);
  transition: transform 0.2s ease;
}

.category-tile strong {
  font-size: 1.25rem;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(106, 76, 32, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 58px rgba(106, 76, 32, 0.18);
}

.poster-link,
.ranking-card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #251008, #8a3b22);
}

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

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

.poster-year,
.rank-badge,
.poster-play,
.ranking-card-poster span {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-year {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #ffdf7a;
  font-size: 0.78rem;
  font-weight: 850;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 81, 30, 0.95);
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--phoenix-600);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.93rem;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.movie-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #8a3b22;
  background: var(--honey-100);
  font-size: 0.78rem;
  font-weight: 750;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8f7965;
  font-size: 0.84rem;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.ranking-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--phoenix-600);
  font-weight: 900;
}

.ranking-row img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.ranking-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.inner-hero {
  margin-top: 34px;
  padding: 70px 34px;
  border-radius: 34px;
  color: #ffffff;
  text-align: center;
  background: radial-gradient(circle at 18% 20%, rgba(255, 202, 40, 0.32), transparent 28%), linear-gradient(135deg, var(--honey-700), var(--flame-500), var(--phoenix-900));
  box-shadow: var(--shadow);
}

.inner-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.inner-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.centered-actions {
  justify-content: center;
}

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

.category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 30px;
  color: #ffffff;
  background: #1d0e09;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--category-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  opacity: 0.5;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.category-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.category-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.category-card-content div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-card-content span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(106, 76, 32, 0.1);
}

.filter-panel p {
  margin: 7px 0 0;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(120px, 0.8fr));
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 14px;
  outline: 0;
}

.empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  color: #7f1d1d;
  background: #fff0d1;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #140906;
}

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

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 7, 4, 0.9), rgba(77, 30, 12, 0.76), rgba(0, 0, 0, 0.68));
}

.detail-hero-inner {
  padding: 54px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.detail-intro h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.detail-intro p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.large-tags {
  margin-top: 20px;
}

.detail-main {
  padding-top: 44px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #7f1d1d;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.player-overlay span {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.article-card {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(106, 76, 32, 0.1);
}

.article-card p {
  margin: 14px 0 0;
  font-size: 1.03rem;
}

.related-section {
  padding-top: 52px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(106, 76, 32, 0.1);
  transition: transform 0.2s ease;
}

.ranking-card-poster img {
  width: 112px;
  height: 148px;
  object-fit: cover;
}

.ranking-card-poster span {
  left: 8px;
  top: 8px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--phoenix-600);
  font-weight: 900;
}

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

.ranking-card p {
  margin: 0;
}

.site-footer {
  margin-top: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--honey-900), var(--phoenix-900), #261008);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-inner p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

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

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 56px;
    padding-bottom: 190px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 160px);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .home-search-band,
  .filter-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(280px, 80vw);
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

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

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

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .home-search-band,
  .page-section,
  .inner-hero,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .home-search-band {
    padding: 20px;
  }

  .home-search-band form {
    border-radius: 22px;
    flex-direction: column;
  }

  .home-search-band button {
    min-height: 44px;
  }

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

  .movie-grid,
  .all-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .movie-card-body {
    padding: 14px;
  }

  .movie-card p {
    display: none;
  }

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

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

  .ranking-card {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 12px;
  }

  .ranking-card-poster img {
    width: 90px;
    height: 120px;
  }

  .article-card {
    padding: 22px;
  }
}
