:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(30, 41, 59, 0.42);
  --panel-strong: rgba(15, 23, 42, 0.86);
  --line: rgba(148, 163, 184, 0.18);
  --line-blue: rgba(59, 130, 246, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --shadow: 0 22px 65px rgba(2, 6, 23, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
  font-size: 14px;
}

.brand-text,
.footer-brand {
  font-size: clamp(20px, 2vw, 26px);
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.10);
}

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

.header-search input,
.mobile-search input,
.filter-input,
.select-filter {
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 14px;
  padding: 11px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.select-filter:focus {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.filter-button,
.hero-button,
.hero-button-alt {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.23);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.header-search button,
.mobile-search button {
  padding: 11px 14px;
}

.primary-btn,
.secondary-btn,
.hero-button,
.hero-button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.secondary-btn,
.hero-button-alt {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-button:hover,
.hero-button:hover,
.hero-button-alt:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.32);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  padding: 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #e2e8f0;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 12px 20px 20px;
  background: rgba(2, 6, 23, 0.98);
  border-top: 1px solid var(--line);
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
}

.mobile-search {
  margin-top: 10px;
}

.mobile-search input {
  flex: 1;
}

.page-main {
  padding-top: 108px;
}

.home-main {
  padding-top: 0;
}

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

.hero-slider {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.34) 100%),
    radial-gradient(circle at 20% 75%, rgba(37, 99, 235, 0.28), transparent 34rem);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: clamp(60px, 10vh, 110px);
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
  gap: 36px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.hero-kickers,
.detail-tags,
.tag-row,
.hero-actions,
.meta-line,
.breadcrumb,
.inline-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kickers {
  margin-bottom: 18px;
}

.kicker,
.mini-tag,
.type-badge,
.rank-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.24);
}

.kicker.strong {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border: 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
}

.hero-actions {
  margin-top: 26px;
}

.hero-side-card {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hero-side-card a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.hero-side-card a:hover {
  color: #67e8f9;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  font-size: 30px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.home-sections,
.page-sections {
  padding: 54px 0 72px;
}

.section-block {
  margin-bottom: 64px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-bar {
  flex: 0 0 auto;
  width: 5px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
}

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

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

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: thin;
}

.movie-card,
.info-card,
.category-tile,
.filter-panel,
.detail-panel,
.player-card,
.rank-row,
.not-found-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(16px);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.58);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.16);
}

.card-cover,
.wide-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.card-cover {
  aspect-ratio: 2 / 3;
}

.card-cover img,
.wide-cover img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.card-cover::after,
.wide-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.type-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.card-body,
.wide-body {
  padding: 15px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.2em;
  color: #fff;
  font-weight: 850;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover .movie-title,
.rank-row:hover .movie-title {
  color: #60a5fa;
}

.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span,
.movie-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-meta a:hover {
  color: #67e8f9;
}

.card-body p,
.wide-body p,
.info-card p,
.category-info p,
.detail-panel p {
  color: var(--muted);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  margin: 0 0 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.tag-row {
  gap: 6px;
}

.mini-tag {
  padding: 4px 8px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.56);
  border-color: rgba(148, 163, 184, 0.12);
}

.wide-list {
  display: grid;
  gap: 16px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 210px;
}

.wide-cover {
  min-height: 100%;
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-body .movie-title {
  min-height: auto;
  font-size: 18px;
}

.wide-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 4px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.58);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 210px;
  background: rgba(15, 23, 42, 0.78);
}

.category-info {
  padding: 24px;
}

.category-info h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-info span {
  display: inline-flex;
  margin-top: 14px;
  color: #67e8f9;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 30px;
}

.filter-input,
.select-filter {
  width: 100%;
}

.filter-button {
  padding: 11px 18px;
}

.hero-small {
  padding: 150px 0 60px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0));
}

.hero-small h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.hero-small p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-row {
  display: grid;
  grid-template-columns: 76px 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.52);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(8, 145, 178, 0.92));
  font-size: 20px;
  font-weight: 950;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
}

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

.rank-text h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-text p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-cta {
  color: #67e8f9;
  font-weight: 900;
}

.info-card {
  padding: 22px;
}

.info-card h2,
.info-card h3 {
  margin-top: 0;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
}

.info-card li + li {
  margin-top: 10px;
}

.detail-hero {
  padding-top: 102px;
}

.detail-backdrop {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #020617;
}

.detail-backdrop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.08);
  opacity: 0.34;
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), #020617 96%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  min-height: 360px;
  margin: 0 auto;
  padding: 40px 0 48px;
}

.poster-frame {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-title p {
  max-width: 840px;
  color: var(--soft);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 42px 0 80px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 26px;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.56));
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 0 54px rgba(59, 130, 246, 0.42);
  font-size: 32px;
  padding-left: 5px;
}

.detail-panel {
  padding: 26px;
  margin-bottom: 26px;
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 20px;
}

.detail-panel p:last-child {
  margin-bottom: 0;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.info-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--soft);
}

.info-line span:first-child {
  color: var(--muted);
}

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

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

.no-result {
  display: none;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}

.no-result.show {
  display: block;
}

.not-found-card {
  width: min(640px, calc(100% - 32px));
  margin: 150px auto 80px;
  padding: 42px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

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

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .page-main {
    padding-top: 86px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-side-card {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .category-covers {
    min-height: 180px;
  }

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

  .detail-hero-content {
    align-items: start;
  }

  .poster-frame {
    width: 190px;
  }

  .rank-row {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .rank-cta {
    display: none;
  }

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

@media (max-width: 560px) {
  .container,
  .hero-content,
  .detail-hero-content,
  .footer-inner,
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-slider {
    min-height: 78vh;
  }

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

  .hero-copy p,
  .detail-title p,
  .hero-small p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .scroll-row {
    grid-auto-columns: 170px;
  }

  .movie-card-wide {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 170px;
  }

  .wide-body p,
  .movie-card-wide .tag-row {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

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

  .card-body p {
    font-size: 12px;
  }

  .rank-row {
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

  .detail-panel,
  .info-card {
    padding: 20px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
