:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-md: 0 14px 30px rgba(15, 23, 42, .12);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, .22);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(248, 250, 252, .94), rgba(239, 246, 255, .94), rgba(248, 250, 252, .94));
  border-bottom: 1px solid rgba(226, 232, 240, .95);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}

.site-header-inner {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
  font-size: 15px;
}

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

.brand-copy strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--blue-600), var(--slate-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--slate-600);
  font-size: 14px;
  transition: color .2s ease, background-color .2s ease;
}

.desktop-nav a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  outline: none;
  border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .18);
}

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

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  color: var(--slate-600);
}

.mobile-search input {
  flex: 1;
  padding: 12px 15px;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity .7s ease, transform .7s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px 112px;
}

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

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(9px);
  transform: scale(1.08);
  opacity: .78;
}

.hero-content,
.hero-poster,
.detail-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-100);
  background: rgba(59, 130, 246, .25);
  border: 1px solid rgba(147, 197, 253, .24);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 22px 0 18px;
  color: var(--white);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 720px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
  margin: 0 0 24px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span {
  color: var(--blue-50);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.hero-tags,
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span,
.info-pills span {
  color: var(--slate-700);
  background: rgba(255, 255, 255, .86);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 14px 28px rgba(37, 99, 235, .34);
}

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

.btn.on-light {
  color: var(--blue-700);
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.hero-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-control-row {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  width: min(1280px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.hero-dots,
.hero-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}

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

.hero-thumb {
  width: 98px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  background: rgba(15, 23, 42, .36);
  border-radius: 16px;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, .8);
}

.hero-thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 11px;
  margin-bottom: 6px;
}

.hero-thumb span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.04em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--slate-500);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(226, 232, 240, .85);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(147, 197, 253, .85);
}

.movie-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--slate-200));
}

.movie-card figure img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.card-badge,
.card-type {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 10px;
  background: rgba(37, 99, 235, .82);
}

.card-type {
  right: 10px;
  background: rgba(15, 23, 42, .72);
}

.card-body {
  padding: 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

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

.movie-card:hover h3 {
  color: var(--blue-600);
}

.card-body p {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  color: var(--slate-400);
  font-size: 12px;
}

.card-meta span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card.compact .card-body p {
  display: none;
}

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

.rank-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 22px;
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-md);
}

.rank-card img {
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: .78;
  transition: transform .35s ease, opacity .35s ease;
}

.rank-card:hover img {
  transform: scale(1.08);
  opacity: .9;
}

.rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .16), rgba(15, 23, 42, .9));
}

.rank-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  color: var(--white);
  background: rgba(37, 99, 235, .88);
  border-radius: 13px;
  padding: 7px 10px;
  font-weight: 900;
}

.rank-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

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

.rank-info strong {
  font-size: 18px;
  line-height: 1.35;
}

.rank-info em {
  margin-top: 7px;
  color: var(--blue-100);
  font-size: 13px;
  font-style: normal;
}

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

.category-tile,
.category-showcase {
  display: block;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .96));
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-tile:hover,
.category-showcase:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-tile strong,
.category-showcase h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 20px;
}

.category-tile span,
.category-showcase p {
  color: var(--slate-500);
  line-height: 1.65;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-covers img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.page-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(96, 165, 250, .38), transparent 34%), linear-gradient(135deg, var(--slate-900), #1e3a8a 52%, var(--slate-800));
  overflow: hidden;
}

.small-hero {
  padding: 76px 24px;
}

.small-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.small-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 220px));
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
  color: var(--slate-700);
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
  border-radius: 22px;
  border: 1px dashed var(--slate-200);
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 76px 94px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: var(--blue-300);
}

.ranking-index {
  color: var(--blue-600);
  font-weight: 900;
  font-size: 22px;
  text-align: center;
}

.ranking-row img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main strong {
  color: var(--slate-800);
  font-size: 18px;
}

.ranking-main em {
  margin-top: 7px;
  color: var(--slate-500);
  font-style: normal;
  line-height: 1.55;
}

.ranking-meta {
  color: var(--slate-500);
  text-align: right;
  line-height: 1.65;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--slate-900);
}

.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--blue-100);
  font-size: 14px;
  margin-bottom: 30px;
}

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

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

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

.detail-info h1 {
  font-size: clamp(34px, 4.8vw, 64px);
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(37, 99, 235, .34), rgba(2, 6, 23, .72));
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  box-shadow: 0 18px 34px rgba(37, 99, 235, .38);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
}

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

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

.detail-article,
.related-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.detail-article h2,
.related-panel h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 24px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

.related-panel {
  align-self: start;
  position: sticky;
  top: 90px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
  border: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}

.mini-card:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.mini-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: var(--slate-800);
  line-height: 1.4;
}

.mini-card em {
  margin-top: 6px;
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(180px, .7fr));
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.site-footer p {
  max-width: 520px;
  color: var(--slate-400);
  line-height: 1.75;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 14px;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: var(--slate-500);
  border-top: 1px solid rgba(148, 163, 184, .16);
}

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

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

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

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

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

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

@media (max-width: 900px) {
  .site-header-inner {
    padding: 0 18px;
  }

  .header-search {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 720px;
    gap: 28px;
    padding-top: 56px;
  }

  .hero-poster {
    width: min(250px, 70vw);
    margin: 0 auto;
  }

  .hero-control-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-thumbs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

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

  .detail-poster {
    width: min(280px, 80vw);
  }

  .related-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .hero-slider,
  .hero-stage {
    min-height: 760px;
  }

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

  .hero-content p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .content-section {
    padding: 42px 16px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .ranking-meta {
    display: none;
  }

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

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