:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --brand: #38bdf8;
  --brand-2: #2563eb;
  --brand-3: #0ea5e9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 62vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.32);
}

.brand-text {
  font-size: 1.32rem;
  background: linear-gradient(90deg, #7dd3fc, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--soft);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.92);
  color: white;
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-link {
  display: block;
  padding: 13px 4px;
  color: var(--soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mobile-link:hover {
  color: var(--brand);
}

.hero-slider {
  position: relative;
  height: clamp(560px, 82vh, 820px);
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.14)),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

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

.hero-content > * {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bae6fd;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.eyebrow span,
.section-kicker {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  padding: 8px;
  gap: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
}

.hero-search button,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.ghost-btn {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.26);
}

.small-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.hero-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.55);
  font-size: 2.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(14, 165, 233, 0.76);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: var(--brand);
}

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

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

.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-intro h2,
.section-heading h2,
.page-hero h1,
.movie-info-card h1,
.side-card h2,
.related-section h2 {
  margin: 12px 0 0;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.home-intro h2,
.section-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.home-intro p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 740px;
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 16px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.text-link:hover {
  color: #7dd3fc;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), transparent 62%);
}

.card-region,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 9px;
}

.card-region {
  left: 12px;
  bottom: 12px;
  color: white;
  background: rgba(14, 165, 233, 0.88);
}

.card-year {
  top: 12px;
  right: 12px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  color: white;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: white;
  background: rgba(14, 165, 233, 0.88);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 9px;
  overflow: hidden;
  color: white;
  font-size: 1.04rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags,
.detail-tags,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span,
.detail-meta span,
.meta-line span {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.76rem;
  padding: 6px 9px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 24px;
}

.feature-card,
.rank-panel,
.side-card,
.movie-info-card,
.player-card,
.filter-panel,
.category-large,
.ranking-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  padding: 18px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 18px;
}

.feature-card h2 {
  margin: 13px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.feature-card p {
  color: var(--soft);
  line-height: 1.9;
}

.rank-panel {
  padding: 20px;
}

.rank-list {
  display: grid;
  gap: 11px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 15px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.52);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(14, 165, 233, 0.16);
}

.rank-num {
  color: var(--brand);
  font-weight: 900;
  text-align: center;
}

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

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text small {
  margin-top: 3px;
  color: var(--muted);
}

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

.category-tile,
.category-large {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.13);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover,
.category-large:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.58), rgba(29, 78, 216, 0.38));
}

.category-tile span,
.category-large span {
  display: block;
  font-size: 1.16rem;
  font-weight: 850;
}

.category-tile small,
.category-large p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 78px 0 14px;
}

.compact-hero {
  min-height: 290px;
  display: flex;
  align-items: center;
}

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

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

.category-large {
  min-height: 230px;
}

.category-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.category-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.44));
}

.category-large span,
.category-large p {
  position: relative;
  z-index: 2;
  max-width: 68%;
}

.category-large span {
  font-size: 1.55rem;
}

.category-large:hover img {
  opacity: 0.38;
  transform: scale(1.04);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.22fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  outline: 0;
  background: rgba(2, 6, 23, 0.56);
  color: var(--text);
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(56, 189, 248, 0.6);
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 26px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

.ranking-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.38);
}

.ranking-card a {
  display: grid;
  grid-template-columns: 68px 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
}

.ranking-card img {
  width: 170px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.ranking-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 0.93rem;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

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

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.34));
  cursor: pointer;
}

.play-cover span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 18px 52px rgba(14, 165, 233, 0.35);
  transition: transform 0.2s ease;
}

.play-cover:hover span {
  transform: scale(1.08);
}

.play-cover.is-hidden {
  display: none;
}

.movie-info-card {
  padding: 26px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.movie-info-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-one-line {
  margin: 18px 0;
  color: #bae6fd;
  font-size: 1.13rem;
  line-height: 1.8;
}

.detail-meta {
  margin: 14px 0;
}

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

.movie-info-card section {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.movie-info-card section + section {
  margin-top: 22px;
}

.movie-info-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.movie-info-card p {
  color: var(--soft);
  line-height: 1.95;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.26rem;
}

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

.side-links a {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--soft);
}

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

.side-links img {
  width: 78px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.related-section {
  padding-top: 36px;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 24px;
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

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

.site-footer h3 {
  margin: 0 0 13px;
  font-size: 1rem;
}

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

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  font-size: 0.9rem;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider {
    height: 680px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.8) 48%, rgba(2, 6, 23, 0.35)),
      linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.35));
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 88px;
  }

  .hero-search,
  .hero-actions,
  .home-intro,
  .section-heading,
  .title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    display: grid;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-large-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card,
  .filter-panel,
  .ranking-card a {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    min-height: 230px;
  }

  .ranking-card img {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .detail-shell,
  .page-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero-slider {
    height: 640px;
  }

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

  .movie-grid,
  .category-grid,
  .category-large-grid,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    padding: 14px;
  }

  .card-body {
    padding: 15px;
  }

  .movie-info-card {
    padding: 20px;
  }

  .side-links a {
    grid-template-columns: 88px 1fr;
  }
}
