* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #020617;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(217, 119, 6, 0.1), transparent 28rem),
    linear-gradient(180deg, #000000 0%, #111827 46%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.96), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(75, 85, 99, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

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

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

.logo-text,
.footer-logo span:last-child {
  font-size: clamp(20px, 2vw, 27px);
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.38);
  font-size: 15px;
}

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

.nav-link,
.mobile-link {
  color: #d1d5db;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #fcd34d;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.mobile-nav.open {
  display: grid;
  gap: 14px;
}

.mobile-link {
  display: block;
  padding: 8px 2px;
}

.home-hero {
  position: relative;
  min-height: 640px;
  height: 76vh;
  overflow: hidden;
  background: #020617;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.64) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 0 96px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 14px;
  color: #111827;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
}

.hero-content h1 {
  max-width: 780px;
  margin: 24px 0 18px;
  font-size: clamp(44px, 7.4vw, 86px);
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span,
.detail-meta a,
.rank-meta span,
.rank-meta a,
.movie-meta span,
.movie-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.74);
  border: 1px solid rgba(75, 85, 99, 0.72);
  border-radius: 10px;
  font-size: 13px;
}

.movie-meta a,
.rank-meta a,
.detail-meta a {
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.32);
  border-color: rgba(245, 158, 11, 0.25);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
}

.ghost-button {
  color: #fef3c7;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 36px;
  background: #fbbf24;
}

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

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: stretch;
}

.intro-copy {
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
  border: 1px solid rgba(75, 85, 99, 0.6);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.intro-copy h1,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 18px 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.intro-copy p,
.section-heading p,
.page-hero p,
.detail-card p,
.side-card dd,
.rank-body p,
.movie-card-body p {
  color: #cbd5e1;
  line-height: 1.72;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86)),
    var(--tile-image) center / cover;
  border: 1px solid rgba(75, 85, 99, 0.6);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.55);
}

.category-tile span {
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 9px;
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.category-tile strong {
  font-size: 20px;
  color: #ffffff;
}

.category-tile em {
  margin-top: 7px;
  color: #d1d5db;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(27px, 3vw, 38px);
}

.section-heading a {
  color: #fbbf24;
  font-weight: 700;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 24px 70px rgba(120, 53, 15, 0.32);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.18), transparent 42%),
    #111827;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 1 / 1;
}

.poster-frame img,
.side-poster img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.poster-frame img.image-error,
.side-poster img.image-error,
.rank-thumb img.image-error {
  opacity: 0;
}

.movie-card:hover .poster-frame img,
.rank-item:hover .rank-thumb img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
  opacity: 0.72;
}

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-card-body h3 a:hover {
  color: #fbbf24;
}

.movie-card-body p {
  margin: 0 0 14px;
  min-height: 3.4em;
  font-size: 14px;
}

.movie-meta {
  gap: 7px;
}

.movie-meta span,
.movie-meta a {
  min-height: 25px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(75, 85, 99, 0.7);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #fef3c7;
  font-weight: 700;
}

.filter-bar input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(75, 85, 99, 0.95);
  border-radius: 13px;
  outline: 0;
}

.filter-bar input:focus {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.quick-tags button {
  min-height: 36px;
  padding: 0 12px;
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

.quick-tags button:hover {
  background: rgba(245, 158, 11, 0.22);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  color: #cbd5e1;
  text-align: center;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 18px;
  border: 1px solid rgba(75, 85, 99, 0.7);
}

.empty-state.show {
  display: block;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38)),
    var(--page-image) center / cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #020617);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.split-section {
  display: grid;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.68);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

.rank-number {
  width: 42px;
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  position: relative;
  display: block;
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rank-item:hover .rank-thumb span {
  opacity: 1;
}

.rank-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 19px;
}

.rank-body h3 a:hover {
  color: #fbbf24;
}

.rank-body p {
  margin: 0 0 10px;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 34px 0 78px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: #9ca3af;
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.player-panel,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.7);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fef3c7;
  background: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.66));
  border: 0;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.36);
  font-size: 28px;
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin-top: 0;
}

.detail-card section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(75, 85, 99, 0.7);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  font-size: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-row a {
  padding: 7px 11px;
  color: #fef3c7;
  background: rgba(120, 53, 15, 0.36);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  font-size: 13px;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.18), transparent 42%),
    #111827;
  border: 1px solid rgba(75, 85, 99, 0.7);
}

.side-card {
  padding: 22px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 13px;
}

.side-card dl div {
  display: grid;
  gap: 5px;
}

.side-card dt {
  color: #9ca3af;
  font-size: 13px;
}

.side-card dd {
  margin: 0;
}

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

.side-links a {
  display: block;
  color: #d1d5db;
  line-height: 1.5;
}

.side-links a:hover {
  color: #fbbf24;
}

.detail-related {
  width: 100%;
  padding-top: 32px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), #000000);
}

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

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #fef3c7;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: #9ca3af;
  line-height: 1.7;
}

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

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

.footer-bottom {
  padding: 20px 16px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid rgba(31, 41, 55, 0.92);
}

[data-card].hidden {
  display: none;
}

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

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

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

  .detail-sidebar {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .detail-sidebar .side-card:last-child {
    grid-column: 1 / -1;
  }
}

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

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

  .home-hero,
  .hero-content {
    min-height: 560px;
    height: auto;
  }

  .hero-content {
    padding: 56px 0 84px;
  }

  .hero-content h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-actions,
  .page-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    flex: 1 1 160px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .quick-tags {
    justify-content: flex-start;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: auto 104px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    height: 74px;
  }

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

@media (max-width: 520px) {
  .site-nav {
    height: 62px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .logo-text {
    font-size: 19px;
  }

  .hero-content p,
  .page-hero p {
    font-size: 15px;
  }

  .content-section {
    width: min(100% - 24px, 1180px);
    padding-top: 48px;
  }

  .movie-grid,
  .library-grid,
  .small-grid,
  .category-tiles {
    gap: 13px;
  }

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p {
    font-size: 13px;
  }

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

  .rank-number {
    text-align: left;
  }

  .rank-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-layout {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .detail-card {
    padding: 20px;
  }
}
