:root {
  color-scheme: light;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --soft: #ecfeff;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent 34rem),
    linear-gradient(180deg, #f0fdff 0%, #ffffff 34rem, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(14, 165, 233, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 15px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.24);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #ffffff;
  border: 2px solid #cffafe;
  border-radius: 999px;
}

.header-search input,
.mobile-nav input,
.wide-search input,
.page-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.header-search input {
  width: 200px;
  padding: 8px 4px 8px 14px;
}

.header-search button,
.mobile-nav button,
.wide-search button,
.page-filter button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 18px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-top: 8px;
  background: #ffffff;
  border: 2px solid #cffafe;
  border-radius: 18px;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #061a2b;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(14, 165, 233, 0.16), transparent 22rem),
    linear-gradient(90deg, rgba(6, 18, 34, 0.92), rgba(8, 47, 73, 0.7) 45%, rgba(15, 23, 42, 0.46)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 64px;
  padding: 80px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0891b2;
  background: rgba(236, 254, 255, 0.82);
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #e0f2fe;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
}

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

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.tag-row span {
  color: #075985;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-action,
.ghost-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-action {
  color: #0891b2;
  background: #ffffff;
  padding: 14px 24px;
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.25);
}

.primary-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 26px 44px rgba(6, 182, 212, 0.34);
}

.ghost-action {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.64);
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-action:hover {
  color: #075985;
  background: #ffffff;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(37, 99, 235, 0.9));
  border-radius: 18px;
  padding: 12px;
  font-weight: 900;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: 0.22s ease;
}

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

.hero-rail {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 82px;
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  transform: translateX(-50%);
}

.hero-rail-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.hero-rail-card img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-rail-card strong,
.hero-rail-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-rail-card em {
  margin-top: 4px;
  color: #bae6fd;
  font-size: 12px;
  font-style: normal;
}

.intro-band {
  width: min(1200px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-band span {
  display: inline-flex;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
}

.intro-band strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.intro-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.wide-search,
.page-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #f8fafc;
  border: 2px solid #cffafe;
  border-radius: 999px;
}

.wide-search input,
.page-filter input {
  padding: 11px 14px;
}

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

.soft-panel {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.88), rgba(239, 246, 255, 0.88));
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.06em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading > a,
.text-link {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.12));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 22px;
  color: #ffffff;
}

.category-tile strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.category-tile em {
  color: #dbeafe;
  font-style: normal;
  line-height: 1.65;
}

.ranking-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ranking-strip a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.ranking-strip b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
}

.ranking-strip span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-strip em {
  color: var(--muted);
  font-style: normal;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at right top, rgba(125, 211, 252, 0.38), transparent 24rem),
    linear-gradient(135deg, #ecfeff, #eff6ff);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.compact-hero {
  padding: 54px;
}

.compact-hero h1 {
  max-width: 920px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.compact-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-cover-row img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  border-radius: 18px;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-overview-card span {
  display: block;
  color: #0891b2;
  font-weight: 800;
  margin: 10px 0 16px;
}

.list-tools .page-filter {
  margin-bottom: 28px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 84px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.ranking-no {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 18px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-thumb img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-hero {
  position: relative;
  padding: 36px 0 54px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 30rem),
    linear-gradient(180deg, #e0faff, #ffffff);
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

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

.detail-info h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.detail-one-line {
  color: #334155;
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-actions .ghost-action {
  color: var(--cyan-dark);
  border-color: #67e8f9;
  background: rgba(236, 254, 255, 0.72);
}

.player-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(8, 47, 73, 0.35), rgba(2, 6, 23, 0.72));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.34);
}

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

.detail-text {
  padding-top: 42px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.detail-text p {
  margin: 0 0 28px;
  color: #334155;
  font-size: 18px;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  color: #dbeafe;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  gap: 44px;
  padding: 54px 0;
}

.brand-footer .brand-text strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.brand-footer .brand-text em,
.footer-brand p {
  color: #bfdbfe;
}

.footer-brand p {
  margin: 18px 0 0;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #67e8f9;
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #dbeafe;
}

.footer-links a:hover {
  color: #67e8f9;
}

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

.is-filter-hidden {
  display: none !important;
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 64px;
  }

  .hero-poster {
    display: none;
  }

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

  .intro-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text em {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-rail {
    display: none;
  }

  .hero-dots {
    bottom: 28px;
  }

  .intro-band,
  .compact-hero {
    border-radius: 24px;
    padding: 24px;
  }

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

  .movie-grid,
  .category-grid,
  .ranking-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .category-cover-row img {
    height: 150px;
  }

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

  .ranking-row .text-link {
    grid-column: 3;
  }

  .ranking-no {
    width: 48px;
    height: 48px;
  }

  .ranking-thumb img {
    width: 72px;
    height: 96px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .category-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

  .wide-search,
  .page-filter {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .compact-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }
}
