:root {
  color-scheme: dark;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-750: #253247;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --white: #ffffff;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --cyan-300: #67e8f9;
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.45);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-800) 48%, var(--slate-900));
  color: var(--gray-300);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(37, 99, 235, 0.28), transparent 30%),
    radial-gradient(circle at 92% 16%, rgba(103, 232, 249, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.14), transparent 35%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(55, 65, 81, 0.75);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-300));
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
  font-size: 15px;
}

.brand-text,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-300);
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.75);
}

.header-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--white);
  background: transparent;
}

.header-search input {
  width: 190px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue-600);
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--blue-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-300);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(55, 65, 81, 0.75);
}

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

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-300);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-search {
  margin-top: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
}

.page-main {
  min-height: calc(100vh - var(--header-height));
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 38%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 680px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
  backdrop-filter: blur(10px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-line {
  margin: 0 0 24px;
  color: var(--gray-300);
  font-size: 20px;
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--gray-400);
}

.hero-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  margin-left: 14px;
  vertical-align: -3px;
  background: rgba(148, 163, 184, 0.45);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.24);
}

.hero-tags span {
  padding: 7px 12px;
  font-size: 14px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  padding: 13px 26px;
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.secondary-button,
.ghost-button {
  padding: 12px 22px;
  color: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button:hover {
  background: var(--blue-700);
}

.secondary-button:hover,
.ghost-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 38px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.46);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

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

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

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

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

.content-section,
.filter-panel,
.page-hero,
.breadcrumb,
.detail-head,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.glass-section {
  margin-top: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 32px;
  background: rgba(30, 41, 59, 0.56);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-heading.with-link {
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.sub-heading h3,
.side-card h2,
.player-card h2,
.text-card h2 {
  margin: 0;
  color: var(--white);
  font-weight: 850;
}

.section-heading h2 {
  font-size: 34px;
}

.section-heading p,
.sub-heading a,
.text-link {
  margin: 0;
  color: var(--gray-400);
}

.text-link,
.sub-heading a {
  color: var(--blue-400);
}

.text-link:hover,
.sub-heading a:hover,
.card-title:hover,
.list-title:hover {
  color: var(--blue-300);
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  background: rgba(37, 50, 71, 0.98);
  box-shadow: var(--shadow-lg);
}

.poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 50%, #0891b2);
}

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

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

.poster-frame img,
.category-card img,
.detail-cover img,
.list-poster img,
.hero-mini-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.image-missing {
  opacity: 0;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(8px);
}

.card-content {
  padding: 18px;
}

.movie-card.compact .card-content {
  padding: 14px;
}

.card-title,
.list-title {
  display: -webkit-box;
  color: var(--white);
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  transition: color 0.2s ease;
}

.card-title {
  min-height: 22px;
  font-size: 17px;
}

.movie-card.large .card-title {
  font-size: 21px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin-bottom: 12px;
  font-size: 12px;
}

.channel-list {
  display: grid;
  gap: 48px;
}

.channel-preview {
  min-width: 0;
}

.sub-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sub-heading h3 {
  font-size: 26px;
}

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

.list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.94);
  transition: background 0.25s ease, transform 0.25s ease;
}

.list-card:hover {
  background: rgba(37, 50, 71, 1);
  transform: translateY(-2px);
}

.list-poster {
  flex: 0 0 140px;
  height: 88px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.list-body {
  min-width: 0;
}

.list-title {
  margin-bottom: 7px;
  font-size: 17px;
  -webkit-line-clamp: 2;
}

.list-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: var(--shadow-soft);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.28));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--gray-300);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at 85% 20%, rgba(103, 232, 249, 0.18), transparent 35%),
    rgba(30, 41, 59, 0.82);
  box-shadow: var(--shadow-soft);
}

.compact-hero {
  padding-top: 64px;
  padding-bottom: 64px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 30px;
  padding-top: 52px;
  padding-bottom: 52px;
  align-items: center;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.filter-panel {
  padding-top: 34px;
  padding-bottom: 0;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.46);
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(71, 85, 105, 0.78);
  background: rgba(30, 41, 59, 0.9);
}

.filter-controls select {
  color: var(--gray-300);
}

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

.rank-index {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-300));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 18px;
  color: var(--gray-400);
  font-size: 14px;
}

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

.detail-head {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 48px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: var(--shadow-lg);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 62px);
}

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

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

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

.player-card,
.text-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: var(--shadow-soft);
}

.player-card,
.text-card {
  padding: 24px;
}

.player-card h2,
.text-card h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.2));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-toggle {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 0 0 16px rgba(37, 99, 235, 0.18), var(--shadow-lg);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-toggle:hover {
  transform: scale(1.06);
  background: var(--blue-700);
}

.text-card {
  margin-top: 28px;
}

.text-card p {
  margin: 0 0 28px;
  color: var(--gray-300);
  font-size: 17px;
  line-height: 1.9;
}

.text-card p:last-child {
  margin-bottom: 0;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 20px;
}

.side-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

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

.side-list .list-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.side-list .list-poster {
  flex-basis: 118px;
  height: 74px;
}

.side-list .list-body p,
.side-list .card-meta span:nth-child(n + 3) {
  display: none;
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(55, 65, 81, 0.72);
  background: rgba(15, 23, 42, 0.78);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-links a:hover {
  color: var(--blue-300);
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 34px;
  color: var(--gray-500);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  .filter-controls input {
    grid-column: 1 / -1;
  }

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

  .detail-head {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 0 16px;
  }

  .mobile-nav,
  .content-section,
  .filter-panel,
  .page-hero,
  .breadcrumb,
  .detail-head,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slider {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-content p,
  .page-hero p,
  .detail-line {
    font-size: 17px;
  }

  .hero-arrow {
    display: none;
  }

  .featured-grid,
  .four-grid,
  .small-grid,
  .six-grid,
  .category-grid,
  .list-grid,
  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 360px;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 540px) {
  .brand-text {
    font-size: 18px;
  }

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

  .hero-meta span:not(:last-child)::after,
  .detail-meta span:not(:last-child)::after {
    display: none;
  }

  .featured-grid,
  .four-grid,
  .small-grid,
  .six-grid,
  .category-grid,
  .list-grid,
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .list-card {
    align-items: flex-start;
  }

  .list-poster {
    flex-basis: 112px;
    height: 76px;
  }

  .rank-index {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 13px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
