:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --yellow-400: #facc15;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 45px rgba(20, 83, 45, 0.12);
  --shadow-card: 0 12px 28px rgba(17, 24, 39, 0.10);
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 36%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  box-shadow: 0 8px 28px rgba(20, 83, 45, 0.22);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.12);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--green-100);
}

.nav-search {
  position: relative;
  width: min(300px, 28vw);
}

.nav-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 44px 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(220, 252, 231, 0.94);
}

.nav-search button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--green-700);
  background: #ffffff;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--green-800);
  padding: 16px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--green-700);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
  color: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #000000;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.hero-slide.is-active .hero-image {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

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

.hero-tags span,
.detail-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 6px 14px;
  font-size: 14px;
  color: #ffffff;
  background: var(--green-600);
}

.hero h1,
.detail-hero h1 {
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p,
.detail-hero p {
  margin: 0 0 22px;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255, 255, 255, 0.86);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  border-radius: 999px;
  padding: 13px 26px;
  color: #ffffff;
  background: var(--green-600);
  box-shadow: 0 15px 30px rgba(22, 163, 74, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--green-700);
}

.ghost-btn {
  border-radius: 999px;
  padding: 13px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

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

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

.section {
  padding: 56px 0;
}

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

.inline-heading {
  margin-top: 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--green-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-heading h2,
.side-panel h2,
.detail-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-link,
.text-btn {
  color: var(--green-600);
}

.section-link:hover,
.text-btn:hover {
  color: var(--green-800);
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(17, 24, 39, 0.15);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-900);
}

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

.movie-card:hover .poster-frame img,
.ranking-item:hover img,
.category-tile:hover img {
  transform: scale(1.06);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.64) 100%);
}

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.poster-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.movie-card p {
  display: -webkit-box;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

.stats-band {
  padding: 42px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
}

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

.stats-grid strong {
  display: block;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--green-100);
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.05), rgba(0, 0, 0, 0.78));
}

.category-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-text strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.category-text em {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-panel,
.side-panel,
.detail-card,
.filter-panel,
.category-card-large,
.top-rank-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-panel,
.side-panel {
  position: sticky;
  top: 86px;
  padding: 24px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 10px;
  background: var(--gray-50);
  transition: background 0.2s ease;
}

.ranking-item:hover {
  background: var(--green-50);
}

.rank-number {
  color: var(--green-600);
  font-size: 20px;
  font-weight: 900;
}

.ranking-item img {
  width: 90px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

.ranking-copy em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gray-500);
  font-style: normal;
  font-size: 12px;
}

.full-btn {
  width: 100%;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
  background: radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.20), transparent 28%), linear-gradient(135deg, var(--green-800), var(--green-600));
}

.page-hero-copy {
  max-width: 820px;
}

.page-hero-copy span {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--green-800);
  background: #ffffff;
  font-weight: 900;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--green-100);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--green-600);
  font-weight: 800;
}

.breadcrumbs.light {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs.light a {
  color: #ffffff;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
}

.category-card-cover {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  color: #ffffff;
  background: var(--green-900);
}

.mini-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
}

.mini-cover-grid img {
  width: 100%;
  height: 100%;
  min-height: 115px;
  object-fit: cover;
}

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

.category-card-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  font-size: 26px;
  font-weight: 900;
}

.category-card-copy {
  padding: 26px;
}

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

.category-card-copy p {
  margin: 0 0 14px;
  color: var(--gray-600);
}

.category-card-copy ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.category-card-copy li + li {
  margin-top: 8px;
}

.category-card-copy li a {
  color: var(--gray-700);
}

.filter-panel {
  margin-bottom: 24px;
  padding: 20px;
}

.filter-title {
  margin-bottom: 14px;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  min-height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--gray-800);
  background: #ffffff;
  outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 4px;
  background: #ffffff;
}

.view-switch button {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--gray-600);
  background: transparent;
  font-weight: 800;
}

.view-switch button.active {
  color: #ffffff;
  background: var(--green-600);
}

.filter-empty {
  display: none;
  margin-top: 18px;
  border-radius: 12px;
  padding: 16px;
  color: var(--gray-600);
  background: var(--gray-50);
  text-align: center;
}

.filter-empty.is-visible {
  display: block;
}

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

.movie-grid.list-mode .movie-card-link {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.movie-grid.list-mode .poster-frame {
  height: 100%;
}

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

.top-rank-card {
  position: relative;
  overflow: hidden;
}

.top-rank-card a {
  display: block;
}

.top-rank-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.top-rank-card div {
  padding: 20px;
}

.top-rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.top-rank-card p {
  margin: 0 0 10px;
  color: var(--gray-600);
}

.top-rank-card span:last-child {
  color: var(--green-700);
  font-weight: 900;
}

.top-rank-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-600);
  font-size: 22px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #000000;
}

.detail-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.18));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.detail-hero-content h1,
.detail-hero-content p {
  max-width: 780px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

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

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.detail-submeta {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 9px 13px;
  color: var(--gray-900);
  background: #fefce8;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 18px;
}

.detail-tags a,
.detail-tags span {
  padding: 6px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
}

.detail-tags a {
  color: #ffffff;
  background: var(--green-600);
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

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

.related-list .ranking-item {
  grid-template-columns: 34px 92px minmax(0, 1fr);
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--green-100);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-overlay,
  .detail-hero-mask {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.84));
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 92px;
  }

  .hero h1,
  .detail-hero h1 {
    font-size: 38px;
  }

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

  .section {
    padding: 40px 0;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .stats-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid.list-mode .movie-card-link {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-title-row {
    flex-direction: column;
  }

  .ranking-item,
  .related-list .ranking-item {
    grid-template-columns: 34px 82px minmax(0, 1fr);
  }
}
