* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(30, 41, 59, 0.58);
  --panel-strong: rgba(15, 23, 42, 0.88);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --sky: #38bdf8;
  --blue: #2563eb;
  --yellow: #facc15;
  --red: #fb7185;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon,
.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.25);
}

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

.brand-text em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-weight: 600;
  font-size: 14px;
}

.desktop-nav a,
.mobile-nav a,
.footer-grid a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover {
  color: var(--sky);
}

.menu-button {
  display: none;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.mobile-nav a {
  color: var(--soft);
  padding: 10px 0;
}

.hero {
  position: relative;
  height: min(80vh, 720px);
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-image {
  transform: scale(1.12);
}

.hero-shade,
.hero-side-shade {
  position: absolute;
  inset: 0;
}

.hero-shade {
  background: linear-gradient(0deg, #020617 0%, rgba(15, 23, 42, 0.66) 48%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-side-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.76));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  width: min(680px, 100%);
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  width: min(640px, 100%);
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.search-band button,
.center-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-btn,
.search-band button {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.26);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-band button:hover,
.center-actions a:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 42px;
  line-height: 1;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.85);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.search-band {
  width: min(980px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 8;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.88);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.site-search-form,
.filter-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.site-search-form input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.filter-controls {
  grid-template-columns: minmax(0, 1fr) 240px;
  margin-bottom: 26px;
}

.search-links {
  margin-top: 14px;
}

.search-links a {
  color: var(--soft);
  font-size: 14px;
}

.search-links a:hover {
  color: var(--sky);
}

.section-block {
  padding: 74px 0;
}

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

.section-title > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.14);
  color: var(--sky);
  font-size: 22px;
}

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

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(30, 41, 59, 0.76);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 22px 44px rgba(14, 165, 233, 0.12);
}

.poster-wrap,
.row-poster {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

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

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

.poster-year {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.78);
  color: white;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.04));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.play-triangle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 24px;
  padding-left: 4px;
}

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

.movie-card h3,
.movie-row h3 {
  margin: 0;
  color: white;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3,
.movie-row:hover h3 {
  color: var(--sky);
}

.movie-card p,
.movie-row p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.trend-band {
  background: rgba(15, 23, 42, 0.48);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.rank-item > strong {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 14px 30px rgba(248, 113, 113, 0.18);
  font-size: 24px;
}

.movie-row {
  display: flex;
  min-height: 144px;
}

.row-poster {
  width: 142px;
  flex: 0 0 142px;
}

.row-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 16px 16px 16px 0;
}

.row-info span {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.center-actions {
  margin-top: 30px;
  text-align: center;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-card:hover,
.category-overview:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.32);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.2);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.22));
}

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

.category-card h3,
.category-overview h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p,
.category-overview p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
  font-size: 14px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 82px 16px 48px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.22), transparent 36%), linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.2));
  border-bottom: 1px solid var(--line);
}

.small-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.small-hero p {
  width: min(760px, 100%);
  margin: 16px auto 0;
  color: var(--soft);
  line-height: 1.8;
}

.crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--sky);
}

.filter-panel {
  padding-top: 48px;
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.category-overview {
  display: grid;
  grid-template-rows: 150px auto;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}

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

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

.category-overview span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--sky);
  font-weight: 700;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 58px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(30, 41, 59, 0.48);
  padding: 8px 18px 8px 10px;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.74);
  border-color: rgba(56, 189, 248, 0.24);
}

.ranking-row strong {
  color: var(--yellow);
  font-size: 22px;
  text-align: center;
}

.ranking-row img {
  width: 50px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-title {
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.detail-main {
  background: linear-gradient(180deg, #020617, #0f172a 42%, #020617);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: flex;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.15);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.55));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 72px 0 54px;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
}

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

.detail-info .crumbs {
  justify-content: flex-start;
}

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

.detail-line {
  margin: 18px 0 0;
  width: min(780px, 100%);
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta {
  margin-top: 18px;
  color: var(--muted);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  padding: 46px 0 86px;
}

.main-column,
.side-column {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-card,
.text-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.22);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 3;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.52;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 36%), rgba(2, 6, 23, 0.44);
}

.big-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 40px;
  padding-left: 7px;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.big-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: #fff;
}

.text-card,
.side-card {
  padding: 24px;
}

.text-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.text-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.95;
  font-size: 16px;
}

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

.side-card dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  color: var(--text);
  min-width: 0;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  display: block;
  color: var(--soft);
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.side-links a:hover {
  color: var(--sky);
}

.site-footer {
  background: #020617;
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  font-size: 18px;
  font-weight: 800;
}

.footer-main p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.footer-grid a {
  color: var(--muted);
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
    font-size: 13px;
  }

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .hero {
    height: 68vh;
    min-height: 520px;
  }

  .hero-content {
    padding-right: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .site-search-form,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-item > strong {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .movie-row {
    min-height: 126px;
  }

  .row-poster {
    width: 104px;
    flex-basis: 104px;
  }

  .ranking-row {
    grid-template-columns: 48px 52px minmax(0, 1fr);
  }

  .ranking-meta {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
  }

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

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .movie-grid,
  .all-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .detail-poster {
    width: 190px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .text-card,
  .side-card {
    padding: 20px;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }
}
