* {
  box-sizing: border-box;
}

:root {
  --canyon-50: #faf8f5;
  --canyon-100: #f5f0e8;
  --canyon-200: #e8dbc8;
  --canyon-600: #a6714a;
  --canyon-700: #8a5c3f;
  --canyon-800: #704c37;
  --canyon-900: #5c3f2f;
  --earth-600: #7a6752;
  --earth-700: #655545;
  --earth-800: #56483c;
  --earth-900: #4a3e34;
  --gold-100: #fff7e6;
  --gold-300: #ffdf8f;
  --gold-400: #ffc94a;
  --gold-500: #ffb41e;
  --gold-600: #f09200;
  --forest-50: #f4f6f4;
  --forest-100: #e5eae5;
  --forest-600: #4a5e4d;
  --forest-700: #3d4d40;
  --sand-50: #fdfcfa;
  --sand-100: #faf7f0;
  --sand-200: #f5eedd;
  --shadow-canyon: 0 10px 24px rgba(138, 92, 63, 0.12);
  --shadow-canyon-lg: 0 24px 48px rgba(92, 63, 47, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--canyon-900);
  background: linear-gradient(135deg, var(--canyon-50), #ffffff 44%, var(--sand-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(92, 63, 47, 0.96), rgba(74, 62, 52, 0.94), rgba(112, 76, 55, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(31, 20, 15, 0.18);
  backdrop-filter: blur(18px);
}

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 10px 20px rgba(255, 180, 30, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--gold-300);
}

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

.top-search input,
.mobile-search input,
.grid-search,
.year-filter {
  border: 1px solid rgba(138, 92, 63, 0.18);
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--canyon-900);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-search input,
.mobile-search input {
  width: 210px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.top-search input:focus,
.mobile-search input:focus,
.grid-search:focus,
.year-filter:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.2);
}

.top-search button,
.mobile-search button,
.btn-primary,
.btn-ghost,
.section-heading a,
.category-card p {
  border: none;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-search button,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 12px 28px rgba(240, 146, 0, 0.26);
}

.top-search button,
.mobile-search button {
  padding: 10px 16px;
}

.top-search button:hover,
.mobile-search button:hover,
.btn-primary:hover,
.category-card:hover p {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(240, 146, 0, 0.32);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #1f1713;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 36%, rgba(255, 180, 30, 0.22), transparent 28%),
    linear-gradient(to top, rgba(20, 12, 8, 0.98), rgba(20, 12, 8, 0.55) 46%, rgba(20, 12, 8, 0.18));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1220px) / 2));
  right: max(24px, calc((100vw - 1220px) / 2));
  bottom: 94px;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-600);
  background: var(--gold-100);
  border: 1px solid rgba(255, 180, 30, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #ffffff;
  background: rgba(255, 180, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-content h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.64);
  transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--gold-500);
}

.quick-links {
  width: min(1120px, calc(100% - 32px));
  margin: -30px auto 42px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-links a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--canyon-900);
  font-size: 18px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(138, 92, 63, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow-canyon);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.quick-links a:hover {
  color: var(--gold-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-canyon-lg);
}

.section-block {
  margin: 60px auto;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 0;
  color: var(--canyon-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
}

.section-heading.mini {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading.mini h3 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.section-heading a {
  padding: 10px 16px;
  color: var(--canyon-900);
  background: #ffffff;
  box-shadow: var(--shadow-canyon);
}

.section-heading a:hover {
  color: var(--gold-600);
  transform: translateY(-1px);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 290px;
  gap: 22px;
  padding: 4px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-item {
  scroll-snap-align: start;
}

.movie-grid,
.mini-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(138, 92, 63, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow-canyon);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-canyon-lg);
}

.movie-card figure {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--canyon-200), var(--sand-200));
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img {
  transform: scale(1.055);
}

.movie-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-dot,
.play-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 12px 30px rgba(240, 146, 0, 0.3);
}

