:root {
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-pink: #ec4899;
  --color-blue: #2563eb;
  --color-green: #16a34a;
  --color-purple: #7c3aed;
  --color-cyan: #0891b2;
  --color-indigo: #4f46e5;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 36px rgba(15, 23, 42, 0.10);
  --radius-large: 28px;
  --radius-card: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-dark);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444 48%, #ec4899);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

.site-header__inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.site-logo__text {
  font-size: 1.28rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.site-nav a,
.mobile-menu a,
.footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-nav a {
  font-size: 0.95rem;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fef3c7;
  opacity: 1;
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  width: 292px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 12px 11px 18px;
  color: #fff;
  background: transparent;
}

.site-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.site-search button {
  border: 0;
  color: #fff;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.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,
.detail-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__shade,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.64) 48%, rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
  position: absolute;
  inset: 0;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1240px;
}

.hero-slide__content h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-slide__content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-kicker {
  animation: pulseGlow 2.3s ease-in-out infinite;
}

.hero-meta,
.detail-meta,
.rank-card__meta,
.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.detail-meta span,
.rank-card__meta span,
.movie-card__meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  font-size: 0.85rem;
}

.hero-meta {
  margin: 6px 0 28px;
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button--primary {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.32);
}

.button--light {
  color: #111827;
  background: #fff;
}

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

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

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

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

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #f97316;
  text-decoration: none;
  font-weight: 800;
}

.section-heading--simple {
  margin-bottom: 20px;
}

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.category-card__icon {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.category-card strong {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.gradient-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.gradient-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.gradient-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.gradient-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.gradient-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.gradient-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.gradient-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.gradient-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.15);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.66));
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f97316;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  border-radius: 999px;
  background: #f97316;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card__body {
  padding: 17px;
}

.movie-card h3,
.rank-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h3 a,
.rank-card h3 a {
  color: inherit;
  text-decoration: none;
}

.movie-card__desc {
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.movie-card__meta span {
  color: #475569;
  background: #f1f5f9;
}

.movie-card__tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.movie-card__tags span,
.detail-tags span {
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  align-items: stretch;
  gap: 26px;
}

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

.rank-list--full {
  gap: 16px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.rank-card__poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card__body p {
  margin: 7px 0 12px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rank-card__meta span {
  color: #475569;
  background: #f8fafc;
}

.spotlight-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-large);
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(135deg, #111827, #ef4444 58%, #f97316);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.spotlight-panel span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
  font-weight: 800;
}

.spotlight-panel h2 {
  margin: 18px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.spotlight-panel p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 82px 0;
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero--small {
  background: linear-gradient(135deg, #111827, #ef4444 66%, #f97316);
}

.page-hero__icon {
  font-size: 3rem;
}

.page-hero h1 {
  max-width: 820px;
  margin: 10px 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.category-detail-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-detail-card__head {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 28px;
}

.category-detail-card__head span {
  font-size: 2.2rem;
}

.category-detail-card__head h2 {
  margin: 12px 0 4px;
  font-size: 1.7rem;
}

.category-detail-card__head p {
  margin: 0;
  opacity: 0.9;
}

.category-detail-card__sample {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.category-detail-card__sample a {
  color: inherit;
  text-decoration: none;
}

.category-detail-card__sample img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.category-detail-card__sample span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-detail-card__more {
  display: block;
  margin: 0 16px 18px;
  border-radius: 999px;
  color: #f97316;
  background: #fff7ed;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  margin-bottom: 18px;
}

.filter-panel label {
  display: block;
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-hero-form input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-hero-form input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.result-line {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-hero__bg,
.detail-hero__shade {
  position: absolute;
  inset: 0;
}

.detail-hero__bg {
  filter: blur(2px) saturate(1.05);
  transform: scale(1.02);
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 34px;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.detail-info p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.9;
}

.detail-meta {
  margin: 14px 0 16px;
}

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

.player-section {
  padding-top: 56px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.38);
  font-size: 2rem;
}

.player-overlay strong {
  margin-top: 18px;
  font-size: 1.25rem;
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  padding: 8px 13px;
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-message.is-visible {
  opacity: 1;
}

.source-tabs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.source-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 800;
}

.source-tabs button.is-active {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

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

.detail-content article {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.95;
}

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

.info-table div {
  border-radius: 14px;
  background: #f8fafc;
  padding: 13px 14px;
}

.info-table span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.info-table strong {
  color: #111827;
}

.search-hero-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: #0f172a;
}

.site-footer__inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 32px;
  padding: 46px 0;
}

.site-logo--footer {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

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

[data-card].is-hidden {
  display: none;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(249, 115, 22, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
  }
}

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

  .site-header__inner {
    justify-content: space-between;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .hero-slider {
    height: 560px;
  }

  .hero-slide__content {
    justify-content: flex-end;
    padding-bottom: 90px;
  }

  .hero-slide__shade,
  .detail-hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.92));
  }

  .content-section {
    padding-top: 46px;
  }

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

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

  .filter-panel,
  .site-footer__inner,
  .detail-layout,
  .info-table,
  .search-hero-form {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .rank-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

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

@media (max-width: 520px) {
  .site-header__inner {
    width: min(100% - 20px, 1240px);
  }

  .site-logo__text {
    font-size: 1.08rem;
  }

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

  .hero-slide__content,
  .content-section,
  .page-hero > div,
  .detail-hero__inner,
  .site-footer__inner {
    width: min(100% - 24px, 1240px);
  }

  .detail-info h1,
  .page-hero h1,
  .hero-slide__content h1 {
    letter-spacing: -0.04em;
  }
}
