:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  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: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell,
.footer-shell,
.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.28);
}

.brand-text {
  font-size: 22px;
  color: transparent;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--slate-700);
  font-weight: 650;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--emerald);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--slate-100);
  color: var(--slate-700);
  cursor: pointer;
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  color: var(--slate-700);
  font-weight: 650;
}

.page-main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  height: min(760px, 72vh);
  min-height: 540px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.9s ease;
  pointer-events: none;
}

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

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

.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.8) 0%, transparent 48%);
}

.hero-copy {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  width: min(640px, calc(100% - 64px));
  color: var(--white);
}

.hero-label,
.detail-category,
.section-heading span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.14);
  color: #10b981;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-label {
  color: var(--white);
  background: var(--emerald);
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  width: min(600px, 100%);
  margin: 0 0 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.category-block-head a,
.section-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--emerald);
  box-shadow: 0 18px 35px rgba(5, 150, 105, 0.35);
}

.primary-btn:hover,
.category-block-head a:hover,
.section-heading a:hover {
  background: var(--emerald-dark);
  color: var(--white);
  transform: translateY(-1px);
}

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

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

.hero-control {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.hero-prev {
  bottom: 112px;
}

.hero-next {
  bottom: 60px;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

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

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

.section-shell {
  padding: 72px 0;
}

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

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.footer-brand p {
  color: var(--slate-600);
}

.section-heading a,
.category-block-head a {
  min-height: 38px;
  padding: 0 16px;
  color: var(--emerald);
  background: #ecfdf5;
}

.wide-heading {
  display: block;
  max-width: 820px;
  margin-bottom: 22px;
}

.wide-heading p {
  margin: 12px 0 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-links a {
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 10px 16px;
  color: var(--slate-700);
  font-weight: 750;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.quick-links a:hover {
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.28);
}

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

.feature-card a {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background: var(--slate-900);
}

.feature-card img,
.category-tile img,
.poster-frame img,
.compact-card img,
.ranking-item img,
.detail-head img,
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img,
.category-tile:hover img,
.movie-card:hover .poster-frame img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.05));
}

.feature-label {
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--white);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}

.feature-text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.feature-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.feature-text em {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.soft-panel,
.tinted-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.2));
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  color: var(--white);
}

.category-tile span {
  bottom: 60px;
  font-size: 22px;
  font-weight: 850;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: var(--slate-900);
}

.small-card .poster-frame {
  height: 220px;
}

.card-year {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-meta span {
  color: var(--emerald);
  background: #ecfdf5;
}

.card-content h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content h3 a:hover {
  color: var(--emerald);
}

.card-content p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 3px 9px;
  font-size: 12px;
}

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

.compact-heading {
  align-items: center;
}

.ranking-panel,
.related-panel,
.detail-main-card,
.category-block,
.filter-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item + .ranking-item {
  margin-top: 14px;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 8px;
  transition: background 0.2s ease;
}

.ranking-item a:hover {
  background: var(--slate-50);
}

.ranking-item img {
  height: 72px;
  border-radius: 14px;
  background: var(--slate-900);
}

.rank-number {
  color: var(--emerald);
  font-weight: 900;
  font-size: 18px;
  text-align: center;
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy strong {
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.compact-card a {
  display: block;
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

.compact-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 64%);
}

.compact-card span {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.28), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
  color: var(--white);
}

.page-hero div {
  width: min(780px, 100%);
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.slim-hero {
  min-height: 300px;
}

.category-overview {
  display: grid;
  gap: 24px;
}

.category-block {
  padding: 28px;
}

.category-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.category-block h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 26px;
}

.category-block p {
  margin: 0;
  color: var(--slate-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 16px;
  padding: 22px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--slate-50);
  color: var(--slate-800);
  padding: 12px 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.empty-state {
  display: none;
  margin: 32px 0 0;
  color: var(--slate-500);
  text-align: center;
  font-weight: 750;
}

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

.movie-card.is-hidden,
.compact-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.ranking-full-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.ranking-full-list .ranking-item {
  margin: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-stage {
  background: var(--slate-950);
  padding: 22px max(16px, calc((100vw - 1180px) / 2)) 0;
}

.player-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #000000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.video-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.video-cover.is-hidden {
  display: none;
}

.video-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28));
}

.video-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.36);
}

.detail-shell {
  padding-top: 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  margin-bottom: 22px;
  font-size: 14px;
}

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

.breadcrumb a::after {
  content: "/";
  color: var(--slate-300);
  margin-left: 8px;
}

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

.detail-main-card {
  padding: 28px;
}

.detail-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--slate-200);
}

.detail-head img {
  height: 310px;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
}

.detail-head h1 {
  margin: 14px 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-600);
}

.detail-meta span {
  border-radius: 999px;
  background: var(--slate-100);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 750;
}

.one-line {
  margin: 18px 0 0;
  padding: 16px;
  border-left: 4px solid var(--emerald);
  border-radius: 0 16px 16px 0;
  background: #ecfdf5;
  color: var(--slate-700);
}

.story-block {
  padding-top: 26px;
}

.story-block h2,
.related-panel h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: var(--slate-700);
  white-space: pre-line;
}

.related-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 24px;
}

.one-column {
  grid-template-columns: 1fr;
}

.one-column .compact-card a {
  height: 150px;
}

.site-footer {
  background: var(--slate-950);
  color: var(--white);
  padding: 54px 0 24px;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .cards-6,
  .cards-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .ranking-panel,
  .related-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-carousel {
    height: 70vh;
    min-height: 520px;
  }

  .hero-copy {
    left: 20px;
    bottom: 86px;
    width: calc(100% - 40px);
  }

  .hero-control {
    right: 18px;
  }

  .section-shell {
    padding: 48px 0;
  }

  .section-heading,
  .category-block-head,
  .footer-shell {
    display: block;
  }

  .section-heading a,
  .category-block-head a {
    margin-top: 14px;
  }

  .feature-grid,
  .ranking-feature-grid,
  .ranking-full-list,
  .cards-4,
  .cards-5,
  .cards-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .detail-head img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .poster-frame {
    height: 235px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .footer-shell,
  .section-shell,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 19px;
  }

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

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

  .feature-grid,
  .ranking-feature-grid,
  .ranking-full-list,
  .cards-4,
  .cards-5,
  .cards-6,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .feature-card a {
    height: 360px;
  }

  .compact-card a {
    height: 210px;
  }

  .ranking-item a {
    grid-template-columns: 36px 64px minmax(0, 1fr);
  }

  .player-stage {
    padding-left: 0;
    padding-right: 0;
  }

  .video-wrap {
    border-radius: 0;
  }

  .detail-main-card,
  .related-panel,
  .category-block,
  .filter-panel {
    padding: 18px;
  }
}