.play-dot {
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.movie-card figure em,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.movie-card figure em {
  right: 12px;
  padding: 6px 10px;
}

.rank-badge {
  left: 12px;
  padding: 6px 11px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--canyon-900);
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--gold-600);
}

.card-body p {
  flex: 1;
  margin: 0;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 750;
  background: var(--forest-100);
}

.category-panel {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--forest-50), var(--canyon-50));
  box-shadow: var(--shadow-canyon);
}

.category-strip + .category-strip {
  margin-top: 36px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr minmax(160px, 0.65fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 14px;
  border-radius: 18px;
  color: var(--canyon-900);
  background: #ffffff;
  box-shadow: var(--shadow-canyon);
  transition: transform 0.2s ease, color 0.2s ease;
}

.rank-row:hover {
  color: var(--gold-600);
  transform: translateY(-2px);
}

.rank-row strong {
  color: var(--gold-600);
  font-size: 20px;
}

.rank-row em {
  color: var(--earth-600);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.page-main {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--earth-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--gold-600);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 28%, rgba(255, 180, 30, 0.18), transparent 26%),
    linear-gradient(135deg, #ffffff, var(--sand-100));
  box-shadow: var(--shadow-canyon);
}

.page-hero.small {
  padding: 42px;
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--earth-600);
  font-size: 18px;
  line-height: 1.85;
}

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 230px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-canyon);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-canyon-lg);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 0.75;
  object-fit: cover;
  border-radius: 16px;
}

.category-card span {
  color: var(--gold-600);
  font-weight: 850;
}

.category-card h2 {
  margin: 12px 0 16px;
  font-size: 21px;
  line-height: 1.55;
}

.category-card p {
  display: inline-flex;
  margin: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  align-items: center;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid rgba(138, 92, 63, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-canyon);
}

.grid-search,
.year-filter {
  width: 100%;
}

.movie-item.hidden {
  display: none;
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin-bottom: 70px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 70px 150px 1fr 70px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-canyon);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-canyon-lg);
}

.ranking-card strong {
  color: var(--gold-600);
  font-size: 24px;
}

.ranking-card img {
  width: 150px;
  height: 86px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-card p {
  margin: 0 0 8px;
  color: var(--earth-600);
  line-height: 1.65;
}

.ranking-card span {
  color: var(--forest-700);
  font-size: 13px;
  font-weight: 700;
}

.ranking-card em {
  color: var(--gold-600);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-canyon-lg);
}

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

.movie-video {
  min-height: 430px;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  z-index: 2;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 180, 30, 0.24), rgba(0, 0, 0, 0.62));
}

.play-large {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  font-size: 26px;
  transform: translate(-50%, -50%);
}

.detail-info {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-canyon);
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead-text {
  margin: 18px 0;
  color: var(--earth-600);
  font-size: 17px;
  line-height: 1.85;
}

.detail-meta span {
  color: var(--canyon-900);
  background: var(--sand-100);
}

.tag-list {
  margin-top: 18px;
}

.content-card {
  margin-top: 28px;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-canyon);
}

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

.content-card p {
  margin: 0 0 18px;
  color: var(--earth-700);
  font-size: 17px;
  line-height: 2;
}

.related-block {
  margin-top: 46px;
}

.site-footer {
  margin-top: 80px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--canyon-900), var(--earth-900), var(--canyon-800));
}

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

.footer-brand {
  font-size: 21px;
}

.site-footer p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .category-card {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: 66px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-search {
    align-items: stretch;
  }

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

  .hero-slider {
    min-height: 540px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 76px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .rank-list,
  .filter-bar,
  .footer-grid,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-row em {
    grid-column: 2;
    text-align: left;
  }

  .category-panel,
  .page-hero,
  .content-card,
  .detail-info {
    padding: 24px;
    border-radius: 24px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .player-card,
  .movie-video {
    min-height: 260px;
  }

  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-wrap,
  .mobile-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1220px);
  }

  .quick-links,
  .movie-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: 84%;
  }

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

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