:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-red: #ef4444;
  --deep: #111827;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 34rem),
    linear-gradient(180deg, #fffaf5 0%, #fff7ed 36%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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;
}

button {
  cursor: pointer;
}

.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.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(254, 215, 170, 0.75);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

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

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--brand-dark);
  background: #ffedd5;
}

.quick-search {
  display: flex;
  align-items: center;
  width: 320px;
  padding: 4px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
}

.quick-search input,
.mobile-search input,
.search-panel input,
.search-panel select,
.filter-row input,
.filter-row select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.quick-search input {
  padding: 9px 12px;
}

.quick-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-weight: 800;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--brand-dark);
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fed7aa;
  background: #fff;
}

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

.mobile-search {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 8px;
  padding: 4px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
}

.mobile-search input {
  padding: 10px 12px;
}

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hero-shell {
  padding: 28px 0 18px;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  color: #fff;
  border-radius: 34px;
  background: linear-gradient(135deg, #111827, #7c2d12 58%, #ef4444);
  box-shadow: var(--shadow);
}

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

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

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: saturate(1.15) contrast(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.46), transparent 20rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 45%, rgba(17, 24, 39, 0.28));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
  padding: 64px;
}

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

.eyebrow,
.hero-tags span,
.pill-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-copy h1 {
  margin: 22px 0 8px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #fed7aa;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.btn.subtle {
  color: #9a3412;
  background: #ffedd5;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.75), rgba(239, 68, 68, 0.75));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-weight: 900;
}

.hero-control-row {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

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

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 0 8px;
}

.quick-entry a {
  min-height: 116px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-entry a:hover,
.movie-card:hover,
.category-card:hover,
.rank-spot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.quick-entry strong {
  display: block;
  color: #111827;
  font-size: 20px;
}

.quick-entry span {
  color: var(--muted);
}

.content-section {
  padding: 52px 0;
}

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

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.section-link {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.quality-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.quality-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
}

.rank-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.76);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta,
.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-desc {
  flex: 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-row span {
  padding: 4px 9px;
  font-size: 12px;
}

.movie-card.compact .movie-card-body {
  padding: 12px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.compact .card-desc {
  display: none;
}

.dark-band {
  color: #fff;
  background:
    radial-gradient(circle at 8% 14%, rgba(249, 115, 22, 0.34), transparent 22rem),
    linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
}

.dark-band .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-band .section-heading p,
.dark-band .section-link {
  color: rgba(255, 255, 255, 0.78);
}

.category-preview {
  padding: 42px 0;
  border-bottom: 1px solid #ffedd5;
}

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

.page-hero {
  padding: 70px 0 20px;
}

.page-hero h1 {
  max-width: 860px;
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.page-actions {
  margin-top: 24px;
}

.page-actions .btn.ghost {
  color: var(--brand-dark);
  border-color: #fed7aa;
  background: #fff;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card a {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 230px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 12px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.category-thumbs img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.category-card-body {
  padding: 28px;
}

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

.category-card p {
  color: var(--muted);
  margin: 0 0 22px;
}

.category-card span {
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-panel {
  padding: 28px 0 60px;
}

.filter-row,
.search-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

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

.filter-row input,
.filter-row select,
.search-panel input,
.search-panel select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fffaf5;
}

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

.rank-spotlight {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  padding: 20px 0 10px;
}

.rank-spot-card {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-spot-card a {
  position: relative;
  display: block;
  min-height: 360px;
  color: #fff;
}

.rank-spot-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.56;
}

.rank-spot-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.rank-spot-card span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-weight: 900;
}

.rank-spot-card h2 {
  margin: 14px 0 8px;
  font-size: 30px;
}

.rank-spot-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 54px 72px minmax(160px, 1fr) 210px 1.4fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.06);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.rank-row strong {
  font-size: 18px;
}

.rank-row em,
.rank-row span:last-child {
  color: var(--muted);
  font-style: normal;
}

.search-page {
  padding: 28px 0 64px;
}

.search-panel {
  grid-template-columns: 1fr 240px 120px;
}

.search-result-meta {
  min-height: 28px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(6px) saturate(1.15);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 10%, rgba(249, 115, 22, 0.36), transparent 22rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.7), #111827 88%);
}

.detail-inner {
  position: relative;
  padding: 36px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 8px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy .pill-row span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

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

.player-section {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.68), rgba(124, 45, 18, 0.54));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.36);
  font-size: 30px;
}

.player-overlay strong {
  font-size: clamp(22px, 4vw, 42px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 46px 0 10px;
}

.detail-text-block {
  padding: 28px;
  border: 1px solid #fed7aa;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.detail-text-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-text-block p {
  margin: 0;
  color: #4b5563;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

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

.footer-logo {
  color: #fff;
}

.footer-brand p,
.footer-tags {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

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

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

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
}

.hidden-by-filter {
  display: none;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 250px;
    padding: 48px;
  }

  .quick-entry,
  .preview-grid,
  .rank-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .header-inner {
    height: 68px;
  }

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

  .hero-slider {
    min-height: 700px;
    border-radius: 26px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 24px 88px;
  }

  .hero-poster {
    width: min(250px, 72vw);
    margin: 0 auto;
    transform: none;
  }

  .quick-entry,
  .movie-grid,
  .category-grid,
  .category-page-grid,
  .preview-grid,
  .rank-preview,
  .rank-spotlight,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: min(260px, 80vw);
  }

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

  .filter-row,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-row a {
    grid-template-columns: 46px 64px 1fr;
  }

  .rank-row em,
  .rank-row span:last-child {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .hero-slider,
  .footer-inner,
  .mobile-links,
  .mobile-search {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .movie-card.compact .card-desc {
    display: block;
  }

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