:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --line-hot: rgba(245, 158, 11, 0.55);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.18), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.35);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--amber-light);
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.12);
}

.global-search {
  position: relative;
  margin-left: auto;
  width: min(390px, 38vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
}

.global-search input,
.quick-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.global-search input {
  padding: 8px 12px;
}

.global-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 15px;
  color: #111827;
  cursor: pointer;
  background: var(--amber-light);
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  max-height: 450px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--line-hot);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: rgba(245, 158, 11, 0.12);
}

.search-result img {
  width: 46px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.search-result b {
  display: block;
  color: var(--text);
  line-height: 1.35;
}

.search-result small {
  color: var(--muted);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-light);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a,
.mobile-logo {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--soft);
  background: rgba(148, 163, 184, 0.08);
}

.mobile-logo {
  color: var(--amber-light);
  font-weight: 800;
}

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

.top-space {
  padding-top: 34px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 92px;
  max-width: 760px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-kicker span,
.hero-kicker em {
  font-style: normal;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

.hero-kicker span {
  color: var(--amber-light);
  border: 1px solid var(--line-hot);
  background: rgba(245, 158, 11, 0.15);
}

.hero-kicker em {
  color: var(--soft);
  background: rgba(15, 23, 42, 0.62);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-content p {
  max-width: 760px;
  margin: 20px 0 28px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.7);
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.32);
}

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

.ghost-btn {
  padding: 13px 22px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.56);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.72);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 38px;
  background: var(--amber-light);
}

.container-card,
.category-overview-card,
.movie-card,
.rank-panel,
.rank-card,
.detail-article,
.detail-sidebar,
.category-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.quick-filter {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 20px;
  align-items: center;
}

.quick-filter h2 {
  margin: 0 0 6px;
  color: var(--amber-light);
}

.quick-filter p {
  margin: 0;
  color: var(--muted);
}

.quick-filter input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.section-heading h2 span {
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heading-line {
  height: 2px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.55), transparent);
}

.section-more,
.text-btn {
  color: var(--amber-light);
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hot);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 58%);
  opacity: 0.86;
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #111827;
  font-weight: 800;
  background: var(--amber-light);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-light);
  font-size: 13px;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
}

.movie-card h3,
.rank-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover {
  color: var(--amber-light);
}

.movie-card p,
.rank-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

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

.split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.rank-panel {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 94px;
}

.rank-panel h2,
.detail-sidebar h2 {
  margin: 0 0 18px;
  color: var(--amber-light);
}

.rank-list,
.side-rank-list {
  display: grid;
  gap: 12px;
}

.rank-item,
.side-rank-item {
  display: grid;
  grid-template-columns: 40px 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover,
.side-rank-item:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateX(4px);
}

.rank-item strong {
  color: var(--amber-light);
  font-size: 18px;
}

.rank-item img,
.side-rank-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-item b,
.side-rank-item b {
  display: block;
  color: var(--text);
  line-height: 1.35;
}

.rank-item small,
.side-rank-item small {
  color: var(--muted);
}

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

.category-block {
  overflow: hidden;
}

.category-block-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.category-block-head h3 {
  margin: 0 0 6px;
  color: var(--amber-light);
  font-size: 24px;
}

.category-block-head p {
  margin: 0;
  color: var(--muted);
}

.category-block-head a {
  color: var(--amber-light);
  white-space: nowrap;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.24), transparent 30%);
}

.slim-hero,
.category-hero,
.rank-hero {
  min-height: 230px;
}

.page-hero span {
  color: var(--amber-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.page-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
}

.category-cover {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

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

.category-cover span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--amber-light);
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
}

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

.category-overview-body h2 {
  margin: 0 0 10px;
}

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

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-preview-links a {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(148, 163, 184, 0.09);
}

.category-movie-grid {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.breadcrumb em {
  color: var(--soft);
  font-style: normal;
}

.rank-page-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.rank-card {
  display: grid;
  grid-template-columns: 86px 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
}

.rank-poster img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--bg-soft);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.06);
  opacity: 0.48;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 48%, rgba(2, 6, 23, 0.42) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
  align-items: end;
  min-height: 520px;
  padding: 38px;
}

.detail-poster img {
  width: 270px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 68px);
}

.detail-info p {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags {
  margin: 18px 0 24px;
}

.player-section {
  margin-top: 30px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-hot);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: var(--text);
  cursor: pointer;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.75));
}

.movie-player.is-playing .player-cover {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  color: #111827;
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(2, 6, 23, 0.72);
  pointer-events: none;
}

.movie-player.is-playing .player-status:empty {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  margin-top: 30px;
}

.detail-article {
  padding: 28px;
}

.detail-article h2 {
  margin: 28px 0 12px;
  color: var(--amber-light);
  font-size: 26px;
}

.detail-article p {
  color: var(--soft);
  line-height: 2;
  font-size: 17px;
}

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

.info-grid div {
  padding: 15px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.info-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.detail-sidebar {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 94px;
}

.side-rank-item {
  grid-template-columns: 58px 1fr;
}

.site-footer {
  margin-top: 68px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(2, 6, 23, 0.72);
}

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

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

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--amber-light);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  text-align: center;
}

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

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 68px;
  }

  .desktop-nav,
  .global-search {
    display: none;
  }

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

  .hero-carousel {
    min-height: 560px;
  }

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

  .hero-nav {
    display: none;
  }

  .quick-filter,
  .footer-grid,
  .detail-hero-inner,
  .rank-card,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    align-items: start;
  }

  .detail-poster img {
    width: min(230px, 70vw);
  }

  .info-grid,
  .movie-grid,
  .movie-grid-small,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-poster img {
    width: 100%;
    height: auto;
    max-height: 240px;
  }
}

@media (max-width: 560px) {
  .page-container,
  .header-inner,
  .mobile-panel,
  .footer-grid,
  .footer-bottom,
  .hero-content,
  .quick-filter {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .movie-grid-small,
  .mini-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .page-hero,
  .detail-hero-inner,
  .detail-article {
    padding: 22px;
  }

  .category-block-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-line {
    width: 100%;
    flex: none;
  }
}
