:root {
  --honey-50: #fff8eb;
  --honey-100: #ffedc2;
  --honey-300: #ffd36a;
  --honey-500: #f59e0b;
  --honey-600: #d97706;
  --flame-400: #fb923c;
  --flame-500: #f97316;
  --flame-600: #ea580c;
  --phoenix-500: #ef4444;
  --phoenix-700: #b91c1c;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --paper: #ffffff;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 18px 48px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 42%, #fff1f2);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--honey-500));
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--flame-600);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4), 0 10px 18px rgba(0, 0, 0, 0.16);
}

.brand-name {
  font-size: 24px;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.filter-btn {
  border: 0;
  cursor: pointer;
}

.header-search button,
.mobile-search button {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--flame-600);
  font-weight: 800;
  background: #ffffff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  background: linear-gradient(180deg, rgba(146, 64, 14, 0.94), rgba(234, 88, 12, 0.94));
}

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

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-link {
  padding: 10px 0;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 580px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-slide > img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 38%, rgba(245, 158, 11, 0.2), transparent 30%), linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  width: min(680px, calc(100vw - 48px));
  transform: translateY(-50%);
}

.hero-kicker,
.detail-meta,
.card-meta,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.detail-kicker,
.type-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--honey-500), var(--flame-500));
}

.hero-kicker span,
.detail-kicker {
  padding: 7px 15px;
}

.hero-kicker strong {
  color: var(--honey-300);
}

.hero-content h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-meta {
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.76);
}

.hero-meta span:not(:last-child)::after {
  margin-left: 10px;
  content: "•";
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.ranking-item:hover {
  transform: translateY(-3px);
}

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

.primary-btn.small,
.ghost-btn.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 40px;
  line-height: 40px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.warm-band,
.category-section {
  max-width: none;
  background: linear-gradient(90deg, rgba(255, 237, 194, 0.65), rgba(255, 255, 255, 0.88), rgba(255, 241, 242, 0.8));
}

.warm-band > *,
.category-section > * {
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
}

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

.section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  font-size: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--ink-500);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 26px 54px rgba(120, 53, 15, 0.2);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--honey-100), #fee2e2);
}

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

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

.type-pill,
.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
}

.type-pill {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: 12px;
}

.year-pill {
  top: 12px;
  right: 12px;
  border-radius: 9px;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.rank-badge {
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--honey-500), var(--phoenix-500));
  font-weight: 900;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 48px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  justify-content: space-between;
  color: var(--ink-500);
  font-size: 13px;
}

.card-meta span:first-child {
  color: var(--honey-600);
  font-weight: 900;
}

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

.tag-row span {
  color: var(--ink-700);
  background: var(--honey-50);
  font-size: 12px;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-item img {
  width: 82px;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info strong,
.ranking-info em {
  display: block;
}

.ranking-info strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-info em {
  margin-top: 8px;
  color: var(--ink-500);
  font-style: normal;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.82));
  content: "";
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.category-tile span,
.category-tile p {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 2;
}

.category-tile span {
  bottom: 64px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  bottom: 18px;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-more {
  margin-top: 34px;
  text-align: center;
}

.inner-hero {
  color: #ffffff;
  background: radial-gradient(circle at 82% 18%, rgba(255, 211, 106, 0.32), transparent 28%), linear-gradient(135deg, #7c2d12, var(--flame-600), var(--phoenix-700));
}

.inner-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 24px;
}

.inner-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.inner-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.1);
  backdrop-filter: blur(12px);
}

.catalog-search {
  width: 100%;
  border: 1px solid rgba(120, 53, 15, 0.16);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  background: #ffffff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink-700);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(120, 53, 15, 0.12);
}

.filter-btn.active,
.filter-btn:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
}

.empty-state {
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: var(--ink-500);
  background: #ffffff;
}

.categories-overview {
  display: grid;
  gap: 32px;
}

.category-overview-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.category-overview-head img {
  width: 220px;
  height: 150px;
  border-radius: 22px;
  object-fit: cover;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-overview-head p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--ink-500);
}

.mini-card .card-body p,
.mini-card .tag-row {
  display: none;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(2px);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.88));
  content: "";
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 74px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.detail-poster img {
  width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

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

.detail-meta {
  color: rgba(255, 255, 255, 0.8);
}

.detail-meta span:first-child {
  color: var(--honey-300);
  font-weight: 900;
}

.detail-tags {
  margin: 20px 0 30px;
}

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-bottom: 36px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
}

.player-box.is-started .player-cover {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
}

.player-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 20px 42px rgba(239, 68, 68, 0.32);
  font-size: 42px;
}

.player-cover strong {
  position: relative;
  z-index: 2;
  margin-top: 120px;
  font-size: 20px;
}

.detail-content {
  padding-top: 36px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card h2:not(:first-child) {
  margin-top: 30px;
}

.content-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 17px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #451a03, #7c2d12, #991b1b);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
}

.footer-brand p,
.footer-block p,
.footer-block a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  margin-bottom: 16px;
  font-size: 24px;
}

.footer-block h2 {
  margin: 0 0 14px;
  color: var(--honey-300);
  font-size: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .detail-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

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

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

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

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    height: 64px;
    padding: 0 18px;
  }

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

  .mobile-search input {
    width: 100%;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-content {
    top: auto;
    bottom: 78px;
    transform: none;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-control {
    display: none;
  }

  .page-section {
    padding: 54px 18px;
  }

  .movie-grid,
  .ranking-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .category-overview-head img,
  .detail-poster img {
    width: 100%;
    max-width: 320px;
  }

  .detail-wrap {
    padding: 22px 18px 54px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .ranking-grid,
  .ranking-list,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .inner-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-actions,
  .inner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-item {
    grid-template-columns: 38px 70px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 70px;
    height: 92px;
  }

  .content-card,
  .category-overview-block {
    padding: 22px;
  }
}
