:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --slate: #0f172a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

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(8, 47, 73, 0.94), rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
}

.nav-container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.36);
}

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

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-search input,
.mobile-search input,
.big-search input,
.local-filter input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  outline: none;
}

.nav-search input {
  width: 220px;
  padding: 9px 12px;
  color: #ffffff;
  border: 0;
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.nav-search button,
.big-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 8px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input {
  flex: 1;
  border-radius: 999px;
  padding: 11px 14px;
}

.hero-slider {
  position: relative;
  height: clamp(520px, 76vh, 720px);
  overflow: hidden;
  background: var(--slate);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.24), transparent 30%), #0f172a;
}

.hero-shadow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 46%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 80px;
}

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

.hero-tags,
.hero-mini-tags,
.detail-tags,
.tag-list,
.footer-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.hero-mini-tags span,
.detail-tags span,
.tag-list span,
.footer-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-tags span {
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.82);
}

.hero-mini-tags span,
.detail-tags span {
  padding: 8px 12px;
  color: #0e7490;
  background: rgba(236, 254, 255, 0.9);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
  width: 100%;
  color: #0e7490;
  background: #ecfeff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

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

.hero-dot.active {
  background: #ffffff;
}

.section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

.section-kicker {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-banner,
.page-hero,
.category-page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a, #164e63 52%, #1d4ed8);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.search-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: center;
}

.search-banner h2,
.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.search-banner p,
.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.36);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.22), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 12px;
  padding: 7px 10px;
  background: rgba(6, 182, 212, 0.86);
}

.poster-score {
  right: 12px;
  padding: 7px 9px;
  background: rgba(15, 23, 42, 0.72);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-info h3 a:hover {
  color: var(--cyan-dark);
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

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

.movie-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

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

.tag-list span {
  padding: 6px 9px;
  color: #0e7490;
  background: #ecfeff;
}

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

.rank-panel,
.filter-panel,
.detail-card,
.side-card,
.side-poster,
.category-overview-card,
.ranking-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-panel-head span {
  color: var(--cyan-dark);
  font-weight: 900;
  letter-spacing: 0.2em;
}

.rank-panel-head h2 {
  margin: 4px 0 18px;
  font-size: 28px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "no title hot"
    "no meta hot";
  gap: 2px 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eef2f7;
}

.rank-no {
  grid-area: no;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-title {
  grid-area: title;
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-hot {
  grid-area: hot;
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.12));
}

.category-tile div {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
}

.category-tile span {
  color: #67e8f9;
  font-weight: 800;
}

.category-tile strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

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

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
}

.category-page-hero,
.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
}

.local-filter input {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
}

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

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

.category-cover {
  min-height: 100%;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-overview-body span {
  color: var(--cyan-dark);
  font-weight: 800;
}

.category-overview-body h2 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.category-overview-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.category-overview-body ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #475569;
}

.category-overview-body li {
  margin: 5px 0;
}

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

.filter-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.filter-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.filter-panel label {
  display: block;
  margin-bottom: 15px;
}

.filter-panel label span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  background: #ffffff;
}

.search-card.is-hidden,
.movie-card.is-hidden {
  display: none;
}

.detail-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.breadcrumb {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-dark);
}

.player-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.34);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.35);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay em {
  max-width: 80%;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-status {
  padding: 12px 18px;
  color: #bae6fd;
  font-size: 14px;
  background: #020617;
}

.detail-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

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

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-score {
  min-width: 96px;
  padding: 14px;
  border-radius: 18px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.detail-score strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.detail-score span {
  font-size: 12px;
}

.detail-one-line {
  margin: 18px 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.75;
}

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

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

.detail-meta-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

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

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

.side-poster {
  overflow: hidden;
  padding: 16px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.side-poster .btn {
  width: 100%;
  margin-top: 14px;
}

.side-card {
  margin-top: 18px;
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 12px;
}

.side-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rank-list li {
  border-top: 1px solid #eef2f7;
}

.side-rank-list a {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  line-height: 1.45;
}

.side-rank-list span {
  flex: 0 0 auto;
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.ranking-section {
  padding: 22px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 44px 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-2px);
  background: #ecfeff;
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.ranking-card img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.ranking-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.ranking-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ranking-card strong {
  color: var(--cyan-dark);
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #0f172a, #082f49);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 0.9fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: #67e8f9;
}

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

.footer-column li {
  margin: 9px 0;
}

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

.footer-tags span {
  padding: 7px 10px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout,
  .search-layout,
  .ranking-tabs {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .filter-panel,
  .detail-aside {
    position: static;
  }

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

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

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

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

  .mobile-link {
    display: block;
    padding: 12px 14px;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-banner,
  .category-page-hero,
  .search-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .big-search {
    border-radius: 24px;
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  .nav-container,
  .section,
  .page-hero,
  .detail-layout,
  .breadcrumb,
  .footer-inner {
    width: min(100% - 22px, 1220px);
  }

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

  .hero-slider {
    height: 580px;
  }

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

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

  .section {
    padding: 42px 0;
  }

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

  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 36px 58px minmax(0, 1fr);
  }

  .ranking-card strong {
    display: none;
  }

  .ranking-card img {
    width: 58px;
    height: 78px;
  }
}
