:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f3f4f6;
  --color-line: #e5e7eb;
  --color-primary: #dc2626;
  --color-primary-dark: #991b1b;
  --color-primary-soft: #fef2f2;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

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

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

.nav-link,
.dropdown-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
}

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

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

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  padding: 5px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
}

.top-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 8px 12px;
  color: var(--color-text);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--color-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.mobile-panel nav,
.mobile-category-list {
  display: grid;
  gap: 8px;
}

.mobile-category-list {
  grid-template-columns: repeat(2, 1fr);
  margin: 8px 0;
  padding: 10px;
  background: var(--color-soft);
  border-radius: 14px;
}

.mobile-link,
.mobile-category-list a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.mobile-link:hover,
.mobile-link.active,
.mobile-category-list a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  margin: 28px auto 40px;
}

.hero-main {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.hero-title-block {
  position: absolute;
  top: 32px;
  left: 36px;
  right: 36px;
  z-index: 4;
  max-width: 760px;
  color: #fff;
  pointer-events: none;
}

.hero-title-block h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-title-block p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 220px 36px 72px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.4s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 36%, rgba(239, 68, 68, 0.30), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.42) 58%, rgba(15, 23, 42, 0.72)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.3vw, 56px);
  line-height: 1.08;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.90);
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.30);
}

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

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

.ghost-button.light {
  border-color: rgba(255, 255, 255, 0.5);
}

.text-button {
  min-height: 38px;
  padding: 0;
  color: var(--color-primary);
}

.hero-controls {
  position: absolute;
  left: 36px;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

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

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.section-label {
  font-weight: 900;
  color: #fff;
}

.compact-grid {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.compact-card .poster-wrap {
  aspect-ratio: 2 / 3;
  margin: 0;
}

.compact-card .movie-info {
  padding: 0;
}

.compact-card h3 {
  color: #fff;
}

.compact-card .movie-meta,
.compact-card .movie-desc {
  color: rgba(255, 255, 255, 0.68);
}

.compact-card .tag-row {
  display: none;
}

.section-block,
.split-section,
.category-overview-grid,
.top-rank-grid {
  margin: 40px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-content h2,
.under-player h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.more-link {
  color: var(--color-primary);
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #3f0f10);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.year-badge {
  right: 10px;
  padding: 7px 9px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  padding: 7px 10px;
  background: var(--color-primary);
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.movie-info {
  padding: 14px;
}

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

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info .tag-row {
  margin-top: 10px;
}

.movie-info .tag-row span,
.detail-tags span {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

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

.section-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.compact-head {
  margin-bottom: 18px;
}

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

.category-card,
.category-overview-card {
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
  padding: 18px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: var(--shadow-card);
}

.category-count {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-card p,
.category-overview-card p,
.footer-brand p {
  color: var(--color-muted);
  margin: 0;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-samples a {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-soft);
  color: #4b5563;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: var(--color-soft);
}

.rank-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.rank-row strong,
.rank-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  grid-column: 2;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  min-height: 270px;
  margin: 28px 0 34px;
  padding: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 24%, rgba(248, 113, 113, 0.32), transparent 30%),
    linear-gradient(135deg, #111827, #3f0f10 56%, #7f1d1d);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p:not(.eyebrow) {
  max-width: 740px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.filter-section {
  padding-bottom: 30px;
}

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(140px, 180px));
  gap: 12px;
  padding: 14px;
  margin-bottom: 22px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  outline: none;
  padding: 0 12px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-primary);
}

.empty-result {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: var(--color-muted);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.top-rank-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.top-rank-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  opacity: 0.72;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.88));
}

.top-rank-number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.top-rank-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.top-rank-card h2 {
  margin: 0 0 10px;
}

.top-rank-card p {
  color: rgba(255, 255, 255, 0.80);
}

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

.ranking-line {
  display: grid;
  grid-template-columns: 58px 64px minmax(140px, 1.1fr) minmax(180px, 2fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.ranking-number {
  color: var(--color-primary);
  font-weight: 900;
}

.ranking-line img {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.ranking-line strong,
.ranking-line em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-line em {
  color: var(--color-muted);
  font-style: normal;
}

.ranking-line b {
  color: var(--color-primary);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 26px 0 18px;
  color: var(--color-muted);
  font-size: 14px;
}

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

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

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76)),
    rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.play-cover.is-hidden {
  display: none;
}

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.35);
}

.play-cover strong {
  font-size: clamp(24px, 4vw, 42px);
}

.play-cover small {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.under-player,
.detail-aside,
.detail-content {
  margin-top: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.under-player {
  padding: 22px;
}

.under-player h1 {
  font-size: clamp(26px, 3.5vw, 42px);
}

.under-player p {
  color: var(--color-muted);
  font-size: 17px;
}

.detail-tags {
  margin-top: 16px;
}

.detail-aside {
  margin-top: 0;
  padding: 16px;
}

.detail-aside img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.detail-aside dl {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.detail-aside dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.detail-aside dt {
  color: var(--color-muted);
}

.detail-aside dd {
  margin: 0;
  font-weight: 700;
}

.detail-aside a {
  color: var(--color-primary);
}

.detail-content {
  margin: 24px 0 0;
}

.detail-content h2 {
  margin-top: 0;
  font-size: 26px;
}

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

.detail-content p {
  color: #374151;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 50px;
  background: #111827;
  color: #fff;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.70);
}

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

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .top-search {
    width: 240px;
  }

  .home-hero,
  .split-section,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .hero-side-list {
    display: none;
  }

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

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

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

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

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

  main,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .home-hero {
    margin-top: 18px;
  }

  .hero-main {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-title-block {
    top: 24px;
    left: 22px;
    right: 22px;
  }

  .hero-slide {
    padding: 260px 22px 76px;
  }

  .hero-controls {
    left: 22px;
  }

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

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

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

  .page-hero {
    min-height: 240px;
    padding: 28px;
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-line {
    grid-template-columns: 46px 56px minmax(0, 1fr) 44px;
  }

  .ranking-line em {
    grid-column: 3 / 5;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-title-block h1 {
    font-size: 32px;
  }

  .hero-title-block p {
    font-size: 14px;
  }

  .hero-content h2 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 15px;
  }

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

  .category-grid,
  .top-rank-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .category-poster-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-card {
    padding: 18px;
  }

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

  .filter-panel {
    position: static;
  }

  .detail-aside {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 14px;
  }

  .detail-aside dl {
    margin-top: 0;
  }

  .detail-aside dl div {
    grid-template-columns: 52px 1fr;
    padding: 6px 0;
  }
}

@media (max-width: 390px) {
  .movie-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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