:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --cyan: #38bdf8;
  --yellow: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.14), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: max-content;
}

.logo-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0f172a);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.logo-text {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue), #334155);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: -0.25rem;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  overflow: hidden;
}

.desktop-nav a,
.mobile-panel nav a {
  color: #475569;
  font-size: 0.92rem;
  padding: 0.58rem 0.72rem;
  border-radius: 0.8rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel nav a:hover {
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  padding: 0.28rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-search input {
  width: 13.5rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.site-search button,
.primary-button,
.ghost-button,
.rank-action {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.24);
}

.site-search button {
  padding: 0.55rem 0.95rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
}

.site-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.25rem;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--blue-dark);
  border-color: #bfdbfe;
  background: #eff6ff;
}

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

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.9rem;
  background: #eff6ff;
  color: var(--blue);
  font-size: 1.25rem;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.8rem;
}

main,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero-shell {
  position: relative;
  height: min(72vh, 640px);
  min-height: 540px;
  max-width: none;
  margin: 0 -1.25rem 4rem;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 3rem;
  padding: 4rem max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -2rem;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.74), rgba(30, 58, 138, 0.52)),
    var(--hero-image) center / cover no-repeat;
  filter: blur(7px);
  transform: scale(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(59, 130, 246, 0.38), transparent 25rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .section-kicker {
  color: #93c5fd;
}

.hero-content h1 {
  max-width: 800px;
  margin: 1rem 0 1rem;
  color: #ffffff;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 1.45rem;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.8;
}

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

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

.hero-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-poster {
  border-radius: 2rem;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: perspective(1200px) rotateY(-7deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
}

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

.hero-dot.is-active {
  width: 2.4rem;
  background: #ffffff;
}

.home-category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: -1.8rem 0 4rem;
  position: relative;
  z-index: 5;
}

.category-chip,
.category-overview-card,
.filter-panel,
.search-page-box,
.side-card,
.detail-article,
.player-shell,
.rank-row a {
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-chip {
  display: block;
  padding: 1rem;
  border-radius: 1.25rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-chip strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 0.28rem;
}

.category-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.category-chip:hover,
.category-overview-card:hover,
.movie-card:hover,
.rank-row a:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
}

.content-section {
  margin-bottom: 4rem;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title-row h2,
.filter-panel h2,
.page-hero h1,
.detail-article h1 {
  margin: 0.28rem 0 0;
  color: #0f172a;
  letter-spacing: -0.045em;
}

.section-title-row h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.section-title-row > a {
  color: var(--blue);
  font-weight: 800;
}

.movie-grid,
.rank-card-grid {
  display: grid;
  gap: 1.25rem;
}

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

.feature-grid,
.rank-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-movie-grid,
.search-result-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 1.2rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.compact-card .poster-frame {
  aspect-ratio: 16 / 21;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.12));
  transition: opacity 0.22s ease;
}

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

.poster-type,
.rank-badge,
.play-mark {
  position: absolute;
  z-index: 2;
}

.poster-type {
  right: 0.55rem;
  top: 0.55rem;
  padding: 0.22rem 0.52rem;
  color: #ffffff;
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 0.65rem;
  top: 0.65rem;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 0.92rem;
}

.movie-card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 2.55rem;
  margin: 0 0 0.68rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.tag-row span {
  color: #1d4ed8;
  background: #eff6ff;
}

.accent-section {
  padding: 2rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 26rem),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(219, 234, 254, 0.92);
}

.page-main,
.detail-main {
  padding-top: 2rem;
}

.page-hero {
  position: relative;
  padding: 3.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 2rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.94), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.45), transparent 30rem);
  box-shadow: var(--shadow);
}

.page-hero .section-kicker,
.page-hero h1,
.page-hero p {
  position: relative;
  color: #ffffff;
}

.page-hero .section-kicker {
  color: #bfdbfe;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.8;
}

.compact-actions {
  margin-top: 1.2rem;
}

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

.category-overview-card {
  border-radius: 1.5rem;
  padding: 1.25rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-overview-main h2 {
  margin: 0.4rem 0;
  font-size: 1.55rem;
}

.category-overview-main p {
  color: var(--muted);
  line-height: 1.7;
}

.category-mini-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.category-mini-links a {
  color: #334155;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  font-size: 0.9rem;
}

.category-mini-links a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: 1.4rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-input,
.filter-select {
  min-height: 2.8rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  padding: 0 0.9rem;
  outline: 0;
}

.filter-input {
  width: min(24rem, 100%);
}

.rank-list {
  display: grid;
  gap: 0.9rem;
}

.rank-row a {
  display: grid;
  grid-template-columns: 3.25rem 5.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-radius: 1.2rem;
  padding: 0.75rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-number {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-row img {
  width: 5.25rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.8rem;
}

.rank-info {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.rank-info strong {
  font-size: 1.04rem;
}

.rank-info em,
.rank-info small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.rank-info small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-action {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), #0ea5e9);
  padding: 0.62rem 0.95rem;
}

.detail-main {
  padding-bottom: 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

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

.detail-primary {
  display: grid;
  gap: 1.25rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.12));
}

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

.big-play {
  width: 5.2rem;
  height: 5.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.detail-article {
  padding: 1.5rem;
  border-radius: 1.6rem;
}

.detail-article h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.detail-one-line {
  color: #334155;
  font-size: 1.15rem;
  line-height: 1.8;
}

.detail-tags {
  margin: 1.2rem 0 1.4rem;
}

.detail-tags a {
  color: #1d4ed8;
  background: #eff6ff;
}

.detail-article h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.25rem;
}

.detail-article p {
  color: #334155;
  line-height: 1.92;
}

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.detail-nav-links a {
  color: #1d4ed8;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #eff6ff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.detail-poster {
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-card {
  border-radius: 1.4rem;
  padding: 1.2rem;
}

.side-card h2 {
  margin: 0 0 0.9rem;
}

.side-card dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.7rem;
}

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

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

.related-section {
  margin-top: 2.5rem;
}

.search-page-box {
  padding: 1rem;
  border-radius: 1.4rem;
  margin-bottom: 1.5rem;
}

.large-search {
  width: min(720px, 100%);
  margin: 0 auto;
}

.large-search input {
  flex: 1;
  width: auto;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-inner p {
  margin: 0.45rem 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-container {
    justify-content: space-between;
  }

  .site-search:not(.mobile-search):not(.large-search) {
    display: none;
  }

  .large-grid,
  .feature-grid,
  .rank-card-grid,
  .category-movie-grid,
  .search-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    position: static;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  main,
  .page-main,
  .detail-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-shell {
    height: auto;
    min-height: 680px;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 1rem 5rem;
  }

  .hero-poster {
    min-height: 260px;
    max-width: 300px;
    transform: none;
  }

  .hero-poster img {
    min-height: 260px;
  }

  .large-grid,
  .feature-grid,
  .rank-card-grid,
  .category-movie-grid,
  .search-result-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .footer-inner,
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-controls,
  .filter-input,
  .filter-select {
    width: 100%;
  }

  .rank-row a {
    grid-template-columns: 2.6rem 4.1rem minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }

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

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

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

@media (max-width: 560px) {
  .nav-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .logo-sub {
    display: none;
  }

  .hero-shell {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .home-category-strip,
  .large-grid,
  .feature-grid,
  .rank-card-grid,
  .category-movie-grid,
  .search-result-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .accent-section,
  .page-hero,
  .detail-article {
    padding: 1.1rem;
    border-radius: 1.3rem;
  }

  .movie-card-body p {
    min-height: auto;
  }
}
