:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fee2e2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --page: #f9fafb;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ef4444);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.logo-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 650;
  color: #374151;
}

.desktop-nav > a,
.nav-dropdown > a {
  padding: 24px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 360px;
  transform: translateX(-50%) translateY(12px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  color: var(--red);
  background: var(--red-soft);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.filter-panel input {
  border: 1px solid var(--line);
  outline: none;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.nav-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.primary-button {
  border: 0;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button {
  padding: 10px 16px;
}

.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.search-page-form button:hover,
.primary-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
}

.mobile-links > a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-links > a:hover,
.mobile-category-grid a:hover {
  background: #f3f4f6;
  color: var(--red);
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.mobile-category-grid a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #4b5563;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.mobile-search input,
.mobile-search button {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: min(72vh, 640px);
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(220, 38, 38, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 130px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.16;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

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

.hero-tags span {
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 850;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 22px;
  z-index: 3;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-thumb {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease;
}

.hero-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

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

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

.home-search-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.search-band-inner h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.search-band-inner p {
  margin: 0;
  color: var(--muted);
}

.large-search,
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.large-search input,
.large-search button,
.search-page-form input,
.search-page-form button {
  padding: 14px 18px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

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

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

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

.poster-link {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  left: 10px;
  background: var(--red);
}

.rank-badge {
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.movie-info {
  padding: 12px 2px 0;
}

.movie-info h3 {
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

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

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

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-row span,
.detail-tags span {
  padding: 4px 8px;
  color: var(--red-dark);
  background: var(--red-soft);
}

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

.category-tile,
.category-overview-link {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 22px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile {
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

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

.category-tile div {
  position: relative;
  z-index: 2;
}

.category-tile h3,
.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p,
.category-overview-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
}

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

.rank-num {
  color: var(--red);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-genre {
  color: var(--muted);
  font-size: 13px;
}

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

.wide-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(248, 113, 113, 0.55), transparent 30%),
    linear-gradient(135deg, #111827 0%, #7f1d1d 100%);
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-hero p:first-child {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero-desc {
  max-width: 760px;
  margin-top: 18px !important;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.category-overview-card {
  min-width: 0;
}

.category-overview-link {
  display: grid;
  grid-template-rows: 180px auto;
  background: #fff;
  color: var(--ink);
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: #111827;
}

.category-poster-stack img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body p {
  color: var(--muted);
}

.category-overview-body span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 850;
}

.filter-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel input {
  width: 100%;
  padding: 12px 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #fff;
  background: var(--red);
}

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

.ranking-card a {
  display: grid;
  grid-template-columns: 58px 88px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-index {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-card img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-card p {
  margin: 0;
  color: var(--muted);
}

.ranking-heat {
  color: #991b1b;
  font-weight: 900;
}

.detail-top {
  padding: 34px 0 12px;
  background: linear-gradient(180deg, #111827 0%, #1f2937 420px, var(--page) 421px);
}

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

.detail-breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 50% 44%, rgba(220, 38, 38, 0.28), transparent 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 20px 38px rgba(220, 38, 38, 0.36);
}

.player-overlay strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.player-overlay span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-content {
  margin-top: 24px;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.detail-lead {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.detail-content h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-content p {
  color: #374151;
}

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

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-card dl,
.side-card dd {
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-card div:last-child {
  border-bottom: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  font-weight: 700;
}

.site-footer {
  margin-top: 42px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

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

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

.site-footer a {
  color: #9ca3af;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-thumbs {
    display: none;
  }

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

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

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

  .split-section,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    grid-template-columns: 220px 1fr;
  }
}

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

  .header-inner {
    height: 64px;
  }

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

  .hero {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    padding-bottom: 86px;
  }

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

  .hero-controls {
    bottom: 18px;
  }

  .search-band-inner,
  .large-search,
  .search-page-form,
  .filter-panel,
  .ranking-card a,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .page-hero {
    padding: 54px 0;
  }

  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-index,
  .ranking-heat {
    text-align: left;
  }

  .player-overlay {
    flex-direction: column;
    text-align: center;
  }

  .play-button {
    width: 64px;
    height: 64px;
  }

  .detail-content {
    padding: 22px;
  }

  .detail-poster {
    max-width: 260px;
  }
}
