:root {
  --purple-950: #2e1065;
  --purple-900: #4c1d95;
  --purple-800: #5b21b6;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-100: #f3e8ff;
  --pink-600: #db2777;
  --pink-500: #ec4899;
  --pink-100: #fce7f3;
  --amber-400: #fbbf24;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(91, 33, 182, 0.18);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 45%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-700), var(--pink-500), #a855f7);
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.26);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  white-space: nowrap;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand-mark,
.footer-brand span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.28);
}

.brand-text {
  background: linear-gradient(90deg, #ffffff, #f3e8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 8px 2px;
  font-weight: 700;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  backdrop-filter: blur(16px);
}

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

.header-search button {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 2px;
  font-weight: 700;
}

.mobile-search {
  gap: 10px;
}

.mobile-search input {
  padding-right: 16px;
}

.mobile-search button,
.search-page-form button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.24);
}

.hero-carousel {
  position: relative;
  height: 540px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 38%, rgba(236, 72, 153, 0.28), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2) 56%, rgba(2, 6, 23, 0.18)),
    linear-gradient(90deg, rgba(46, 16, 101, 0.86), rgba(91, 33, 182, 0.22), transparent 70%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - var(--container)) / 2));
  top: 50%;
  width: min(720px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 24px rgba(2, 6, 23, 0.42);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-meta {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-action {
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 16px 32px rgba(219, 39, 119, 0.32);
}

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

.ghost-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 56px;
  z-index: 3;
  width: min(430px, calc(100% - 48px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

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

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

.page-wrap {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

.section-block {
  margin: 54px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading > span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--purple-600), var(--pink-500));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading a {
  margin-left: auto;
  color: var(--purple-700);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-100), var(--pink-100));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  min-height: 166px;
  padding: 24px;
  text-align: center;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-head span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
}

.category-tile strong {
  display: block;
  color: var(--slate-900);
  font-size: 18px;
}

.category-tile em {
  display: block;
  margin-top: 8px;
  color: var(--slate-600);
  font-style: normal;
  font-size: 14px;
}

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

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

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

.archive-grid {
  align-items: stretch;
}

.movie-card {
  min-width: 0;
}

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(91, 33, 182, 0.2);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--purple-100), var(--pink-100));
}

.movie-card-large .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-link:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), transparent 62%);
  transition: opacity 0.25s ease;
}

.movie-link:hover .poster-frame::after {
  opacity: 1;
}

.corner-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(91, 33, 182, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  display: block;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-style: normal;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  color: var(--purple-700);
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--purple-800);
  background: var(--purple-100);
  font-size: 12px;
  font-weight: 700;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 122px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  font-weight: 900;
}

.rank-item img {
  width: 88px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em,
.rank-item b {
  display: block;
}

.rank-item strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0;
  color: var(--slate-600);
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-item b {
  color: var(--purple-700);
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 20%, rgba(236, 72, 153, 0.45), transparent 30%),
    linear-gradient(135deg, var(--purple-900), var(--purple-700), var(--pink-500));
  box-shadow: var(--shadow-soft);
}

.small-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.inner-page > .breadcrumb {
  color: var(--slate-600);
}

.breadcrumb a {
  font-weight: 800;
}

.category-overview-card {
  padding: 24px;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-head span {
  flex: 0 0 auto;
  margin: 0;
}

.category-head h2 {
  margin: 0;
  font-size: 22px;
}

.category-overview-card p {
  color: var(--slate-600);
}

.mini-links {
  display: grid;
  gap: 7px;
}

.mini-links a {
  overflow: hidden;
  color: var(--purple-700);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin: 28px 0 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
  min-height: 46px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
  border-color: rgba(219, 39, 119, 0.48);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.empty-state {
  display: none;
  margin: 18px 0;
  padding: 18px;
  border-radius: var(--radius-md);
  color: var(--purple-800);
  background: var(--purple-100);
  font-weight: 800;
}

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

.search-page-form {
  gap: 12px;
  max-width: 680px;
  margin-top: 24px;
}

.search-page-form input {
  flex: 1;
}

.detail-page {
  background: linear-gradient(180deg, var(--slate-950) 0, var(--purple-950) 520px, #ffffff 521px);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.12);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.28), transparent 38%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(46, 16, 101, 0.72), rgba(2, 6, 23, 0.52)),
    linear-gradient(0deg, var(--purple-950), rgba(15, 23, 42, 0.16));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  width: min(100% - 32px, var(--container));
  min-height: 620px;
  margin: 0 auto;
  padding: 54px 0;
}

.detail-cover {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 16px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.detail-content {
  margin-top: -74px;
  padding-bottom: 20px;
}

.player-section,
.text-panel {
  position: relative;
  z-index: 4;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.player-box.is-playing .player-overlay {
  display: none;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 20px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
}

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

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(180deg, var(--purple-900), var(--purple-950));
}

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-content {
    top: 42%;
  }

  .hero-search {
    left: 24px;
    right: 24px;
    bottom: 62px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .large-grid,
  .compact-grid,
  .rank-list,
  .rank-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 120px;
  }

  .detail-cover {
    width: min(72vw, 320px);
  }

  .detail-content {
    margin-top: -112px;
  }

  .rank-item a {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

  .rank-item img {
    width: 70px;
    height: 86px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-wrap,
  .header-inner,
  .mobile-panel,
  .footer-grid,
  .detail-layout {
    width: min(100% - 24px, var(--container));
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-search {
    left: 18px;
    right: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-action,
  .ghost-action {
    padding: 11px 18px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .large-grid,
  .compact-grid,
  .rank-list,
  .rank-page-list {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .player-section,
  .text-panel {
    padding: 20px;
    border-radius: 22px;
  }

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

  .section-heading a {
    display: none;
  }
}
