:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #a855f7;
  --pink: #ec4899;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.28);
  --radius: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #06111f 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.18);
}

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

.brand-copy strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--cyan);
}

.nav-search,
.mobile-search,
.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 44px rgba(34, 211, 238, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.68);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.88);
  border-radius: 14px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-panel nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 18px 0;
}

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

.mobile-search input {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.36) 72%, rgba(2, 6, 23, 0.88) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.95));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding-top: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #f8fafc, #67e8f9 48%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  max-width: 700px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  margin-top: 30px;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

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

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: white;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 26px;
}

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

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

.hero-dot.active {
  width: 30px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 6;
  transform: translate(-50%, 50%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.hero-search {
  width: 100%;
}

.hero-quick-links {
  margin-top: 14px;
  gap: 8px;
}

.hero-quick-links a {
  color: #bae6fd;
  padding: 8px 11px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.32);
  font-size: 13px;
}

.section-block {
  padding: 74px 0 0;
}

.page-home .section-block:first-of-type {
  padding-top: 128px;
}

.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(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 24px 58px rgba(34, 211, 238, 0.12);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.76));
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.poster-badge {
  left: 12px;
  color: #cffafe;
  background: rgba(8, 47, 73, 0.8);
}

.poster-year {
  right: 12px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.78);
}

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

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

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

.movie-meta {
  margin-top: auto;
  padding-top: 14px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.chip {
  min-height: 26px;
  padding: 5px 8px;
  color: #bae6fd;
  font-size: 12px;
}

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

.category-tile,
.category-overview-card a,
.text-panel,
.side-panel,
.player-panel {
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.34));
  box-shadow: 0 20px 52px rgba(2, 6, 23, 0.22);
}

.category-tile {
  padding: 24px;
  min-height: 170px;
  position: relative;
  overflow: hidden;
}

.category-tile::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
}

.category-tile span,
.category-overview-body h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-overview-body p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-item strong,
.rank-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

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

.rank-item b,
.side-list b {
  display: block;
  color: white;
  line-height: 1.35;
}

.rank-item em,
.side-list em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 6px;
}

.sub-hero {
  padding: 82px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 18%, rgba(34, 211, 238, 0.14), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.32));
}

.sub-hero h1 {
  margin: 14px 0 14px;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #bae6fd;
  font-size: 14px;
}

.breadcrumb b {
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-bar {
  align-items: stretch;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  flex: 0 0 170px;
}

.filter-empty {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted-strong);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-card a {
  overflow: hidden;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 170px;
  background: rgba(2, 6, 23, 0.6);
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 900;
}

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

.rank-card-link {
  display: grid;
  grid-template-columns: 74px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.rank-card span {
  color: #a5b4fc;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.08);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  padding: 72px 0;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 18px;
  max-width: 820px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 54px 0 0;
}

.content-column,
.side-column {
  min-width: 0;
}

.player-panel {
  padding: 12px;
  margin-bottom: 24px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78));
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  font-size: 34px;
  text-indent: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
}

.player-overlay.is-hidden {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.72);
}

.text-panel,
.side-panel {
  padding: 26px;
  margin-bottom: 24px;
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 0 0 16px;
  color: var(--muted-strong);
  line-height: 2;
  font-size: 16px;
}

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

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

.side-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.38);
}

.side-list img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0 28px;
}

.footer-grid p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #bae6fd;
  font-size: 14px;
}

.footer-bottom {
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    min-height: 610px;
    padding-top: 54px;
  }

  .hero-search-panel {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: -96px;
  }

  .hero-search,
  .filter-bar,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-controls {
    bottom: 132px;
  }

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

  .movie-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

  .movie-card-body h3 {
    font-size: 16px;
  }

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

  .rank-item {
    grid-template-columns: 42px 56px 1fr;
  }

  .rank-item img {
    width: 56px;
    height: 76px;
  }

  .rank-grid,
  .rank-card-link {
    display: block;
  }

  .rank-card-link {
    position: relative;
  }

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    margin-bottom: 12px;
  }

  .rank-number {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.8);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }

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

  .detail-main {
    padding-top: 30px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

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

  .btn {
    width: 100%;
  }
}
