:root {
  color-scheme: light;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: rgba(17, 24, 39, 0.10);
  --card: #ffffff;
  --shadow: 0 24px 80px rgba(190, 18, 60, 0.14);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 42%, #fff7ed 100%);
  color: var(--ink);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.10);
  box-shadow: 0 12px 40px rgba(190, 18, 60, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.32);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 20px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  padding: 10px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover,
.desktop-nav .is-active {
  color: var(--rose);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  display: grid;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  border-radius: 12px;
  padding: 10px 12px;
}

.dropdown-menu a:hover {
  background: var(--soft);
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input {
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px 0 0 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  min-width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 0 999px 999px 0;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--rose);
  font-size: 28px;
  cursor: pointer;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

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

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7f8;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.24), transparent 30%), linear-gradient(120deg, #be123c, #db2777 45%, #f97316);
}

.hero-stage,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(190, 18, 60, 0.52), rgba(249, 115, 22, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
  color: #ffe4e6;
}

.hero-content h1 {
  max-width: 780px;
  margin: 16px 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.65;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.tag-row span {
  background: #fff1f2;
  color: var(--rose-dark);
  border-color: rgba(244, 63, 94, 0.18);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--rose-dark);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.24);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dots button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

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

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

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

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

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: 22px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 90px rgba(190, 18, 60, 0.22);
}

.category-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.category-card strong {
  font-size: 20px;
}

.category-card em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
}

.category-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.category-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.category-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.category-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.category-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.category-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.category-slate { background: linear-gradient(135deg, #64748b, #334155); }
.category-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.category-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.category-green { background: linear-gradient(135deg, #34d399, #059669); }
.category-teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.category-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }

.rose-panel {
  width: 100%;
  max-width: none;
  padding: 74px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.78), rgba(255, 255, 255, 0.86));
}

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

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

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

.movie-card {
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 90px rgba(190, 18, 60, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at top left, #ffe4e6, transparent 28%), linear-gradient(135deg, #be123c, #f97316);
}

.poster-frame.poster-text::before,
.rank-poster.poster-text::before,
.ranking-thumb.poster-text::before {
  content: attr(data-title);
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.poster-image,
.rank-image,
.ranking-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge,
.card-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.92);
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 12px;
  bottom: 12px;
}

.card-score {
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.68);
}

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

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
}

.movie-title:hover {
  color: var(--rose);
}

.movie-desc {
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 12px;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  border-radius: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.10);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

.panel-title h2 {
  margin: 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 32px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: #fff7f8;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffe4e6;
}

.rank-index {
  color: var(--rose);
  font-weight: 900;
}

.rank-poster {
  position: relative;
  display: block;
  width: 58px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #be123c, #f97316);
}

.rank-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

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

.rank-text em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  border-radius: 38px;
  min-height: 280px;
  padding: 52px;
  color: #ffffff;
  display: flex;
  align-items: end;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #be123c, #db2777 55%, #f97316);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.filter-bar input {
  border-radius: 999px;
  min-width: 280px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--rose-dark);
  background: #ffe4e6;
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 700;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 38px;
  align-items: stretch;
  padding: 32px;
  border-radius: 38px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.20), transparent 28%), linear-gradient(135deg, #111827, #be123c 58%, #f97316);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.26);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

.detail-info p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

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

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

.player-shell {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.24);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.45), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rose);
  font-size: 34px;
  box-shadow: 0 16px 50px rgba(255, 255, 255, 0.24);
}

.play-cover strong {
  font-size: 20px;
}

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

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

.copy-card {
  border-radius: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.10);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
}

.copy-card h2 {
  margin: 8px 0 16px;
}

.copy-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-no {
  color: var(--rose);
  font-weight: 900;
  font-size: 24px;
  text-align: center;
}

.ranking-thumb {
  position: relative;
  width: 86px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #be123c, #f97316);
}

.ranking-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ranking-main strong {
  font-size: 18px;
}

.ranking-main em {
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

.search-page-form {
  width: min(720px, 100%);
  margin-bottom: 24px;
}

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

.search-status {
  color: var(--muted);
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
}

.footer-inner strong {
  font-size: 22px;
}

.footer-inner p,
.copyright {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  background: rgba(244, 63, 94, 0.50);
  color: #ffffff;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.is-hidden {
  display: none !important;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

  .split-layout,
  .detail-hero,
  .detail-copy,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    width: calc(100% - 24px);
    height: 64px;
  }

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

  .hero,
  .hero-stage,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    flex: 1 1 auto;
  }

  .content-section,
  .page-hero,
  .detail-hero,
  .breadcrumb,
  .player-section {
    width: calc(100% - 24px);
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 28px;
  }

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

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

  .movie-title {
    font-size: 16px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input {
    width: 100%;
    min-width: 0;
  }

  .detail-poster {
    max-width: 260px;
  }

  .ranking-row {
    grid-template-columns: 40px 64px minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 3;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .large-category-grid,
  .movie-grid,
  .category-movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    bottom: 16px;
  }

  .card-badge,
  .card-score {
    font-size: 11px;
  }
}
