:root {
  color-scheme: light;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fee2e2;
  --blue-soft: #eff6ff;
  --cyan-soft: #ecfeff;
  --pink-soft: #fdf2f8;
  --yellow-soft: #fefce8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-main {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #f97316);
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-link {
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.header-search,
.mobile-search,
.inline-search,
.search-page-form {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.inline-search input,
.search-page-form input {
  width: 230px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 8px 11px 18px;
  color: var(--gray-800);
}

.header-search button,
.mobile-search button,
.inline-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  background: var(--red);
  padding: 11px 18px;
  font-weight: 700;
  transition: background 180ms ease;
}

.header-search button:hover,
.mobile-search button:hover,
.inline-search button:hover,
.search-page-form button:hover {
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 28px;
}

.category-strip {
  border-top: 1px solid var(--gray-100);
}

.category-strip-inner {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 9px 0;
  color: var(--gray-600);
  font-size: 14px;
  scrollbar-width: none;
}

.category-strip-inner a {
  white-space: nowrap;
  transition: color 180ms ease;
}

.category-strip-inner a:hover {
  color: var(--red);
}

.mobile-panel {
  border-top: 1px solid var(--gray-100);
  padding: 16px;
  background: var(--white);
}

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

.mobile-nav-link {
  padding: 10px 4px;
  color: var(--gray-700);
  font-weight: 600;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--black);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
  padding-top: 20px;
}

.hero-kicker,
.hero-meta,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-kicker span,
.page-kicker,
.pill,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-kicker span + span {
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-meta {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.32);
}

.primary-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  font-size: 36px;
  line-height: 1;
  transition: background 180ms ease;
}

.hero-arrow:hover {
  background: rgba(220, 38, 38, 0.85);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--red);
}

.section {
  margin-top: 58px;
}

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

.section-heading h2,
.quick-search-panel h2,
.rank-panel h2,
.player-card h2,
.detail-article h2,
.site-footer h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading a {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.quick-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.quick-search-panel p {
  margin: 6px 0 0;
  color: var(--gray-600);
}

.inline-search input {
  width: min(45vw, 380px);
}

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

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  background: #111827;
  box-shadow: var(--shadow-sm);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.02));
  opacity: 0;
  transition: opacity 250ms ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(220, 38, 38, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 250ms ease, transform 250ms ease;
}

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

.card-content {
  display: block;
  padding-top: 12px;
}

.card-content strong {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.movie-card:hover .card-content strong {
  color: var(--red);
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--gray-400);
  font-size: 12px;
}

.movie-card.compact .card-desc {
  display: none;
}

.home-rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.rank-panel,
.player-card,
.detail-article,
.related-section,
.filter-panel,
.search-page-panel {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 180ms ease;
}

.rank-item:hover {
  background: var(--gray-50);
}

.rank-number,
.ranking-index {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, #f59e0b, var(--red));
  font-weight: 900;
}

.rank-item img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.rank-item strong,
.rank-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.highlight-section {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--blue-soft), var(--cyan-soft));
}

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

.wide-card a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wide-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.wide-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.wide-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.wide-card-body strong {
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 900;
}

.wide-card-body span:not(.pill) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-card-body em {
  margin-top: auto;
  color: var(--gray-400);
  font-style: normal;
  font-size: 13px;
}

.pill {
  width: fit-content;
  background: var(--red-soft);
  color: var(--red);
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--white), #fff7ed);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 900;
}

.category-card span,
.category-overview-card p {
  display: block;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.category-overview-card {
  padding: 0;
  overflow: hidden;
}

.category-overview-head {
  display: block;
  padding: 22px;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--gray-200);
}

.mini-poster-row a {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--gray-900);
}

.mini-poster-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-poster-row span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  overflow: hidden;
  padding: 18px 8px 8px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(220, 38, 38, 0.34), transparent 26%), linear-gradient(135deg, #0f172a, #111827 48%, #4c0519);
}

.compact-hero {
  padding: 76px 0;
}

.page-hero h1 {
  max-width: 840px;
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 900;
}

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

.filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-weight: 700;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  background: var(--gray-50);
  padding: 12px 16px;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.movie-card.is-hidden {
  display: none;
}

.ranking-list {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 80px minmax(0, 1fr) 160px 72px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 180ms ease;
}

.ranking-row:hover {
  background: var(--gray-50);
}

.ranking-row img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-title strong,
.ranking-title em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title em,
.ranking-meta {
  color: var(--gray-500);
  font-style: normal;
  font-size: 14px;
}

.ranking-score {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.search-page-form {
  width: min(100%, 760px);
  margin-inline: auto;
}

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

.search-results {
  margin-top: 32px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
}

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

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.08);
  transform: scale(1.05);
  opacity: 0.72;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.32)), linear-gradient(0deg, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0) 24%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 54px 0 86px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.detail-head-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-head-copy p {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-meta-list {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-meta-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.tag-list span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.detail-main {
  margin-top: -44px;
  position: relative;
  z-index: 4;
  display: grid;
  gap: 28px;
}

.player-card h2,
.detail-article h2 {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-radius: var(--radius-lg);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: var(--black);
  object-fit: contain;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.72));
  transition: opacity 200ms ease;
}

.player-mask span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--red);
  font-size: 36px;
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.32);
}

.player-mask.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.detail-article p {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 17px;
}

.related-section {
  padding-top: 22px;
}

.site-footer {
  margin-top: 70px;
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: var(--gray-400);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-list a {
  color: var(--gray-400);
}

.footer-list a:hover {
  color: var(--white);
}

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

@media (max-width: 1180px) {
  .five-col,
  .six-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .quick-search-panel,
  .home-rank-layout,
  .detail-head-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-panel {
    display: grid;
  }

  .three-col,
  .four-col,
  .five-col,
  .six-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-rank-layout {
    display: grid;
  }

  .rank-panel {
    order: -1;
  }

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

  .detail-poster {
    width: min(100%, 260px);
  }

  .ranking-row {
    grid-template-columns: 46px 70px minmax(0, 1fr) 58px;
  }

  .ranking-row img {
    width: 70px;
    height: 52px;
  }

  .ranking-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44));
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .section {
    margin-top: 42px;
  }

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

  .quick-search-panel {
    margin-top: 24px;
    padding: 20px;
  }

  .inline-search,
  .search-page-form {
    width: 100%;
  }

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

  .three-col,
  .four-col,
  .five-col,
  .six-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card-desc {
    display: none;
  }

  .home-rank-layout {
    gap: 20px;
  }

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

  .wide-card a {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .wide-card img {
    height: 150px;
  }

  .wide-card-body {
    padding: 14px;
  }

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

  .compact-hero {
    padding: 54px 0;
  }

  .detail-head-grid {
    gap: 22px;
  }

  .detail-hero-content {
    padding: 36px 0 78px;
  }

  .detail-poster {
    width: 210px;
  }

  .detail-meta-list span {
    font-size: 13px;
  }

  .player-card,
  .detail-article,
  .related-section,
  .filter-panel,
  .search-page-panel {
    padding: 18px;
  }

  .player-mask span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }

  .ranking-row {
    grid-template-columns: 40px 60px minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 12px;
  }

  .ranking-row img {
    width: 60px;
    height: 48px;
  }

  .ranking-title em {
    display: none;
  }

  .ranking-score {
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .three-col,
  .four-col,
  .five-col,
  .six-col {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .poster-wrap {
    border-radius: 12px;
  }

  .card-content strong {
    font-size: 14px;
  }

  .card-meta {
    gap: 5px;
  }
}
