:root {
  --bg: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.24);
  --card: #ffffff;
  --dark: #111827;
  --amber: #d97706;
  --amber-deep: #92400e;
  --orange: #ea580c;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.96), rgba(120, 53, 15, 0.96));
  color: #fff;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35);
  font-size: 14px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 12px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.mobile-link {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  background: #1c1917;
  color: #fff;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(17, 24, 39, 0.84));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 60px;
  padding: 80px 0 170px;
}

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

.eyebrow,
.section-heading span,
.page-hero span,
.category-card span,
.feature-band span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d97706;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero .eyebrow {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

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

.hero-tag,
.tag {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tag {
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(251, 146, 60, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.34);
}

.tag {
  padding: 7px 11px;
  color: #92400e;
  background: #ffedd5;
}

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

.primary-button,
.ghost-button,
.feature-band a,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
}

.primary-button:hover,
.feature-band a:hover,
.text-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(234, 88, 12, 0.28);
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  min-height: 500px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span,
.poster-play,
.play-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.hero-strip {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hero-strip::-webkit-scrollbar {
  display: none;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  color: #fff;
  transition: 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.compact-card img {
  width: 58px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.compact-info strong {
  font-size: 14px;
}

.compact-info em {
  margin-top: 4px;
  color: #fed7aa;
  font-style: normal;
  font-size: 12px;
}

.quick-panel,
.content-section,
.category-overview,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  padding: 64px 0 18px;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-heading h2,
.page-hero h1,
.detail-info-card h1,
.feature-band h2 {
  margin: 8px 0 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p,
.feature-band p {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading a,
.text-button {
  color: #b45309;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
  margin-bottom: 24px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 16px;
  padding: 0 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.filter-search span {
  color: #ea580c;
  font-size: 22px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-selects select,
.filter-selects button {
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 14px;
  background: #fff7ed;
  color: #7c2d12;
}

.filter-selects button {
  font-weight: 800;
  cursor: pointer;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-chips a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
  transition: 0.2s ease;
}

.category-chips a:hover {
  color: #fff;
  background: #ea580c;
  transform: translateY(-2px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  transition: 0.24s 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 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #b45309;
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.movie-meta span,
.movie-score span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f3f4f6;
}

.movie-score {
  margin-top: 10px;
  color: #92400e;
}

.movie-score span {
  background: #ffedd5;
}

.feature-band {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-radius: 32px;
  padding: 38px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5 52%, #fed7aa);
  box-shadow: var(--soft-shadow);
}

.feature-band a {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

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

.rank-row,
.ranking-item {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.rank-row:hover,
.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-row {
  grid-template-columns: 48px 88px minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.rank-no,
.ranking-title-line span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

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

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

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

.rank-text em {
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}

.rank-heat {
  color: #b45309;
  font-weight: 900;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  border-radius: 34px;
  padding: 54px;
  background:
    radial-gradient(circle at 88% 20%, rgba(251, 191, 36, 0.26), transparent 30%),
    linear-gradient(135deg, #fff7ed, #ffffff 50%, #ffedd5);
  box-shadow: var(--soft-shadow);
}

.compact-hero {
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 18px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 54px 0;
}

.category-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-cover img {
  width: 100%;
  height: 106px;
  object-fit: cover;
  border-radius: 16px;
}

.category-cover img:first-child {
  grid-row: span 2;
  height: 220px;
}

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

.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-hero .hero-mini-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-hero .compact-card {
  color: #111827;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(245, 158, 11, 0.22);
}

.category-hero .compact-info em {
  color: #92400e;
}

.ranking-item {
  grid-template-columns: 120px minmax(0, 1fr) 110px;
  padding: 14px;
}

.ranking-poster img {
  width: 120px;
  height: 82px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranking-title-line h2 {
  margin: 0;
  font-size: 20px;
}

.ranking-detail p {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: #d97706;
  font-size: 28px;
}

.ranking-score span {
  color: var(--muted);
  font-weight: 800;
}

.detail-shell {
  padding: 32px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #92400e;
  margin-bottom: 20px;
  font-weight: 700;
}

.breadcrumb span:last-child {
  color: var(--muted);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 34px 80px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.68)),
    rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: 0.24s ease;
}

.play-cover span {
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.38);
  font-size: 32px;
}

.play-cover:hover span {
  transform: scale(1.06);
}

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

.detail-info-card,
.side-card,
.side-poster {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-info-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-info-card h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.lead-text {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-meta-grid div {
  border-radius: 18px;
  padding: 16px;
  background: #fff7ed;
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta-grid strong {
  margin-top: 6px;
  font-size: 18px;
}

.detail-info-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
}

.detail-info-card p {
  color: #374151;
  line-height: 1.9;
}

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

.side-poster {
  overflow: hidden;
  margin-bottom: 20px;
}

.side-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin-top: 0;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.detail-side .compact-card {
  min-width: 0;
  color: #111827;
  background: #fff7ed;
  border-color: #fed7aa;
}

.detail-side .compact-info em {
  color: #92400e;
}

.empty-result {
  display: none;
  margin: 28px 0 0;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: #92400e;
  background: #ffedd5;
  font-weight: 800;
}

.empty-result.show {
  display: block;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 42px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.32);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

[data-card].is-hidden {
  display: none;
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    padding-top: 60px;
  }

  .hero-poster {
    max-width: 360px;
    min-height: auto;
  }

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

  .detail-side {
    position: static;
  }

  .side-poster img {
    height: 360px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 780px;
  }

  .hero-content {
    min-height: 630px;
    padding-bottom: 190px;
  }

  .hero-poster {
    display: none;
  }

  .filter-panel,
  .feature-band,
  .category-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    flex-wrap: wrap;
  }

  .filter-selects select,
  .filter-selects button {
    flex: 1 1 160px;
  }

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

  .category-overview {
    grid-template-columns: 1fr;
  }

  .category-hero .hero-mini-row {
    grid-template-columns: 1fr 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

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

@media (max-width: 540px) {
  .header-inner,
  .quick-panel,
  .content-section,
  .category-overview,
  .detail-shell,
  .footer-inner,
  .page-hero,
  .feature-band,
  .mobile-nav,
  .hero-content,
  .hero-strip {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 17px;
  }

  .hero {
    min-height: 740px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

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

  .hero-strip {
    grid-auto-columns: 86%;
  }

  .section-heading {
    display: block;
  }

  .page-hero,
  .feature-band,
  .detail-info-card {
    padding: 26px;
    border-radius: 24px;
  }

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

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

  .category-cover img,
  .category-cover img:first-child {
    grid-row: auto;
    height: 120px;
  }

  .category-hero .hero-mini-row,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .ranking-score {
    text-align: left;
  }
}
