* {
  box-sizing: border-box;
}

:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --soft: #fff1f2;
  --soft-2: #fdf2f8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #ffe4e6;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.16);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.75), #ffffff 30%, rgba(253, 242, 248, 0.7));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 228, 230, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(244, 63, 94, 0.08);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
  font-size: 16px;
  padding-left: 2px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 5px;
}

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 2px;
  transition: color 0.2s ease;
}

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

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

.header-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 0 18px;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.wide-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.16);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}

.search-results.show {
  display: block;
}

.search-results a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #fff1f2;
}

.search-results a:last-child {
  border-bottom: none;
}

.search-results strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.search-results span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 92px;
  background: radial-gradient(circle at 18% 12%, rgba(244, 63, 94, 0.22), transparent 30%), linear-gradient(135deg, #fff1f2 0%, #ffffff 42%, #fdf2f8 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-a {
  width: 320px;
  height: 320px;
  background: #fda4af;
  top: 20px;
  left: 6%;
}

.hero-glow-b {
  width: 420px;
  height: 420px;
  background: #f9a8d4;
  right: 5%;
  bottom: -160px;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-heading {
  max-width: 780px;
  text-align: center;
  margin: 0 auto 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.08);
}

.hero-heading h1,
.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 950;
  background: linear-gradient(90deg, var(--rose-dark), var(--pink), #fb7185);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-heading p,
.page-hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: #4b5563;
}

.hero-stage {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateX(16px);
}

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

.hero-text {
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 255, 255, 0.96));
}

.hero-text h2 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-text p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
  font-size: 16px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.ghost-btn {
  color: var(--rose);
  background: #ffffff;
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.panel-more:hover {
  transform: translateY(-2px);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.42));
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-cover:hover img {
  transform: scale(1.06);
}

.hero-controls {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: #fecdd3;
  cursor: pointer;
}

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

.quick-panel {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
  margin-top: -46px;
  position: relative;
  z-index: 4;
}

.quick-search-card,
.quick-category-grid,
.ranking-panel,
.article-panel,
.side-panel,
.player-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.quick-search-card {
  padding: 26px;
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.quick-search-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.quick-category-grid a {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  border: 1px solid rgba(255, 228, 230, 0.9);
}

.quick-category-grid strong {
  color: var(--rose-dark);
}

.quick-category-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section-block {
  margin-top: 58px;
}

.no-margin {
  margin-top: 0;
}

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

.section-title.align-left {
  align-items: start;
  flex-direction: column;
  gap: 8px;
}

.section-title span,
.ranking-head span {
  color: var(--rose);
  font-weight: 900;
  font-size: 13px;
}

.section-title h2,
.ranking-head h2,
.article-panel h2,
.side-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.05em;
}

.section-title a {
  color: var(--rose);
  font-weight: 800;
}

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

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

.movie-card {
  background: #ffffff;
  border: 1px solid rgba(255, 228, 230, 0.88);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
  opacity: 0.68;
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose);
  font-size: 15px;
  padding-left: 2px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}

.rank-num {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p {
  margin: 0;
  min-height: 50px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  margin-top: 58px;
}

.ranking-panel {
  padding: 24px;
  position: sticky;
  top: 100px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px;
  background: #fff7f8;
  border: 1px solid rgba(255, 228, 230, 0.9);
}

.rank-item img {
  width: 58px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-pill {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--rose);
  font-weight: 900;
}

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

.rank-item strong {
  font-size: 14px;
}

.rank-item em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

.panel-more {
  margin-top: 18px;
  width: 100%;
  background: #fff1f2;
  color: var(--rose-dark);
}

.page-hero,
.detail-hero {
  padding: 62px 0;
  background: radial-gradient(circle at 18% 10%, rgba(244, 63, 94, 0.2), transparent 28%), linear-gradient(135deg, #fff1f2, #ffffff 52%, #fdf2f8);
  border-bottom: 1px solid var(--line);
}

.page-hero .site-shell {
  max-width: 920px;
}

.crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.crumb a {
  color: var(--rose-dark);
  font-weight: 800;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  margin-bottom: 68px;
}

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.category-visual {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65));
}

.category-visual span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.category-content {
  padding: 24px;
}

.category-content h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-content p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 18px;
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  color: var(--rose-dark);
  font-weight: 800;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 16px;
  margin-top: 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

.detail-info h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.detail-one-line {
  color: #4b5563;
  line-height: 1.8;
  font-size: 18px;
  margin: 0;
}

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

.detail-meta div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.detail-tags {
  margin-top: 20px;
}

.anchor-btn {
  margin-top: 26px;
}

.player-section {
  margin-top: 46px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(0, 0, 0, 0.42));
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  padding-left: 4px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 34px;
  margin-bottom: 68px;
  align-items: start;
}

.article-panel,
.side-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.article-panel p {
  color: #4b5563;
  line-height: 2;
  margin: 0 0 24px;
  font-size: 16px;
}

.related-grid {
  display: grid;
  gap: 16px;
}

.related-grid .movie-card {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.related-grid .poster-wrap {
  aspect-ratio: 3 / 4;
}

.related-grid .movie-card p,
.related-grid .tag-row {
  display: none;
}

.related-grid .movie-card-body {
  padding: 12px;
}

.related-grid .movie-card h3 {
  font-size: 15px;
}

.site-footer {
  background: linear-gradient(180deg, #fff1f2, #ffffff);
  border-top: 1px solid var(--line);
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 950;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rose-dark);
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #4b5563;
}

.site-footer a:hover {
  color: var(--rose);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-toggle {
    display: flex;
  }

  .quick-panel,
  .section-split,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

@media (max-width: 780px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .hero-section {
    padding: 46px 0 68px;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    min-height: 310px;
    order: -1;
  }

  .hero-controls {
    bottom: 16px;
  }

  .quick-panel {
    margin-top: -28px;
  }

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

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

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

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

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

  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-heading h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-heading p,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .hero-text {
    padding: 24px;
  }

  .hero-stage {
    border-radius: 24px;
  }

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

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

  .category-visual {
    min-height: 220px;
  }

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

  .article-panel,
  .side-panel {
    padding: 22px;
  }

  .related-grid .movie-card {
    grid-template-columns: 96px 1fr;
  }
}
