:root {
  --color-bg: #fff8ed;
  --color-bg-soft: #fff3df;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-primary: #ea580c;
  --color-primary-dark: #b45309;
  --color-primary-soft: #fed7aa;
  --color-gold: #f59e0b;
  --color-border: rgba(146, 64, 14, 0.14);
  --shadow-card: 0 18px 45px rgba(124, 45, 18, 0.12);
  --shadow-hover: 0 26px 60px rgba(124, 45, 18, 0.2);
  --radius-large: 28px;
  --radius-card: 20px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf5 45%, #ffffff 100%);
  color: var(--color-text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.98), rgba(234, 88, 12, 0.96), rgba(245, 158, 11, 0.96));
  box-shadow: 0 18px 45px rgba(124, 45, 18, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #fde68a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 10px 24px rgba(0, 0, 0, 0.15);
}

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

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

.nav-link,
.dropdown-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  color: #fff7ed;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  border-radius: 12px;
  padding: 9px 10px;
  color: #7c2d12;
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: #fff7ed;
}

.header-search {
  width: min(280px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 7px 8px;
}

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

.header-search button,
.mobile-menu form button,
.local-filter button,
.search-band form button {
  border: 0;
  border-radius: 11px;
  padding: 8px 12px;
  color: #7c2d12;
  background: #ffedd5;
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu a {
  display: block;
  padding: 11px 8px;
  border-radius: 12px;
  font-weight: 800;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mobile-menu form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mobile-menu input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  outline: 0;
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 70vw, 760px);
  overflow: hidden;
  color: #ffffff;
  background: #431407;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.96) 0%, rgba(124, 45, 18, 0.82) 40%, rgba(67, 20, 7, 0.36) 100%),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.38), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: clamp(560px, 70vw, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: 56px 0 86px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.55);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 720px;
  color: rgba(255, 247, 237, 0.9);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.32);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 390px);
  justify-self: end;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  z-index: 2;
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  width: min(var(--max-width), calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 2rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.4);
}

.hero-dot.is-active {
  background: #fbbf24;
}

main {
  width: 100%;
}

.content-section,
.search-band-inner,
.footer-inner,
.page-hero,
.detail-hero,
.article-section {
  width: min(var(--max-width), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

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

.search-band {
  padding: 28px 0;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  align-items: center;
  gap: 24px;
}

.search-band h2,
.section-heading h2,
.ranking-card h2,
.footer-links h2,
.detail-article h2,
.detail-side-card h2 {
  margin: 0;
  color: #7c2d12;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.search-band p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.search-band form,
.local-filter,
.search-filter {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(124, 45, 18, 0.08);
}

.search-band input,
.local-filter input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 11px 12px;
  background: transparent;
}

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

.section-more {
  color: #7c2d12;
  background: #ffedd5;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.88)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 9rem);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-top: 14px;
  color: #7c2d12;
  font-size: 1.18rem;
}

.category-tile small {
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius-card);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(234, 88, 12, 0.92);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 10px;
}

.poster-year {
  right: 10px;
  background: rgba(67, 20, 7, 0.74);
}

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

.movie-card-body h3 {
  margin: 0;
  min-height: 2.8em;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.35;
}

.movie-line {
  min-height: 3.1em;
  margin: 8px 0 12px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 0.75rem;
}

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

.ranking-panel {
  position: sticky;
  top: 94px;
}

.ranking-card {
  border-radius: var(--radius-large);
  padding: 22px;
  background: linear-gradient(135deg, #431407, #9a3412 58%, #ea580c);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-card h2 {
  color: #ffffff;
}

.ranking-card ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-card li + li {
  margin-top: 10px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
}

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

.ranking-card span {
  color: #fde68a;
  font-weight: 900;
}

.ranking-card small {
  color: #ffedd5;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.35), transparent 20rem),
    linear-gradient(135deg, #431407, #9a3412 58%, #ea580c);
  box-shadow: var(--shadow-card);
}

.page-hero {
  margin-top: 24px;
  padding: clamp(34px, 8vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 24px;
  align-items: end;
}

.slim-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
}

.local-filter {
  align-self: end;
}

.empty-state {
  margin: 28px 0 0;
  border-radius: 16px;
  padding: 18px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.rank-section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 52px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rank-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  font-weight: 900;
}

.ranking-list img {
  width: 76px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
  background: #fed7aa;
}

.ranking-list strong {
  display: block;
  color: #1f2937;
  font-size: 1.05rem;
}

.ranking-list small,
.ranking-list p {
  display: block;
  margin: 4px 0 0;
  color: var(--color-muted);
}

.detail-hero {
  padding: 24px clamp(16px, 4vw, 36px) clamp(34px, 7vw, 72px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(var(--max-width), 100%);
  margin: 0 auto 26px;
  color: rgba(255, 237, 213, 0.86);
  font-weight: 800;
}

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

.detail-layout {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 64px);
  align-items: center;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
}

.detail-tags {
  margin: 18px 0 26px;
}

.player-section {
  padding-top: 42px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(17, 24, 39, 0.72)),
    linear-gradient(135deg, rgba(67, 20, 7, 0.5), rgba(17, 24, 39, 0.78));
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.player-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.32);
  font-size: 1.8rem;
}

.player-overlay strong {
  font-size: 1.2rem;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: #ffedd5;
  font-weight: 800;
  pointer-events: none;
}

.article-section {
  padding: 12px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.detail-side-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article h2 + p {
  margin-top: 10px;
}

.detail-article p {
  color: #374151;
  font-size: 1.03rem;
}

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

.detail-side-card dl {
  margin: 18px 0 0;
}

.detail-side-card dt {
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-side-card dd {
  margin: 4px 0 14px;
  color: #1f2937;
}

.site-footer {
  margin-top: 40px;
  color: #ffedd5;
  background: linear-gradient(135deg, #431407, #7c2d12);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 220px 220px;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  color: #fed7aa;
}

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

.footer-links h2 {
  color: #ffffff;
  font-size: 1.06rem;
}

.footer-links a {
  color: #fed7aa;
}

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

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

@media (max-width: 1120px) {
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .header-search {
    display: none;
  }
}

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

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

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

  .hero-content,
  .page-hero,
  .detail-layout,
  .article-section,
  .two-column-layout,
  .search-band-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(74vw, 330px);
    transform: rotate(0deg);
  }

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

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

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 650px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .hero-controls {
    justify-content: center;
  }

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

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

  .movie-card-body h3 {
    font-size: 0.96rem;
  }

  .movie-line {
    font-size: 0.84rem;
  }

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

  .search-band form,
  .local-filter,
  .search-filter {
    flex-direction: column;
  }

  .ranking-list a {
    grid-template-columns: 40px 64px minmax(0, 1fr);
  }

  .ranking-list img {
    width: 64px;
    height: 88px;
  }

  .footer-inner {
    padding: 36px 0;
  }
}

@media (max-width: 420px) {
  .category-grid,
  .large-category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }
}
