:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --rose: #e11d48;
  --pink: #db2777;
  --yellow: #f59e0b;
  --green: #16a34a;
  --black: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(127, 29, 29, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #fff7f7 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #dc2626, #b91c1c 55%, #e11d48);
  box-shadow: 0 14px 40px rgba(153, 27, 27, 0.28);
}

.site-nav {
  width: min(1220px, calc(100% - 28px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

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

.nav-link,
.mobile-nav-link {
  color: #ffffff;
  font-weight: 650;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 9px 13px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.nav-search,
.mobile-search {
  position: relative;
}

.nav-search {
  width: 248px;
}

.search-input,
.filter-input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  transition: 0.2s ease;
}

.filter-input {
  color: var(--black);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.06);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.filter-input::placeholder {
  color: #9ca3af;
}

.search-input:focus,
.filter-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.28);
}

.filter-input:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
  background: #ffffff;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
  padding: 10px;
  color: var(--black);
}

.search-results a {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-results a:hover {
  background: #fff1f2;
}

.search-results img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #fee2e2;
}

.search-results strong {
  display: block;
  font-size: 14px;
}

.search-results small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  padding: 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-panel {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-links {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(125deg, #dc2626 0%, #b91c1c 45%, #db2777 100%);
}

.hero-pattern,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
  background-size: auto, auto, 48px 48px, 48px 48px;
  opacity: 0.72;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.hero-slide {
  display: none;
  min-height: 440px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 52px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.45s ease both;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fecaca;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 26px;
  color: #ffe4e6;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.tag-row span,
.detail-meta span {
  color: #991b1b;
  background: #fee2e2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn-primary {
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff1f2;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(127, 29, 29, 0.42);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover,
.btn-line:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-line {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(17, 24, 39, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster img,
.poster-link img,
.featured-card img,
.compact-card img,
.ranking-poster img,
.detail-poster img,
.detail-bg img,
.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.hero-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

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

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px;
  cursor: pointer;
  text-align: left;
}

.hero-thumb.is-active {
  background: rgba(255, 255, 255, 0.24);
}

.hero-thumb img {
  width: 42px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-thumb span {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 76px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(135deg, #f9fafb, #fff1f2);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading span,
.page-hero span {
  color: var(--red);
  background: #fee2e2;
  padding: 7px 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
}

.featured-grid,
.movie-grid,
.category-card-grid,
.mini-grid,
.compact-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.poster-card,
.content-card,
.aside-card,
.category-overview-section,
.ranking-item {
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(127, 29, 29, 0.07);
}

.poster-card {
  overflow: hidden;
  transition: 0.22s ease;
}

.poster-card:hover,
.featured-card:hover,
.compact-card:hover,
.category-card:hover,
.rank-row:hover,
.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.poster-link img,
.featured-card img {
  transition: 0.35s ease;
}

.poster-card:hover .poster-link img,
.featured-card:hover img {
  transform: scale(1.06);
}

.poster-badge,
.poster-score,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 850;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  font-size: 12px;
}

.poster-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #7c2d12;
  background: #fef3c7;
  padding: 6px 9px;
  font-size: 12px;
}

.poster-body {
  padding: 16px;
}

.poster-body h3,
.ranking-body h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.poster-body h3 a:hover,
.ranking-body h2 a:hover {
  color: var(--red);
}

.poster-body p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
}

.movie-meta {
  color: var(--muted) !important;
  font-size: 13px !important;
}

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

.featured-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.18);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.82));
}

.featured-overlay strong {
  font-size: 26px;
  line-height: 1.2;
}

.featured-overlay em {
  color: #e5e7eb;
  font-style: normal;
}

.pill {
  width: fit-content;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--red);
  font-size: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 34px;
}

.rank-list,
.compact-stack,
.ranking-list {
  display: grid;
  gap: 14px;
}

.rank-row,
.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 10px;
  transition: 0.2s ease;
}

.rank-cover img,
.compact-card img {
  width: 72px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  background: #fee2e2;
}

.rank-info,
.compact-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-info strong,
.compact-body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-info small,
.compact-body small {
  color: var(--muted);
  line-height: 1.4;
}

.rank-heat {
  margin-left: auto;
  color: var(--red);
  font-weight: 900;
}

.more-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 850;
}

.category-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #e11d48);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.2);
  transition: 0.22s ease;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: #ffe4e6;
  font-size: 14px;
  font-weight: 600;
}

.category-strips,
.stacked-sections {
  display: grid;
  gap: 34px;
}

.category-strip,
.category-overview-section {
  padding: 24px;
}

.strip-head,
.overview-title,
.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.strip-head h3,
.overview-title h2 {
  margin: 0;
  font-size: 24px;
}

.strip-head a,
.overview-title a,
.accent-card a {
  color: var(--red);
  font-weight: 850;
}

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

.library-head .section-heading {
  margin: 0;
}

.library-head .filter-input {
  max-width: 360px;
}

.filter-empty {
  margin: 18px 0;
  padding: 16px;
  border-radius: 16px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(125deg, #dc2626, #b91c1c 55%, #db2777);
  padding: 86px 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 19px;
}

.page-hero-slim {
  padding: 70px 0;
}

.ranking-hero .ranking-featured {
  margin-top: 34px;
}

.ranking-list {
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 68px 98px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: 0.2s ease;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #db2777);
  font-weight: 950;
}

.ranking-poster {
  width: 98px;
  height: 130px;
  overflow: hidden;
  border-radius: 16px;
  background: #fee2e2;
}

.ranking-body p {
  margin: 7px 0 0;
  color: #4b5563;
}

.ranking-side {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.ranking-side strong {
  color: var(--red);
  font-size: 30px;
}

.ranking-side span {
  color: var(--muted);
  font-weight: 800;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(6px);
  transform: scale(1.05);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, rgba(127, 29, 29, 0.94), rgba(17, 24, 39, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #fecaca;
  margin: 12px 0 28px;
}

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

.detail-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
}

.detail-line {
  max-width: 800px;
  color: #ffe4e6;
  font-size: 20px;
}

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

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.detail-main {
  padding-top: 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.detail-primary,
.detail-aside {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.player-video {
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 2;
}

.player-cover strong {
  max-width: 82%;
  font-size: clamp(20px, 3vw, 34px);
  text-align: center;
}

.player-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: 36px;
}

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

.content-card,
.aside-card {
  padding: 26px;
}

.content-card h2,
.aside-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p,
.aside-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-aside {
  position: sticky;
  top: 92px;
}

.accent-card {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #db2777);
}

.accent-card h2,
.accent-card p,
.accent-card a {
  color: #ffffff;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 220px 240px;
  gap: 30px;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.footer-brand p {
  max-width: 500px;
  color: #9ca3af;
}

.footer-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-group h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
}

.footer-group a:hover {
  color: #fca5a5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide,
  .detail-panel,
  .detail-layout,
  .two-column,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

  .detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 44px;
  }

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

  .hero-controls,
  .strip-head,
  .overview-title,
  .library-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-thumbs,
  .featured-grid,
  .movie-grid,
  .mini-grid,
  .compact-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .library-head .filter-input {
    max-width: none;
  }

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

  .ranking-side {
    grid-column: 2 / -1;
    justify-items: start;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ranking-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .ranking-poster {
    width: 76px;
    height: 104px;
  }

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

  .player-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
